Text to Image
Generating high-quality images from natural language descriptions is easy with Siraya AI. Our unified API allows you to access various state-of-the-art image generation models using a single interface.
How to Generate Images
To generate images, send a POST request to our image generation endpoint with your prompt and desired parameters.
Documentation & Examples
Request Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
model |
string | - | The ID of the model to use (e.g., gpt-image-1). |
prompt |
string | - | A text description of the desired image. |
n |
integer | 1 | The number of images to generate. |
output_format |
string | url |
The format of the generated images (url or b64_json). |
Example Response
For a list of all available image models and their capabilities, please visit the Models Directory.