POST
/
v1
/
images
/
generations
curl --request POST \
  --url https://api.algo-tech.ai/v1/images/generations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "black-forest-labs/flux-1-dev",
  "prompt": "The sky is",
  "width": 1024,
  "height": 1024,
  "num_inference_steps": 10
}'
This response does not have an example.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Authorization
string
default:Bearer <API_KEY>
required

Bearer authentication header of the form Bearer <API_KEY>, where <API_KEY> is your auth token.

Accept
enum<string>

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.

Available options:
image/png,
image/jpeg,
application/json

Body

application/json

Response

200

OK