删除图片

DELETE/v1/images/{image_id}

删除图片记录,并在图片由 Token360 存储托管时删除对应内容。

使用 GET /v1/images 获取 image_id。只能删除当前 API key 拥有的图片记录。

身份验证

Authorization Bearer

在 Authorization header 中使用 API key 作为 Bearer token。

Path Parameters

image_idstringrequired

图片记录 ID。

Response

idstring

图片记录 ID。

objectstring

固定为 image。

deletedboolean

固定为 true。

请求

Shell
1curl -X DELETE https://api.token360.ai/v1/images/your-image-id \
2  -H "Authorization: Bearer sk-your-api-key"

响应

JSON
1{
2  "id": "your-image-id",
3  "object": "image",
4  "deleted": true
5}
此页面对您有帮助吗?