Authorization: Bearer ********************
{
"model": "gpt-5-search-api",
"messages": [
{
"role": "user",
"content": "今天北京的天气"
}
]
}
curl --location --request POST 'https://api2.aigcbest.top/v1/chat/completions' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "gpt-5-search-api",
"messages": [
{
"role": "user",
"content": "今天北京的天气"
}
]
}'
{
"id": "chatcmpl-CQne0GUFU3glJ6vgbwByj0RbKVTxJ",
"object": "chat.completion",
"created": 1760503396,
"model": "gpt-4.1-mini-2025-04-14",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Hello! How can I assist you today?",
"refusal": null,
"annotations": []
},
"logprobs": null,
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 9,
"completion_tokens": 9,
"total_tokens": 18,
"prompt_tokens_details": {
"cached_tokens": 0,
"audio_tokens": 0
},
"completion_tokens_details": {
"reasoning_tokens": 0,
"audio_tokens": 0,
"accepted_prediction_tokens": 0,
"rejected_prediction_tokens": 0
}
},
"service_tier": "default",
"system_fingerprint": "fp_c064fdde7c"
}