AI Image Generation API
Call GPT Image 2, Nano Banana Pro, Nano Banana 2, Seedream 5.0, FLUX.2, Qwen Image 3.0 and more through one API key. Text-to-image and image editing up to 4K, and every model is 20% off the list price.
Text-to-Image and Image Editing API Models
Every image model below shares the same APIMart key and billing. Open a model to see supported sizes, editing options, the pricing table and code examples.
Muse Image API API
Generate an image from a prompt or up to nine reference images with Muse Image API. Choose a supported aspect ratio or follow the reference aspect ratio, then retrieve one WebP image through the task API.
Image generationView API & pricing →FLUX 3 Image API
FLUX 3 Image by Black Forest Labs is the image model of the FLUX 3 API. It generates one image per request from text or up to 10 references, at five resolution tiers up to 4K. Resolution sets the price; reference images add no separate charge.
Image GenerationUp to 10 ReferencesSearch GroundingResolution-Based PricingView API & pricing →FLUX 3 Image Klein API
FLUX 3 Image Klein is the 5.6B-parameter open-weights model in Black Forest Labs' FLUX 3 Image family. Call the FLUX 3 Image Klein API with model flux-3-image-klein to generate or edit one image per request from text or up to 10 references.
Open WeightsImage GenerationUp to 10 ReferencesFive Resolution TiersView API & pricing →GPT Image 1 API
GPT Image 1 (gpt-image-1-official) is the OpenAI image model released in the API on April 23, 2025. On APIMart it generates images from text in 1:1, 3:2 or 2:3, edits with 1–15 reference images and supports mask inpainting. OpenAI shut down gpt-image-1 in its own API on October 23, 2026; for new projects we recommend GPT Image 2.6.
Image GenerationCommercial UseView API & pricing →GPT Image 1.5 API
GPT Image 1.5 (gpt-image-1.5-official, OpenAI snapshot gpt-image-1.5-2025-12-16) is an OpenAI image model for higher-quality generation and more complex edits than GPT Image 1. On APIMart it generates images in 1:1, 3:2 or 2:3, edits with 1–15 reference images and supports mask inpainting. OpenAI has deprecated it and lists December 1, 2026 as the shutdown date.
Image GenerationCommercial UseView API & pricing →GPT Image 2 API
OpenAI GPT Image 2 delivers next-gen AI image generation from text prompts with near-perfect text rendering, native 4K output, and deep world knowledge. As the latest in the GPT Image series, this GPT Image API supports model, prompt, and other parameters — ideal for production workflows.
Image GenerationCommercial UseView API & pricing →GPT Image 2.5 API
GPT Image 2.5 API on APIMart gives you OpenAI's GPT Image 2.5 models, the API version of ChatGPT Images 2.5 released on September 8, 2026. Use gpt-image-2.5-flare, the default choice with 50% lower latency than GPT Image 2, or gpt-image-2.5-sunburst for tighter control across detailed edits. Both generate and edit images at up to 4K, accept up to 16 reference images and cost the same per token.
Flare & SunburstUp to 4KMask Editing16 ReferencesView API & pricing →GPT Image 2.5 Flare API
GPT Image 2.5 Flare API (gpt-image-2.5-flare) on APIMart runs the default GPT Image 2.5 model from OpenAI. It produces higher-quality images than GPT Image 2 at 50% lower latency, generates 1–4 images per request at up to 4K, edits with up to 16 references and costs the same per token as GPT Image 2.5 Sunburst.
50% Lower Latency1–4 ImagesUp to 4KImage EditingView API & pricing →GPT Image 2.5 Sunburst API
GPT Image 2.5 Sunburst API (gpt-image-2.5-sunburst) on APIMart runs the precision model in OpenAI's GPT Image 2.5 family. It gives tighter control across multi-turn edits for production ads and polished product imagery, supports mask inpainting and 4K output, and costs the same per token as GPT Image 2.5 Flare, with longer generation times.
Precision EditingMask InpaintingUp to 4KMulti-Turn EditsView API & pricing →GPT Image 2.6 API
GPT Image 2.6 (Images 2.6 in ChatGPT) is OpenAI's image generation and editing model, offered in the API as gpt-image-2.6-flare and gpt-image-2.6-sunburst. OpenAI says it generates images 50% faster than before. On APIMart you can create still images at 1K–4K, edit with up to 16 references, masks or markup, and export animated GIFs or SVG vectors. Both versions share the same parameters and token rates; Flare is the default.
Flare / SunburstPNG / JPEG / WebPGIF / SVGcomplexity / markupView API & pricing →GPT Image 2.6 Flare API
GPT Image 2.6 Flare (gpt-image-2.6-flare) is the faster of OpenAI's two GPT Image 2.6 API models. According to OpenAI, it can return an image in as little as six seconds at low quality and lays out posters and product imagery better. On APIMart it generates and edits images at 1K–4K, accepts up to 16 references, a mask or markup, and outputs PNG, JPEG, WebP, GIF or SVG.
FlarePNG / JPEG / WebPGIF / SVGcomplexity / markupView API & pricing →GPT Image 2.6 Sunburst API
GPT Image 2.6 Sunburst (gpt-image-2.6-sunburst) is the higher-quality of OpenAI's two GPT Image 2.6 API models, designed for detailed work and consistent results across edits at medium or high quality. On APIMart it generates and edits images at 1K–4K, accepts up to 16 references, a mask or markup, and outputs PNG, JPEG, WebP, GIF or SVG.
SunburstPNG / JPEG / WebPGIF / SVGcomplexity / markupView API & pricing →Grok Imagine Image API
The Grok Imagine API on APIMart gives you xAI's standard image model, grok-imagine-image: text to image and natural-language editing with up to five reference images, 1K or 2K output, auto plus 13 aspect ratios and 1–10 images per request.
Image GenerationImage EditingText to ImageView API & pricing →Grok Imagine Image Quality API
The Grok Imagine Image Quality API on APIMart gives you xAI's grok-imagine-image-quality model: text to image and natural-language editing with up to three reference images, 1K or 2K output, auto plus 13 aspect ratios and 1–10 images per request.
Image GenerationImage EditingText to ImageView API & pricing →Grok Imagine 1.5 Ext API
Grok Imagine 1.5 Ext is APIMart's Ext channel for Grok Imagine images. One model ID, grok-imagine-1.5-ext, handles text to image and natural-language editing with up to five reference images, in five aspect ratios and 1–10 images per request.
Image GenerationImage EditingText to ImageView API & pricing →Grok Imagine 2.0 API
The Grok Imagine 2.0 API on APIMart gives you two ways to use xAI's Grok Imagine 2.0 image model: the low-cost grok-imagine-2.0-ext for text to image, ratio redraw, layers and region editing, and the official grok-imagine-image-2.0 for 1K or 2K text to image and editing with up to three reference images.
Image GenerationText to ImageAsynchronous APIView API & pricing →FLUX.2 API
FLUX.2 is a three-model image generation and editing family: Pro balances speed, quality, and cost for production, Max targets the highest output quality, and Flex adds adjustable steps and guidance for fine control and typography.
Image GenerationImage EditingCommercial UseView API & pricing →FLUX.2 Pro API
FLUX.2 Pro generates and edits images with a balance of speed, quality, and cost for production workflows.
Image GenerationImage EditingCommercial UseView API & pricing →FLUX.2 Max API
FLUX.2 Max generates and edits images with the highest output quality in the FLUX.2 family for quality-focused workflows.
Image GenerationImage EditingCommercial UseView API & pricing →FLUX.2 Flex API
FLUX.2 Flex generates and edits images with adjustable steps and guidance for fine control and typography.
Image GenerationImage EditingCommercial UseView API & pricing →FLUX.1 Kontext API
FLUX.1 Kontext is a context-aware image model family for editing and text-to-image generation, with Pro and Max variants, predictable per-image pricing, and asynchronous task processing.
Context-Aware EditingText to ImageFixed Per-Image PricingView API & pricing →FLUX.1 Kontext Pro API
FLUX.1 Kontext Pro is a context-aware image model for editing and text-to-image generation, with predictable per-image pricing and asynchronous task processing.
Context-Aware EditingText to ImageFixed Per-Image PricingView API & pricing →FLUX.1 Kontext Max API
FLUX.1 Kontext Max is a context-aware image model for editing and text-to-image generation, with predictable per-image pricing and asynchronous task processing.
Context-Aware EditingText to ImageFixed Per-Image PricingView API & pricing →Imagen 4.0 API
Google Imagen 4.0 delivers cutting-edge AI image generation capabilities. Create photorealistic and artistic images from text prompts with Google's latest generation technology.
Image GenerationText to ImageView API & pricing →Qwen Image 2.0 API
Qwen Image 2.0 (qwen-image-2.0) is Alibaba's Qwen image model for text to image and image editing in one model. Use the Qwen Image API to render readable text in posters, infographics and slides, or edit a photo with a plain-language instruction, at 1K or 2K.
Image GenerationText to ImageView API & pricing →Qwen Image 2.0 Pro API
Qwen Image 2.0 Pro delivers powerful AI image generation capabilities. Create high-quality images from text prompts or transform existing images with Qwen Image 2.0 Pro.
Image GenerationText to ImageView API & pricing →Qwen Image 3.0 API
Qwen Image 3.0 delivers clearer instruction following, stable bilingual text rendering, and dense layout generation. Create and edit images with Qwen Image 3.0 at 1K or 2K.
Image GenerationText to ImageImage EditingView API & pricing →Qwen Image 3.0 Pro API
Qwen Image 3.0 Pro delivers clearer instruction following, stable bilingual text rendering, and dense layout generation. Create and edit images with Qwen Image 3.0 Pro at 1K or 2K.
Image GenerationText to ImageImage EditingView API & pricing →Seedream 5.5 API
Explore Seedream5.5 API workflows for image generation, precise edits, multilingual text, and multi-image composition. Use this APIMart workspace to organize prompts and references, then review the API examples and parameter table below.
Image generation & editingMultilingual textPrecise local changesView API & pricing →Seedream 4.0 API
Seedream 4.0 is ByteDance's image model that generates and edits in one architecture, at 1K, 2K or 4K. On APIMart you call it as seedream-4.0 for text to image, reference-based editing and batches of up to 15 images, billed per image.
1K / 2K / 4KText to ImageImage EditingBatch up to 15Reference ImagesView API & pricing →Seedream 4.5 API
Seedream 4.5 is ByteDance's 2K and 4K image model that improves on Seedream 4.0 with stronger reference fidelity in multi-image editing and better typography for dense, small text. On APIMart you call it as seedream-4.5, billed per image.
2K / 4KPrecise TextMulti-Image EditingBatch up to 15Reference ImagesView API & pricing →Seedream 5.0 Lite API
Seedream 5.0 Lite is the ByteDance Seedream 5.0 model for 2K, 3K and 4K output and batches of up to 15 images. On APIMart you call it as seedream-5-0-lite for text to image, image to image and grouped image sets, in PNG or JPEG, billed per image.
2K / 3K / 4KBatch up to 15PNG / JPEGImage EditingText RenderingView API & pricing →Seedream 5.0 Pro API
Seedream 5.0 Pro is ByteDance's quality-first image model, served on APIMart as seedream-5-0-pro. One endpoint covers text to image, image editing with up to 10 reference images, point and box precision edits, and layer decomposition, at 1K, 1.5K, 2K or an exact pixel size.
1K / 1.5K / 2KText RenderingImage Editing10 Reference ImagesLayer DecompositionView API & pricing →Seedream 5.0 Flash API
Seedream 5.0 Flash is the lower-priced tier of ByteDance's Seedream 5.0 family. It shares the Seedream 5.0 Pro request format, 1K–2K output, 10-image reference editing and layer decomposition, at one price per image for every size. On APIMart its model ID is seedream-5-0-flash.
1K / 1.5K / 2KOne Price per ImageImage Editing10 Reference ImagesLayer DecompositionView API & pricing →Z Image Turbo API
Z Image Turbo is Alibaba's high-speed AI image generation model. Generate stunning images from text prompts with lightning-fast processing and flexible aspect ratios.
Image GenerationCommercial UseView API & pricing →Wan 2.7 Image API
Wan 2.7 Image API (wan2.7-image) on APIMart runs the standard edition of Alibaba's Wan 2.7 image model. It handles text to image, image editing, multi-image reference with up to 9 inputs, bounding-box editing and sequential sets of up to 12 images, at 1K or 2K, billed per generated image.
Text to ImageImage EditingUp to 9 References1K / 2KView API & pricing →Wan 2.7 Image Pro API
Wan 2.7 Image Pro API (wan2.7-image-pro) on APIMart runs the professional edition of Alibaba's Wan 2.7 image model. It renders text to image at up to 4K with finer detail and thinking mode on by default, and supports editing, multi-image reference with up to 9 inputs and sequential sets at up to 2K, billed per generated image.
4K Text to ImageThinking ModeEditing up to 2KUp to 9 ReferencesView API & pricing →Midjourney API
APIMart offers third-party Midjourney API access for developers. Call /v1/midjourney/generations for Imagine, choose v8.2, v8.1, v7, v6.1, v5.2, v5.1 or Niji 7 / Niji 6, tune stylize, chaos and weird, and run on relax, fast or turbo without Discord.
MidjourneyText to Imagev8.2v8.1Niji 7View API & pricing →Nano Banana API
Nano Banana API gives you Google's Gemini 2.5 Flash Image on APIMart for text-to-image generation and image editing, with character consistency and up to 14 reference images per request. Pay-as-you-go billing and membership discounts are available.
Image GenerationImage EditingCommercial useView API & pricing →Nano Banana Pro API
Nano Banana Pro API gives you Google's Gemini 3 Pro Image on APIMart for 1K, 2K and 4K image generation and editing, with legible multilingual text, up to 14 reference images and consistency for up to 5 people. Pay-as-you-go billing and membership discounts are available.
Image GenerationImage Editing4K OutputCommercial useView API & pricing →Nano Banana 2 API
Nano Banana 2 API gives you Google's Gemini 3.1 Flash Image on APIMart for text-to-image generation and image editing from 0.5K to 4K, with up to 14 reference images and optional Google Search grounding. Pay-as-you-go billing and membership discounts are available.
Image GenerationImage Editing4K OutputCommercial useView API & pricing →Nano Banana 2 Lite API
Nano Banana 2 Lite API gives you Google's Gemini 3.1 Flash Lite Image on APIMart for low-latency, cost-effective 1K image generation and editing, with up to 14 reference images, on the official nano-banana-2-lite or nano-banana-2-lite-ext route.
Image GenerationImage Editing1K OutputCommercial useView API & pricing →Gemini Nano Banana 2.1 API
Google's Gemini Nano Banana 2.1 supports text-to-image generation and reference-image editing. APIMart provides official and Ext routes with the same output resolutions, but different billing and limits.
Image GenerationReference Editing1K / 2K / 4KOfficial / ExtView API & pricing →MAI Image 2.7 API
Plan edits with the Microsoft MAI Image 2.7 model. In the MAI Image API Playground, pair a source image with clear instructions for the scene, lighting, text, and details you want to retain.
Image editingScene & lightingText & detailsView API & pricing →MAI-Image-2.6 API
MAI-Image-2.6 API access to Microsoft AI's latest image model. Call it with one APIMart API key, with no Azure or Foundry deployment to set up. Generate from text, edit one image or combine up to five references, and get one PNG per request, billed by actual text-input, reference-image and output-image tokens.
Text to ImageUp to 5 References1K / 2KBing GroundingToken BillingView API & pricing →MAI-Image-2.6 Flash API
Microsoft's MAI-Image-2.6 Flash supports text-to-image, reference editing and multi-image composition. Each request produces one PNG and is billed for actual text-input, reference-image and output-image tokens.
Text to ImageUp to 5 References1K / 2KBing GroundingToken BillingView API & pricing →HY Image 3.5 Preview API
HY Image 3.5 Preview API access to Tencent Hunyuan's latest image model: text-to-image, reference-based editing and multi-image composition, with strong multilingual text rendering and 1K, 2K, 4K or exact-pixel output.
Text to ImageImage EditingUp to 5 References1K / 2K / 4KText RenderingView API & pricing →
How to Choose an Image Generation API
Accurate text and complex prompts
GPT Image 2 and Nano Banana Pro follow long prompts closely and render readable text, which suits posters, UI mockups and infographics.
Image editing with references
Nano Banana, Seedream and FLUX.1 Kontext edit existing images and combine multiple references while keeping the subject consistent.
High resolution output
Nano Banana Pro, Nano Banana 2 and Seedream models support up to 4K output for print, e-commerce and marketing assets.
Fast and low-cost generation
Z Image Turbo, Seedream 5.0 Lite and Nano Banana 2 keep per-image cost low for batch generation and rapid iteration.
AI Image Generation API FAQ
What is the best AI image generation API?
For prompt accuracy and text rendering, GPT Image 2 and Nano Banana Pro are strong choices; for reference-based editing, Nano Banana and Seedream; for low cost at scale, Z Image Turbo and Seedream 5.0 Lite. You can try all of them with one APIMart key.
How much does an image generation API cost?
Image models are billed per image, by size or quality tier, and some are billed by tokens. Each model page shows the full pricing table, and every model is 20% off the list price, with membership tiers saving up to 28%.
Can I edit images through the API?
Yes. Many image models accept reference images for editing, inpainting with masks or multi-image composition. Supported inputs are listed on each model page.
How do I get an image generation API key?
Sign up for APIMart and create a key on the API Keys page. The same key works for every image, video and chat model on the platform.
Am I charged for failed image generations?
No. You only pay for successful generations; failed requests are not billed.