Inference API

Images

View as Markdown

Image generation

/v1/images/generations

Generate an image based on a prompt. This is the endpoint for making generation requests to image generation models.

Request Body

Response Body

data

array

A list of generated image objects.


Image edit

/v1/images/edits

Edit an image based on a prompt. This is the endpoint for making edit requests to image generation models.

Request Body

prompt

string

required

Prompt for image editing.

Response Body

data

array

A list of generated image objects.


Did you find this page helpful?