logo

Solana Swap API for wallets, bots and trading terminals

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, no hidden fees

Routing

Multi-DEX

Solana's major DEXs, plus Pump.fun bonding curves

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. Pump.fun tokens still on their bonding curve quote with fft=1. Quick start in the docs.

Supported DEXs

Trade confidently across major Solana DEXs

Raydium

Meteora

Orca

Pumpfun

Moonshot

Raydium

Meteora

Orca

Pumpfun

Moonshot

Raydium

Meteora

Orca

Pumpfun

Moonshot

What you get with Carbium Swap API

Multi-DEX routing

  • Quotes compared across Solana's major DEXs and launchpads
  • One route plan per request, returned before you sign
  • Bonding-curve quotes for Pump.fun tokens with fft=1
Q1 quote reference

MEV Protection V2

  • Front-running detection and protection applied to execution
  • 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, no hidden fees
  • Published requests per second and per minute on each plan
  • Free plan to start, paid plans from $99 a month in USDC
Compare plans

Swiss-owned infrastructure

  • 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 the teams that trade 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.

Trading bots

Programmatic quotes and transactions with published requests per second, bonding-curve quotes for new Pump.fun tokens, up to 100 RPS on Elite.

Trading 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 is billed the same way, 0.05% per swap. 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
USDC
  • 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
USDC
  • 10 RPS
  • 600 RPM
  • 0.05% per swap

Pro

For bots and apps with steady traffic, with five API keys.

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

Elite

The highest published limits, for high-volume bots and trading terminals.

$999 /month
USDC
  • 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 and launchpads, among them Raydium, Meteora, Orca and Pump.fun, and the set keeps growing. Pump.fun tokens still on their bonding curve are quoted on the live curve when you pass fft=1.

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?

0.05% per swap on every plan, with no hidden fees. 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 in USDC.

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.

What is MEV Protection V2?

Front-running detection and protection applied when your swap executes, together with per-request slippage in basis points and transaction simulation before you submit.

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