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 token must be a valid Shuttle API key. All keys are prefixed with shuttle-. Example: Bearer shuttle-abc123def456ghi789jkl012mno345pq
shuttle-
Bearer shuttle-abc123def456ghi789jkl012mno345pq
Model response
Show child attributes