LeonardoAi - Image Generator
Generate high-quality images from text prompts using LeonardoAi.
Endpoint
Request Body
Parameter | Type | Required | Description |
---|---|---|---|
type | string | Yes | Feature type identifier. Must be IMAGE_GENERATOR |
model | string | Yes | AI model identifier. Must be stable-diffusion-xl-1024-v1-0 |
promptObject | object | Yes | Feature-specific parameters |
Prompt Object Parameters
Parameter | Type | Required | Description |
---|---|---|---|
prompt | string | Yes | Text prompt for image generation |
size | string | Yes | Generated image size. Options: 1024x1024 |
n | number | Yes | Number of images to generate |
Example Request
- cURL
curl --location 'https://api.1min.ai/api/features' \
--header 'API-KEY: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"type": "IMAGE_GENERATOR",
"Content-Type": "application/json",
"model": "stable-diffusion-xl-1024-v1-0",
"promptObject": {
"prompt": "Relastic portrait of a person",
"size": "1024x1024",
"n": 1
}
}'
Response Payload
{}
Authentication
This endpoint requires an API key to be provided in the API-KEY
header.