Skip to main content
POST
/
api
/
ai
/
image
/
generation
{
  "model": "<string>",
  "images": [
    {
      "type": "image_url",
      "image_url": {
        "url": "<string>"
      }
    }
  ],
  "text": "<string>",
  "count": 123,
  "metadata": {
    "model": "<string>",
    "revisedPrompt": "<string>",
    "usage": {
      "promptTokens": 123,
      "completionTokens": 123,
      "totalTokens": 123
    }
  },
  "nextActions": "Images have been generated successfully. Use the returned URLs or base64 data to access them."
}

Authorizations

Authorization
string
header
required

Body

application/json
model
string
required
Example:
prompt
string
required
Example:

Response

model
string
images
object[]
text
string
count
integer
metadata
object
nextActions
string
Example: