text-to-image
Create image from text - Nano Banana 2.1
Generate or edit images with Google's Nano Banana 2.1 model.
Key Features:
- Text-to-image and image editing in the same endpoint: send up to 14 reference images to edit, combine, or keep characters and products consistent
- Wide aspect ratio range, from 8:1 banners to 1:8 vertical strips, plus auto to follow the reference images
- Optional thinking_level for complex prompts
- Optional Google Search grounding
- Resolutions up to 4K
Best for:
- Product and brand visuals built from reference images
- Character and product consistency across generations
- Complex prompts with many constraints
Credits: the price is set by resolution (1K, 2K or 4K). thinking_level and use_google_search_tool do not affect it.
post/v1/ai/text-to-image/nano-banana-2-1
Request
- Base URL: https://api.magnific.com
- URL: https://api.magnific.com/v1/ai/text-to-image/nano-banana-2-1
- Auth: API key in header x-magnific-api-key
Request body
Example request
{
"prompt": "Place the product from Image 1 on a marble kitchen counter, soft morning light",
"webhook_url": "https://www.example.com/webhook",
"reference_images": [
{
"image": "https://example.com/product.png"
}
],
"aspect_ratio": "1:1",
"resolution": "1K",
"thinking_level": "medium"
}Response
OK - The request has succeeded and the Nano Banana 2.1 process has started.
Example response
{
"data": {
"generated": [
"https://openapi-generator.tech",
"https://openapi-generator.tech"
],
"task_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"status": "CREATED"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.