OpenAI 模型
通过 AI Gateway 统一接入 OpenAI 全系列模型——GPT-5.6、GPT-6、GPT-5.5 等,一个 OpenAI 兼容 API,按 Token 计费。
OpenAI's lineup spans lightweight, high-volume models up to frontier reasoning systems. Through AI Gateway, every model below is reachable with the same OpenAI-compatible request format — one API key, one endpoint, per-token credit billing.
可用模型
| 模型 | 上下文 | 适用场景 |
|---|---|---|
gpt-5.6-luna | 1M | 高速通用响应 |
gpt-5.6-sol / gpt-5.6-sol-pro | 1M | 均衡的生产默认选择 |
gpt-5.6-terra / gpt-5.6-terra-pro | 1M | 知识密集型任务 |
gpt-6-astra / gpt-6-astra-pro | — | 最新一代旗舰 |
gpt-5.5 / gpt-5.5-pro | 1M | 复杂多步任务 |
gpt-5.4 | 1M | 可靠的日常主力 |
gpt-5.4-mini | 400K | 高频、成本敏感调用 |
gpt-5.3-codex-spark | 1.05M | 编程与仓库级重构 |
GPT-4o Transcribe / mini | — | 语音转文字 |
Whisper | — | 音频转录 |
各模型实时价格见模型列表页——按百万 Token 积分计费,用多少付多少。
快速开始
Python(OpenAI SDK)
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://your-domain.com/api/ai/v1"
)
response = client.chat.completions.create(
model="gpt-5.5",
messages=[
{"role": "system", "content": "You are a senior software architect."},
{"role": "user", "content": "Design a rate limiter for a public API."}
]
)
print(response.choices[0].message.content)
JavaScript / TypeScript
const client = new OpenAI({
apiKey: "YOUR_API_KEY",
baseURL: "https://your-domain.com/api/ai/v1",
});
const res = await client.chat.completions.create({
model: "gpt-5.4-mini",
messages: [{ role: "user", content: "Summarize this changelog." }],
});
console.log(res.choices[0].message.content);
cURL
curl https://your-domain.com/api/ai/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-5.5",
"messages": [{"role": "user", "content": "Hello"}]
}'
将
your-domain.com替换为你的 AI Gateway 站点域名。注册后在控制台获取 API Key。
为什么通过 AI Gateway 接入 OpenAI
- 一个 API Key 通用于所有厂商——OpenAI、Claude、Gemini、DeepSeek 混用在同一代码库
- OpenAI 兼容——保留现有 SDK,只改
baseURL和apiKey - 积分计费——充一次任意模型都能用,积分永不过期
- 无订阅——按 Token 付费,随时取消
Streaming
所有对话模型均支持 SSE 流式输出。请求体中设置 "stream": true 即可——完整示例见 API 文档。
相关页面
- Live model pricing — real-time credit prices for every model
- API reference — endpoints, parameters, streaming
- Pricing — credit packs
| 模型 | 上下文 | 类型 |
|---|---|---|
gpt-4o-mini-transcribe | — | audio |
gpt-4o-transcribe | — | audio |
gpt-5.3-codex-spark | 1.05M | chat |
gpt-5.4 | 1M | chat |
gpt-5.4-mini | 400K | chat |
gpt-5.5 | 1M | chat |
gpt-5.5-pro | 1M | chat |
gpt-5.6-luna | 1M | chat |
gpt-5.6-sol | 1M | chat |
gpt-5.6-sol-pro | 1M | chat |
gpt-5.6-terra | 1M | chat |
gpt-5.6-terra-pro | 1M | chat |
gpt-6-astra | — | chat |
gpt-6-astra-pro | — | chat |
whisper-1 | — | audio |
| 模型 | 上下文 | 类型 |
|---|---|---|
gpt-4o-mini-transcribe | — | audio |
gpt-4o-transcribe | — | audio |
gpt-5.3-codex-spark | 1.05M | chat |
gpt-5.4 | 1M | chat |
gpt-5.4-mini | 400K | chat |
gpt-5.5 | 1M | chat |
gpt-5.5-pro | 1M | chat |
gpt-5.6-luna | 1M | chat |
gpt-5.6-sol | 1M | chat |
gpt-5.6-sol-pro | 1M | chat |
gpt-5.6-terra | 1M | chat |
gpt-5.6-terra-pro | 1M | chat |
gpt-6-astra | — | chat |
gpt-6-astra-pro | — | chat |
whisper-1 | — | audio |
| 模型 | 上下文 | 类型 |
|---|---|---|
gpt-4o-mini-transcribe | — | audio |
gpt-4o-transcribe | — | audio |
gpt-5.3-codex-spark | 1.05M | chat |
gpt-5.4 | 1M | chat |
gpt-5.4-mini | 400K | chat |
gpt-5.5 | 1M | chat |
gpt-5.5-pro | 1M | chat |
gpt-5.6-luna | 1M | chat |
gpt-5.6-sol | 1M | chat |
gpt-5.6-sol-pro | 1M | chat |
gpt-5.6-terra | 1M | chat |
gpt-5.6-terra-pro | 1M | chat |
gpt-6-astra | — | chat |
gpt-6-astra-pro | — | chat |
whisper-1 | — | audio |
| 模型 | 上下文 | 类型 |
|---|---|---|
gpt-4o-mini-transcribe | — | audio |
gpt-4o-transcribe | — | audio |
gpt-5.3-codex-spark | 1.05M | chat |
gpt-5.4 | 1M | chat |
gpt-5.4-mini | 400K | chat |
gpt-5.5 | 1M | chat |
gpt-5.5-pro | 1M | chat |
gpt-5.6-luna | 1M | chat |
gpt-5.6-sol | 1M | chat |
gpt-5.6-sol-pro | 1M | chat |
gpt-5.6-terra | 1M | chat |
gpt-5.6-terra-pro | 1M | chat |
gpt-6-astra | — | chat |
gpt-6-astra-pro | — | chat |
whisper-1 | — | audio |
| 模型 | 上下文 | 类型 |
|---|---|---|
gpt-4o-mini-transcribe | — | audio |
gpt-4o-transcribe | — | audio |
gpt-5.3-codex-spark | 1.05M | chat |
gpt-5.4 | 1M | chat |
gpt-5.4-mini | 400K | chat |
gpt-5.5 | 1M | chat |
gpt-5.5-pro | 1M | chat |
gpt-5.6-luna | 1M | chat |
gpt-5.6-sol | 1M | chat |
gpt-5.6-sol-pro | 1M | chat |
gpt-5.6-terra | 1M | chat |
gpt-5.6-terra-pro | 1M | chat |
gpt-6-astra | — | chat |
gpt-6-astra-pro | — | chat |
whisper-1 | — | audio |
通过 AI Gateway 接入的优势
- 统一接口:OpenAI 兼容格式,一个 Base URL 调用全部厂商模型
- 一个 Key:无需逐家注册,积分通用、永不过期
- 按量计费:Token 级积分结算,缓存命中更优惠
- 灵活切换:改一个字符串即可切换模型或厂商
数据来源说明
规格与价格来自平台实时目录;性能数据来自厂商或第三方公开资料。本页更新于 2026-10-13。
| 模型 | 上下文 | 类型 |
|---|---|---|
gpt-4o-mini-transcribe | — | audio |
gpt-4o-transcribe | — | audio |
gpt-5.3-codex-spark | 1.05M | chat |
gpt-5.4 | 1M | chat |
gpt-5.4-mini | 400K | chat |
gpt-5.5 | 1M | chat |
gpt-5.5-pro | 1M | chat |
gpt-5.6-luna | 1M | chat |
gpt-5.6-sol | 1M | chat |
gpt-5.6-sol-pro | 1M | chat |
gpt-5.6-terra | 1M | chat |
gpt-5.6-terra-pro | 1M | chat |
gpt-6-astra | — | chat |
gpt-6-astra-pro | — | chat |
whisper-1 | — | audio |
通过 AI Gateway 接入的优势
- 统一接口:OpenAI 兼容格式,一个 Base URL 调用全部厂商模型
- 一个 Key:无需逐家注册,积分通用、永不过期
- 按量计费:Token 级积分结算,缓存命中更优惠
- 灵活切换:改一个字符串即可切换模型或厂商
实际表现
当前目录共 15 个在售模型,上下文窗口覆盖 400K 至 1.05M Token,定位分布:flagship ×4、balanced ×3、previous generation ×2、light ×2、audio ×2、coding-focused ×1。
价格与计费
所有模型均按 Token 积分计费:输入、输出与缓存分别计量,缓存命中大幅折扣。实时单价见模型价格页,本页不固定数字。
常见问题
OpenAI 的上下文窗口是多大?
1,050,000 Token(1.05M)
怎么计费?
按 Token 用量以积分计费,缓存命中更低。实时单价见模型价格页。
需要注册原厂商账号吗?
不需要。一个 AI Gateway API Key 即可调用本模型及站内全部其他模型。
数据来源说明
规格与价格来自平台实时目录;性能数据来自厂商或第三方公开资料。本页更新于 2026-10-13。
Ready to build with Openai?
One API Key, every model. Transparent pay-as-you-go pricing with credits that never expire.
Create free account