cURL
curl --request POST \ --url https://api.shuttleai.com/v1/images/generations \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "model": "<string>", "prompt": "<string>" }'
{ "created": 123, "data": [ { "url": "<string>" } ] }
Returns a image.generation object with the generated image.
image.generation
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Model response
The response is of type object.
object