Fee
0.05%
per swap on every plan
Routing
Multi-DEX
Solana's major DEXs
Integration
1 key
JSON-RPC over HTTPS, x-api-key header, no SDK needed
Quote, route, execute
The whole Solana swap API in two calls on one endpoint. Quote first; send the quote's id with your wallet when you want the transaction.
Quote
The quote method with src_mint, dst_mint, amount_in and slippage_bps returns the live price, the route plan for that pair and size, and a quoteId good for 30 seconds.
Route
The engine weighs liquidity across Solana's major DEXs for the order and returns the route it picked, inspectable before you sign.
Execute
Send swap with that quote_id and your user_pubkey to get one unsigned base64 transaction. You sign, submit and confirm; Carbium RPC is one place to submit it.
curl https://services.carbium.sh \
-H 'content-type: application/json' \
-H 'x-api-key: YOUR_KEY' \
-d '{"jsonrpc":"2.0","id":1,"method":"quote","params":[{
"src_mint":"So11111111111111111111111111111111111111112",
"dst_mint":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"amount_in":"10000000","slippage_bps":50}]}'const call = (method, params) =>
fetch("https://services.carbium.sh", {
method: "POST",
headers: { "content-type": "application/json", "x-api-key": "YOUR_KEY" },
body: JSON.stringify({ jsonrpc: "2.0", id: 1, method, params: [params] }),
}).then((r) => r.json());
const { result: quote } = await call("quote", {
src_mint: inputMint, dst_mint: outputMint, amount_in: String(amountIn), slippage_bps: 50,
});
const { result: swap } = await call("swap", {
quote_id: quote.quoteId, user_pubkey: wallet.publicKey.toBase58(),
});
// swap.transaction is one unsigned base64 transaction: sign it, then send it through your RPC.{
"srcAmountIn": "10000000",
"destAmountOut": "1092857",
"minAmountOut": "1087392",
"slippageBps": 50,
"swapMode": "BaseIn",
"routePlan": [
{ "hop": 0, "percent": "100",
"swapInfo": { "label": "m-dlmm", "inAmount": "9995000", "outAmount": "1092857" } }
],
"quoteId": "4579cc7e1b1ec3ead63e9c1cbbfe8e19",
"platformFee": { "amount": "5000", "feeBps": 5, "mint": "So11111111111111111111111111111111111111112" }
}Quote 0.01 SOL to USDC. Endpoint https://services.carbium.sh, key in the x-api-key header, amounts in the token's smallest unit as a string, slippage in basis points. Quick start in the docs.
Supported DEXs
Routes across Solana's major DEXs
Raydium
Meteora
Orca
Raydium
Meteora
Orca
Raydium
Meteora
Orca
Raydium
Meteora
Orca
What you get with Carbium Swap API
Multi-DEX routing
- Quotes compared across Solana's major DEXs
- One route plan per request, returned before you sign
Execution controls
- Slippage set per request in basis points
- Simulate with simulateTransaction over RPC before you submit
One flat fee
- 0.05% per swap on every plan
- Published requests per second and per minute on each plan
Self-owned infrastructure in Switzerland
- Served from a private data center Carbium owns in Switzerland
- Carbium's own fibre, routers, firewalls and power redundancy
- The same stack that runs Carbium RPC
Built for teams that build on Solana
Wallets
Add in-app token swaps without integrating each DEX yourself: one quote-and-swap flow, multi-DEX coverage, slippage set per request.
Automated apps
Programmatic quotes and transactions at published rates, up to 500 quotes a second on Elite.
Developer teams
A flat 0.05% per swap, route plans you can inspect before signing, and infrastructure Carbium owns and operates in Switzerland.
Moving from Jupiter or another Solana router
The request shape is the one you already know: quote first, then an executable transaction. The quote reference lists the parameters, and the comparison sets the routers side by side.
| Jupiter | becomes | Carbium |
|---|---|---|
inputMint | src_mint | |
outputMint | dst_mint | |
amount | amount_in | |
slippageBps | slippage_bps |
Two calls, one endpoint
GET /swap/v1/quotePOST /swap/v1/swapmethod quotemethod swapquote, then swap with userPublicKey
quote, then swap with quote_id and user_pubkey; returns the transaction
Quote and swap reference
Parameter by parameter: src_mint, dst_mint, amount_in and slippage_bps for quote, quote_id and user_pubkey for swap, and where the transaction lands in your flow.
Read the quote referenceSolana DEX aggregator comparison 2026
Carbium, Jupiter, Titan, OKX and DFlow on routing depth, quote speed and fees, with the numbers behind each claim.
Read the comparisonPlans and pricing
Four quote plans, one per account and shared by all its keys. Every plan has the same 0.05% router fee, collected on chain in each swap the user signs and never through plan billing.
Free
$0
10 quotes a second
600 quotes a minute
0 credits per quote
Starter
$7 a month
50 quotes a second
3,000 quotes a minute
0 credits per quote
Pro
$28 a month
150 quotes a second
9,000 quotes a minute
0 credits per quote
Elite
$104 a month
500 quotes a second
30,000 quotes a minute
0 credits per quote
These are carbium.sh's plans. You buy them and manage keys and billing on carbium.sh; the price and limits shown there when you buy apply.
Part of the Carbium stack
Carbium RPC
JSON-RPC, WebSocket and gRPC streaming on bare metal Carbium owns in Switzerland. Submit the swaps you build here.
Carbium RPCCarbium Swap
A separate non-custodial interface for Solana token swaps, with the same 0.05% router fee collected on chain. Users sign their own transactions, and there is no fiat purchase.
dex.carbium.ioCarbium Token Data
Search, resolve and batch Solana token metadata to pair with your quotes.
Token Data APISolana Swap API questions
What the API does, what it costs, and how it fits next to the router you use today.
Read the quick startWhat is the Carbium Swap API?
A JSON-RPC API for the Solana blockchain that returns real-time swap quotes and builds executable swap transactions, routing each order across several DEXs from a single API key. It costs 0.05% per swap on every plan.
Which DEXs does it route across?
Solana's major DEXs, among them Raydium, Meteora and Orca, and the set keeps growing.
How do I get a quote?
POST a JSON-RPC call with method quote to https://services.carbium.sh: src_mint, dst_mint, amount_in as a string in the token's smallest unit, and slippage_bps, with your key in the x-api-key header. The result carries the price, the route plan and a quoteId good for 30 seconds.
How do I execute a swap?
Quote first, then call swap within 30 seconds with the quote's quoteId as quote_id and your wallet address as user_pubkey. The result is transaction, one unsigned base64 transaction. Your app signs it, sends it through a Solana RPC such as Carbium RPC, and confirms it.
What does the Swap API cost?
A 0.05% router fee per swap on every plan, collected on chain in each swap the user signs and never through plan billing, plus the quote plan: Free $0, Starter $7, Pro $28 or Elite $104 a month. A quote costs 0 credits on every plan.
Is there a free plan?
Yes. The Free quote plan is $0 and allows 10 quotes a second and 600 a minute. It is enough to integrate and test quotes and swaps before you launch.
How is this different from Jupiter's swap API?
The shape is the same: quote, then an executable transaction. Carbium routes across its own set of DEXs, charges a flat 0.05% per swap, publishes requests per second and per minute for every plan, and serves the API from infrastructure it owns in Switzerland. The quote reference lists every parameter.
Do I need my own RPC?
Not for quoting. Quotes and the transaction payload come from the Swap API. Signing and submitting the transaction is your side, through any Solana RPC; Carbium RPC runs on the same infrastructure.
Where are the docs, and what about the v1 endpoints?
The docs at carbium.sh/docs cover quote and swap: every parameter, result field and error. The older v1 and v2 REST routes take only keys issued before carbium.sh; a carbium.sh key uses the quote and swap methods.
Get a key and make your first quote
Create a free account on carbium.sh, add the Quote module, and send one quote. The quick start takes you from there to swap, signing and submitting.



