GPT-5.4 Pro
Legacy text completions endpoint for GPT-5.4 Pro. Uses prompt-based input instead of messages.
GPT-5.4 Pro is only accessible via the Completions API (/v1/completions), not the Chat Completions API. It supports multi-turn model interactions and advanced API features. Use the prompt field (string or array) instead of messages.
/api/v1/completionsPrices are per 1M tokens
| Model | Entrada | Output | Description |
|---|---|---|---|
| gpt-5.4-pro | $26.4706 | $211.7648 | Deep reasoning, multi-turn, advanced API features |
curl -X POST https://apimodels.app/api/v1/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-5.4-pro",
"prompt": "Write a detailed analysis of quantum computing:",
"max_tokens": 1024
}'{
"id": "cmpl-abc123",
"object": "text_completion",
"created": 1700000000,
"model": "gpt-5.4-pro",
"choices": [
{
"text": "Quantum computing leverages the principles of quantum mechanics...",
"index": 0,
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 12,
"completion_tokens": 256,
"total_tokens": 268
}
}Set stream: true to receive Server-Sent Events (SSE).
curl -X POST https://apimodels.app/api/v1/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-5.4-pro",
"prompt": "Explain the theory of relativity:",
"max_tokens": 1024,
"stream": true
}'Credits are calculated based on actual token usage:
Cost = (prompt_tokens * input_price + completion_tokens * output_price) / 1,000,000 Credits = Cost(CNY) // credits are in ¥