APIMODELSAPIMODELS
全部
Models/GPT-5.4
OpenAI

GPT-5.4 API

gpt-5-4

GPT-5.4 是 OpenAI 面向复杂专业工作与 Agent 编码的前沿模型。通过 Responses API(/v1/responses)调用,推理强度用请求体的 reasoning.effort(low–xhigh)控制,支持联网搜索、函数调用与多模态输入。OpenAI Codex 设 wire_api = "responses" 即可直接接入。

FrontierAdjustable ReasoningWeb SearchMultimodal
Input$1.8
Output$10.8
per 1M tokens

API Documentation

View complete API reference with all parameters and examples.

View Docs

Advanced Features

Streaming

Enable real-time streaming responses with Server-Sent Events.

{
  "model": "gpt-5-4",
  "stream": true,
  "messages": [...]
}

Function Calling (Tools)

Enable the model to use tools and call functions.

{
  "model": "gpt-5-4",
  "tools": [{
    "type": "function",
    "function": {
      "name": "get_weather",
      "description": "Get current weather for a location",
      "parameters": {
        "type": "object",
        "properties": {
          "location": {"type": "string", "description": "City name"}
        },
        "required": ["location"]
      }
    }
  }],
  "messages": [{"role": "user", "content": "What's the weather in Tokyo?"}]
}

JSON Mode

Get structured JSON responses from the model.

{
  "model": "gpt-5-4",
  "response_format": {"type": "json_object"},
  "messages": [{"role": "user", "content": "Extract info as JSON: John is 30 years old"}]
}

API Parameters Reference

ParameterTypeRequiredDescription
modelstringYesModel identifier (e.g., gpt-5-4)
messagesarrayYesArray of message objects with role and content
max_tokensintegerNoMaximum tokens in the response
streambooleanNoEnable streaming responses (SSE)
temperaturenumberNoSampling temperature (0.0 - 2.0)
top_pnumberNoNucleus sampling threshold (0.0 - 1.0)
toolsarrayNoFunction calling tools definition
response_formatobjectNoOutput format (e.g., json_object)

Full API Documentation

View complete API reference with streaming, thinking, and more.

View Documentation

Pricing

Input
$1.8
per 1M tokens
Output
$10.8
per 1M tokens

Billing: Cost = (input_tokens * input_price + output_tokens * output_price) / 1,000,000

Frontier Model

Latest GPT generation for complex professional work

Adjustable Effort

reasoning.effort = low / medium / high / xhigh (request body, not a suffix)

Tools & Web Search

Built-in web search or function calling (one per request)

Codex-Compatible

Drop-in via wire_api = "responses" + model = "gpt-5-4"

TL;DR GPT-5.4 是 OpenAI 的大语言模型模型,可通过 APIMODELS 的统一 API 调用(模型名 `gpt-5-4`)。定价:Input: $1.8, Output: $10.8 per 1M tokens。一个 API Key 即可调用所有图片 / 视频 / LLM / 音频模型,国内可直接访问。

关于 GPT-5.4

GPT-5.4 是由 OpenAI 提供的大语言模型 API。GPT-5.4 是 OpenAI 面向复杂专业工作与 Agent 编码的前沿模型。通过 Responses API(/v1/responses)调用,推理强度用请求体的 reasoning.effort(low–xhigh)控制,支持联网搜索、函数调用与多模态输入。OpenAI Codex 设 wire_api = "responses" 即可直接接入。 通过 APIMODELS 平台,您可以使用统一的 API 接口调用该模型,按量计费、价格透明。当前定价:Input: $1.8, Output: $10.8 per 1M tokens。

核心功能

  • Frontier Model -- Latest GPT generation for complex professional work
  • Adjustable Effort -- reasoning.effort = low / medium / high / xhigh (request body, not a suffix)
  • Tools & Web Search -- Built-in web search or function calling (one per request)
  • Codex-Compatible -- Drop-in via wire_api = "responses" + model = "gpt-5-4"

适用场景

聊天机器人与客服

构建智能对话系统,自动回答用户问题,提升客户服务效率。

内容生成

自动撰写文章、邮件、广告文案等文本内容,提高内容产出效率。

编程助手

辅助代码编写、调试和代码审查,加速软件开发流程。

数据分析

理解和分析非结构化数据,提取关键信息并生成报告摘要。

为什么选择 APIMODELS

  • 统一 API 接口 -- 一个 API Key 调用所有模型,无需分别注册各平台账号
  • 价格透明 -- 按量计费,每个模型页公开单次调用价格,适合小微开发者和初创团队
  • 即开即用 -- 注册即可使用,支持 Stripe 和支付宝充值
  • 完整文档 -- 提供详细的 API 文档和代码示例(cURL、Python、Node.js)

常见问题

GPT-5.4 的价格是多少?

GPT-5.4 通过 APIMODELS 平台调用,当前定价:Input: $1.8, Output: $10.8 per 1M tokens。按量计费,用多少付多少。

如何使用 GPT-5.4 API?

在 APIMODELS 注册账号并获取 API Key,然后通过我们的统一 API 端点调用即可。我们提供详细的 API 文档和 cURL、Python、Node.js 代码示例。

APIMODELS 与 OpenAI 官方 API 有什么区别?

APIMODELS 通过聚合平台提供与官方相同的 GPT-5.4 模型。我们提供统一的 API 接口,无需分别注册各平台账号,一个 API Key 即可调用所有模型。

GPT-5.4 适合什么?

GPT-5.4 是走 OpenAI Responses API 的高性价比前沿推理模型,推理强度可调,是 OpenAI Codex CLI(wire_api = responses)做 agentic 编码的稳妥默认——想要不错的推理又不想付 GPT-5.5 顶档输出价时选它。

GPT-5.4 和 GPT-5.5?

GPT-5.4 更便宜、更快,适合日常编码/agent;最难的问题再上 GPT-5.5。相同的 Responses API 和 Codex 配置,改一个模型名就能切。

怎么在 Codex CLI 里用 GPT-5.4?

base_url 设 api.apimodels.app/v1,wire_api = "responses",model = "gpt-5-4",推理强度用 model_reasoning_effort。完整配置见 /docs/codex。

GPT-5.4 和其它大语言模型模型相比怎么选?

在 APIMODELS,GPT-5.4 与 60+ 个模型共用一个 API Key、一个余额,所以选型只看合不合适,不存在锁定。它支持 Frontier、Adjustable Reasoning、Web Search、Multimodal,你可以在价格和能力上把它和其它大语言模型模型对比,换模型只需改一个模型名字符串——无需新账号、无需重新对接。所有大语言模型模型与实时价格见 apimodels.app/models。

GPT-5.4 支持哪些能力?

GPT-5.4 支持:Frontier、Adjustable Reasoning、Web Search、Multimodal。完整参数与调用方式见 APIMODELS 的 API 文档。

国内可以调用 GPT-5.4 API 吗?

可以。APIMODELS 提供可直接访问的统一 API,一个 API Key 即可调用 GPT-5.4,无需分别注册官方账号、也无需自行处理官方接口的网络访问。

支持哪些付款方式?

我们支持 Stripe(Visa、Mastercard 等国际信用卡)和支付宝付款。充值后积分即时到账。

相关模型