Leap API
AI image generation APINano Banana Pro, GPT Image 2, Seedream 5.0 Pro and 50 more, through one request
Send a model ID and its input to one endpoint and get back an image. Every call is priced in dollars before it runs, and a call that fails costs nothing.
First $5 top-up, no card fee.
- One key for every model
- Every call quoted first
- A failed call costs nothing
curl https://api.tryleap.ai/v1/generations \ -H "x-api-key: $LEAP_API_KEY" \ -H "content-type: application/json" \ -H "prefer: wait=60" \ -d '{ "model": "google/nano-banana", "input": { "prompt": "A silk scarf in the wind on a ferry deck", "aspect_ratio": "1:1" } }' # Video often outlasts the wait and answers "queued" or "running".# Put its "id" in GENERATION_ID and read it again until it is done:# curl https://api.tryleap.ai/v1/generations/$GENERATION_ID -H "x-api-key: $LEAP_API_KEY"This runs Nano Banana. To run another image model, change model to its ID below and its input to match its schema.
Models
Every image model, one request
Each one by the ID the request takes, with what a call costs from its cheapest settings to its dearest, read from today's catalog.
- Nano BananaAPI guidegoogle/nano-banana$0.054
- Nano Banana ProAPI guidegoogle/nano-banana-pro$0.21 to $0.41
- GPT Image 2API guideopenai/gpt-image-2$0.07 to $0.085
- Nano Banana 2API guidegoogle/nano-banana-2$0.071 to $0.22
- Seedream 5.0 ProAPI guidebytedance/seedream-5.0-pro$0.048
- FLUX 3 ImageAPI guideblack-forest-labs/flux-3-image$0.065 to $0.82
- GPT Image 2.5 SunburstAPI guideopenai/gpt-image-2.5-sunburst$0.087 to $0.65
- FLUX.1 [schnell]API guideblack-forest-labs/flux-schnell$0.006
- FLUX1.1 [pro]API guideblack-forest-labs/flux-1.1-pro$0.054
- FLUX1.1 [pro] UltraAPI guideblack-forest-labs/flux-1.1-pro-ultra$0.081
- FLUX.2 [pro]API guideblack-forest-labs/flux-2-pro$0.041
- FLUX.2 [flex]API guideblack-forest-labs/flux-2-flex$0.068
- FLUX.2 [max]API guideblack-forest-labs/flux-2-max$0.095
- FLUX.2 [klein] 9BAPI guideblack-forest-labs/flux-2-klein-9b$0.021
- FLUX.2 [klein] 4BAPI guideblack-forest-labs/flux-2-klein-4b$0.019
- Seedream 4.5API guidebytedance/seedream-4.5$0.054
- Seedream 5.0 LiteAPI guidebytedance/seedream-5.0-lite$0.048
- Seedream 4.0API guidebytedance/seedream-4.0$0.041
- Recraft V4.1API guiderecraft/recraft-v4.1$0.048 to $0.11
- Recraft V4.1 ProAPI guiderecraft/recraft-v4.1-pro$0.29 to $0.41
- Recraft V4.1 FlashAPI guiderecraft/recraft-v4.1-flash$0.01
- Grok ImagineAPI guidexai/grok-imagine-image$0.027
- Grok Imagine 2.0API guidexai/grok-imagine-image-2.0$0.054 to $0.11
- Nano Banana 2.1API guidegoogle/nano-banana-2.1$0.105 to $0.21
- Nano Banana 2 LiteAPI guidegoogle/nano-banana-2-lite$0.053
- GPT Image 1.5API guideopenai/gpt-image-1.5$0.079 to $0.105
- Muse Image 1.0API guidemeta/muse-image-1.0$0.0135
- GPT Image 2.5 FlareAPI guideopenai/gpt-image-2.5-flare$0.087 to $0.65
- Qwen-Image 2512API guidealibaba/qwen-image-2512$0.027
- Qwen-Image 3API guidealibaba/qwen-image-3$0.061
- Z-Image TurboAPI guidealibaba/z-image-turbo$0.008
- FLUX.2 [dev]API guideblack-forest-labs/flux-2-dev$0.0165
- FLUX.2 [dev] FlashAPI guideblack-forest-labs/flux-2-flash$0.008
- FLUX.3API guideblack-forest-labs/flux-3$0.065
- FLUX.3 EditAPI guideblack-forest-labs/flux-3-edit$0.065
- FLUX.1 [dev]API guideblack-forest-labs/flux-dev$0.034
- FLUX.1 Kontext [max]API guideblack-forest-labs/flux-kontext-max$0.11
- FLUX.1 Kontext [pro]API guideblack-forest-labs/flux-kontext-pro$0.054
- FLUX.1 Krea [dev]API guideblack-forest-labs/flux-krea-dev$0.034
- Bria Text to ImageAPI guidebria/bria-text-to-image$0.054
- Seedream 5.0 FlashAPI guidebytedance/seedream-5.0-flash$0.037
- Seedream 5.0 Flash EditAPI guidebytedance/seedream-5.0-flash-edit$0.037
- HiDream-I1 FullAPI guidehidream/hidream-i1-full$0.068
- Ideogram 4.5API guideideogram/ideogram-4.5$0.041 to $0.30
- Ideogram 4.5 EditAPI guideideogram/ideogram-4.5-edit$0.011 to $0.30
- Ideogram 3.0API guideideogram/ideogram-v3$0.041 to $0.125
- Kling Image O3API guidekling/kling-image-o3$0.038 to $0.076
- Krea 2 TurboAPI guidekrea/krea-2-turbo$0.011
- IC-Light v2API guidelllyasviel/ic-light-v2$0.135
- Sana 1.5 4.8BAPI guidenvidia/sana-1.5-4.8b$0.0135
- Recraft V3API guiderecraft/recraft-v3$0.054
- Hunyuan Image 2.1API guidetencent/hunyuan-image-2.1$0.135
- GLM-ImageAPI guidezhipu/glm-image$0.068
MCP
Or let your agent call it.
Leap's MCP server lets Claude Code, Claude, VS Code and other MCP clients run any image model, read its inputs and fetch the result, on your balance. Signing in happens in the browser, so there is no key to paste.
claude mcp add --transport http leap https://app.tryleap.ai/api/mcpClaude Code signs you in through the browser the first time it calls Leap.
curl -fsSL https://www.tryleap.ai/install.sh | shInstalls the Leap skill for every coding agent it finds: which endpoint to call, how to read a model's inputs, when to wait and when to poll.
Questions
AI image generation API questions
- Which models does Leap's AI image generation API run?
- 53 image models, among them Nano Banana, Nano Banana Pro, GPT Image 2, Nano Banana 2 and Seedream 5.0 Pro. Each has its own ID and input schema, and the request is the same for all of them: change the model and its input to switch.
- How much does a image cost through the API?
- At each model's default settings, from $0.006 with FLUX.1 [schnell] to $0.29 with Recraft V4.1 Pro. Prices are the provider's list price plus our margin, and POST /v1/quotes gives the exact price of any input for free.
- Do I pay for generations that fail?
- No. The price is held when a call starts and charged only if it succeeds. A call that fails, or that the model's safety filter refuses, is not charged.
- How fast does an image come back?
- Most images finish within the request: send prefer: wait=60 and the answer holds the result. A run still going after a minute comes back queued or running, and you read it again by its ID.
- Is there a free trial?
- No. API keys run on paid credit: a first top-up, from $5, has no fee, and quotes are free. After that you pay per call from one balance in dollars, with no subscription.
- Can an AI agent use it?
- Yes. Leap's MCP server lets Claude Code, Claude, VS Code and other MCP clients find a image model, read its inputs, run it and fetch the result, on your balance.
Every image model, one API.
Keys run on paid credit, and the first top-up has no fee. One key runs every model on Leap.
Get an API key