Developer API
Integrate ZenIMG upload capabilities directly into your applications.
Authentication
Pass your API key as a Bearer token in the Authorization header.
Authorization: Bearer YOUR_API_KEY
Upload Endpoint
POST https://api.zenimg.net/v1/upload
curl --location 'https://api.zenimg.net/v1/upload' --header 'Authorization: Bearer YOUR_API_KEY' --form 'image=@"/path/to/file.jpg"'
Response
{
"status": 200,
"success": true,
"data": {
"id": "x8f9Aa",
"url": "https://img.zenlite.online/x8f9Aa.jpg",
"delete_url": "https://img.zenlite.online/delete/x8f9Aa/token"
}
}