Free Solana swap API: quotes, swaps and prices with no key
quote, swap and prices answer on services.carbium.sh with no key and no sign-up, 30 calls a minute. A free key with the Quote module's Free plan raises that to 10 calls a second, with no credits spent. The page is laid out by what you came for: a quote, a swap, a price, a route, or the limits.
No key
30 calls/min
quote, swap and prices, per IP address, with no sign-up
Free key
10 calls/s
On the Quote module's Free plan: per account, with no credits spent
The plan
$0
The 0.05% router fee is on chain, in the trade's own transaction, on every plan
Quote
How do I get a free Solana swap quote?
POST the quote method with two mints, an amount and a slippage. It answers the amount out, the floor, the route and a quoteId that lasts up to 30 seconds. No key is needed for 30 calls a minute.
curl https://services.carbium.sh \
-H 'content-type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"quote","params":{
"src_mint":"So11111111111111111111111111111111111111112",
"dst_mint":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"amount_in":"10000000","slippage_bps":50}}'- You get
- 0.686284 USDC
- At least
- 0.682852 USDC
- Route
100% r-clmm- Router fee
- 5,000 lamports (0.05%)
- quoteId
959311ef45fb…
A quoteId lasts up to 30 seconds: a square a second.
A sample answer, from 25 November 2026. Press the button to send this call from your own browser, with no key.
What a quote holds
Quote referencedestAmountOutis what the wallet receives, with the router fee already taken.minAmountOutis the floor the transaction will enforce.routePlanlists each pool of the quoted route.Over HTTPS, one call a request
Quotes are JSON‑RPC over HTTPS, never batched. Carbium's WebSocket carries Solana's subscriptions, such as accounts, logs and slots, and no quote feed: for a fresh price, quote again.
Amounts are strings
Every amount is a decimal string in the token's smallest unit. 0.01 SOL is
10000000lamports. Parse them as big integers, not as floating numbers.
Swap
How does a quote become a swap transaction?
The Quote API returns a price and an unsigned transaction. Signing is your wallet's part. Sending and checking are ordinary RPC calls, on Carbium RPC or on any other Solana RPC.
- 1 call · 0 credits
quoteThe price, the route and a
quoteIdgood for up to 30 seconds. - 1 call · 0 credits
swapOne unsigned transaction, built from that quote.
- your wallet
signNothing moves until a wallet signs the transaction and sends it.
- RPC · 20 credits
sendTransactionWith
skipPreflight, on Carbium RPC. Any Solana RPC can send it. - RPC · 5 credits
getSignatureStatusesAsked until the transaction is confirmed.
The wallet pays its own network fee
user_pubkeysigns, pays the fees and owns the token accounts. The wallet needs the input amount, the 5,000‑lamport signature fee, the priority fee and the rent of any token account the transaction creates. The API does not pay a fee for it.
// first-quote.mjs: a quote, then the transaction built from it.
// Node 18 or later: fetch is built in. It runs with no key.
const URL = "https://services.carbium.sh";
const headers = { "content-type": "application/json" };
// No key: 30 calls a minute. A free key in this header: its own rate.
if (process.env.CARBIUM_KEY) headers["x-api-key"] = process.env.CARBIUM_KEY;
async function call(method, params) {
// one quote call per request: these methods are never batched
const body = JSON.stringify({ jsonrpc: "2.0", id: 1, method, params });
const res = await fetch(URL, { method: "POST", headers, body });
// 429: over the rate. The answer names the wait.
if (res.status === 429) {
throw new Error("wait " + res.headers.get("retry-after-ms") + " ms");
}
const { result, error } = await res.json();
if (error) throw new Error(method + ": " + error.message);
return result;
}
const SOL = "So11111111111111111111111111111111111111112";
const USDC = "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v";
// 0.01 SOL to USDC. Amounts are strings in the token's smallest unit.
const quote = await call("quote", {
src_mint: SOL,
dst_mint: USDC,
amount_in: "10000000",
slippage_bps: 50,
});
console.log("out", quote.destAmountOut, "at least", quote.minAmountOut);
console.log("router fee", quote.platformFee?.amount, "lamports");
// Within 30 seconds: one unsigned transaction for your wallet to sign.
const swap = await call("swap", {
quote_id: quote.quoteId,
user_pubkey: "YOUR_WALLET_ADDRESS",
});
console.log("to sign", swap.transaction.length, "base64 characters");
node first-quote.mjs, with your wallet's address in place of YOUR_WALLET_ADDRESS. Both calls cost 0 credits. Quote reference and the swap method.Price
Is there a free Solana price API?
prices answers token prices in US dollars for up to 64 mints a call, with no key. It is a table refreshed on a timer and cached for 30 seconds, not a chart and not a history.
curl https://services.carbium.sh \
-H 'content-type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"prices","params":{
"mints":[
"So11111111111111111111111111111111111111112",
"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
"JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN",
"DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263"]}}'| Token | Price, USD | Priced against |
|---|---|---|
| SOL | 68.63 | USDC |
| USDC | 1.00 | SOL |
| USDT | 0.9988 | SOL |
| JUP | 0.2187 | SOL |
| BONK | 0.000002092 | USDC |
A sample answer, from 25 November 2026. Press the button to send this call from your own browser, with no key.
What a row holds
The mint, its price in US dollars (empty when the table has none), the value of its pools in dollars and the mint it is priced against. A mint the table does not carry is left out of the answer.
Poll it on a timer
The table is cached for 30 seconds, so one call every 30 seconds keeps a watchlist current. It is not a price for one quote: ask
quotefor that.Names and logos
Carbium Token Datapricesanswers by mint. A token's name, symbol and logo come from Carbium Token Data, which is free and needs no key.
Route
How does it route, next to Jupiter and other aggregators?
Plain facts, to compare by. One quote searches 17 on-chain pool families, in one hop or several, and splits an order across pools. The route comes back before anything is signed.
100 SOL to USDC
- 48%
o-whirlpoolOrca Whirlpool - 36%
m-dlmmMeteora DLMM - 9%
pancakeswap-v3PancakeSwap v3 - 7%
r-clmmRaydium CLMM
5,000 USDC to JUP
- 72%
o-whirlpoolOrca Whirlpool - 18%
m-dlmmMeteora DLMM - 10%
m-dlmmMeteora DLMM
- 100%
o-whirlpoolOrca Whirlpool
routePlan answered them. A square is one percent of a hop's input.The floor is enforced on chain
slippage_bpssetsminAmountOut, and the transaction fails rather than pay less. On that failure, quote again.When the network is busy
The swap methodswapsets the transaction's priority price from recent priority fees on the pools the router serves most, read again every 10 seconds and kept within the bounds the reference lists. A price you pass always wins.Pin a venue
dexkeeps a quote to the pool families you name, up to 17 labels, in one hop. With none named, every family is searched, over several hops too.
Limits
What are the limits of the free swap API?
With no key: 30 calls a minute per IP address, RPC and quote calls together. With a free key: 10 calls a second for the account, with no credits spent. The grid is one minute at that rate, filled as the clock runs.
237calls this minute of 600
second 24 of 60
- 10
- a second
- 600
- a minute
- 36,000
- an hour
- 864,000
- a day
The plan's rate with no pause, and no credits spent at any point of it.
What counts as a call
quote,swapandpricesare one call each, against the same rate.healthis outside it: it counts against the RPC plan's cached reads.The burst is one second of it
A burst can spend one second of the rate at once: 10 calls. The rate then refills at 10 a second.
Over the rate
A call over the rate waits up to 1 second for the rate, or up to 3 seconds for a place in flight, and is served if one comes. If not, it gets 429 with
Rate limitsretry-after-ms, the wait to honour. On Free a 429 can also mean the shared budget is full.
The step up
What does a paid quote plan add?
Free has every method and the same fee as the paid plans. A paid plan adds calls a second, and a rate that is only yours.
- Quotes and routes
- On Free
quotesearches 17 on-chain pool families, multi-hop and split, and returns the route before you sign.- Trade transactions
- On Free
swapbuilds one unsigned transaction from a quote. Your app signs it and sends it.- Prices
- On Free
pricesanswers for up to 64 mints in one call.- The same router fee
- On Free
- 0.05% per trade on Free and on every paid plan, taken on chain inside the transaction the user signs.
- Any RPC plan
- On Free
- The quote plan is the same on every Carbium RPC plan, Free included.
With a paid quote plan
- More calls a second
- From Starter
- 50 on Starter, at $7 a month, 150 on Pro and 500 on Elite.
- A rate of your own
- From Starter
- Free callers on one network (an IPv4 /24) share 20 requests a second, and Free quotes share 8 of a node's 32 places in flight. A paid quote plan has neither limit.
Where to go next
The plans, the API itself and the references this page draws on.
Plans
Quote API pricing
Every plan's price and calls a second, side by side.
Compare plans
Product
Carbium Quote API
Quote, route, execute: the request flow and the DEXs it routes across.
Carbium Quote API
Also free
The Free RPC plan
Read methods with no key, and 500K credits with a free one: enough to send the trades you build here.
Free Solana RPC
Compare
Solana swap APIs, compared
Five providers side by side: rates, fees and how you get a key.
Read the comparison
Reference
Quote and swap
Every parameter, result field and error of the two methods.
carbium.sh/docs
Reference
Rate limits
The quote plans' rates, and what a call past them gets.
carbium.sh/docs
Questions
The quote reference on carbium.sh has every parameter and error. For anything else, ask the team on the Carbium Discord.
Quote referenceIs there a free Solana swap API?
Yes. The Carbium Quote API answers quote, swap and prices with no key and no sign-up, 30 calls a minute per IP address. Its Free plan, with a free key, allows 10 calls a second at $0. It returns quotes across 17 on-chain pool families and unsigned trade transactions that your own wallet signs.
Can I get a Solana swap quote with no API key?
Yes. POST the quote method to services.carbium.sh with no key. The limit is 30 calls a minute per IP address, counted together with RPC calls, and past it the answer is 429 with the wait in retry-after-ms. A free key has a rate of its own: 10 calls a second.
Does the Solana swap API send quotes over WebSocket?
No. Quotes are JSON-RPC calls over HTTPS, one call a request. Carbium's WebSocket carries Solana's subscriptions, such as accounts, logs and slots. For a fresh price, quote again: a quoteId lasts up to 30 seconds.
Is there a free Solana price API?
Yes. The prices method answers token prices in US dollars for up to 64 mints a call, with no key at 30 calls a minute, or at 10 calls a second with a free key. The table is cached for 30 seconds and holds no history, so it draws no chart by itself.
Does the swap API do gasless swaps?
No. The wallet that signs the transaction is its fee payer. It needs the input amount, the 5,000-lamport signature fee, the priority fee and the rent of any token account the transaction creates.
How does it compare with Jupiter and other Solana swap aggregators?
The shape is the same: a quote, then a transaction to sign. One quote searches 17 on-chain pool families, multi-hop and split, and returns the route before anything is signed. The router fee is 0.05% per trade on every plan. The compare page sets five swap APIs side by side: rates, fees and how you get a key.
Solana swap APIs, comparedWhat are the Free plan's limits?
10 calls a second per account, shared by all its keys, which carbium.sh also lists as 600 a minute. A burst can spend one second of it, and 8 calls may be in flight per key. Free callers on one network also share 20 requests a second.
Every rate, by planDo quotes cost credits?
No. quote, swap and prices cost 0 credits on every plan: the quote plan's rate is the meter, and they are answered even when an account's RPC credits are spent. Sending the signed transaction is an RPC call. On Carbium RPC a send with skipPreflight costs 20 credits.
Is the router fee waived on the Free plan?
No. The 0.05% router fee is the same on every plan. It is inside the quote and is taken on chain in the transaction the user signs. carbium.sh's reference lists two cases where it is 0: an amount so small that the fee rounds down to nothing, and a few Token-2022 input tokens on routes with no SOL, USDC or USDT end.
Quote referenceWhat happens above 10 calls a second?
A call over the rate waits up to 1 second and is served if the rate allows it by then. Otherwise it answers 429 with retry-after-ms, the wait before the next try. On Free a 429 can also mean that the budget Free callers share is full. Starter raises the rate to 50 calls a second for $7 a month.
Quote API pricingHow do I get a free Solana swap API key?
Sign in on carbium.sh with an emailed code, Google, X or a Solana wallet, then add the Quote module and pick its Free plan. Requests go to services.carbium.sh, with the key in the x-api-key header of each one.
Account and keysNo key to try it, 10 calls a second with a free one
Quote with no key now, take a free key when 30 calls a minute is not enough, and move to a paid plan when the app needs more calls a second or a rate of its own.
Back to the Carbium Quote API