API
CLUB

GPT-5.5

OpenAI 通用对话与推理旗舰模型。

openai/gpt-5.5

能力

GPT-5.5 is a language model served through the Uika developer API. Send it a list of chat messages and it streams back a text reply, using the OpenAI-compatible chat-completions shape.

身份验证

API 密钥标头

Uika API 使用 API 密钥来验证请求。将您的密钥发送到 X-API 密钥 标题。您的 API 密钥是一个秘密。不要在浏览器或其他客户端代码中公开它。相反,从您的服务器调用 API。登录的 Playground 使用门户会话,并且从不发送您的 API 密钥。

标题
X-API-Key: YOUR_API_KEY

端点

同步 · 对话补全

发布https://api.dev.pika.art/v1/chat/completions

请求

POST /v1/chat/completions

请求

curl -X POST https://api.dev.pika.art/v1/chat/completions \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/gpt-5.5",
"messages": [
{ "role": "user", "content": "Hello, who are you?" }
]
}'

将 openai/gpt-5.5 设为模型,并传入 messages 消息数组,其中每项包含 { role, content } 。设置 流:真 后,可通过服务器发送事件(SSE)逐步接收生成内容。

The Python and TypeScript examples use the official OpenAI SDK with its base URL pointed at https://api.dev.pika.art/v1 — no Uika-specific SDK is needed. Keep your Uika API key and existing OpenAI code works without a rewrite.

错误

在通话中共享

错误使用传统的 HTTP 状态代码以及形状的 JSON 主体 {"message": "..."}. A missing or invalid key returns 401.