x-goog-api-key: ********************{
"contents": [
{
"role": "user",
"parts": [
{
"text": "Create a vibrant infographic that explains photosynthesis as if it were a recipe for a plants favorite food. Show the 'ingredients' (sunlight, water, CO2) and the 'finished dish' (sugar/energy). The style should be like a page from a colorful kids cookbook, suitable for a 4th grader."
}
]
}
],
"generationConfig": {
"responseModalities": [
"TEXT",
"IMAGE"
]
}
}curl --location 'https://drwa.openai-next.com/v1beta/models/gemini-3-pro-image-preview:generateContent' \
--header 'x-goog-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"contents": [
{
"role": "user",
"parts": [
{
"text": "Create a vibrant infographic that explains photosynthesis as if it were a recipe for a plants favorite food. Show the '\''ingredients'\'' (sunlight, water, CO2) and the '\''finished dish'\'' (sugar/energy). The style should be like a page from a colorful kids cookbook, suitable for a 4th grader."
}
]
}
],
"generationConfig": {
"responseModalities": [
"TEXT",
"IMAGE"
]
}
}'{
"candidates": [
{
"content": {
"role": "user",
"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
},
"groundingMetadata": {
"searchEntryPoint": {
"renderedContent": "string"
},
"groundingChunks": [
{
"web": {
"uri": "https://example.com/article",
"title": "Example Article Title"
}
}
]
}
}