Authorization: Bearer ********************{
"contents": [
{
"role": "user",
"parts": [
{
"text": "Tell me about this instrument"
},
{
"inlineData": {
"mimeType": "image/jpeg",
"data": "图片base64"
}
}
]
}
]
}curl --location --request POST 'v1beta/models/:generateContent' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"contents": [
{
"role": "user",
"parts": [
{
"text": "Tell me about this instrument"
},
{
"inlineData": {
"mimeType": "image/jpeg",
"data": "图片base64"
}
}
]
}
]
}'{
"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
}
}