Leonardo Vision XL - Image Generator
Generate high-quality images from text prompts using Leonardo Vision XL.
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 5c232a9e-9061-4777-980a-ddc8e65647c6 |
promptObject | object | Yes | Feature-specific parameters |
Prompt Object Parameters
Parameter | Type | Required | Description |
---|---|---|---|
prompt | string | Yes | Image description |
n | number | Yes | Number of images |
size | string | Yes | Image size. Options: 1024x1024 |
negativePrompt | string | Yes | Things to exclude from image |
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",
"model": "5c232a9e-9061-4777-980a-ddc8e65647c6",
"promptObject": {
"prompt": "Realistic portrait of a person",
"n": 1,
"size": "1024x1024",
"negativePrompt": "people"
}
}'
Response Payload
{}
Authentication
This endpoint requires an API key to be provided in the API-KEY
header.