Create image
Changed onGenerate images from a text prompt using image generation models
post/v1/images/generations
Request
- Base URLhttps://router.requesty.ai
- AuthHTTP bearer
Request body
Example request
{
"model": "azure/openai/gpt-image-1",
"prompt": "A watercolor painting of a Japanese garden in autumn",
"n": 1,
"size": "1024x1024",
"quality": "auto",
"response_format": "url",
"background": "auto",
"output_format": "png"
}Response
Image generation response
Example response
{
"created": 1719000000
}Changes
- info
added the non-success response with the status
- info