Skip to main content
POST
Text to Image Generation

Overview

Generate ultra-sharp, cinematic frames from short text prompts using Google’s Gemini Nano Banana Pro model. Compared with the base Nano Banana release, the Pro tier unlocks:
  • Wider aspect ratios (from square up to 21:9 panoramic)
  • Higher fidelity presets (resolution up to 4K)
  • Better prompt adherence thanks to an upgraded vision-language alignment stack

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Text to image generation request body

prompt
string
required

Text prompt for image generation

aspect_ratio
enum<string>
default:1:1

Aspect ratio of the generated image

Available options:
1:1,
2:3,
3:2,
3:4,
4:3,
4:5,
5:4,
9:16,
16:9,
21:9
resolution
enum<string>
default:2K

Output resolution preset (longest side in pixels)

Available options:
1K,
2K

Response

202 - application/json

Task created successfully

task_info
object