Actions8
- Chat Actions
- Completion Actions
- Embedding Actions
- Image Actions
- Audio Actions
- Model Actions
- Moderation Actions
Image → Generate Image
AI-generatedSummary
Generates images from a text prompt by sending a request to the LiteLLM image generation endpoint. Returns one output item per image, with each image’s response data in the item’s JSON.
Inputs
- Prompt (required) — Text describing the desired image. It must contain non-whitespace text and be no more than 4,000 characters.
- Additional Fields → Model — Model to use for image generation; sent only when provided.
- Additional Fields → Size — Image dimensions: 256×256, 512×512, 1024×1024, 1024×1792, or 1792×1024. Defaults to 1024×1024.
- Additional Fields → Quality — Generation quality: Standard or HD. Defaults to Standard.
- Additional Fields → N — Number of images to generate (1–10). Defaults to 1.
- Additional Fields → Response Format — Image response format: URL or Base64 JSON. Defaults to URL.
Output shape
A list of items, one per generated image; each item contains the corresponding response entry in its json field.
Uses the LiteLLM API credentials and POSTs the prompt and any provided additional fields to /images/generations. The response must include a data array; the operation maps its entries directly to output items.