Image Generation
Generate images from text prompts using models like DALL·E, Imagen 4, Nano Banana Pro, Flux, and more.
POST/v1/images/generations
Request Body
| Parameter | Type | Required | Description |
|---|
model | string | No | Model to use (default: nano-banana-pro) |
prompt | string | Yes | Text description of the image |
n | integer | No | Number of images (1-4) |
size | string | No | Image size (1024x1024, 1792x1024, 1024x1792) |
Available Image Models
| Model ID | Provider | Min. Tier | Notes |
|---|
sdxl-lite | Infip | Free | Lightweight, fast results |
dreamshaper | Infip | Free | Artistic, creative styles |
flux-schnell | Infip | Free | Ultra-fast with good quality |
dall-e-3 | OpenAI | Starter | OpenAI premier text-to-image |
sdxl | Infip | Starter | Full Stable Diffusion XL, high-res |
phoenix | Infip | Starter | Premium quality from Leonardo AI |
lucid-origin | Infip | Starter | Photorealistic image generation |
img3 | Infip | Starter | Imagen 3 — chi tiết cao, text rendering |
img4 | Infip | Starter | Imagen 4 — chất lượng hàng đầu |
grok-imagine-1.0-fast | xAI | Starter | Fast image gen from xAI |
gpt-image-1 | OpenAI | Pro | GPT native image gen — edit, variation |
gpt-image-1.5 | OpenAI | Pro | Enhanced GPT Image, better quality |
grok-imagine-1.0 | xAI | Pro | Full Grok image generation |
grok-imagine-1.0-edit | xAI | Pro | Edit images with natural language |
flux2-dev | Infip | Pro | Photorealistic, chi tiết cực cao |
flux2-klein-9b | Infip | Pro | Efficient 9B parameter Flux |
flux2-klein-4b | Infip | Pro | Compact 4B parameter Flux |
nano-banana-pro | Google Flow | Pro | Chất lượng cao — marketing, premium content |
Example
response = client.images.generate(
model="nano-banana-pro",
prompt="A futuristic city skyline at sunset",
n=1,
size="1024x1024"
)
print(response.data[0].url)
curl https://api.zora.io.vn/v1/images/generations \\
-H "Authorization: Bearer YOUR_API_KEY" \\
-H "Content-Type: application/json" \\
-d '{
"model": "nano-banana-pro",
"prompt": "A beautiful sunset over the ocean",
"n": 1,
"size": "1024x1024"
}'