cURL
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>" ] }
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Basic <encoded-value>
<encoded-value>
username:password
Success
The response is of type object.
object