GPT-5.5 是一款支持自然语言对话、推理分析、代码生成、图片理解(Vision)、Function Calling、JSON 输出和流式响应的多模态大语言模型。
接口兼容 OpenAI Chat Completions API。
https://api.yisu.com
所有请求均需携带 API Key。
Authorization: Bearer YOUR_API_KEYContent-Type: application/json
POST /v1/chat/completions
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| model | string | 是 | 固定为 gpt-5.5 |
| messages | array | 是 | 对话消息列表 |
| stream | boolean | 否 | 是否启用流式输出 |
| temperature | number | 否 | 采样温度,默认 1 |
| top_p | number | 否 | Top-P 采样 |
| max_completion_tokens | integer | 否 | 最大输出 Token 数 |
| presence_penalty | number | 否 | 存在惩罚 |
| frequency_penalty | number | 否 | 频率惩罚 |
| reasoning_effort | string | 否 | 推理强度 |
| response_format | object | 否 | JSON 输出模式 |
| tools | array | 否 | Function Calling 工具列表 |
| tool_choice | string/object | 否 | 工具选择策略 |
控制模型推理深度。
支持值:
lowmediumhigh
示例:
{"model": "gpt-5.5","reasoning_effort": "high","messages": [{"role": "user","content": "证明勾股定理"}]}
curl https://api.yisu.com/v1/chat/completions \-H "Authorization: Bearer YOUR_API_KEY" \-H "Content-Type: application/json" \-d '{"model":"gpt-5.5","messages":[{"role":"user","content":"你好,请介绍一下自己"}]}'
{"id": "chatcmpl_abc123","object": "chat.completion","created": 1780470861,"model": "gpt-5.5","choices": [{"index": 0,"message": {"role": "assistant","content": "你好,我是 GPT-5.5,一个大型多模态人工智能模型。"},"finish_reason": "stop"}],"usage": {"prompt_tokens": 12,"completion_tokens": 18,"total_tokens": 30}}
{"model": "gpt-5.5","messages": [{"role": "system","content": "你是一个资深PHP开发工程师"},{"role": "user","content": "写一个PDO连接MySQL示例"}]}
支持 Base64 图片输入。
{"model": "gpt-5.5","messages": [{"role": "user","content": [{"type": "text","text": "描述这张图片"},{"type": "image","image": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA..."}]}]}
{"id": "chatcmpl_vision001","object": "chat.completion","created": 1780470861,"model": "gpt-5.5","choices": [{"message": {"role": "assistant","content": "图片中是一只橘猫坐在窗边。"},"finish_reason": "stop"}]}
{"model": "gpt-5.5","messages": [{"role": "user","content": "返回一个用户对象"}],"response_format": {"type": "json_object"}}
{"name": "Tom","age": 20,"city": "Los Angeles"}
{"model": "gpt-5.5","messages": [{"role": "user","content": "北京天气怎么样"}],"tools": [{"type": "function","function": {"name": "get_weather","description": "查询天气","parameters": {"type": "object","properties": {"city": {"type": "string"}},"required": ["city"]}}}]}
{"choices": [{"message": {"role": "assistant","tool_calls": [{"id": "call_001","type": "function","function": {"name": "get_weather","arguments": "{\"city\":\"北京\"}"}}]},"finish_reason": "tool_calls"}]}
{"model": "gpt-5.5","stream": true,"messages": [{"role": "user","content": "讲一个程序员笑话"}]}
data: {"id":"chatcmpl_stream001","choices":[{"delta":{"content":"从前"}}]}data: {"choices":[{"delta":{"content":"有一个程序员..."}}]}data: [DONE]
{"usage": {"prompt_tokens": 120,"completion_tokens": 360,"total_tokens": 480}}
GET /v1/models
{"object": "list","data": [{"id": "gpt-5.5","object": "model","created": 1780000000,"owned_by": "system"}]}
{"error": {"message": "Invalid API key.","type": "authentication_error","code": "invalid_api_key"}}
{"error": {"message": "Rate limit exceeded.","type": "rate_limit_error","code": "rate_limit_exceeded"}}
{"error": {"message": "Invalid request.","type": "invalid_request_error","code": "invalid_request"}}