x-goog-api-key: ********************{
"contents": [
{
"parts": [
{
"text": "Create a picture of a nano banana dish in a fancy restaurant with a Gemini theme"
}
]
}
]
}curl --location 'https://drwa.openai-next.com/v1beta/models/gemini-2.5-flash-image:generateContent' \
--header 'x-goog-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"contents": [
{
"parts": [
{
"text": "Create a picture of a nano banana dish in a fancy restaurant with a Gemini theme"
}
]
}
]
}'{
"candidates": [
{
"content": {
"parts": [
{
"text": "Create a picture of a nano banana dish in a fancy restaurant with a Gemini theme",
"inline_data": {
"mime_type": "image/jpeg",
"data": "<BASE64_IMAGE_DATA>"
},
"thought": true,
"thought_signature": "string"
}
]
},
"finishReason": "STOP",
"safetyRatings": [
{
"category": "HARM_CATEGORY_HARASSMENT",
"probability": "NEGLIGIBLE"
}
]
}
],
"usageMetadata": {
"promptTokenCount": 100,
"candidatesTokenCount": 1290,
"totalTokenCount": 1390
}
}