Image Generation
Openai Images Generations
Changed onGenerate image using OpenAI Images API
post/v1/images/generations
Request
- Base URL: https://api.deepinfra.com
- URL: https://api.deepinfra.com/v1/images/generations
- Auth: HTTP bearer
Headers
xi-api-keystring nullable
x-api-keystring nullable
Request body
Example request
{
"model": "black-forest-labs/FLUX-1-schnell",
"prompt": "A photo of an astronaut riding a horse on Mars."
}Response
Successful Response
Changes
- info
added the new
urlenum value to the request property/
- info
- info
api tag
Image Generationadded - info
added the new optional
headerrequest parameterx-api-key
- info