mingyan
Claude Messages API
Claude Messages interface based on the Anthropic native request format
baseUrl
http://apillm.globalaiopc.com/gw_llm_powerCompatible with the Anthropic official documentation. You can integrate directly with the following reference:
- Anthropic Messages API: https://docs.anthropic.com/en/api/messages
Authentication
Get KeyUse the
Authorization header for authentication.cURL
Authorization: Bearer {{YOUR_API_KEY}}
Content-Type: application/json
Notes:
Authorization: API key in the formatBearer {{YOUR_API_KEY}}
Import to CC Switch
After clicking "Import to CC Switch", you can enter your API Key on the page and choose models from the four dropdowns. The default uses
gpt-5.4-low first.Supported Models
The following models are supported, organized by model family and version type:
Claude
| Full Version | Official Version | AWS Version | Account Pool / Proxy Version |
|---|---|---|---|
claude-haiku-4-5 | claude-haiku-4-5-official | claude-haiku-4-5-hc | claude-haiku-4-5-fd |
claude-opus-4-5 | claude-opus-4-5-official | claude-opus-4-5-hc | claude-opus-4-5-fd |
claude-opus-4-6 | claude-opus-4-6-official | claude-opus-4-6-hc | claude-opus-4-6-fd |
claude-opus-4-7 | claude-opus-4-7-official | claude-opus-4-7-hc | claude-opus-4-7-fd |
claude-sonnet-4-5 | claude-sonnet-4-5-official | claude-sonnet-4-5-hc | claude-sonnet-4-5-fd |
claude-sonnet-4-6 | claude-sonnet-4-6-official | claude-sonnet-4-6-hc | claude-sonnet-4-6-fd |
GPT Models Compatible with Claude Messages API
| Official Version | Official Version | Premium Account Pool | Mixed Account Pool / Proxy Version | Low-cost Version |
|---|---|---|---|---|
gpt-5.4 | gpt-5.4-official | gpt-5.4-hc | gpt-5.4-fd | gpt-5.4-low |
gpt-5.5 | gpt-5.5-official | gpt-5.5-hc | gpt-5.5-fd | gpt-5.5-low |
Version Notes
| Suffix / Type | Description |
|---|---|
| no suffix | Official version |
-official | Official version |
-hc | AWS version or premium account pool version |
-fd | Account pool / proxy version |
-low | Low-cost version |
Claude Messages API uses the Claude request schema and is not suitable for the official Gemini native format. For Gemini native requests, use the Gemini Native API. GPT models can be called through this format, but image recognition is currently not supported for them.
Multimodal Support
Image Analysis
Only the following models do not support image analysis:
gpt-5.4gpt-5.4-officialgpt-5.4-fdgpt-5.4-hcgpt-5.4-lowgpt-5.5gpt-5.5-officialgpt-5.5-fdgpt-5.5-hcgpt-5.5-low
Request Parameters
modelstringrequiredModel name to use, for example:
claude-opus-4-7 or gpt-5.5max_tokensintegerrequiredMaximum number of tokens allowed for this request
messagesarrayrequiredMessage array in Claude Messages format
messages[].rolestringrequiredMessage role, commonly
user or assistantmessages[].contentstring/arrayrequiredMessage content. Can be a string or a Claude native content block array
systemstringOptional system prompt
streambooleanWhether to enable streaming responses. When enabled, Claude-style streaming events are returned
temperaturenumberSampling temperature
Response
Returns a Claude Messages-style response.
idstringUnique response identifier
typestringResponse type, usually
messagerolestringReturned message role, usually
assistantcontent[].typestringContent block type, commonly
textcontent[].textstringGenerated text content
stop_reasonstringGeneration stop reason
usage.input_tokensintegerInput token count
usage.output_tokensintegerOutput token count
Notes
- The Claude-format request path is
POST /v1/messages - For streaming responses, pass
"stream": truein the request body - Pass the API key using the
Authorizationheader

