API Reference
request and response description
Image edit contract
{
"input": "http(s)://{public_url}/image.png" |
"storage://{storage_name}/{image_folder}/image.png",
"operations": {
"restorations": {
"decompress": null |
"moderate" | "strong" | "auto",
"upscale": null |
"smart_enhance" | "smart_resize" | "faces" |
"digital_art" | "photo",
"polish": false | true
},
"resizing": null | {
"width": null | "auto" | 500 | "150%",
"height": null | "auto" | 500 | "150%",
"fit": "bounds" | "cover" | "canvas" | "outpaint" | "crop" |
{"type": "crop", "crop": "center" | "smart"} |
{"type": "outpaint", "feathering": "15%"}
"adjustments": null | {
"hdr": 0 | {"intensity": 0, "stitching": true | false},
"exposure": 0,
"saturation": 0,
"contrast": 0,
"sharpness": 0
},
"background": null | {
"remove": false | true | {
"category": "general" | "cars" | "products",
"selective": {
"object_to_keep": "<object>"
},
"clipping": false | true
},
"blur": false | true | {
"category": "general" | "cars" | "products",
"selective": {
"object_to_keep": "<object>"
},
"type": "regular" | "lens",
"level": "low" | "medium" | " high"
}
"color": "#ffffff" | "<color-hex>" | "transparent"
},
"padding": null | "10%" | "5% 25%",
"privacy": {
"blur_car_plate": false | true
},
"generative": null | {
"style_transfer": null | {
"style_reference_image": "storage://{storage_name}/{image_folder}/reference.jpeg",
"prompt": null | "<string>",
"style_strength": null | 0.75,
"denoising_strength": null | 0.75,
"depth_strength": null | 1.0
}
}
},
"output": null | "storage://{storage_name}/{image_folder}/image.jpeg" | {
"destination": null | "storage://{storage_name}/{image_folder}/image.jpeg",
"metadata": null | {"dpi": null | 300},
"format": "jpeg" | "png" | "webp" | "avif" | "tiff" | {
"type": "jpeg",
"quality": 85, // format-specific options
"progressive": true | false
} | {
"type": "png",
"compression": "fast" | "best" | "optimal"
} | {
"type": "webp" | "avif" | "tiff"
"compression": {
"type": "lossy" | "lossless",
"quality": 90
}
}
}
}To work with the Claid API, send requests over HTTPS and authenticate using the Authorization header in the following format:Authorization: Bearer <YOUR_API_KEY>. You do not need to provide a password.
To get your API key, sign in to your Claid account and click Create API key button from the Overview or API keys pages.
Claid API’s base URL is https://api.claid.ai/v1/. All available endpoints are listed in the Storage and Image sections.
Bearer
This API uses OAuth 2.0 bearer token (API key) to authorize requests.
URL of the input image. Should be from 1 to 512 characters. Image must be accessible by our system.
storage://storage_1/path/image.jpgCustomize the result output.
{"format":"jpeg"}Successful Response
Authorization is required.
No API calls left.
Not enough permissions.
Unprocessable Entity.
Too many requests.
Request headers:
Read a response
Response headers:
Last updated
