Create image from text - Nano Banana Pro
Generate high-quality images from text descriptions using Google’s Nano Banana Pro model (Gemini 3).
Key Features:
- Advanced image generation with complex compositions
- Support for reference images for guided generation
- Multiple aspect ratios and resolutions
- High-quality output up to 4K resolution
Best for:
- High-quality image generation
- Complex scene compositions
- Reference-guided generation
- Professional visual content
Authorizations
Your Magnific API key. Required for authentication. Learn how to obtain an API key
Body
Text prompt describing the image you want to generate.
Tips:
- Be specific about visual details, composition, and style
- Nano Banana Pro excels at complex compositions and detailed scenes
- Describe lighting, atmosphere, and camera angles for best results
Examples:
- Simple: "A suited raccoon smoking a pipe"
- Detailed: "A suited raccoon smoking a pipe in a vintage study room, warm lighting, leather armchair, bookshelves in background"
2 - 3000"A suited raccoon smoking a pipe in a vintage study room"
Optional callback URL that will receive asynchronous notifications whenever the task changes status. The payload sent to this URL is the same as the corresponding GET endpoint response, but without the data field.
"https://www.example.com/webhook"
Optional reference images for guided generation. Each image can include associated text and mime type.
Image requirements:
- Maximum 14 images
- Supported formats: PNG, JPEG, WebP
- Publicly accessible URLs or GCS format
14[
{
"image": "https://example.com/reference.jpg",
"text": "Reference style",
"mime_type": "image/jpeg"
}
]Aspect ratio for the generated image.
Available ratios:
1:1: Square (default)2:3,3:2: Portrait/Landscape4:3,3:4: Standard5:4,4:5: Photo print16:9,9:16: Widescreen/Social stories21:9: Ultra-wide cinematic
1:1, 2:3, 3:2, 4:3, 3:4, 5:4, 4:5, 16:9, 9:16, 21:9 "1:1"
Resolution quality for the generated image.
Available resolutions:
1K: Lower resolution, faster generation2K: Standard resolution, balanced quality/speed (default)4K: High resolution, best quality
1K, 2K, 4K, low, medium, high "2K"
Response
OK - The request has succeeded and the Nano Banana Pro process has started.
{
"task_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"status": "CREATED",
"generated": [
"https://openapi-generator.tech",
"https://openapi-generator.tech"
]
}