GPT-5.4 Pro
GPT-5.4 Pro 专用文本补全接口,使用 prompt 字段而非 messages。
GPT-5.4 Pro 只能通过 Completions API(/v1/completions)调用,不支持 Chat Completions API。它支持多轮模型交互和高级 API 特性。请使用 prompt 字段(字符串或数组)而非 messages。
/api/v1/completions价格单位:每 1M tokens
| 模型 | 输入 | 输出 | 描述 |
|---|---|---|---|
| gpt-5.4-pro | $26.4706 | $211.7648 | 深度推理、多轮对话、高级 API 特性 |
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
}
}设置 stream: true 以接收 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
}'积分根据实际 token 使用量计算:
费用 = (prompt_tokens * 输入价格 + completion_tokens * 输出价格) / 1,000,000 积分 = 费用(人民币) // 积分即为 ¥