POST
/
v1
/
generate
curl --request POST \
  --url http://api.imagerouter.com/v1/generate \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "num": 123,
  "prompt": "<string>",
  "model": "flux-schnell",
  "size": {
    "width": 5000.5,
    "height": 5000.5
  },
  "format": "jpg"
}'
{
  "urls": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json
prompt
string
required
model
enum<string>
required
Available options:
flux-schnell,
flux-pro-ultra,
imagen-3,
photon,
recraft-v3
size
object
required
num
number

a positive number

Required range: x > 0
format
enum<string>
Available options:
jpg,
webp

Response

200
application/json
Success
urls
string[]
required