https://api.hyprlab.io/v1
https://api.hyprlab.io/v1/images/generations
curl https://api.hyprlab.io/v1/images/generations \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $HYPRLAB_API_KEY" \
-d '{
"model": "ideogram-v2",
"prompt": "cat",
"negative_prompt": "..to not include specific elements.",
"aspect_ratio": "1:1",
"magic_prompt_option": "Auto",
"style_type": "Anime",
"response_format": "url",
"output_format": "webp"
}'
👉🏻 Request Body Documentation
prompt
(string, required)
Description: Main text input to guide the generation process.
Validation Rules:
Must be a non-empty string.
Must not exceed 10,000 characters.
negative_prompt
(string, optional)
Description: Input that defines what NOT to include during generation.
Validation Rules:
Must not exceed 10,000 characters.
aspect_ratio
(string, optional)
Description: Defines the aspect ratio of the output.
Validation Rules:
Must be one of the following valid aspect ratios:
1:1
, 16:9
, 9:16
, 4:3
, 3:4
, 3:2
, 2:3
, 16:10
, 10:16
, 3:1
, 1:3
.
style_type
(string, optional)
Description: Specifies the artistic style or genre for the output.
Validation Rules:
Must be one of the following valid style types:
magic_prompt_option
(string, optional)
Description: Toggle for an automatic magic prompt system.
Validation Rules:
Must be one of the following:
response_format
(string, optional)
Description: Defines how the response data is formatted.
Validation Rules:
Must be either "url"
or "b64_json"
.
output_format
(string, optional)
Description: Specifies the format of the output image.
Validation Rules:
Must be one of the following formats: