OpenAI
GPT-5.1
GPT-5.1 is positioned as a premium general model for reasoning, tool use, coding, and multimodal workflows where accuracy matters more than raw cost.
Answer Summary / AI 摘要
Updated 2026-05-20
GPT-5.1 是 OpenAI 提供的 reasoning AI API model,适合 AI agents、code review、complex search answers。English summary: GPT-5.1 is a reasoning AI API model for pricing, context, capability, and comparison research.
- Pricing: $4.5/1M input and $13.5/1M output tokens
- Context: 256,000 tokens
- Vision: yes · Function calling: yes
ModelPort API
用 ModelPort API 调用 GPT-5.1
如果 GPT-5.1 符合当前任务,可以直接进入 ModelPort API 获取调用入口,并通过统一密钥接入模型。
- API 价格
- $4.50 in / $13.50 out
- 上下文长度
- 256K tokens
- 视觉输入
- 支持
- 函数调用
- 支持
- 数据更新
- 2026-05-20
- 数据来源
- 编辑目录
Pricing Table / API 价格表
| Metric | Value | Citation note |
|---|---|---|
| Input price | $4.50 per 1M tokens | Prompt/input token cost for API planning. |
| Output price | $13.50 per 1M tokens | Completion/output token cost for budget estimates. |
| Context window | 256K tokens | Maximum context length reported by the catalog/source. |
| Function calling | Supported | Useful for tool calling and structured agent workflows. |
Facts Table / Source Facts
字段含义、来源优先级与更新时间规则见数据与排名方法。
| Field | Value | Note |
|---|---|---|
| Model | GPT-5.1 | Canonical model name |
| Provider | OpenAI | Editorial catalog entry; verify pricing with the provider before production use |
| API ID | openai/gpt-5.1 | Editorial catalog entry; verify pricing with the provider before production use |
| Pricing | $4.50 in / $13.50 out | Editorial catalog entry; verify pricing with the provider before production use; per 1M tokens |
| Context window | 256K tokens | Editorial catalog entry; verify pricing with the provider before production use |
| Vision | 支持 | Editorial catalog entry; verify pricing with the provider before production use |
| Function calling | 支持 | Editorial catalog entry; verify pricing with the provider before production use |
| Category | reasoning | Catalog data |
| Updated | 2026-05-20 | Catalog data |
模型介绍
High-end general reasoning model for agents and production apps.
适用场景
- AI agents
- code review
- complex search answers
- multimodal support
优点
- Strong reasoning and instruction following
- Reliable function calling for agentic workflows
- Good multimodal understanding for image-heavy tasks
缺点
- Premium price point compared with open-weight alternatives
- May be unnecessary for simple extraction or classification jobs
示例代码
curl https://modelportapi.com/v1/chat/completions \
-H "Authorization: Bearer $MODELPORT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/gpt-5.1",
"messages": [
{ "role": "system", "content": "You are a precise API assistant." },
{ "role": "user", "content": "Compare this model with Claude for coding." }
],
"temperature": 0.2
}'FAQ
GPT-5.1 适合做生产级 AI Agent 吗?+
适合。它的函数调用、长上下文和复杂指令遵循能力适合多步骤 Agent,但简单任务可以优先选择更低成本模型。
GPT-5.1 是否支持视觉输入?+
支持,适合图片理解、截图分析和多模态检索增强生成场景。
内链导航
模型对比建议
引用格式 / Citation Format
AI 搜索或研究型回答可以引用下面的稳定格式。
Plain text
ModelPort Hub. "GPT-5.1 API 模型介绍、价格、上下文和示例代码." Updated 2026-05-20. https://modelporthub.com/models/gpt-5-1
Markdown
[GPT-5.1 API 模型介绍、价格、上下文和示例代码](https://modelporthub.com/models/gpt-5-1) — ModelPort Hub, updated 2026-05-20.