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": "暮色下的喀纳斯湖畔,碧水倒映层林尽染的山峦,白桦林在晚风中轻轻摇曳,天边晚霞晕染出粉金渐变色,画面静谧悠远,电影级构图,柔和逆光,超高清风景摄影质感。",
"n": 1,
"size": "1024x1024"
}{}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-latest根据 prompt 生成图像,响应含 data(url / b64_json)及 usage 用量字段。 Docs
| Name | Type | Required | Description |
|---|---|---|---|
model | string | Yes | 图像模型 ID,如 openai/gpt-image-1、qwen/qwen-image-2.0-pro、bytedance/seedream-4.0;当前使用 openai/chatgpt-image-latest;缺失返回 400 model is required |
prompt | string | Yes | 图像文本描述。gpt-image-1 上限 32000 字符 |
n | integer | No | 生成张数,1–10,默认 1;多图按张计费 |
size | string | No | 输出尺寸。gpt-image-1 支持 1024x1024、1536x1024、1024x1536 或 auto,并参与费用预估 |
response_format | string | No | url 或 b64_json。gpt-image-1 不支持该参数,传入可能被上游拒绝 |
stream | boolean | No | 透传字段;当前图像为同步链路,不据此分流 |
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