Assets

Export one image, video or chat sticker

Creates a derivative of this exact completed source asset. Create a library sticker first with POST /v1/assets/{animation_id}/sticker to prepare all four platforms. Its sticker_animation asset ID can then request an individual platform export here. Image sources: image, transparent_image or sticker_image; formats PNG/WebP. Size is the maximum image dimension (32–2048), preserving aspect ratio and alpha without upscaling. Video sources: video/webm/hevc with an existing background-removal job; size is width (32–1920). Video formats: webm, hevc, prores (ProRes 4444 MOV with alpha for video editing), stacked_video, gif, lottie, dotlottie, png_sequence. Omit size for original. Choose format: sticker-telegram-v1, sticker-whatsapp-v1, sticker-wechat-v1 or sticker-discord-v1 for animated chat stickers. Each version determines codec, dimensions and duration and keeps 10% file-size headroom. Omit size. Only validated results become downloadable. The legacy sticker_profile input remains accepted. No generation credits. Reuses a pending/completed export for the same source/format/size; force requests a new file without changing old URLs. Poll the job, then GET this export list for signed downloads. Accepts Idempotency-Key.

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}/exports

Request

  • Base URL: https://api.masko.ai
  • URL: https://api.masko.ai/v1/assets/{id}/exports
  • 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

format'png' | 'webp' | 'webm' | 'hevc' | 'prores' | 'stacked_video' | 'gif' | 'animated_webp' | 'apng' | 'lottie' | 'dotlottie' | 'png_sequence' | 'sticker-telegram-v1' | 'sticker-whatsapp-v1' | 'sticker-wechat-v1' | 'sticker-discord-v1'
sticker_profile'telegram-v1' | 'whatsapp-v1' | 'wechat-v1' | 'discord-v1'

Legacy input. Prefer format: sticker-telegram-v1, sticker-whatsapp-v1, sticker-wechat-v1 or sticker-discord-v1.

sizeinteger

Maximum image dimension, or video width. Omit for original size. Videos support up to 1920.

forceboolean

Response

Completed reusable export

Changes

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