cURL
curl --request POST \ --url https://inference.api.nscale.com/v1/images/generations \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json; charset=utf-8' \ --data '{ "model": "black-forest-labs/FLUX.1-schnell", "n": 1, "prompt": "A serene mountain landscape at sunset with a lake reflecting the orange sky", "size": "512x512" }'
{ "created": 123, "data": [ { "b64_json": "<string>" } ] }
Creates an image based on the provided text prompt.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The response is of type object.
object