OpenAI: chatgpt-image-latest

chatgpt-image-latest is OpenAI's model for prompt-driven image generation, editing, and visual design workflows.

Modalities
inTextinImageinFileoutImage
Price / 1M
$22.50 / $22.50

Channels

Every channel serves the same model, but they differ in price and stability. On each API key in the Platform, you pick a primary and a backup channel per vendor, and each billing line shows which channel served the request.

Provider
Discount
Input /M
Output /M
Cache read /M
Cache write 5m /M
Cache write 1h /M
Codexcheap
—
$22.50
$22.50
—
—
—
Defaultstable
—
$52.50
$52.50
—
—
—

Capabilities

Vision

Quick start

POST /v1/images/generations/
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.mirapi.ai/v1",   # changed
    api_key=os.environ["MIRAPI_API_KEY"],   # changed
)

img = client.images.generate(
    model="chatgpt-image-latest",
    prompt="A red bicycle leaning on a white wall",
    n=1,
    size="1024x1024",
)
# img.data[0].b64_json — or .url, depending on the model
Wire chatgpt-image-latest into your product

1M free tokens to start, no card required. It’s OpenAI-compatible, so you only change the base URL.

Start free