generate_image
Create images from text prompts with options for model, aspect ratio, dimensions, and seed for reproduction.
Instructions
Generate an image from a text prompt using Pruna AI.
Args: prompt: Text description of the image to generate model: Model to use (default: p-image) aspect_ratio: Output aspect ratio (1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, custom) width: Custom width 256-1440, multiple of 16. Only when aspect_ratio=custom height: Custom height 256-1440, multiple of 16. Only when aspect_ratio=custom seed: Random seed for reproducible generation
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | ||
| model | No | p-image | |
| width | No | ||
| height | No | ||
| prompt | Yes | ||
| aspect_ratio | No | 16:9 |