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
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.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
/orderreturns 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 thex-api-key header. Get one at Portal.
Meta-Aggregator
Router
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:- DEX operators: Integrate DEX into Metis to get your markets included in Jupiter’s onchain routing.
- Market makers: Integrate into JupiterZ (RFQ) to provide off-chain liquidity via the RFQ system.
