Generate an image from a text prompt, or edit/upscale an existing image. Returns a job that you poll or stream for completion.
This endpoint also handles image editing (provide a source image via files) and image upscaling (provide an image with an upscale model).
API key from varg.ai/dashboard.
Pass as Authorization: Bearer varg_xxx.
Image model to use. Also accepts image editing and upscale models.
Text-to-image: flux-pro, flux-dev, flux-schnell, nano-banana-pro, recraft-v3, phota, grok-imagine-image, soul
Image editing: nano-banana-pro/edit, nano-banana-2/edit, phota/edit, phota/enhance, grok-imagine-image/edit, seedream-v4.5/edit, qwen-angles
Image upscale: seedvr, recraft-clarity, clarity-upscaler, topaz, ccsr, aura-sr
"flux-pro"
"flux-schnell"
"nano-banana-pro"
"recraft-v3"
"phota"
"grok-imagine-image"
"soul"
"nano-banana-pro/edit"
"seedvr"
"topaz"
Text description of the image to generate. For editing models, describe the desired change. For upscale models, can be empty.
"sunset over mountains, dramatic lighting, photorealistic"
Output aspect ratio
"1:1"
"16:9"
"9:16"
"4:3"
"3:4"
Input images for editing, style transfer, or upscaling.
Additional options passed directly to the provider
Job created
Unique job identifier
"job_a1b2c3d4"
Current job status
queued, processing, completed, failed, cancelled "completed"
Resolved model identifier (provider:model format)
"fal:kling-v2.5"
When the job was created
"2026-02-13T10:00:00Z"
When the job finished (completed, failed, or cancelled)
"2026-02-13T10:02:30Z"
Job output, present when status is completed
Cache metadata
Error message, present when status is failed
"Provider returned an error"