Images
Image Generation
Generates images based on the prompt using OpenAI's image generation API.
post/v1/images/generations
Request
- Base URL: https://apipie.ai
- URL: https://apipie.ai/v1/images/generations
- Auth: one of:
- HTTP bearer
- API key in header x-api-key
Request body
Example request
{
"prompt": "Its a picture of a dog, driving a car",
"model": "dall-e-3",
"n": 1,
"size": "1024x1024 is supported by all models",
"quality": "standard or hd",
"response_format": "url",
"style": "vivid",
"image": "https://apipie.ai/temp/47g43g6f476vf.jpg"
}Response
Result of the Image Generation
Example response
{
"data": [
{
"url": "https://...",
"revised_prompt": "A labrador retriever with lush chocolate fur is driving a red 1974 Stingray and..."
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.