POST
/
image
/
generations
curl --request POST \
  --url https://api.horay.ai/v1/image/generations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "black-forest-labs/FLUX.1-schnell",
  "prompt": "an island near sea, with seagulls, moon shining over the sea, light house, boats int he background, fish flying over the sea",
  "image_size": "1024x1024",
  "seed": 4999999999
}'
{
  "images": [
    {
      "url": "<string>"
    }
  ],
  "timings": {
    "inference": 123
  },
  "seed": 123
}

Authorizations

Authorization
string
header
required

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

Body

application/json
model
enum<string>
default:
black-forest-labs/FLUX.1-schnell
required
Available options:
black-forest-labs/FLUX.1-schnell
prompt
string
default:
an island near sea, with seagulls, moon shining over the sea, light house, boats int he background, fish flying over the sea
required
image_size
enum<string>
default:
1024x1024
required
Available options:
1024x1024,
1536x1536,
768x512,
768x1024,
1024x576,
576x1024
seed
integer
Required range: 0 < x < 9999999999

Response

200
application/json
200
images
object[]
timings
object
seed
integer