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.

No key · quote 0.01 SOL to USDC
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

    destAmountOut is what the wallet receives, with the router fee already taken. minAmountOut is the floor the transaction will enforce. routePlan lists each pool of the quoted route.

    Quote reference
  • 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 10000000 lamports. 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. 1 call · 0 credits

    quote

    The price, the route and a quoteId good for up to 30 seconds.

  2. 1 call · 0 credits

    swap

    One unsigned transaction, built from that quote.

  3. your wallet

    sign

    Nothing moves until a wallet signs the transaction and sends it.

  4. RPC · 20 credits

    sendTransaction

    With skipPreflight, on Carbium RPC. Any Solana RPC can send it.

  5. RPC · 5 credits

    getSignatureStatuses

    Asked until the transaction is confirmed.

One trade, sent and checked once: 2 quote calls and 25 RPC credits. The Free RPC plan's 500K credits cover 20,000 of them.The Free RPC plan
  • The wallet pays its own network fee

    user_pubkey signs, 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
// 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");
Run it with 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.

No key · prices for 5 mints
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"]}}'
TokenPrice, USDPriced against
SOL68.63USDC
USDC1.00SOL
USDT0.9988SOL
JUP0.2187SOL
BONK0.000002092USDC

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 quote for that.

  • Names and logos

    prices answers by mint. A token's name, symbol and logo come from Carbium Token Data, which is free and needs no key.

    Carbium Token Data

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-whirlpool Orca Whirlpool
  • 36% m-dlmm Meteora DLMM
  • 9% pancakeswap-v3 PancakeSwap v3
  • 7% r-clmm Raydium CLMM

5,000 USDC to JUP

Hop 1
  • 72% o-whirlpool Orca Whirlpool
  • 18% m-dlmm Meteora DLMM
  • 10% m-dlmm Meteora DLMM
Hop 2
  • 100% o-whirlpool Orca Whirlpool
Two quotes of 25 November 2026, as routePlan answered them. A square is one percent of a hop's input.
  • The floor is enforced on chain

    slippage_bps sets minAmountOut, and the transaction fails rather than pay less. On that failure, quote again.

  • When the network is busy

    swap sets 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.

    The swap method
  • Pin a venue

    dex keeps 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.

Free quote plan · 10 calls a second

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, swap and prices are one call each, against the same rate. health is 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 retry-after-ms, the wait to honour. On Free a 429 can also mean the shared budget is full.

    Rate limits

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
quote searches 17 on-chain pool families, multi-hop and split, and returns the route before you sign.
Trade transactions
On Free
swap builds one unsigned transaction from a quote. Your app signs it and sends it.
Prices
On Free
prices answers 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.
A free 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. One Free account per person or agent: carbium.sh's terms end the plan for an account that opens more. Account and keys.

Questions

The quote reference on carbium.sh has every parameter and error. For anything else, ask the team on the Carbium Discord.

Quote reference

Is 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, compared

What 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 plan

Do 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 reference

What 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 pricing

How 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 keys

No 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