Authorization: Bearer ********************{
"model": "gemini-2.0-flash",
"max_tokens": 2000,
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "请分析下面附件的内容"
},
{
"type": "image_url",
"image_url": {
"url": "https://s2.loli.net/2024/02/01/QSWVdw9bX56gj7O.jpg"
}
},
{
"type": "audio_url",
"audio_url": {
"url": "https://cdn.openai.com/API/docs/audio/alloy.wav"
}
}
]
}
],
"temperature": 0.8,
"top_p": 0.1,
"steam": false
}curl --location --request POST 'https://api.mixrouter.com/v1/chat/completions' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "gemini-2.0-flash",
"max_tokens": 2000,
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "请分析下面附件的内容"
},
{
"type": "image_url",
"image_url": {
"url": "https://s2.loli.net/2024/02/01/QSWVdw9bX56gj7O.jpg"
}
},
{
"type": "audio_url",
"audio_url": {
"url": "https://cdn.openai.com/API/docs/audio/alloy.wav"
}
}
]
}
],
"temperature": 0.8,
"top_p": 0.1,
"steam": false
}'{
"id": "chatcmpl-toio20251226074613833316175pDor54M8",
"model": "gemini-2.0-flash",
"object": "chat.completion",
"created": 1766735188,
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "The image depicts two people in an office setting. A woman stands to the left, holding a tablet, while a man sits at a desk to the right, working on a laptop. Both individuals have green location pin icons above their heads. A Wi-Fi symbol is visible in the upper right corner. The background includes a window, a bookshelf, and abstract shapes. The color scheme is predominantly blue and white."
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 1986,
"completion_tokens": 83,
"total_tokens": 2069,
"prompt_tokens_details": {
"cached_tokens": 0,
"text_tokens": 5,
"audio_tokens": 175,
"image_tokens": 0
},
"completion_tokens_details": {
"text_tokens": 0,
"audio_tokens": 0,
"reasoning_tokens": 0
},
"output_tokens_details": {
"text_tokens": 0,
"audio_tokens": 0,
"reasoning_tokens": 0
},
"input_tokens": 0,
"output_tokens": 0,
"input_tokens_details": null,
"claude_cache_creation_5_m_tokens": 0,
"claude_cache_creation_1_h_tokens": 0
}
}