5.4 Pro technical docs
Endpoint, auth header, parameters, prices, and tested request examples for GPT 5.4 Pro.
Endpoint and pricing
Request headers
Bearer Imole API key.
Use application/json for JSON requests.
Request parameters
Text model id.
String input or Responses input array.
Legacy chat-style array. The router converts it to Responses input.
System or developer instruction inserted ahead of the user task.
Optional provider output control. Imole does not require it or impose its own token ceiling.
Optional reasoning controls when supported, including effort and Pro mode.
Sampling randomness when the model supports it.
Nucleus sampling control.
Return server-sent events when supported.
true, falseTool definitions for tool-enabled Responses calls.
Tool selection policy.
auto, none, requiredAllow multiple tool calls in one turn.
true, falseStructured text format controls for Responses.
Compatibility field for JSON-style output requests.
Optional request metadata.
Tested request examples
curl -X POST "https://api.imole.app/v1/responses" \
-H "Authorization: Bearer $IMOLE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-5.4-pro",
"max_output_tokens": 64,
"input": "Reply with exactly hello-from-imole.",
"instructions": "Return only the exact requested text."
}'curl -X POST "https://api.imole.app/v1/responses" \
-H "Authorization: Bearer $IMOLE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-5.4-pro",
"max_output_tokens": 64,
"instructions": "Return only the exact requested text.",
"input": [
{
"role": "user",
"content": [
{
"type": "input_text",
"text": "Reply with exactly responses-array-from-imole."
}
]
}
]
}'curl -X POST "https://api.imole.app/v1/responses" \
-H "Authorization: Bearer $IMOLE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-5.4-pro",
"max_output_tokens": 64,
"messages": [
{
"role": "system",
"content": "Return only the exact requested text."
},
{
"role": "user",
"content": "Reply with exactly legacy-messages-from-imole."
}
]
}'