logo

Solana Swap API for wallets, apps and developers

One key and one GET request: real-time quotes and executable swap transactions, routed across Solana's major DEXs at 0.05% per swap, served from infrastructure Carbium owns in Switzerland.

Fee

0.05%

per swap on every plan

Routing

Multi-DEX

Solana's major DEXs

Integration

1 key

REST over HTTPS, X-API-KEY header, no SDK needed

Quote, route, execute

The whole Solana swap API in one request shape. Quote first; add your wallet when you want the transaction.

  1. Quote

    GET /api/v2/quote with src_mint, dst_mint, amount_in and slippage_bps returns the live price and the route plan for that pair and size.

  2. Route

    The engine weighs liquidity across Solana's major DEXs for the order and returns the route it picked, inspectable before you sign.

  3. Execute

    Add user_account to the same request to get a base64 txn. You sign, submit and confirm; Carbium RPC is one place to submit it.

curl --get 'https://api.carbium.io/api/v2/quote' \
  --data-urlencode 'src_mint=So11111111111111111111111111111111111111112' \
  --data-urlencode 'dst_mint=EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v' \
  --data-urlencode 'amount_in=1000000' \
  --data-urlencode 'slippage_bps=50' \
  --header "X-API-KEY: $CARBIUM_API_KEY"
GET /api/v2/quote · quote only

Quote 0.001 SOL to USDC. Base URL https://api.carbium.io/api, key in the X-API-KEY header, amounts in the token's smallest unit, 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
Q1 quote reference

Execution controls

  • Slippage set per request in basis points
  • Transaction simulation before you submit
How execution works

One flat fee

  • 0.05% per swap on every plan
  • Published requests per second and per minute on each plan
  • Free plan to start, paid plans from $99 a month
Compare plans

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
See our infrastructure

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 with published requests per second, up to 100 RPS 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 guides map the parameters and compare the routers side by side.

Jupiter's quote parameters and where they go in a Carbium request, from the Carbium migration guide.
JupiterbecomesCarbium
inputMintsrc_mint
outputMintdst_mint
amountamount_in
slippageBpsslippage_bps

Two calls become one

GET /swap/v1/quotePOST /swap/v1/swap
GET /api/v2/quote

quote, then swap with userPublicKey

user_account in the same request returns the txn

Full mapping in the migration guide

Plans and pricing

Every plan has the same 0.05% router fee, collected on chain in each swap the user signs and never through plan billing. Paid plans raise the published request limits and the number of API keys.

Free

Start building at no cost: quotes and swaps with one API key.

$0 /month
  • 1 RPS
  • 60 RPM
  • 0.05% per swap
Recommended

Starter

Take a wallet or app live with ten times the Free limits and three API keys.

$99 /month
  • 10 RPS
  • 600 RPM
  • 0.05% per swap

Pro

For apps with steady traffic, with five API keys.

$249 /month
  • 50 RPS
  • 3,000 RPM
  • 0.05% per swap

Elite

The highest published limits, for high-traffic apps and backends.

$999 /month
  • 100 RPS
  • 6,000 RPM
  • 0.05% per swap
All plan details

Part of the Carbium stack

Solana Swap API questions

What the API does, what it costs, and how it fits next to the router you use today.

Read the quick start

What is the Carbium Swap API?

A REST 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?

Send GET https://api.carbium.io/api/v2/quote with src_mint, dst_mint, amount_in in the token's smallest unit and slippage_bps, and your key in the X-API-KEY header. The response carries the price and the route plan.

How do I execute a swap?

Add user_account, your wallet address, to the same quote request. The response then includes txn, a base64 transaction payload. Your app signs it, submits 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. The older /api/v1/swap route instead adds a flat 0.00035 SOL to each transaction. Free is $0 with 1 request per second and 60 per minute; Starter is $99 a month with 10 RPS and 600 RPM; Pro is $249 with 50 RPS and 3,000 RPM; Elite is $999 with 100 RPS and 6,000 RPM. Plans are billed monthly.

Is there a free plan?

Yes. Free costs nothing, allows 1 request per second and 60 per minute with one API key, and 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 migration guide maps the parameters one to one.

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 quick start at carbium.io/docs leads with the v2 quote flow, documented as Q1. The older v1 quote and swap request family stays documented for existing integrations; do not mix the two parameter styles in one request.

Get a key and make your first quote

Create a free account, generate an API key, and send one GET /api/v2/quote. The quick start takes you from there to signing and submitting.

Quick start