Generate Image (Pro)
POST/v1beta/models/gemini-3-pro-image-preview:generateContent
VerifiedPublished by Nano Banana
curl -X POST https://api.orthogonal.com/v1/run \
-H 'Authorization: Bearer orth_live_••••' \
-H 'Content-Type: application/json' \
-d '{
"api": "nano-banana",
"path": "/v1beta/models/gemini-3-pro-image-preview:generateContent",
"method": "POST",
"body": {
"contents": [
{
"parts": [
{
"text": ""
}
]
}
]
}
}'
$0.15per call
Every call costs the same.
You aren't charged for failed calls. A wallet payment for a failed call is refunded.
About this endpoint
High-quality image generation with thinking capabilities. Supports 2K/4K output and Google Search grounding for factual images. Up to 14 input images for composition.
Body parameters
contentsrequiredarrayArray with one object containing parts. Example: [{"parts": [{"text": "A detailed diagram of the solar system"}]}]generationConfigobjectConfig options: responseModalities (["IMAGE"] or ["TEXT","IMAGE"]), imageConfig.aspectRatio (1:1, 16:9, etc), imageConfig.outputSize (1024x1024, 2048x2048, 4096x4096), thinkingConfig.includeThoughts (boolean)toolsarrayFor grounded images, add: [{"googleSearch": {}}]