Skip to main content
Image generation works through the standard OpenAI Images API. Point it at Orbitrage and we route it to our image model (gpt-image-2), bill per image at the real token rates, and trace it alongside your chat calls.

Generate

Edit

Pass an input image (and optional mask) to images.edit:
gpt-image-2 returns the image as base64 in data[0].b64_json, not a hosted URL — so data[0].url is always None (this is how the OpenAI/Azure gpt-image family works). Decode b64_json and save/serve the bytes yourself, as above.
Image calls are billed at gpt-image-2’s multi-rate token pricing (text-in, image-in, image-out) — the exact cost is recorded on every call. Vision input (passing images to a chat model) is just a normal chat.completions call with an image_url content block; it routes to a vision-capable model automatically.