Remove AITags (bulk)
post
https://api.imagekit.io
/v1/files/removeAITags
Remove AITags in bulk API
In case of an error, you will get an error code along with the error message. On success, you will receive a
200
status code with an array of successfully updated fileIds
.Here is an example request to understand the API usage.
cURL
Node.js
Python
PHP
Java
Ruby
Go
.Net
curl -X POST "https://api.imagekit.io/v1/files/removeAITags" \
-H 'Content-Type: application/json' \
-u your_private_key: -d '
{
"fileIds" : [
"file_id_1",
"file_id_2"
],
"AITags" : [
"ai_tag_to_remove_1",
"ai_tag_to_remove_2"
]
}
'
var ImageKit = require("imagekit");
var imagekit = new ImageKit({
publicKey : "your_public_api_key",
privateKey : "your_private_api_key",
urlEndpoint : "https://ik.imagekit.io/your_imagekit_id/"
});
var fileIds = ["file_id_1", "file_id_2"];
var tags = ["ai_tag_to_remove_1", "ai_tag_to_remove_2"];