OpenAI: GPT-5.1
Chatopenai/gpt-5.1OpenAI 的增强型 GPT-5.1 模型,提升了推理、多模态、指令遵循和编码表现,适合需要稳定高质量输出的通用场景。
256K context window
128K max output tokens
Released: 2025-11-13
Protocols:OpenAIAnthropic
Capabilities:VisionFunction CallingReasoningPrompt CachingWeb SearchVideo InputAudio Input
PricingRate 0.15x
| Type | HaoAI Price | Official Reference | Rate |
|---|---|---|---|
| Input | $0.188/M | $1.25/M | 0.15x · 85% savings |
| Output | $1.5/M | $10/M | 0.15x · 85% savings |
| Cache read | $0.019/M | $0.125/M | 0.15x · 85% savings |
Code Examples
from openai import OpenAI
client = OpenAI(
base_url="https://api.hao.ai/v1",
api_key="YOUR_HAOAI_API_KEY",
)
response = client.chat.completions.create(
model="openai/gpt-5.1",
messages=[
{"role": "user", "content": "Hello!"}
],
)
print(response.choices[0].message.content)