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": "flux-1.1-pro",
"prompt": "A cute cat",
"image_prompt": "https://site.com/path/of/image.png"
"steps": 20,
"height": 1024,
"width": 1024,
"response_format": "url",
"output_format": "webp"
}'
👉🏻 FLUX-KONTEXT - Request Body Documentions
prompt
(string, required)
Description: The main text prompt that influences the output generation.
Validation:
Must be a non-empty string.
input_image
(string, optional)
Description: This is used to guide the generation.
aspect_ratio
(string, optional)
Description: Defines the aspect ratio of the generated output.
Validation:
Must be one of the following:
response_format
(string, optional)
Description: The format in which the response will be returned.
output_format
(string, optional)
Description: The file format for the output.
Validation:
Must be one of the following formats:
👉🏻 FLUX PRO ULTRA - Request Body Documentions
prompt
(string, required)
Description: The main text prompt that influences the output generation.
Validation:
Must be a non-empty string.
image_prompt
(string, optional)
Description: This is used to guide the generation.
image_prompt_strength
(number, optional)
Description: Blend between the prompt and the image_prompt
.
Validation Rules:
Must be a number between 0
and 1
.
aspect_ratio
(string, optional)
Description: Defines the aspect ratio of the generated output.
Validation:
Must be one of the following:
raw
(boolean, optional)
Description: Determines whether the raw output should be returned.
Validation:
Must be a boolean (true
or false
).
response_format
(string, optional)
Description: The format in which the response will be returned.
output_format
(string, optional)
Description: The file format for the output.
Validation:
Must be one of the following formats:
👉🏻 FLUX PRO - Request Body Documentions
prompt
(string, required)
Description: A non-empty string that will act as the main prompt
for the input.
Validation:
Must not be an empty string (must contain at least one non-whitespace character).
image_prompt
(string, optional)
Description: This is used to guide the generation.
steps
(integer, optional)
Description: The number of steps involved in processing.
Validation:
Must be between 1 and 50, inclusive.
height
(integer, optional)
Description: The height of an object, measured in pixels.
Validation:
Must be between 256 and 1440, inclusive.
Must be a multiple of 32.
width
(integer, optional)
Description: The width of an object, measured in pixels.
Validation:
Must be between 256 and 1440, inclusive.
Must be a multiple of 32.
response_format
(string, optional)
Description: Format in which the response should be returned.
Validation:
Must be either "url"
or "b64_json"
.
output_format
(string, optional)
Description: Specifies the output format of the image.
Validation:
Must be one of: "png"
, "jpeg"
, or "webp"
.