Actions6
- Chat Actions
- Audio Actions
- Video Actions
- Image Actions
Image → Generate image
AI-generatedSummary
Generate an image from a text prompt using a selected AI image model, with flexible options depending on the model type.
Inputs
- imageModel (required) — ID of the image model to use
- prompt (required) — Text prompt describing the desired image
- aspectRatio — Aspect ratio option for the generated image; only applicable for Gemini models
- n — Number of images to generate; only applicable for the 'openai/gpt-image-1' model
- size — Size option for the generated image; only applicable for the 'openai/gpt-image-1' model
- quality — Quality setting for the generation; only applicable for the 'openai/gpt-image-1' model
- sizeGemini — Size option for Gemini models; only applicable for Gemini image models ('maia/gemini-2.5-flash-image', 'maia/gemini-3-pro-image-preview')
Output shape
JSON object with generation metadata and binary image data
The response includes processed image metadata and may contain binary_data for each generated image
Examples
Example 1: Generate a simple illustration.
Model: openai/gpt-image-1; Prompt: "A futuristic city skyline"; Aspect Ratio: 1:1; Size: 1024x1024; Quality: auto; N: 1
Example 2: Create three vertical images of a cat.
Model: maia/gemini-3-pro-image-preview; Prompt: "A cat playing piano"; Aspect Ratio: 9:16; Size: 1024x1536; N: 3
Example 3: Generate a logo with high quality.
Model: openai/gpt-image-1; Prompt: "Minimalist logo for coffee brand"; Size: 512x512; Quality: high; N: 1