OpenAI image model on Crazyrouter

Generate images with the GPT Image 2 API

GPT Image 2 is available on Crazyrouter through the OpenAI-compatible images endpoint. Pay per image, no subscription, same key as your text models.

Image generationText to imageImage editing
Model ID
gpt-image-2
Provider
OpenAI
Endpoint
/v1/images/generations
Task
image generation
Input modalities
Text, image
Output modalities
Image

What is GPT Image 2?

GPT Image 2 is a GPT Image image model from OpenAI for text-to-image generation and image editing. On Crazyrouter it shares an API key and balance with chat, video and audio models, so image generation slots into an existing integration without a second vendor account.

OpenAI images schema

Same request and response shape as the OpenAI Images API; existing client code keeps working.

Per-image billing

You are charged per generated image at the rate on this page, nothing else.

Reference images

Where the upstream model supports it, pass reference images for editing and style transfer.

One key, all modalities

Mix image generation with chat, video and music models under one balance.

GPT Image 2 API quickstart

POST to https://crazyrouter.com/v1/images/generations with model gpt-image-2. The response follows the OpenAI images schema (URL or base64).

cURL
curl https://crazyrouter.com/v1/images/generations \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $CRAZYROUTER_API_KEY" \
  -d '{
    "model": "gpt-image-2",
    "prompt": "A product photo of a ceramic mug on a wooden desk, soft morning light",
    "n": 1,
    "size": "1024x1024"
  }'

Best use cases

Product and marketing visuals at scale
Blog and social cover images
Design exploration and mood boards
Image editing, inpainting and style transfer
Game and app asset prototyping
Personalised visuals in user-facing apps

Works with developer tools

OpenAI SDKs

client.images.generate(model="gpt-image-2", prompt=...) against the Crazyrouter base URL.

n8n / Dify / Make

Use the HTTP node or the OpenAI-compatible connector with the Crazyrouter endpoint.

Custom backends

Plain HTTPS; no SDK required.

Crazyrouter playground

Try prompts in the console before writing code.

GPT Image 2 FAQ

Which endpoint do I call?

https://crazyrouter.com/v1/images/generations with model set to gpt-image-2.

How is it billed?

Per generated image at the price shown on this page; failed generations are not charged.

Which sizes and formats are supported?

The upstream model's sizes and formats; pass size and response_format as documented by the vendor.

Can I edit an existing image?

If the upstream model supports edits, send reference images via the images edits endpoint or the image field.

Is there a rate limit?

Limits follow your account tier; contact support for higher throughput.