chatgpt-image-latest
OpenAI
Offering state-of-the-art visual quality, precise instruction following, and support for large-scale batch processing.
$4.25/ M
$27.2/ M
$1.0625/ M
—
Balanced general-purpose model covering dialogue, coding, and multilingual tasks at reasonable speed and cost for assistants and routine agent workflows.
Input price
Market: $2.5
/ M
Output price
Market: $10
/ M
Cache read
Market: $1.25
/ M
Cache write
/ M
Input
Text
Output
Text
{
"model": "openai/gpt-4o",
"messages": [
{
"role": "user",
"content": "Hello! Please introduce yourself first, including your main capabilities and best use cases, and give a short usage example."
}
],
"stream": false
}{}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/gpt-4o with the EasyAPI API:
curl https://token.easyapi.com/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $EASYAPI_API_KEY" \
-d '{
"model": "openai/gpt-4o",
"messages": [
{
"role": "user",
"content": "Hello!"
}
]
}'Add "stream": true to your request body to receive responses as server-sent events:
curl -N https://token.easyapi.com/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $EASYAPI_API_KEY" \
-d '{"model":"openai/gpt-4o","messages":[{"role":"user","content":"Hello!"}],"stream":true}'Sends a chat completion request. Supports streaming and non-streaming modes.
https://token.easyapi.com/v1/chat/completionsBearer $EASYAPI_API_KEYapplication/jsonopenai/gpt-4oSend a chat completion request, with streaming or non-streaming responses. Docs
https://token.easyapi.com/v1/modelsBearer $EASYAPI_API_KEYList the models available to the current account. Docs
| Name | Type | Default | Description |
|---|---|---|---|
model | string | — | Model ID, e.g. openai/gpt-4o or anthropic/claude-3-5-sonnet |
messages | array | — | List of conversation messages, each with role and content |
stream | boolean | false | When true, the response is streamed via SSE |
temperature | float | 1 | Sampling temperature; higher values are more random |
max_tokens | integer | — | Maximum number of tokens generated in a single reply |
top_p | float | 1 | Nucleus sampling; limits the cumulative probability of candidate tokens |
frequency_penalty | float | 0 | Frequency penalty; reduces repeated wording |
presence_penalty | float | 0 | Presence penalty; encourages new topics |
Official OpenAI and other SDKs work by swapping the base URL. See integration guide
OpenAI
Offering state-of-the-art visual quality, precise instruction following, and support for large-scale batch processing.
$4.25/ M
$27.2/ M
$1.0625/ M
—
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