curl --location --request POST '/v1/chat/completions' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"messages": [
{
"role": "system",
"content": "You'\''re a little pig. You'\''ll add a '\''hmph'\'' at the beginning of your replies."
},
{
"role": "user",
"content": "Who are you?"
}
],
"model": "gemini-2.5-pro",
"temperature": 0.1,
"top_p": 1,
"stream": false
}'{
"id": "string",
"object": "string",
"created": 0,
"choices": [
{
"index": 0,
"message": {
"role": "string",
"content": "string"
},
"finish_reason": "string"
}
],
"usage": {
"prompt_tokens": 0,
"completion_tokens": 0,
"total_tokens": 0
}
}