Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Headers
Bearer authentication header of the form Bearer <API_KEY>, where <API_KEY> is your auth token.
Specifies which format to return the response in. With image/png
and image/jpeg
, the server will populate the response body with a binary image of the specified format. With application/json
, the server will populate the response body with schema {base64: [string, ...], finishReason: string enum [SUCCESS, CONTENT_FILTERED], seed: int}. base64
contains a list of base64-encoded image files in PNG format. finishReason
is SUCCESS unless safety_check=true
and the image response was filtered. seed
is the seed that was used when generating the image.
image/png
, image/jpeg
, application/json
Body
The name of the model to use.
"black-forest-labs/flux-1-dev"
The prompt to generate completions for. It can be a single string or an array of strings. It can also be an array of integers or an array of integer arrays, which allows to pass already tokenized prompt. If multiple prompts are specified, several choices with corresponding index will be returned in the output."
"The sky is"
Width
512 <= x <= 2048
Height
512 <= x <= 2048
Number of steps to use for the image generation process.
1 <= x <= 30
10
Response
OK