Adds realistic color to grayscale images.
Required Scope: colorize
Input: PNG, JPEG, WEBP, BMP
Request Body Example:
{ "imageData": "data:image/png..." }
Easy
Editor
Developer Documentation
Integrate powerful AI image processing into your application. Easy Image Edit uses a RESTful API with standard OAuth2 authentication and JSON payloads.
Getting Started
Follow these three steps to perform your first image transformation.
Exchange your credentials for a Bearer JWT.
curl -sS -X POST https://api.easyimgedit.com/oauth/token \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "grant_type=client_credentials&client_id=${ID}&client_secret=${SECRET}"
Post your image data with the token in the header.
Authorization: Bearer <token>
Content-Type: application/json
Success returns a JSON object with the processed image.
{ "imageData": "data:image/png;base64,..." }
Reference
All endpoints process base64 strings and return a data:image URI.
Adds realistic color to grayscale images.
Required Scope: colorize
Input: PNG, JPEG, WEBP, BMP
Request Body Example:
{ "imageData": "data:image/png..." }
AI-powered subject isolation with transparency.
Required Scope: remove_background
Output: Transparent PNG
Request Body Example:
{ "imageData": "data:image/png..." }
Remove background and replace it with a solid hex color.
Required Scope: replace-background
Input: imageData + color (#RGB/#RRGGBB)
Request Body Example:
{
"imageData": "data:image/png...",
"color": "#00AEEF"
}
Fast conversion between multiple web formats.
Required Scope: convert
Request Body Example:
{
"imageData": "data:image/png...",
"outputFormat": "webp"
}
Reduce file size while maintaining visual quality.
Required Scope: compress
Request Body Example:
{
"imageData": "data:image/png...",
"quality_level": 1
}
Add a text watermark to an image.
Required Scope: watermark
Request Body Example:
{
"imageData": "data:image/png...",
"text": "© Easy Image Edit",
"fontSize": 36,
"opacity": 0.35,
"color": "#ffffff",
"position": "bottom-right"
}
Increase image dimensions by 2x or 4x.
Required Scope: upscale
Request Body Example:
{
"imageData": "data:image/png...",
"scale": 4
}
Reliability
We use standard HTTP response codes to indicate the success or failure of an API request.
Errors contain a machine-readable string.
{
"error": "insufficient_scope"
}