Assets

Create a sticker from an image or animation

Image: generates transparent sticker artwork for 1 credit and returns the existing 201 image receipt. Animation: creates one sticker_animation library asset and automatically prepares Telegram, WhatsApp, WeChat and Discord files in a CPU batch using its saved video and mask, for zero generation credits. Requires a completed video/webm/hevc with a background-removal result. Reuses the same sticker and valid cached files. Omit the body or send {}. force:true regenerates completed platform exports. Returns 202 while preparing, otherwise 200. Poll GET /v1/assets/{sticker_id}/sticker. Each format includes a validated file_url and a public_url when mascot asset hosting is enabled. Platform failures are independent.

Select Masko-API-Version: 2026-09-26 (or api_version=2026-09-26) for the canonical mascot contract shown first. Existing unversioned clients keep legacy collection fields. A mascot_id query filter also selects the canonical contract. Mixing identifier names returns 400.

post/v1/assets/{id}/sticker

Request

  • Base URL: https://api.masko.ai
  • URL: https://api.masko.ai/v1/assets/{id}/sticker
  • Auth: HTTP bearer

Path parameters

idstring uuid required

Query parameters

api_version'2026-09-26' | 'legacy'

Equivalent to the version header, for polling URLs and clients that accept only relative paths. Header and query must agree.

Headers

Idempotency-Keystring

Account-scoped key (1 to 255 characters, ideally a UUID). Retries must preserve the credential workspace, effective API version, URL, content type and exact body bytes, including multipart boundaries; different inputs return 409 idempotency_key_reused. Completed responses, including 500 errors, replay for 24 hours after completion with current resource access checked again. Running or unconfirmed executions return 409 idempotency_request_in_progress and do not expire automatically. A receipt persistence failure returns 503 idempotency_persistence_failed: retry only with the same key and inspect the operation outcome before starting a new request.

Masko-API-Version'2026-09-26' | 'legacy'

Use 2026-09-26 for mascot_id resource fields. Unversioned shared routes retain the legacy contract.

Request body

forceboolean

Response

Reused prepared animated sticker

Changes

No recorded changes to this operation across all 1 revision of this API.