generate_image
Generate AI images from text prompts, reference images, or video. Specify model, aspect ratio, and count for tailored results.
Instructions
Generate AI image
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | AI model/engine ID. Accepts both engine IDs and labels. Common models: flux.flux-realism, flux.flux-schnell, flux.flux-kontext-pro, google.gemini-2.5-flash-image, openai.imgen, recraft.recraft, stability.diffusion, bytedance.seedream-4 | |
| storage | No | "asset" saves as a persistent TldrAsset (recommended — no expiry, visible in asset library). "transient" generates without saving to database (temporary URL, expires). "default" persists to AiImageArt gallery. | asset |
| capability | Yes | Generation mode — NOT where the prompt text goes. The prompt text goes in parameters.prompt. Image capabilities: - "prompt" → text-to-image (most common; put your prompt in parameters.prompt) - "reference_image" → image-to-image (also requires parameters.reference_images) - "multiple_images" → batch generation - "first_last_frame" / "video_to_video" → video modes | |
| parameters | Yes | The generation payload — what the AI model needs to produce the image. For capability=prompt: must contain prompt, aspect_ratio, and count. For capability=reference_image: also include reference_images array. |