{
"model": "gemini-1.5-pro",
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "what is this?"
},
{
"type": "image_url",
"image_url": {
"url": "https://www.puzdy.com/wp-content/uploads/2022/07/20211212211533-766fe.jpeg"
}
}
]
}
],
"max_tokens": 300
}curl --location --request POST 'https://api.openai.com/v1/chat/completions' \
--header 'Authorization: Bearer sk-xxx' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "gemini-1.5-pro",
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "what is this?"
},
{
"type": "image_url",
"image_url": {
"url": "https://www.puzdy.com/wp-content/uploads/2022/07/20211212211533-766fe.jpeg"
}
}
]
}
],
"max_tokens": 300
}'{}