curl --location --request POST '/v1/chat/completions' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "string",
"stream": true,
"messages": [
{
"role": "string",
"content": "string"
}
],
"extra_body": {
"google": {
"image_config": {
"aspect_ratio": "string",
"image_size": "string"
}
}
},
"contents": [
{
"role": "string",
"parts": [
{
"text": "string"
}
]
}
]
}'{
"id": "string",
"model": "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
}
}