gpt-4.1
OpenAI
Stable code generation with predictable output.
$1.7/ M
$6.8/ M
$0.425/ M
$0/ M
Offering state-of-the-art visual quality, precise instruction following, and support for large-scale batch processing.
Input price
Market: $5
/ M
Cache read
Market: $1.25
/ M
Image input
Market: $8
/ M
Image output
Market: $32
/ M
Image cache read
Market: $2
/ M
Input
Text
Output
Image

{
"model": "openai/chatgpt-image-latest",
"prompt": "Lake Kanas at dusk: clear water mirrors mountains draped in autumn colors, birch trees sway gently in the evening breeze, and the sunset sky blends into a pink-gold gradient. Serene and expansive, cinematic composition, soft backlight, ultra-high-definition landscape photography.",
"size": "1024x1024",
"n": 1
}{}API
Drop-in code to call this model with EasyAPI's OpenAI-compatible API.
Create an API key from your dashboard and set it as an environment variable:
Replace sk-xxxxxxxx with your API token from the console (Bearer token).
Create API tokenexport EASYAPI_API_KEY=sk-xxxxxxxxUse openai/chatgpt-image-latest with the EasyAPI API:
Image models use the image generation endpoint. See image generation docs
curl https://token.easyapi.com/v1/images/generations \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $EASYAPI_API_KEY" \
-d '{
"model": "openai/chatgpt-image-latest",
"prompt": "A cute baby sea otter",
"n": 1,
"size": "1024x1024"
}'Generates images from a text prompt.
https://token.easyapi.com/v1/images/generationsBearer $EASYAPI_API_KEYapplication/jsonopenai/chatgpt-image-latestGenerate images from a prompt. The response includes data (url / b64_json) and usage fields. Docs
| Name | Type | Required | Description |
|---|---|---|---|
model | string | Yes | Image model ID, e.g. openai/gpt-image-1, qwen/qwen-image-2.0-pro or bytedance/seedream-4.0. Currently openai/chatgpt-image-latest. Returns 400 model is required if missing |
prompt | string | Yes | Text description of the image. gpt-image-1 accepts up to 32,000 characters |
n | integer | No | Number of images, 1–10, default 1; billed per image |
size | string | No | Output size. gpt-image-1 supports 1024x1024, 1536x1024, 1024x1536 or auto; used for cost estimation |
response_format | string | No | url or b64_json. gpt-image-1 does not support this parameter and the upstream may reject it |
stream | boolean | No | Passed through as-is; image generation is synchronous and is not routed by this field |
Official OpenAI and other SDKs work by swapping the base URL. See integration guide
OpenAI
Stable code generation with predictable output.
$1.7/ M
$6.8/ M
$0.425/ M
$0/ M
OpenAI
Near GPT-4o performance at lower latency and cost, suited for high-frequency interactions, coding, and vision tasks.
$0.34/ M
$1.36/ M
$0.085/ M
$0/ M
OpenAI
Fastest GPT. Sub-second responses.
$0.085/ M
$0.34/ M
$0.0213/ M
$0/ M
OpenAI
Balanced general-purpose model covering dialogue, coding, and multilingual tasks at reasonable speed and cost for assistants and routine agent workflows.
$2.125/ M
$8.5/ M
$1.0625/ M
$0/ M