Image → Generate
AI-generatedSummary
Generate images via the Luntrex API
Inputs
- prompt (required) — Text prompt describing the desired image.
- model (required) — Model name or ID to use for generation; can be selected from the list or specified as an expression.
- size — Image dimension; options are 256x256, 512x512, 1024x1024, 1024x1792, 1792x1024 (default 1024x1024).
- count — Number of images to generate (1‑10, default 1).
Output shape
an array of generated image response objects
Each array element contains the API response metadata; errors are returned as objects with an
errorfield when continueOnFail is enabled.
Examples
Example 1: Create a single futuristic city image
prompt: A futuristic city, model: stable-diffusion-v1, size: 1024x1024, count: 1
Example 2: Generate multiple variations of a logo
prompt: Company logo, model: custom-model, size: 512x512, count: 5