POST
/
api
/
message
/
edit_image
curl --request POST \
  --url https://api.trieve.ai/api/message/edit_image \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --header 'TR-Dataset: <tr-dataset>' \
  --data '{
  "input_images": [
    {
      "file_name": "<string>",
      "image_src": {
        "base64": "<string>"
      }
    }
  ],
  "mime_type": "<string>",
  "n": 1,
  "prompt": "<string>",
  "quality": "low",
  "size": "1024x1024"
}'
{
  "image_urls": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

Headers

TR-Dataset
string
required

The dataset id or tracking_id to use for the request. We assume you intend to use an id if the value is a valid uuid.

Body

application/json

JSON request payload to edit an image

The body is of type object.

Response

200
application/json

A list of base64 encoded images

The response is of type object.