Leap API
AI image generation APINano Banana Pro, GPT Image 2, Seedream 5.0 Pro and 48 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.
- 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.0484
- Nano Banana ProAPI guidegoogle/nano-banana-pro$0.19074 to $0.3069
- GPT Image 2API guideopenai/gpt-image-2$0.056276 to $0.068948
- Nano Banana 2API guidegoogle/nano-banana-2$0.0572 to $0.1738
- Seedream 5.0 ProAPI guidebytedance/seedream-5.0-pro$0.0385
- FLUX.1 [schnell]black-forest-labs/flux-schnell$0.0033
- FLUX1.1 [pro]black-forest-labs/flux-1.1-pro$0.044
- FLUX1.1 [pro] Ultrablack-forest-labs/flux-1.1-pro-ultra$0.066
- FLUX.2 [pro]black-forest-labs/flux-2-pro$0.033
- FLUX.2 [flex]black-forest-labs/flux-2-flex$0.055
- FLUX.2 [max]black-forest-labs/flux-2-max$0.077
- FLUX.2 [klein] 9Bblack-forest-labs/flux-2-klein-9b$0.0165
- FLUX.2 [klein] 4Bblack-forest-labs/flux-2-klein-4b$0.0154
- Seedream 4.5bytedance/seedream-4.5$0.044
- Seedream 5.0 Litebytedance/seedream-5.0-lite$0.0385
- Seedream 4.0bytedance/seedream-4.0$0.033
- Recraft V4.1recraft/recraft-v4.1$0.0385 to $0.088
- Recraft V4.1 Prorecraft/recraft-v4.1-pro$0.231 to $0.33
- Recraft V4.1 Flashrecraft/recraft-v4.1-flash$0.0077
- Grok Imaginexai/grok-imagine-image$0.022
- Grok Imagine 2.0xai/grok-imagine-image-2.0$0.044 to $0.088
- Nano Banana 2 Litegoogle/nano-banana-2-lite$0.0429
- GPT Image 2.5 Flareopenai/gpt-image-2.5-flare$0.056276 to $0.068948
- GPT Image 2.5 Sunburstopenai/gpt-image-2.5-sunburst$0.112596 to $0.125268
- GPT Image 1.5openai/gpt-image-1.5$0.064152 to $0.081752
- Muse Image 1.0meta/muse-image-1.0$0.011
- Qwen-Image 2512alibaba/qwen-image-2512$0.022
- Qwen-Image 3alibaba/qwen-image-3$0.0495
- Z-Image Turboalibaba/z-image-turbo$0.0055
- FLUX.2 [dev]black-forest-labs/flux-2-dev$0.0132
- FLUX.2 [dev] Flashblack-forest-labs/flux-2-flash$0.0055
- FLUX.3black-forest-labs/flux-3$0.0528
- FLUX.3 Editblack-forest-labs/flux-3-edit$0.0528
- FLUX.1 [dev]black-forest-labs/flux-dev$0.0275
- FLUX.1 Kontext [max]black-forest-labs/flux-kontext-max$0.088
- FLUX.1 Kontext [pro]black-forest-labs/flux-kontext-pro$0.044
- FLUX.1 Krea [dev]black-forest-labs/flux-krea-dev$0.0275
- Bria Text to Imagebria/bria-text-to-image$0.044
- Seedream 5.0 Flashbytedance/seedream-5.0-flash$0.0297
- Seedream 5.0 Flash Editbytedance/seedream-5.0-flash-edit$0.0297
- HiDream-I1 Fullhidream/hidream-i1-full$0.055
- Ideogram 4.5ideogram/ideogram-4.5$0.033 to $0.242
- Ideogram 4.5 Editideogram/ideogram-4.5-edit$0.0088 to $0.242
- Ideogram 3.0ideogram/ideogram-v3$0.033 to $0.099
- Kling Image O3kling/kling-image-o3$0.0308 to $0.0616
- Krea 2 Turbokrea/krea-2-turbo$0.0088
- IC-Light v2lllyasviel/ic-light-v2$0.11
- Sana 1.5 4.8Bnvidia/sana-1.5-4.8b$0.011
- Recraft V3recraft/recraft-v3$0.044
- Hunyuan Image 2.1tencent/hunyuan-image-2.1$0.11
- GLM-Imagezhipu/glm-image$0.055
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?
- 51 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.0033 with FLUX.1 [schnell] to $0.231 with Recraft V4.1 Pro. Prices are the provider's list price plus 10%, 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?
- Sign up with a Gmail, Outlook or work address and your workspace starts with $2 of credit, no card needed. 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.
Start with $2 of credit, no card. One key runs every model on Leap.
Get an API key