POST
/
images
/
generations
Generate images from a prompt
curl --request POST \
  --url https://{controlPlaneURL}/api/llm/images/generations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "prompt": "<string>",
  "background": "<string>",
  "model": "<string>",
  "moderation": "<string>",
  "n": 1,
  "output_compression": 123,
  "output_format": "<string>",
  "partial_images": 0,
  "quality": "<string>",
  "response_format": "url",
  "size": "<string>",
  "stream": false,
  "style": "<string>",
  "user": "<string>"
}'
{
  "created": 123,
  "data": [
    {
      "url": "<string>",
      "b64_json": "<string>",
      "revised_prompt": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Response

200
application/json

Successfully generated images

The response is of type object.