TextGPTGPT-5.5
GPT-5.5 - Quick Start
- Use OpenAI SDK format to call GPT-5.5 model
- Synchronous processing mode, real-time response
- Minimal parameters, quick start
- Need more features? Check out Complete API Reference
Authorization
AuthorizationstringheaderRequired
## All APIs require Bearer Token authentication ## **Get API Key:** Visit [API Key Management Page](https://starmagic.ai/app/api-keys) to get your API Key **Add to request header:** ``` Authorization: Bearer YOUR_API_KEY ```
Authorization: Bearer YOUR_API_KEYRequest body
application/jsonmodelenum<gpt-5.5>Required
Model name for chat completion
"gpt-5.5"messagesobject[]Required
List of messages for the conversation
[
{
"role": "user",
"content": "Hello, introduce the new features of GPT-5.5"
}
]Response
application/json成功
Response body
idstring
Unique identifier for the chat completion
"chatcmpl-20251010015944503180122WJNB8Eid"modelstring
The model used for completion
"gpt-5.5"objectenum<chat.completion>
Response type
"chat.completion"createdinteger
Unix timestamp when the completion was created
1760032810choicesobject[]
List of completion choices
[
{
"index": 0,
"message": {
"role": "assistant",
"content": "Hello! I'm happy to introduce GPT-5.5 to you.\n\nGPT-5.5 is the next-generation large language model with enhanced reasoning and understanding capabilities..."
},
"finish_reason": "stop"
}
]usageobject
Token usage statistics
{
"prompt_tokens": 13,
"completion_tokens": 1891,
"total_tokens": 1904,
"prompt_tokens_details": {
"cached_tokens": 0,
"text_tokens": 13,
"audio_tokens": 0,
"image_tokens": 0
},
"completion_tokens_details": {
"text_tokens": 0,
"audio_tokens": 0,
"reasoning_tokens": 1480
},
"input_tokens": 0,
"output_tokens": 0,
"input_tokens_details": null
}
