访问地址: https://koalaapi.com,OpenAI 兼容接口在末尾加/v1。
gpt-6.1-solgpt-6.1-sol、gpt-6-sol、gpt-5.6-sol、gpt-5.5、gpt-5.4、gpt-5.3-codex、gpt-6-luna、gpt-4.1 等{
"model": "gpt-6.1-sol",
"messages": [
{
"role": "user",
"content": "北京今天天气怎么样?"
}
],
"temperature": 1,
"top_p": 1,
"n": 1,
"stream": true,
"stream_options": {
"include_usage": true
},
"stop": [
"\n\n"
],
"max_tokens": 4096,
"max_completion_tokens": 4096,
"presence_penalty": 0,
"frequency_penalty": 0,
"logit_bias": {
"50256": -100
},
"logprobs": true,
"top_logprobs": 5,
"response_format": {
"type": "text"
},
"seed": 42,
"tools": [
{
"type": "function",
"function": {
"name": "get_weather",
"description": "获取指定城市的实时天气",
"parameters": {
"type": "object",
"properties": {
"city": {
"type": "string",
"description": "城市名"
}
},
"required": [
"city"
]
},
"strict": true
}
}
],
"tool_choice": "auto",
"parallel_tool_calls": true,
"reasoning_effort": "medium",
"user": "user-123"
}curl --location '/v1/chat/completions' \
--header 'Accept: application/json' \
--header 'Authorization: sk-' \
--header 'Content-Type: application/json' \
--data '{
"model": "gpt-6.1-sol",
"messages": [
{
"role": "user",
"content": "北京今天天气怎么样?"
}
],
"temperature": 1,
"top_p": 1,
"n": 1,
"stream": true,
"stream_options": {
"include_usage": true
},
"stop": [
"\n\n"
],
"max_tokens": 4096,
"max_completion_tokens": 4096,
"presence_penalty": 0,
"frequency_penalty": 0,
"logit_bias": {
"50256": -100
},
"logprobs": true,
"top_logprobs": 5,
"response_format": {
"type": "text"
},
"seed": 42,
"tools": [
{
"type": "function",
"function": {
"name": "get_weather",
"description": "获取指定城市的实时天气",
"parameters": {
"type": "object",
"properties": {
"city": {
"type": "string",
"description": "城市名"
}
},
"required": [
"city"
]
},
"strict": true
}
}
],
"tool_choice": "auto",
"parallel_tool_calls": true,
"reasoning_effort": "medium",
"user": "user-123"
}'{
"id": "chatcmpl-123",
"object": "chat.completion",
"created": 1677652288,
"model": "gpt-6.1-sol",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "string",
"reasoning_content": "string",
"tool_calls": [
{
"id": "string",
"type": "function",
"function": {
"name": "string",
"arguments": "string"
}
}
],
"refusal": "string"
},
"finish_reason": "stop",
"logprobs": {}
}
],
"usage": {
"prompt_tokens": 0,
"completion_tokens": 0,
"total_tokens": 0,
"prompt_tokens_details": {
"cached_tokens": 0,
"audio_tokens": 0
},
"completion_tokens_details": {
"reasoning_tokens": 0,
"audio_tokens": 0,
"text_tokens": 0
}
},
"system_fingerprint": "string",
"service_tier": "string"
}