CropDen: image sizes and AI image tools

v1.0.0
io.github.geektao1024/cropden Checked 4 days ago Published 1 month ago

Platform image sizes with safe zones (free), plus AI extend, upscale and background removal.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_image_sizes Image sizes for social media and passports

Exact image sizes for Instagram, YouTube, TikTok, X, LinkedIn, Facebook, Discord, Twitch, Pinterest, marketplaces and passport photos, with safe zones (pixel areas the app covers or crops), upload limits and minimum sizes. Free, no API key. With no arguments it lists every size id; pass `id` (e.g. "youtube-banner/banner") or `platform` (e.g. "Instagram") for full details.

ParameterTypeDescription
idstringA size id like "instagram-story/story", or a group id like "youtube-banner".
platformstringPlatform name, e.g. "YouTube", or "passport".

ai_extend_image AI image extender (outpaint)

Extend an image to a wider or taller shape with AI, e.g. a portrait photo to a 16:9 YouTube thumbnail without cropping the subject. Costs 5 CropDen credits per run, refunded if it fails. Needs a CropDen API key. Input: PNG, JPEG or WebP, up to 10 MB and 2048 px on the longest side. Returns a link to the result, valid 7 days. The model redraws the whole frame, so tiny details of the original can change.

ParameterTypeDescription
ratio *stringTarget shape, width:height.
image_base64stringThe image as base64 (a data: URL is fine). Use instead of image_url for local files.
image_urlstringPublic https URL of a PNG, JPEG or WebP image.

ai_upscale_image AI image upscaler

Upscale an image 2x or 4x with AI. Costs 8 credits for 2x and 12 for 4x, refunded if it fails. Needs a CropDen API key. Input: PNG, JPEG or WebP, up to 10 MB; longest side up to 2048 px for 2x or 1024 px for 4x. Returns a link to the result, valid 7 days.

ParameterTypeDescription
factor *number
image_base64stringThe image as base64 (a data: URL is fine). Use instead of image_url for local files.
image_urlstringPublic https URL of a PNG, JPEG or WebP image.

ai_remove_background Remove background

Remove the background of an image with AI; the result is a PNG with transparency. Costs 1 credit per run, refunded if it fails. Needs a CropDen API key. Input: PNG, JPEG or WebP, up to 10 MB and 2048 px on the longest side. Returns a link to the result, valid 7 days.

ParameterTypeDescription
image_base64stringThe image as base64 (a data: URL is fine). Use instead of image_url for local files.
image_urlstringPublic https URL of a PNG, JPEG or WebP image.

get_ai_task Check an AI run

Status of an AI run that was still working when its tool returned. Pass the task_id it gave you; wait about 10 seconds between checks.

ParameterTypeDescription
task_id *string

get_credit_balance Credit balance

How many CropDen credits the API key owner has left.