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

ParameterTypeRequiredDescription
modelstringNoModel to use (default: nano-banana-pro)
promptstringYesText description of the image
nintegerNoNumber of images (1-4)
sizestringNoImage size (1024x1024, 1792x1024, 1024x1792)

Available Image Models

Model IDProviderMin. TierNotes
sdxl-liteInfipFreeLightweight, fast results
dreamshaperInfipFreeArtistic, creative styles
flux-schnellInfipFreeUltra-fast with good quality
dall-e-3OpenAIStarterOpenAI premier text-to-image
sdxlInfipStarterFull Stable Diffusion XL, high-res
phoenixInfipStarterPremium quality from Leonardo AI
lucid-originInfipStarterPhotorealistic image generation
img3InfipStarterImagen 3 — chi tiết cao, text rendering
img4InfipStarterImagen 4 — chất lượng hàng đầu
grok-imagine-1.0-fastxAIStarterFast image gen from xAI
gpt-image-1OpenAIProGPT native image gen — edit, variation
gpt-image-1.5OpenAIProEnhanced GPT Image, better quality
grok-imagine-1.0xAIProFull Grok image generation
grok-imagine-1.0-editxAIProEdit images with natural language
flux2-devInfipProPhotorealistic, chi tiết cực cao
flux2-klein-9bInfipProEfficient 9B parameter Flux
flux2-klein-4bInfipProCompact 4B parameter Flux
nano-banana-proGoogle FlowProChất lượng cao — marketing, premium content

Example

Python
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
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" }'