Stable Diffusion 3
Base-Path:
https://api.hyprlab.io/v1
Image Path:
https://api.hyprlab.io/v1/images/generations
Making Request:
curl https://api.hyprlab.io/v1/images/generations \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $HYPRLAB_API_KEY" \
-d '{
"model": "sd3-large",
"prompt": "A cute cat",
"negative_prompt": "..to not include specific elements."
"aspect_ratio": "1:1",
"response_format": "url",
"output_format": "webp"
}'
👉🏻 Request Body Documentation
prompt
(string, required)
prompt
(string, required)Description: What you wish to see in the output image. A strong, descriptive prompt that clearly defines elements, colors, and subjects will lead to better results.
Addtional Info: To control the weight of a given word use the format
(word:weight)
, whereword
is the word you'd like to control the weight of andweight
is a value between 0 and 1. For example:The sky was a crisp (blue:0.3) and (green:0.8)
would convey a sky that was blue and green, but more green than blue.
Validation Rules:
Must be a non-empty string.
Must not be longer than
10,000
characters.
aspect_ratio
(string, optional)
aspect_ratio
(string, optional)Description: Specifies the aspect ratio of the output.
Validation Rules:
Must be one of the following supported aspect ratios:
16:9
,1:1
,21:9
,2:3
,3:2
,4:5
,5:4
,9:16
,9:21
.
seed
(integer, optional)
seed
(integer, optional)Description: A seed for deterministic generation during processing.
Validation Rules:
Must be an integer between
0
and4294967294
.
negative_prompt
(string, optional)
negative_prompt
(string, optional)Description: A prompt meant to negatively influence or guide processing to not include specific elements.
Validation Rules:
Must be a string.
Must not exceed
10,000
characters.
response_format
(string, optional)
response_format
(string, optional)Description: Format of the response data.
Validation Rules:
Must be either
"url"
or"b64_json"
.
output_format
(string, optional)
output_format
(string, optional)Description: Format of the output image.
Validation Rules:
Must be one of the following:
"png"
,"jpeg"
,"webp"
.
🏞️ Stable Diffusion 3 Models:
Last updated