以 OpenAI Responses API 格式建立流式或非流式响应。

GPT-5.4
Lightweight variant in the gpt-5.4 family, tuned for low-latency, high-volume tasks like classification, extraction, and sub-agent execution.
价格
| 规格 | 0 - 272K | > 272K |
|---|---|---|
| 输入 | $2.5/ M tokens | $5/ M tokens |
| 输出 | $15/ M tokens | $22.5/ M tokens |
| 缓存读 | $0.25/ M tokens | $0.5/ M tokens |
| 缓存写 | $0/ M tokens | $0/ M tokens |
快速开始
可直接粘贴运行下方示例代码。Gate.AI API 与 OpenAI 兼容,多数 SDK 只需替换 base URL;切换模型时,只需修改模型 ID。
Get your API key
Sign in to the Gate.AI console and create a new key under "API Keys". Keep it safe and send it via the Authorization header on every request.
前往控制台创建密钥Make a request
Send a POST request to the Chat Completions endpoint with a model ID and an array of messages to get a reply.
curl --location "https://api.gate.ai/openai/v1/responses" \
--header "Authorization: Bearer {API_KEY}" \
--header "Content-Type: application/json" \
--data '{
"model": "gpt-5.4",
"input": "Hello",
"max_output_tokens": 256
}'Handle the response \& streaming
By default a full JSON response is returned. Add "stream": true to the request body to receive incremental chunks over SSE.
curl --no-buffer --location "https://api.gate.ai/openai/v1/responses" \
--header "Authorization: Bearer {API_KEY}" \
--header "Content-Type: application/json" \
--data '{
"model": "gpt-5.4",
"input": "Hello",
"max_output_tokens": 256,
"stream": true
}'端点
基础 URL、请求方法和必需请求头均按当前模型的协议模板渲染。
相关模型
GPT-6.1 TerraMid-tier in the GPT-6.1 line below Sol, for everyday agentic, coding, and writing work, with strong screenshot and UI understanding.
GPT-6.1 SolUpgrade to GPT-6 Sol below Astra, suited to agentic coding, computer use, and document-heavy work with stronger factual reliability than the prior generation.
GPT-6 SolCost-efficient high-end tier in the GPT-6 line, below Astra and above Luna; suited to demanding professional work, complex coding, and agentic workflows.
GPT-6 AstraOpenAI’s flagship model, excelling at complex analysis, coding, deep research, scientific exploration, and document creation—especially long-running tasks involving computer and browser use.
GPT-5.6 SolTop of the GPT-5.6 lineup, tuned for hard reasoning, multi-step coding, and agent runs that stretch over many turns. Well suited to CLI-driven development and problems that need to be worked through step by step.
GPT-5.6 TerraThe middle rung of the GPT-5.6 lineup, tuned for daily dev work, general reasoning, and agent orchestration. Delivers reliable performance at a manageable cost for routine business workloads.
GPT-5.6 LunaEntry point of the GPT-5.6 lineup. A small, low-latency workhorse for chat, tagging, and lightweight agent loops, keeping reasoning solid enough for routine work.
GPT-5.5GPT-5.5 natively supports video comprehension, speech emotion recognition, and autonomous tool calling, delivering omni-modal foundational capabilities for agent-based execution of complex tasks.
GPT-5.5 betaGPT-5.5 natively supports video comprehension, speech emotion recognition, and autonomous tool calling, delivering omni-modal foundational capabilities for agent-based execution of complex tasks.
GPT-5.5 ProReasoning-heavy GPT-5.5 tier tuned for long-horizon agentic coding and complex multi-step workflows, with image input.