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": "recraft-v3",
"prompt": "cat",
"size": "1024x1024",
"style": "realistic_image",
"response_format": "url",
"output_format: "webp"
}'
👉🏻 Request Body Documentation
prompt
(string, required)
Description: The main text that influences the image or output generation.
Validation Rules:
Must be a non-empty string.
Must not exceed 10,000 characters in length.
size
(string, optional)
Description: The dimensions (in pixels) of the generated image.
Validation Rules:
Must be one of the following valid sizes:
1024x1024
, 1365x1024
, 1024x1365
, 1536x1024
, 1024x1536
,
1820x1024
, 1024x1820
, 1024x2048
, 2048x1024
, 1434x1024
,
1024x1434
, 1024x1280
, 1280x1024
, 1024x1707
, 1707x1024
.
style
(string, optional)
Description: The artistic style or filter applied to the generated image.
Validation Rules:
Must be one of the following valid styles:
"digital_illustration/pixel_art"
,
"digital_illustration/hand_drawn"
,
"digital_illustration/grain"
,
"digital_illustration/infantile_sketch"
,
"digital_illustration/2d_art_poster"
,
"digital_illustration/handmade_3d"
,
"digital_illustration/hand_drawn_outline"
,
"digital_illustration/engraving_color"
,
"digital_illustration/2d_art_poster_2"
,
"realistic_image/b_and_w"
,
"realistic_image/hard_flash"
,
"realistic_image/natural_light"
,
"realistic_image/studio_portrait"
,
"realistic_image/enterprise"
,
"realistic_image/motion_blur"
,
"vector_illustration/engraving"
,
"vector_illustration/line_art"
,
"vector_illustration/line_circuit"
,
"vector_illustration/linocut"
.
response_format
(string, optional)
Description: Specifies how the response data is formatted.
Validation Rules:
Must be either "url"
or "b64_json"
.
output_format
(string, optional)
Description: Format of the generated output image.
Validation Rules:
Must be one of the following valid formats: "png"
, "jpeg"
, "webp"
.