Guides
Migrate from OpenAI
Move existing OpenAI Images API code to Cheapest Imagen by changing only the base URL and the API key; the request and response fields stay the same.
Change two values
| OpenAI | Here | |
|---|---|---|
| Base URL | https://api.openai.com/v1 | https://api.cheapestimagen.com/v1 |
| API key | sk-... | sk-cheap-... |
Endpoints, field names, response shape and error shape stay the same.
What is different
- Sizes. Most models make 1K; Nano Banana and the adobe, flare and sunburst variants also make 2K and 4K at the same price, and a few stable channels make one resolution only. The GPT models add 9:21, 2:1 and 1:2 (3:1 and 1:3 at 2K and 4K), Nano Banana 2 adds 4:1 to 1:8, and
gpt-image-2-adobeandgpt-image-2.5-flaretake a size of your own. Other sizes return a400. See Ratios and sizes. - Price. A fixed price per image at any size and quality: 8 credits ($0.008–$0.014) for GPT Image 2, 2.5 and 2.6; 12 for Nano Banana 2 and 2.1; 20 for Nano Banana Pro, gpt-image-2-adobe and the flare variants; 25 for the sunburst variants; 60 to 180 for the Nano Banana stable channels. That is up to 96% below OpenAI’s high-quality price.
- Quality and formats.
xhighandmaxwork ongpt-image-2.5-sunburst; GIF output ongpt-image-2.6and its flare and sunburst variants; SVG ongpt-image-2.6. Elsewhere they return a400with codeunsupported_parameter.png,jpegandwebpwork on every model, withoutput_compression.background: transparentis not available on any model at the moment (OpenAI withdrew the preview) and returns a400. - Not available yet.
streamandpartial_imagesreturn a400with codeunsupported_parameter. response_format: "url". An extra option: returns a link instead of base64.file_id. Not supported. Send image files,httpslinks ordata:URLs.- Rate limits. 300 requests a minute and 50 at the same time per account.
Errors
Every HTTP status and error code the Cheapest Imagen API returns, what each one means, whether it was charged and what to do next.
Use with n8n
Generate images in an n8n workflow with GPT Image or Nano Banana through the Cheapest Imagen API, using the HTTP Request node. Settings, the request body, and how to save the image.