Skip to main content

Documentation Index

Fetch the complete documentation index at: https://dev.jup.ag/docs/llms.txt

Use this file to discover all available pages before exploring further.

The Swap API unifies Jupiter’s swap capabilities into a single entry point at https://api.jup.ag/swap/v2. Two paths cover every use case:
  • Meta-Aggregator: all routing engines compete for the best price. You get a fully assembled transaction, sign it, and Jupiter handles landing.
  • Router: Metis onchain routing only. You get raw swap instructions with full transaction control for custom builds, CPI, and composability.

Meta-Aggregator

All routers compete (Metis, JupiterZ, Dflow, OKX). Best price, simplest flow. Sign and send to Jupiter for managed landing.

Router

Metis onchain routing. Get raw swap instructions to build your own transaction. Add custom instructions, CPI, or modify the transaction however you need.

Choosing a path

Meta-AggregatorRouter
Endpoints/order + /execute/build + /submit
ReturnsAssembled transactionRaw swap instructions
RoutersAll (Metis, JupiterZ, Dflow, OKX)Metis only
Best forMost integrations. Best price, simplest flow.Custom transactions, CPI, composability.
Transaction landingManaged via /execute (optimised slippage, priority fees, proprietary landing pipeline)Self-managed via your own RPC, or via /submit with SOL tips for Jupiter’s proprietary landing pipeline
Swap feesYes (Jupiter platform fee)No
Integrator feesReferral fees (referralAccount + referralFee)Platform fee only (platformFeeBps) or DIY
GaslessAutomatic gasless, or your own payerUse your own payer
Transaction modificationNoFull control
Start with the Meta-Aggregator. It gives you the best price because all routers compete, including RFQ market makers who often beat onchain routing by 5-20bps on major pairs. Only use the Router if you need to modify the transaction.

Routing engines

Jupiter’s routing combines multiple engines and selects the best execution price across all of them, with a self-learning mechanism that automatically sidelines underperforming sources.
EngineRoleAvailability
MetisJupiter’s onchain routing engine. Multi-hop, multi-split swaps across Solana DEXes. Also available as an independent public good.Meta-Aggregator + Router
JupiterZRFQ (Request for Quote) system where market makers compete to provide off-chain liquidity. Often beats onchain by 5-20bps on major pairs.Meta-Aggregator only
DflowThird-party on-chain router.Meta-Aggregator only
OKXThird-party OKX liquidity.Meta-Aggregator only
JupiterZ (RFQ) is only available through the Meta-Aggregator.
  • Jupiter runs safety and validation mechanisms between integrators and market makers, and market makers have last-look execution rights, which requires controlled transaction handling to ensure validity and prevent spam.
  • Transactions routed through JupiterZ cannot be modified after /order returns them, so use cases that require CPI, custom instructions, or any transaction modification must use the Router path.

Endpoints

All endpoints require an API key via the x-api-key header. Get one at Portal. Meta-Aggregator
MethodEndpointDescription
GET/swap/v2/orderGet a quote and assembled transaction
POST/swap/v2/executeExecute a signed /order transaction with managed landing
Router
MethodEndpointDescription
GET/swap/v2/buildGet a quote and raw swap instructions
POST/tx/v1/submitSubmit any signed transaction through Jupiter’s proprietary landing pipeline with SOL tips

Learn More

Advanced

Gasless swaps, compute unit estimation, reducing transaction size and latency.

Migration Guides

Migrating from Ultra or Metis to the Swap API.

Integrate into routing

If you want your liquidity routed through Jupiter: