Skip to Content
Cheapest Imagen
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

OpenAIHere
Base URLhttps://api.openai.com/v1https://api.cheapestimagen.com/v1
API keysk-...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-adobe and gpt-image-2.5-flare take a size of your own. Other sizes return a 400. 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. xhigh and max work on gpt-image-2.5-sunburst; GIF output on gpt-image-2.6 and its flare and sunburst variants; SVG on gpt-image-2.6. Elsewhere they return a 400 with code unsupported_parameter. png, jpeg and webp work on every model, with output_compression. background: transparent is not available on any model at the moment (OpenAI withdrew the preview) and returns a 400.
  • Not available yet. stream and partial_images return a 400 with code unsupported_parameter.
  • response_format: "url". An extra option: returns a link instead of base64.
  • file_id. Not supported. Send image files, https links or data: URLs.
  • Rate limits. 300 requests a minute and 50 at the same time per account.

On this page