StarMagicStarMagic
English
简体中文简繁體中文繁EnglishEN日本語日EspañolES한국어KO
Integration Guide
GPT-5.5 - 快速开始GPT-5.5 - 完整参数文档
StarMagicStarMagic
English
简体中文简繁體中文繁EnglishEN日本語日EspañolES한국어KO
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
<Note> **BaseURL**: The default BaseURL is `https://api.starmagic.ai`, which has better support for text models and long-lived connections. `https://api.starmagic.ai` is the primary endpoint for multimodal services and serves as a fallback address for text models. </Note>

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_KEY

Request body

application/json
modelenum<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

1760032810
choicesobject[]

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
}
POST/v1/chat/completions
curl --request POST \
  --url https://api.starmagic.ai/v1/chat/completions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "gpt-5.5",
  "messages": [
    {
      "role": "user",
      "content": "Hello, introduce the new features of GPT-5.5"
    }
  ]
}'
Response: 成功
{
  "id": "chatcmpl-20251010015944503180122WJNB8Eid",
  "model": "gpt-5.5",
  "object": "chat.completion",
  "created": 1760032810,
  "choices": [
    {
      "index": 0,
      "message": {
        "role": null,
        "content": null
      },
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "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
  }
}

GPT-5.4 - 完整参数文档

Previous Page

GPT-5.5 - 完整参数文档

Next Page