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>"
]
}
Uses gpt-image-1
to edit an images based on a given prompt. Note that the images must be
base64 encoded and all must have the same mime type.
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>"
]
}
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.
JSON request payload to edit an image
The body is of type object
.
A list of base64 encoded images
The response is of type object
.
Was this page helpful?