{"openapi":"3.1.0","info":{"title":"Bannerbear V5 API","version":"5.0"},"servers":[{"url":"https://api.bannerbear.com/v5","description":"Async render host. All endpoints."},{"url":"https://sync.api.bannerbear.com/v5","description":"Synchronous render host. Only accepts POST /images — returns the finished image inline instead of a pending record. Long-running requests may return 408."}],"security":[{"bearerAuth":[]}],"paths":{"/account":{"get":{"summary":"Get account info","responses":{"200":{"description":"Account details for the authenticated workspace and API key","content":{"application/json":{"schema":{"type":"object","properties":{"uid":{"type":"string","description":"Workspace UID"},"workspace":{"type":"string","description":"Workspace name"},"plan":{"type":"string","description":"Subscription plan"},"quota":{"type":"object","description":"API credits — renders, encodes and other first-party work","properties":{"max":{"type":"integer"},"current":{"type":"integer"},"remaining":{"type":"integer"}}},"ai_quota":{"type":"object","description":"AI credits — a separate pool covering model calls (background removal, AI image models, transcription, voiceover). Priced identically on every plan. May be fractional: one background removal is 1 credit, an AI detect is 0.1.","properties":{"max":{"type":"integer"},"current":{"type":"number"},"remaining":{"type":"number"}}},"api_key":{"type":"object","properties":{"name":{"type":"string","description":"API key name / identifier"},"scopes":{"type":"array","items":{"type":"string","enum":["images:read","images:write","image_templates:read","image_templates:write","animations:read","animations:write","animation_templates:read","animation_templates:write","batches:read","batches:write","webhooks:read","webhooks:write","instant_urls:read","instant_urls:write","publications:read","publications:write","assets:read","assets:write","tools:read","tools:write","workflows:read","workflows:write"]},"description":"Endpoints this key is authorized for (e.g. `images:write`). Empty array means full access — no scope restrictions."},"allowed_origins":{"type":"array","items":{"type":"string"},"description":"Origins allowed to use this key from a browser (e.g. `https://mysite.com`). Empty array = no origin restriction."}}},"created_at":{"type":"string","format":"date-time"}}}}}}}}},"/image_templates":{"get":{"summary":"List image templates","parameters":[{"name":"page","in":"query","schema":{"type":"integer"},"required":false}],"responses":{"200":{"description":"Paginated list of templates","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","description":"Image template. `config.objects` is the full canvas config — matches exactly the shape PATCH accepts, so responses round-trip cleanly.","properties":{"uid":{"type":"string"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"tags":{"type":"array","items":{"type":"string"}},"width":{"type":"integer"},"height":{"type":"integer"},"responsive":{"type":"boolean","description":"True if the template has responsive sizing or positioning"},"preview":{"type":"string","nullable":true,"format":"uri","description":"Preview image URL"},"ui_write_access":{"type":"string","enum":["owner_only","team"],"description":"Who can edit this template in the dashboard — `owner_only` (default) or `team`"},"api_write_access":{"type":"string","enum":["team","owner_only","nobody"],"description":"Who can update or delete this template via the API — `team` (default, any workspace API key), `owner_only` (only API keys owned by the template's creator), or `nobody` (locked; unlock via dashboard)"},"config":{"type":"object","description":"Full canvas configuration.","properties":{"objects":{"type":"array","items":{"$ref":"#/components/schemas/Layer"},"description":"Layers on the canvas"}}},"created_at":{"type":"string","format":"date-time"}}}}}}}}},"post":{"summary":"Create an image template","description":"Create a new image template in the workspace. Pass `config` to seed the canvas with layers; omit it to start from an empty template that can be edited later.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","description":"Template name"},"description":{"type":"string","nullable":true,"description":"Template description"},"tags":{"type":"array","items":{"type":"string"},"description":"Template tags"},"width":{"type":"integer","description":"Canvas width in pixels"},"height":{"type":"integer","description":"Canvas height in pixels"},"config":{"type":"object","description":"Full canvas configuration. Replaces the existing config in place.","properties":{"objects":{"type":"array","items":{"$ref":"#/components/schemas/Layer"},"description":"Layers on the canvas"}}}}}}}},"responses":{"201":{"description":"Template created","content":{"application/json":{"schema":{"type":"object","description":"Image template. `config.objects` is the full canvas config — matches exactly the shape PATCH accepts, so responses round-trip cleanly.","properties":{"uid":{"type":"string"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"tags":{"type":"array","items":{"type":"string"}},"width":{"type":"integer"},"height":{"type":"integer"},"responsive":{"type":"boolean","description":"True if the template has responsive sizing or positioning"},"preview":{"type":"string","nullable":true,"format":"uri","description":"Preview image URL"},"ui_write_access":{"type":"string","enum":["owner_only","team"],"description":"Who can edit this template in the dashboard — `owner_only` (default) or `team`"},"api_write_access":{"type":"string","enum":["team","owner_only","nobody"],"description":"Who can update or delete this template via the API — `team` (default, any workspace API key), `owner_only` (only API keys owned by the template's creator), or `nobody` (locked; unlock via dashboard)"},"config":{"type":"object","description":"Full canvas configuration.","properties":{"objects":{"type":"array","items":{"$ref":"#/components/schemas/Layer"},"description":"Layers on the canvas"}}},"created_at":{"type":"string","format":"date-time"}}}}}},"400":{"description":"Missing required parameter (e.g. name)","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"422":{"description":"Validation failure — e.g. width/height must be between 100 and 5000","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}}}}},"/image_templates/{uid}":{"get":{"summary":"Get an image template","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Template details","content":{"application/json":{"schema":{"type":"object","description":"Image template. `config.objects` is the full canvas config — matches exactly the shape PATCH accepts, so responses round-trip cleanly.","properties":{"uid":{"type":"string"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"tags":{"type":"array","items":{"type":"string"}},"width":{"type":"integer"},"height":{"type":"integer"},"responsive":{"type":"boolean","description":"True if the template has responsive sizing or positioning"},"preview":{"type":"string","nullable":true,"format":"uri","description":"Preview image URL"},"ui_write_access":{"type":"string","enum":["owner_only","team"],"description":"Who can edit this template in the dashboard — `owner_only` (default) or `team`"},"api_write_access":{"type":"string","enum":["team","owner_only","nobody"],"description":"Who can update or delete this template via the API — `team` (default, any workspace API key), `owner_only` (only API keys owned by the template's creator), or `nobody` (locked; unlock via dashboard)"},"config":{"type":"object","description":"Full canvas configuration.","properties":{"objects":{"type":"array","items":{"$ref":"#/components/schemas/Layer"},"description":"Layers on the canvas"}}},"created_at":{"type":"string","format":"date-time"}}}}}}}},"patch":{"summary":"Update an image template","description":"Update any subset of template attributes. Passing `config` fully replaces the template's canvas configuration.","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Template name"},"description":{"type":"string","nullable":true,"description":"Template description"},"tags":{"type":"array","items":{"type":"string"},"description":"Template tags"},"width":{"type":"integer","description":"Canvas width in pixels"},"height":{"type":"integer","description":"Canvas height in pixels"},"config":{"type":"object","description":"Full canvas configuration. Replaces the existing config in place.","properties":{"objects":{"type":"array","items":{"$ref":"#/components/schemas/Layer"},"description":"Layers on the canvas"}}}}}}}},"responses":{"200":{"description":"Updated template","content":{"application/json":{"schema":{"type":"object","description":"Image template. `config.objects` is the full canvas config — matches exactly the shape PATCH accepts, so responses round-trip cleanly.","properties":{"uid":{"type":"string"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"tags":{"type":"array","items":{"type":"string"}},"width":{"type":"integer"},"height":{"type":"integer"},"responsive":{"type":"boolean","description":"True if the template has responsive sizing or positioning"},"preview":{"type":"string","nullable":true,"format":"uri","description":"Preview image URL"},"ui_write_access":{"type":"string","enum":["owner_only","team"],"description":"Who can edit this template in the dashboard — `owner_only` (default) or `team`"},"api_write_access":{"type":"string","enum":["team","owner_only","nobody"],"description":"Who can update or delete this template via the API — `team` (default, any workspace API key), `owner_only` (only API keys owned by the template's creator), or `nobody` (locked; unlock via dashboard)"},"config":{"type":"object","description":"Full canvas configuration.","properties":{"objects":{"type":"array","items":{"$ref":"#/components/schemas/Layer"},"description":"Layers on the canvas"}}},"created_at":{"type":"string","format":"date-time"}}}}}},"400":{"description":"No editable attributes provided","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"403":{"description":"Template's api_write_access is `owner_only` and the caller's API key is not owned by the template's creator","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"404":{"description":"Template not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"422":{"description":"Validation failure — e.g. width/height must be between 100 and 5000","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"423":{"description":"Template's api_write_access is `nobody` — the owner must unlock it via the dashboard","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}}}},"delete":{"summary":"Delete an image template","description":"Soft-deletes the template. Existing renders that reference it stay intact, but the template will no longer appear in list/get calls and can no longer be used for new renders.","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Template deleted"},"403":{"description":"Template's api_write_access is `owner_only` and the caller's API key is not owned by the template's creator","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"423":{"description":"Template's api_write_access is `nobody` — the owner must unlock it via the dashboard","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}}}}},"/images":{"get":{"summary":"List images","parameters":[{"name":"page","in":"query","schema":{"type":"integer"},"required":false}],"responses":{"200":{"description":"Paginated list of images","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"uid":{"type":"string"},"status":{"type":"string","enum":["pending","completed","failed"]},"template":{"type":"string"},"files":{"type":"object","description":"Output file URLs keyed by format"},"metadata":{"type":"string","nullable":true},"error":{"type":"string","nullable":true,"description":"Error message (only present on failure)"},"self":{"type":"string","format":"uri"},"created_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","format":"date-time","nullable":true}}}}}}}}},"post":{"summary":"Create an image","description":"Create an image render. Async on api.bannerbear.com (returns 202 + pending record, poll via GET /images/{uid} or subscribe via webhook). Sync on sync.api.bannerbear.com (returns 200 + completed image inline, or 408 if the render exceeds the sync timeout).","servers":[{"url":"https://api.bannerbear.com/v5","description":"Async — returns 202"},{"url":"https://sync.api.bannerbear.com/v5","description":"Sync — returns 200 or 408"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageCreateRequest"}}}},"responses":{"200":{"description":"Sync render complete (sync host only)","content":{"application/json":{"schema":{"type":"object","properties":{"uid":{"type":"string"},"status":{"type":"string","enum":["pending","completed","failed"]},"template":{"type":"string"},"files":{"type":"object","description":"Output file URLs keyed by format"},"metadata":{"type":"string","nullable":true},"error":{"type":"string","nullable":true,"description":"Error message (only present on failure)"},"self":{"type":"string","format":"uri"},"created_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","format":"date-time","nullable":true}}}}}},"202":{"description":"Async render accepted (async host only)","content":{"application/json":{"schema":{"type":"object","properties":{"uid":{"type":"string"},"status":{"type":"string","enum":["pending","completed","failed"]},"template":{"type":"string"},"files":{"type":"object","description":"Output file URLs keyed by format"},"metadata":{"type":"string","nullable":true},"error":{"type":"string","nullable":true,"description":"Error message (only present on failure)"},"self":{"type":"string","format":"uri"},"created_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","format":"date-time","nullable":true}}}}}},"402":{"description":"API quota exhausted — upgrade required","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"403":{"description":"API key does not have access to this template","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"404":{"description":"Template not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"408":{"description":"Sync render timed out (sync host only)"},"422":{"description":"Payload validation failure — e.g. invalid modification, unknown attribute, bad option value","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}}}}},"/images/{uid}":{"get":{"summary":"Get an image","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Image details","content":{"application/json":{"schema":{"type":"object","properties":{"uid":{"type":"string"},"status":{"type":"string","enum":["pending","completed","failed"]},"template":{"type":"string"},"files":{"type":"object","description":"Output file URLs keyed by format"},"metadata":{"type":"string","nullable":true},"error":{"type":"string","nullable":true,"description":"Error message (only present on failure)"},"self":{"type":"string","format":"uri"},"created_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","format":"date-time","nullable":true}}}}}}}}},"/batches":{"get":{"summary":"List batches","parameters":[{"name":"page","in":"query","schema":{"type":"integer"},"required":false}],"responses":{"200":{"description":"Paginated list of batches","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"uid":{"type":"string"},"type":{"type":"string","enum":["images"]},"status":{"type":"string","enum":["pending","completed"]},"total":{"type":"integer"},"counts":{"type":"object","properties":{"completed":{"type":"integer"},"failed":{"type":"integer"},"invalid":{"type":"integer"},"pending":{"type":"integer"}}},"errors":{"type":"array","items":{"type":"object"}},"items":{"type":"array","items":{"type":"object","properties":{"uid":{"type":"string"},"status":{"type":"string","enum":["pending","completed","failed"]},"template":{"type":"string"},"files":{"type":"object","description":"Output file URLs keyed by format"},"metadata":{"type":"string","nullable":true},"error":{"type":"string","nullable":true,"description":"Error message (only present on failure)"},"self":{"type":"string","format":"uri"},"created_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","format":"date-time","nullable":true}}}},"self":{"type":"string","format":"uri"},"created_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","format":"date-time","nullable":true}}}}}}}}},"post":{"summary":"Create a batch","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["type","items"],"properties":{"type":{"type":"string","enum":["images"],"description":"Batch type"},"items":{"type":"array","description":"Array of image payloads (max 100)","items":{"$ref":"#/components/schemas/ImageCreateRequest"}}}}}}},"responses":{"202":{"description":"Batch creation accepted","content":{"application/json":{"schema":{"type":"object","properties":{"uid":{"type":"string"},"type":{"type":"string","enum":["images"]},"status":{"type":"string","enum":["pending","completed"]},"total":{"type":"integer"},"counts":{"type":"object","properties":{"completed":{"type":"integer"},"failed":{"type":"integer"},"invalid":{"type":"integer"},"pending":{"type":"integer"}}},"errors":{"type":"array","items":{"type":"object"}},"items":{"type":"array","items":{"type":"object","properties":{"uid":{"type":"string"},"status":{"type":"string","enum":["pending","completed","failed"]},"template":{"type":"string"},"files":{"type":"object","description":"Output file URLs keyed by format"},"metadata":{"type":"string","nullable":true},"error":{"type":"string","nullable":true,"description":"Error message (only present on failure)"},"self":{"type":"string","format":"uri"},"created_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","format":"date-time","nullable":true}}}},"self":{"type":"string","format":"uri"},"created_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","format":"date-time","nullable":true}}}}}},"400":{"description":"Missing required parameter (e.g. items)","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"422":{"description":"Validation failure — e.g. exceeds max items, invalid type","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}}}}},"/batches/{uid}":{"get":{"summary":"Get a batch","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Batch details","content":{"application/json":{"schema":{"type":"object","properties":{"uid":{"type":"string"},"type":{"type":"string","enum":["images"]},"status":{"type":"string","enum":["pending","completed"]},"total":{"type":"integer"},"counts":{"type":"object","properties":{"completed":{"type":"integer"},"failed":{"type":"integer"},"invalid":{"type":"integer"},"pending":{"type":"integer"}}},"errors":{"type":"array","items":{"type":"object"}},"items":{"type":"array","items":{"type":"object","properties":{"uid":{"type":"string"},"status":{"type":"string","enum":["pending","completed","failed"]},"template":{"type":"string"},"files":{"type":"object","description":"Output file URLs keyed by format"},"metadata":{"type":"string","nullable":true},"error":{"type":"string","nullable":true,"description":"Error message (only present on failure)"},"self":{"type":"string","format":"uri"},"created_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","format":"date-time","nullable":true}}}},"self":{"type":"string","format":"uri"},"created_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","format":"date-time","nullable":true}}}}}}}}},"/webhooks":{"get":{"summary":"List webhooks","parameters":[{"name":"page","in":"query","schema":{"type":"integer"},"required":false}],"responses":{"200":{"description":"Paginated list of webhooks","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"uid":{"type":"string"},"name":{"type":"string"},"url":{"type":"string","format":"uri"},"resource":{"type":"string","enum":["image","batch","tool_job","workflow_run","animation"]},"event":{"type":"string","enum":["all_events","completed","failed"]},"status":{"type":"string","enum":["active","disabled"]},"created_at":{"type":"string","format":"date-time"}}}}}}}}},"post":{"summary":"Create a webhook","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","url"],"properties":{"name":{"type":"string","description":"Webhook name"},"url":{"type":"string","format":"uri","description":"URL to receive webhook events"},"resource":{"type":"string","enum":["image","batch","tool_job","workflow_run","animation"],"description":"Resource type to trigger on"},"event":{"type":"string","enum":["all_events","completed","failed"],"description":"Event type to trigger on"},"status":{"type":"string","enum":["active","disabled"],"description":"Webhook status"}}}}}},"responses":{"201":{"description":"Webhook created. The signing_key field is only returned here — store it now.","content":{"application/json":{"schema":{"type":"object","properties":{"uid":{"type":"string"},"name":{"type":"string"},"url":{"type":"string","format":"uri"},"resource":{"type":"string","enum":["image","batch","tool_job","workflow_run","animation"]},"event":{"type":"string","enum":["all_events","completed","failed"]},"status":{"type":"string","enum":["active","disabled"]},"created_at":{"type":"string","format":"date-time"},"signing_key":{"type":"string","description":"HMAC signing key. Only returned at creation time — store it now."}}}}}},"422":{"description":"Validation failure — e.g. missing name/url, invalid resource/event/scope enum","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}}}}},"/webhooks/{uid}":{"get":{"summary":"Get a webhook","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Webhook details","content":{"application/json":{"schema":{"type":"object","properties":{"uid":{"type":"string"},"name":{"type":"string"},"url":{"type":"string","format":"uri"},"resource":{"type":"string","enum":["image","batch","tool_job","workflow_run","animation"]},"event":{"type":"string","enum":["all_events","completed","failed"]},"status":{"type":"string","enum":["active","disabled"]},"created_at":{"type":"string","format":"date-time"}}}}}}}},"patch":{"summary":"Update a webhook","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","url"],"properties":{"name":{"type":"string","description":"Webhook name"},"url":{"type":"string","format":"uri","description":"URL to receive webhook events"},"resource":{"type":"string","enum":["image","batch","tool_job","workflow_run","animation"],"description":"Resource type to trigger on"},"event":{"type":"string","enum":["all_events","completed","failed"],"description":"Event type to trigger on"},"status":{"type":"string","enum":["active","disabled"],"description":"Webhook status"}}}}}},"responses":{"200":{"description":"Updated webhook","content":{"application/json":{"schema":{"type":"object","properties":{"uid":{"type":"string"},"name":{"type":"string"},"url":{"type":"string","format":"uri"},"resource":{"type":"string","enum":["image","batch","tool_job","workflow_run","animation"]},"event":{"type":"string","enum":["all_events","completed","failed"]},"status":{"type":"string","enum":["active","disabled"]},"created_at":{"type":"string","format":"date-time"}}}}}},"404":{"description":"Webhook not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"422":{"description":"Validation failure","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}}}},"delete":{"summary":"Delete a webhook","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Webhook deleted"}}}},"/assets":{"get":{"summary":"List assets","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Paginated list of assets uploaded by this workspace","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"uid":{"type":"string"},"url":{"type":"string","format":"uri","description":"CDN URL of the uploaded asset"},"mime_type":{"type":"string","nullable":true,"description":"Content-Type of the stored asset"},"size":{"type":"integer","description":"File size in bytes"},"created_at":{"type":"string","format":"date-time"}}}}}}}}},"post":{"summary":"Upload an asset","description":"Upload a file (max 5MB) to storage and get back a durable CDN URL. Send the raw file bytes as the request body with `Content-Type` set to one of the accepted mime types listed below.\n\nUploads are deduplicated per workspace by SHA-256 of the payload — pushing the same bytes twice returns the existing record (`200 OK`) rather than creating a duplicate. A fresh upload returns `201 Created`.\n\nTrial accounts are limited to 20 uploaded assets. Dedupe hits don't count against the cap.","requestBody":{"required":true,"content":{"image/jpeg":{"schema":{"type":"string","format":"binary"}},"image/png":{"schema":{"type":"string","format":"binary"}},"image/webp":{"schema":{"type":"string","format":"binary"}},"image/gif":{"schema":{"type":"string","format":"binary"}},"image/svg+xml":{"schema":{"type":"string","format":"binary"}},"video/mp4":{"schema":{"type":"string","format":"binary"}},"video/webm":{"schema":{"type":"string","format":"binary"}},"video/quicktime":{"schema":{"type":"string","format":"binary"}},"audio/mpeg":{"schema":{"type":"string","format":"binary"}},"audio/wav":{"schema":{"type":"string","format":"binary"}},"audio/mp4":{"schema":{"type":"string","format":"binary"}},"audio/webm":{"schema":{"type":"string","format":"binary"}},"audio/ogg":{"schema":{"type":"string","format":"binary"}},"application/pdf":{"schema":{"type":"string","format":"binary"}},"application/json":{"schema":{"type":"string","format":"binary"}}}},"responses":{"200":{"description":"Asset already existed (matched by content hash) — existing record returned","content":{"application/json":{"schema":{"type":"object","properties":{"uid":{"type":"string"},"url":{"type":"string","format":"uri","description":"CDN URL of the uploaded asset"},"mime_type":{"type":"string","nullable":true,"description":"Content-Type of the stored asset"},"size":{"type":"integer","description":"File size in bytes"},"created_at":{"type":"string","format":"date-time"}}}}}},"201":{"description":"Asset uploaded","content":{"application/json":{"schema":{"type":"object","properties":{"uid":{"type":"string"},"url":{"type":"string","format":"uri","description":"CDN URL of the uploaded asset"},"mime_type":{"type":"string","nullable":true,"description":"Content-Type of the stored asset"},"size":{"type":"integer","description":"File size in bytes"},"created_at":{"type":"string","format":"date-time"}}}}}},"400":{"description":"Empty request body","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"402":{"description":"Trial cap hit — upgrade required","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"413":{"description":"Asset exceeds the size cap","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"415":{"description":"Unsupported Content-Type — see requestBody for the accepted list","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"502":{"description":"Upstream storage upload failed","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}}}}},"/assets/{uid}":{"get":{"summary":"Get an asset","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Asset details","content":{"application/json":{"schema":{"type":"object","properties":{"uid":{"type":"string"},"url":{"type":"string","format":"uri","description":"CDN URL of the uploaded asset"},"mime_type":{"type":"string","nullable":true,"description":"Content-Type of the stored asset"},"size":{"type":"integer","description":"File size in bytes"},"created_at":{"type":"string","format":"date-time"}}}}}},"404":{"description":"Asset not found in this workspace"}}}},"/assets/check":{"post":{"summary":"Batch-check which asset hashes already exist","description":"Given a list of SHA-256 content hashes, returns a map of each hash to its existing asset record (or `null` if not stored in this workspace). Lets syncing clients skip the upload round-trip for content that's already been uploaded — compute the hash locally, batch-check, then only POST the missing ones to `/assets`.\n\nMax 100 hashes per request.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["content_hashes"],"properties":{"content_hashes":{"type":"array","maxItems":100,"items":{"type":"string","description":"SHA-256 hex digest of the file contents"}}}}}}},"responses":{"200":{"description":"Map of `hash → asset record or null`. Keys are the hashes from the request; values are the existing asset for that hash, or null if not found.","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"oneOf":[{"type":"object","properties":{"uid":{"type":"string"},"url":{"type":"string","format":"uri","description":"CDN URL of the uploaded asset"},"mime_type":{"type":"string","nullable":true,"description":"Content-Type of the stored asset"},"size":{"type":"integer","description":"File size in bytes"},"created_at":{"type":"string","format":"date-time"}}},{"type":"null"}]}}}}},"400":{"description":"Empty or oversized content_hashes array","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}}}}},"/publications":{"get":{"summary":"Browse the public library","description":"Returns publications with `visibility=public_library` from every team, which is the same set the dashboard's template library shows. Legacy V3 publications are included and their `uid` carries a `v3_` prefix; they install as V5 image templates, converted on the way in. Publications are user-owned resources that span workspaces, so there's no workspace-scoped listing — if you need your own publication UIDs, grab them from the dashboard at publish time and hit `/publications/{uid}` or `/publications/{uid}/install` directly.","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer"}},{"name":"kind","in":"query","required":false,"schema":{"type":"string","enum":["image","animation","workflow"]},"description":"Only publications of this kind. Omit for all of them."},{"name":"category","in":"query","required":false,"schema":{"type":"string","enum":["announcements \u0026 news","beauty \u0026 fashion","business \u0026 finance","education \u0026 coaching","employee highlights","events \u0026 weddings","film \u0026 movies","food \u0026 drinks","gaming \u0026 e-sports","home \u0026 real estate","marketing \u0026 sales","motivational quotes","podcasts \u0026 publishing","product showcase","reviews \u0026 testimonials","social media","tech \u0026 crypto","travel \u0026 nature"]},"description":"Only publications in this category, matched against their tags. Comma-separate to match any of several."},{"name":"q","in":"query","required":false,"schema":{"type":"string"},"description":"Only publications whose name contains this text, case-insensitive."}],"responses":{"200":{"description":"Paginated list of public library publications","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"uid":{"type":"string","description":"A `v3_` prefix marks a legacy V3 publication. Pass the uid back verbatim, prefix included."},"name":{"type":"string"},"description":{"type":"string","nullable":true},"tags":{"type":"array","items":{"type":"string"}},"categories":{"type":"array","items":{"type":"string","enum":["announcements \u0026 news","beauty \u0026 fashion","business \u0026 finance","education \u0026 coaching","employee highlights","events \u0026 weddings","film \u0026 movies","food \u0026 drinks","gaming \u0026 e-sports","home \u0026 real estate","marketing \u0026 sales","motivational quotes","podcasts \u0026 publishing","product showcase","reviews \u0026 testimonials","social media","tech \u0026 crypto","travel \u0026 nature"]},"description":"Library categories this publication falls into, derived from its tags. These are the values the index endpoint's `category` filter takes."},"visibility":{"type":"string","enum":["unpublished","published","public_library"],"description":"unpublished, published, or public_library"},"preview":{"type":"string","nullable":true,"format":"uri","description":"Preview image or gif URL"},"install_count":{"type":"integer","description":"Number of times this publication has been installed into a workspace"},"template_kind":{"type":"string","enum":["image","animation","workflow"],"description":"Which kind of template this publication creates when installed"},"width":{"type":"integer","nullable":true,"description":"Canvas width in pixels. Null for a workflow, which has no canvas of its own."},"height":{"type":"integer","nullable":true,"description":"Canvas height in pixels. Null for a workflow, which has no canvas of its own."},"published_at":{"type":"string","format":"date-time","nullable":true},"created_at":{"type":"string","format":"date-time"}}}}}}}}}},"/publications/{uid}":{"get":{"summary":"Get a publication","description":"Public library publications are visible to any authenticated caller, including legacy V3 ones, whose uid carries a `v3_` prefix — a bare V3 uid resolves too. Published publications are only returned to the user who created them.","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Publication details","content":{"application/json":{"schema":{"type":"object","properties":{"uid":{"type":"string","description":"A `v3_` prefix marks a legacy V3 publication. Pass the uid back verbatim, prefix included."},"name":{"type":"string"},"description":{"type":"string","nullable":true},"tags":{"type":"array","items":{"type":"string"}},"categories":{"type":"array","items":{"type":"string","enum":["announcements \u0026 news","beauty \u0026 fashion","business \u0026 finance","education \u0026 coaching","employee highlights","events \u0026 weddings","film \u0026 movies","food \u0026 drinks","gaming \u0026 e-sports","home \u0026 real estate","marketing \u0026 sales","motivational quotes","podcasts \u0026 publishing","product showcase","reviews \u0026 testimonials","social media","tech \u0026 crypto","travel \u0026 nature"]},"description":"Library categories this publication falls into, derived from its tags. These are the values the index endpoint's `category` filter takes."},"visibility":{"type":"string","enum":["unpublished","published","public_library"],"description":"unpublished, published, or public_library"},"preview":{"type":"string","nullable":true,"format":"uri","description":"Preview image or gif URL"},"install_count":{"type":"integer","description":"Number of times this publication has been installed into a workspace"},"template_kind":{"type":"string","enum":["image","animation","workflow"],"description":"Which kind of template this publication creates when installed"},"width":{"type":"integer","nullable":true,"description":"Canvas width in pixels. Null for a workflow, which has no canvas of its own."},"height":{"type":"integer","nullable":true,"description":"Canvas height in pixels. Null for a workflow, which has no canvas of its own."},"published_at":{"type":"string","format":"date-time","nullable":true},"created_at":{"type":"string","format":"date-time"}}}}}},"404":{"description":"Publication not found or not accessible to this key"}}}},"/publications/{uid}/install":{"post":{"summary":"Install a publication into the workspace","description":"Clones the publication's snapshot into the API key's team. What it creates depends on the publication's `template_kind` — an image template, an animation template, or a workflow and the templates its steps use. A legacy V3 publication (uid prefixed `v3_`) is converted into a V5 image template on the way in. Returns the newly created resource. Trial accounts are capped at 3 templates per kind — installing beyond the cap returns 402.","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Installed. The response shape matches the resource that was created, so it follows the publication's `template_kind`.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"Image template. `config.objects` is the full canvas config — matches exactly the shape PATCH accepts, so responses round-trip cleanly.","properties":{"uid":{"type":"string"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"tags":{"type":"array","items":{"type":"string"}},"width":{"type":"integer"},"height":{"type":"integer"},"responsive":{"type":"boolean","description":"True if the template has responsive sizing or positioning"},"preview":{"type":"string","nullable":true,"format":"uri","description":"Preview image URL"},"ui_write_access":{"type":"string","enum":["owner_only","team"],"description":"Who can edit this template in the dashboard — `owner_only` (default) or `team`"},"api_write_access":{"type":"string","enum":["team","owner_only","nobody"],"description":"Who can update or delete this template via the API — `team` (default, any workspace API key), `owner_only` (only API keys owned by the template's creator), or `nobody` (locked; unlock via dashboard)"},"config":{"type":"object","description":"Full canvas configuration.","properties":{"objects":{"type":"array","items":{"$ref":"#/components/schemas/Layer"},"description":"Layers on the canvas"}}},"created_at":{"type":"string","format":"date-time"}}},{"type":"object","properties":{"uid":{"type":"string"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"tags":{"type":"array","items":{"type":"string"}},"width":{"type":"integer"},"height":{"type":"integer"},"frame_rate":{"type":"integer","enum":[24,30,60]},"duration_seconds":{"type":"number","description":"Derived from the template's keyframes — not settable. 0 until something is animated."},"preview":{"type":"string","nullable":true,"format":"uri","description":"Preview image URL"},"ui_write_access":{"type":"string","enum":["owner_only","team"],"description":"Who can edit in the dashboard — `owner_only` (default) or `team`"},"api_write_access":{"type":"string","enum":["team","owner_only","nobody"],"description":"Who can update or delete via the API — `team` (default), `owner_only`, or `nobody` (locked; unlock via dashboard)"},"config":{"type":"object","description":"Canvas configuration. `objects` are the layers; `keyframes` drives the animation and determines duration.","properties":{"objects":{"type":"array","items":{"$ref":"#/components/schemas/Layer"}},"keyframes":{"$ref":"#/components/schemas/Keyframes"}}},"created_at":{"type":"string","format":"date-time"}}},{"type":"object","properties":{"uid":{"type":"string"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"tags":{"type":"array","items":{"type":"string"}},"inputs":{"type":"object","description":"Inputs this workflow accepts, keyed by name. Each value is { type, required }. `url`-typed inputs are validated as http(s) URLs when a run is created.","additionalProperties":{"type":"object","properties":{"type":{"type":"string","enum":["string","url","number","boolean"]},"required":{"type":"boolean"}}}},"steps":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","description":"Stable handle for this step; later steps reference it as {{steps.\u003ckey\u003e.\u003coutput\u003e}}"},"type":{"type":"string","enum":["tool","image","animation"],"description":"What kind of operation this step performs"},"ref":{"type":"string","description":"Tool slug, or template UID for image / animation steps"},"label":{"type":"string","description":"Human name of the step's target — the tool's label or the template's name"},"inputs":{"type":"object","description":"Step payload, with {{inputs.x}} / {{steps.x.y}} references unresolved"}}},"description":"Steps in run order"},"ui_write_access":{"type":"string","enum":["owner_only","team"]},"api_write_access":{"type":"string","enum":["team","owner_only","nobody"],"description":"Who may run this workflow via the API"},"created_at":{"type":"string","format":"date-time"}}}]}}}},"402":{"description":"Trial cap hit — upgrade required"},"403":{"description":"Publication is unpublished and cannot be installed"},"404":{"description":"Publication not found"}}}},"/instant_urls":{"get":{"summary":"List instant URLs","parameters":[{"name":"page","in":"query","schema":{"type":"integer"},"required":false}],"responses":{"200":{"description":"Paginated list of instant URLs","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"uid":{"type":"string"},"name":{"type":"string"},"template":{"type":"string","description":"Source image template UID"},"template_version":{"type":"integer","nullable":true,"description":"Pinned template version, or null for latest"},"mode":{"type":"string","enum":["encoded","named_params"]},"security":{"type":"string","enum":["signed","open"]},"status":{"type":"string","enum":["active","disabled"]},"scale":{"type":"integer","enum":[1,2,3,4]},"rate_limit":{"type":"boolean","description":"Whether per-IP rate limiting is enabled"},"max_renders":{"type":"integer","nullable":true},"render_count":{"type":"integer"},"expires_at":{"type":"string","format":"date-time","nullable":true},"base_url":{"type":"string","format":"uri"},"sample_url":{"type":"string","format":"uri"},"created_at":{"type":"string","format":"date-time"}}}}}}}}},"post":{"summary":"Create an instant URL","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","template"],"properties":{"name":{"type":"string"},"template":{"type":"string","description":"Image template UID this Instant URL is bound to"},"mode":{"type":"string","enum":["encoded","named_params"]},"security":{"type":"string","enum":["signed","open"]},"status":{"type":"string","enum":["active","disabled"]},"scale":{"type":"integer","enum":[1,2,3,4]},"rate_limit":{"type":"boolean"},"template_version":{"type":"integer","nullable":true},"max_renders":{"type":"integer","nullable":true},"expires_at":{"type":"string","format":"date-time","nullable":true}}}}}},"responses":{"201":{"description":"Instant URL created. The signing_key field is only returned here — store it now.","content":{"application/json":{"schema":{"type":"object","properties":{"uid":{"type":"string"},"name":{"type":"string"},"template":{"type":"string","description":"Source image template UID"},"template_version":{"type":"integer","nullable":true,"description":"Pinned template version, or null for latest"},"mode":{"type":"string","enum":["encoded","named_params"]},"security":{"type":"string","enum":["signed","open"]},"status":{"type":"string","enum":["active","disabled"]},"scale":{"type":"integer","enum":[1,2,3,4]},"rate_limit":{"type":"boolean","description":"Whether per-IP rate limiting is enabled"},"max_renders":{"type":"integer","nullable":true},"render_count":{"type":"integer"},"expires_at":{"type":"string","format":"date-time","nullable":true},"base_url":{"type":"string","format":"uri"},"sample_url":{"type":"string","format":"uri"},"created_at":{"type":"string","format":"date-time"},"signing_key":{"type":"string","description":"HMAC signing key. Only returned at creation time — store it now."}}}}}},"402":{"description":"Trial cap hit — upgrade required","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"422":{"description":"Validation failure — e.g. missing name/template, invalid enum value","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}}}}},"/instant_urls/{uid}":{"get":{"summary":"Get an instant URL","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Instant URL details","content":{"application/json":{"schema":{"type":"object","properties":{"uid":{"type":"string"},"name":{"type":"string"},"template":{"type":"string","description":"Source image template UID"},"template_version":{"type":"integer","nullable":true,"description":"Pinned template version, or null for latest"},"mode":{"type":"string","enum":["encoded","named_params"]},"security":{"type":"string","enum":["signed","open"]},"status":{"type":"string","enum":["active","disabled"]},"scale":{"type":"integer","enum":[1,2,3,4]},"rate_limit":{"type":"boolean","description":"Whether per-IP rate limiting is enabled"},"max_renders":{"type":"integer","nullable":true},"render_count":{"type":"integer"},"expires_at":{"type":"string","format":"date-time","nullable":true},"base_url":{"type":"string","format":"uri"},"sample_url":{"type":"string","format":"uri"},"created_at":{"type":"string","format":"date-time"}}}}}}}},"patch":{"summary":"Update an instant URL","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","template"],"properties":{"name":{"type":"string"},"template":{"type":"string","description":"Image template UID this Instant URL is bound to"},"mode":{"type":"string","enum":["encoded","named_params"]},"security":{"type":"string","enum":["signed","open"]},"status":{"type":"string","enum":["active","disabled"]},"scale":{"type":"integer","enum":[1,2,3,4]},"rate_limit":{"type":"boolean"},"template_version":{"type":"integer","nullable":true},"max_renders":{"type":"integer","nullable":true},"expires_at":{"type":"string","format":"date-time","nullable":true}}}}}},"responses":{"200":{"description":"Updated instant URL","content":{"application/json":{"schema":{"type":"object","properties":{"uid":{"type":"string"},"name":{"type":"string"},"template":{"type":"string","description":"Source image template UID"},"template_version":{"type":"integer","nullable":true,"description":"Pinned template version, or null for latest"},"mode":{"type":"string","enum":["encoded","named_params"]},"security":{"type":"string","enum":["signed","open"]},"status":{"type":"string","enum":["active","disabled"]},"scale":{"type":"integer","enum":[1,2,3,4]},"rate_limit":{"type":"boolean","description":"Whether per-IP rate limiting is enabled"},"max_renders":{"type":"integer","nullable":true},"render_count":{"type":"integer"},"expires_at":{"type":"string","format":"date-time","nullable":true},"base_url":{"type":"string","format":"uri"},"sample_url":{"type":"string","format":"uri"},"created_at":{"type":"string","format":"date-time"}}}}}},"404":{"description":"Instant URL not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"422":{"description":"Validation failure","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}}}},"delete":{"summary":"Delete an instant URL","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Instant URL deleted"}}}},"/animations":{"get":{"summary":"List animations","parameters":[{"name":"page","in":"query","schema":{"type":"integer"},"required":false}],"responses":{"200":{"description":"Paginated list of animations","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"uid":{"type":"string"},"status":{"type":"string","enum":["queued","completed","failed","rendering"],"description":"queued → rendering → completed / failed"},"template":{"type":"string","description":"Source animation template UID"},"files":{"type":"object","description":"Output file URL keyed by format (`mp4`, or `mov` when transparent)"},"progress":{"type":"integer","description":"0-100 render progress, 100 once completed"},"metadata":{"type":"string","nullable":true},"error":{"type":"string","nullable":true,"description":"Error message (only present on failure)"},"self":{"type":"string","format":"uri"},"created_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","format":"date-time","nullable":true}}}}}}}}},"post":{"summary":"Create an animation","description":"Render an animation from a template. Async — returns 202 with a queued animation; poll GET /animations/{uid} until `status` is `completed` or `failed`. Duration comes from the template's keyframes, so a template with no animation is rejected. Passing `modifications.template.transparent: true` renders on a transparent background and forces a MOV output, since MP4 carries no alpha channel.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["template","modifications"],"properties":{"template":{"type":"string","description":"Animation template UID"},"formats":{"type":"array","default":["mp4"],"items":{"type":"string","enum":["mp4","mov"]},"description":"Output formats. Ignored when `transparent` is set — that always yields MOV."},"modifications":{"type":"object","properties":{"objects":{"type":"array","items":{"$ref":"#/components/schemas/Layer"},"description":"Per-layer overrides, addressed by `name` or `id`"},"template":{"type":"object","description":"Template-level output overrides","properties":{"width":{"type":"integer","description":"Override template width in pixels"},"height":{"type":"integer","description":"Override template height in pixels"},"fps":{"type":"integer","description":"Override output frame rate","enum":[24,30,60]},"transparent":{"type":"boolean","description":"Render on a transparent background — forces a MOV output so the alpha channel survives"}}}}},"metadata":{"type":"string","description":"Arbitrary metadata string round-tripped in the response"}}}}}},"responses":{"202":{"description":"Animation queued","content":{"application/json":{"schema":{"type":"object","properties":{"uid":{"type":"string"},"status":{"type":"string","enum":["queued","completed","failed","rendering"],"description":"queued → rendering → completed / failed"},"template":{"type":"string","description":"Source animation template UID"},"files":{"type":"object","description":"Output file URL keyed by format (`mp4`, or `mov` when transparent)"},"progress":{"type":"integer","description":"0-100 render progress, 100 once completed"},"metadata":{"type":"string","nullable":true},"error":{"type":"string","nullable":true,"description":"Error message (only present on failure)"},"self":{"type":"string","format":"uri"},"created_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","format":"date-time","nullable":true}}}}}},"400":{"description":"Missing required parameter (e.g. template)","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"402":{"description":"API quota exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"404":{"description":"Template not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"422":{"description":"Validation failure — unknown layer name, bad format, or a template with no keyframes","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}}}}},"/animations/{uid}":{"get":{"summary":"Get an animation","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Animation details + live progress","content":{"application/json":{"schema":{"type":"object","properties":{"uid":{"type":"string"},"status":{"type":"string","enum":["queued","completed","failed","rendering"],"description":"queued → rendering → completed / failed"},"template":{"type":"string","description":"Source animation template UID"},"files":{"type":"object","description":"Output file URL keyed by format (`mp4`, or `mov` when transparent)"},"progress":{"type":"integer","description":"0-100 render progress, 100 once completed"},"metadata":{"type":"string","nullable":true},"error":{"type":"string","nullable":true,"description":"Error message (only present on failure)"},"self":{"type":"string","format":"uri"},"created_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","format":"date-time","nullable":true}}}}}},"404":{"description":"Animation not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}}}}},"/animation_templates":{"get":{"summary":"List animation templates","parameters":[{"name":"page","in":"query","schema":{"type":"integer"},"required":false}],"responses":{"200":{"description":"Paginated list of templates","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"uid":{"type":"string"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"tags":{"type":"array","items":{"type":"string"}},"width":{"type":"integer"},"height":{"type":"integer"},"frame_rate":{"type":"integer","enum":[24,30,60]},"duration_seconds":{"type":"number","description":"Derived from the template's keyframes — not settable. 0 until something is animated."},"preview":{"type":"string","nullable":true,"format":"uri","description":"Preview image URL"},"ui_write_access":{"type":"string","enum":["owner_only","team"],"description":"Who can edit in the dashboard — `owner_only` (default) or `team`"},"api_write_access":{"type":"string","enum":["team","owner_only","nobody"],"description":"Who can update or delete via the API — `team` (default), `owner_only`, or `nobody` (locked; unlock via dashboard)"},"config":{"type":"object","description":"Canvas configuration. `objects` are the layers; `keyframes` drives the animation and determines duration.","properties":{"objects":{"type":"array","items":{"$ref":"#/components/schemas/Layer"}},"keyframes":{"$ref":"#/components/schemas/Keyframes"}}},"created_at":{"type":"string","format":"date-time"}}}}}}}}},"post":{"summary":"Create an animation template","description":"Create an animation template. Send `config` to author layers and keyframes directly — see the Keyframes schema for the frame shape — or omit it and build the template in the dashboard editor. `duration_seconds` is derived from the keyframes rather than set.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string"},"description":{"type":"string","nullable":true},"tags":{"type":"array","items":{"type":"string"}},"width":{"type":"integer","minimum":100,"maximum":5000},"height":{"type":"integer","minimum":100,"maximum":5000},"frame_rate":{"type":"integer","enum":[24,30,60]},"config":{"type":"object","description":"Canvas configuration, replaced wholesale. `objects` are the layers; `keyframes` drives the animation and determines duration. Omit to leave the existing config untouched.","properties":{"objects":{"type":"array","items":{"$ref":"#/components/schemas/Layer"}},"keyframes":{"$ref":"#/components/schemas/Keyframes"}}}}}}}},"responses":{"201":{"description":"Template created","content":{"application/json":{"schema":{"type":"object","properties":{"uid":{"type":"string"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"tags":{"type":"array","items":{"type":"string"}},"width":{"type":"integer"},"height":{"type":"integer"},"frame_rate":{"type":"integer","enum":[24,30,60]},"duration_seconds":{"type":"number","description":"Derived from the template's keyframes — not settable. 0 until something is animated."},"preview":{"type":"string","nullable":true,"format":"uri","description":"Preview image URL"},"ui_write_access":{"type":"string","enum":["owner_only","team"],"description":"Who can edit in the dashboard — `owner_only` (default) or `team`"},"api_write_access":{"type":"string","enum":["team","owner_only","nobody"],"description":"Who can update or delete via the API — `team` (default), `owner_only`, or `nobody` (locked; unlock via dashboard)"},"config":{"type":"object","description":"Canvas configuration. `objects` are the layers; `keyframes` drives the animation and determines duration.","properties":{"objects":{"type":"array","items":{"$ref":"#/components/schemas/Layer"}},"keyframes":{"$ref":"#/components/schemas/Keyframes"}}},"created_at":{"type":"string","format":"date-time"}}}}}},"422":{"description":"Validation failure","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}}}}},"/animation_templates/{uid}":{"get":{"summary":"Get an animation template","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Template details","content":{"application/json":{"schema":{"type":"object","properties":{"uid":{"type":"string"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"tags":{"type":"array","items":{"type":"string"}},"width":{"type":"integer"},"height":{"type":"integer"},"frame_rate":{"type":"integer","enum":[24,30,60]},"duration_seconds":{"type":"number","description":"Derived from the template's keyframes — not settable. 0 until something is animated."},"preview":{"type":"string","nullable":true,"format":"uri","description":"Preview image URL"},"ui_write_access":{"type":"string","enum":["owner_only","team"],"description":"Who can edit in the dashboard — `owner_only` (default) or `team`"},"api_write_access":{"type":"string","enum":["team","owner_only","nobody"],"description":"Who can update or delete via the API — `team` (default), `owner_only`, or `nobody` (locked; unlock via dashboard)"},"config":{"type":"object","description":"Canvas configuration. `objects` are the layers; `keyframes` drives the animation and determines duration.","properties":{"objects":{"type":"array","items":{"$ref":"#/components/schemas/Layer"}},"keyframes":{"$ref":"#/components/schemas/Keyframes"}}},"created_at":{"type":"string","format":"date-time"}}}}}},"404":{"description":"Template not found","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}}}},"patch":{"summary":"Update an animation template","description":"Update metadata, or replace the whole canvas by sending `config`. Layers and keyframes both live in `config`, so a partial config replaces everything in it — read the template first and send back the full object with your changes applied.","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string","nullable":true},"tags":{"type":"array","items":{"type":"string"}},"width":{"type":"integer","minimum":100,"maximum":5000},"height":{"type":"integer","minimum":100,"maximum":5000},"frame_rate":{"type":"integer","enum":[24,30,60]},"config":{"type":"object","description":"Canvas configuration, replaced wholesale. `objects` are the layers; `keyframes` drives the animation and determines duration. Omit to leave the existing config untouched.","properties":{"objects":{"type":"array","items":{"$ref":"#/components/schemas/Layer"}},"keyframes":{"$ref":"#/components/schemas/Keyframes"}}}}}}}},"responses":{"200":{"description":"Updated template","content":{"application/json":{"schema":{"type":"object","properties":{"uid":{"type":"string"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"tags":{"type":"array","items":{"type":"string"}},"width":{"type":"integer"},"height":{"type":"integer"},"frame_rate":{"type":"integer","enum":[24,30,60]},"duration_seconds":{"type":"number","description":"Derived from the template's keyframes — not settable. 0 until something is animated."},"preview":{"type":"string","nullable":true,"format":"uri","description":"Preview image URL"},"ui_write_access":{"type":"string","enum":["owner_only","team"],"description":"Who can edit in the dashboard — `owner_only` (default) or `team`"},"api_write_access":{"type":"string","enum":["team","owner_only","nobody"],"description":"Who can update or delete via the API — `team` (default), `owner_only`, or `nobody` (locked; unlock via dashboard)"},"config":{"type":"object","description":"Canvas configuration. `objects` are the layers; `keyframes` drives the animation and determines duration.","properties":{"objects":{"type":"array","items":{"$ref":"#/components/schemas/Layer"}},"keyframes":{"$ref":"#/components/schemas/Keyframes"}}},"created_at":{"type":"string","format":"date-time"}}}}}},"403":{"description":"Template's api_write_access is `owner_only` and the caller's key is not owned by its creator","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"404":{"description":"Template not found","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"422":{"description":"Validation failure","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"423":{"description":"Template's api_write_access is `nobody` — unlock via the dashboard","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}}}},"delete":{"summary":"Delete an animation template","description":"Soft-deletes the template. Animations already rendered from it stay intact, but the template no longer appears in list/get calls and can't be used for new renders.","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Template deleted"},"403":{"description":"Template's api_write_access is `owner_only` and the caller's key is not owned by its creator","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"404":{"description":"Template not found","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"423":{"description":"Template's api_write_access is `nobody` — unlock via the dashboard","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}}}}},"/animation_templates/{uid}/animate":{"post":{"summary":"Animate a template with a preset","description":"Applies a named preset to layers, optionally staggered. Deterministic and free: no model call, no AI credits, and the same request always produces the same keyframes — three layers at `stagger: 500` begin at 0, 500 and 1000ms exactly. Use this whenever the request already says what it wants. The template is versioned before it is overwritten.","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["preset"],"properties":{"preset":{"type":"string","enum":["FadeIn","FadeOut","ZoomIn","ZoomOut","GetBigger","GetSmaller","ScaleIn","ScaleOut","PopIn","PopOut"],"description":"FadeIn, FadeOut, ZoomIn, ZoomOut, GetBigger, GetSmaller, ScaleIn, ScaleOut work on any layer. PopIn and PopOut are measured in `em` and apply to text layers only."},"objects":{"type":"array","items":{"type":"string"},"description":"Layer ids, in the order the stagger should run. Omit to animate every layer in stacking order."},"duration":{"type":"integer","default":400,"description":"How long each layer's tween runs, in milliseconds"},"stagger":{"type":"integer","default":0,"description":"Milliseconds between each layer's START. At 500, layers begin at 0, 500, 1000 — not 500ms of gap after each finishes."},"easing":{"type":"string","description":"Optional anime.js easing, e.g. easeOutCubic"},"merge":{"type":"boolean","default":false,"description":"Keep keyframes on layers this call does not touch. False replaces the whole timeline."}}}}}},"responses":{"200":{"description":"Template with its new keyframes","content":{"application/json":{"schema":{"type":"object","properties":{"uid":{"type":"string"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"tags":{"type":"array","items":{"type":"string"}},"width":{"type":"integer"},"height":{"type":"integer"},"frame_rate":{"type":"integer","enum":[24,30,60]},"duration_seconds":{"type":"number","description":"Derived from the template's keyframes — not settable. 0 until something is animated."},"preview":{"type":"string","nullable":true,"format":"uri","description":"Preview image URL"},"ui_write_access":{"type":"string","enum":["owner_only","team"],"description":"Who can edit in the dashboard — `owner_only` (default) or `team`"},"api_write_access":{"type":"string","enum":["team","owner_only","nobody"],"description":"Who can update or delete via the API — `team` (default), `owner_only`, or `nobody` (locked; unlock via dashboard)"},"config":{"type":"object","description":"Canvas configuration. `objects` are the layers; `keyframes` drives the animation and determines duration.","properties":{"objects":{"type":"array","items":{"$ref":"#/components/schemas/Layer"}},"keyframes":{"$ref":"#/components/schemas/Keyframes"}}},"created_at":{"type":"string","format":"date-time"}}}}}},"403":{"description":"Template's api_write_access is `owner_only` and the caller's key is not owned by its creator","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"404":{"description":"Template not found","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"422":{"description":"Unknown preset, unknown layer id, or a text-only preset aimed at a non-text layer","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"423":{"description":"Template's api_write_access is `nobody` — unlock via the dashboard","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}}}}},"/tools/remove_bg":{"post":{"summary":"Remove background","description":"Cut the subject out of an image onto transparency. Async — returns 202 with a pending job; poll GET /tool_jobs/{uid} until `status` is `completed` or `failed`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"image_url":{"description":"PNG or JPG source","type":"string","format":"uri"},"metadata":{"type":"string","description":"Arbitrary metadata string stored with the tool run"}},"required":["image_url"]}}}},"responses":{"202":{"description":"Tool run accepted","content":{"application/json":{"schema":{"type":"object","properties":{"uid":{"type":"string"},"tool":{"type":"string","enum":["remove_bg"]},"status":{"type":"string","enum":["pending","running","completed","failed"],"description":"pending → running → completed / failed"},"progress":{"type":"integer","minimum":0,"maximum":100,"description":"0-100 job progress, 100 once completed"},"inputs":{"type":"object","description":"Inputs the job was created with"},"outputs":{"type":"object","properties":{"image_url":{"type":"string","format":"uri"}}},"metadata":{"type":"string","nullable":true,"description":"Arbitrary metadata string round-tripped from the create request"},"self":{"type":"string","format":"uri"},"created_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","format":"date-time","nullable":true},"error_message":{"type":"string","nullable":true,"description":"Human-readable failure reason (only present on failed jobs)"}}}}}},"402":{"description":"API quota exhausted — upgrade required","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"404":{"description":"Unknown tool","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"422":{"description":"Input validation failure","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}}}}},"/tools/generate_ai_image":{"post":{"summary":"Generate AI image","description":"Generate an image from a text prompt with AI. Async — returns 202 with a pending job; poll GET /tool_jobs/{uid} until `status` is `completed` or `failed`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"description":"What to generate — describe the subject, style and composition","type":"string"},"model":{"description":"Costs vary by model — see the credit cost shown for each","type":"string","enum":["flux_schnell","flux_1_1_pro","nano_banana","gpt_image_2"],"default":"flux_schnell"},"aspect_ratio":{"description":"Defaults to square","type":"string","enum":["1:1","16:9","9:16","4:3","3:4"],"default":"1:1"},"reference_image_url":{"description":"Optional starting point — only some models accept one","type":"string","format":"uri"},"metadata":{"type":"string","description":"Arbitrary metadata string stored with the tool run"}},"required":["prompt","model"]}}}},"responses":{"202":{"description":"Tool run accepted","content":{"application/json":{"schema":{"type":"object","properties":{"uid":{"type":"string"},"tool":{"type":"string","enum":["generate_ai_image"]},"status":{"type":"string","enum":["pending","running","completed","failed"],"description":"pending → running → completed / failed"},"progress":{"type":"integer","minimum":0,"maximum":100,"description":"0-100 job progress, 100 once completed"},"inputs":{"type":"object","description":"Inputs the job was created with"},"outputs":{"type":"object","properties":{"image_url":{"type":"string","format":"uri"}}},"metadata":{"type":"string","nullable":true,"description":"Arbitrary metadata string round-tripped from the create request"},"self":{"type":"string","format":"uri"},"created_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","format":"date-time","nullable":true},"error_message":{"type":"string","nullable":true,"description":"Human-readable failure reason (only present on failed jobs)"}}}}}},"402":{"description":"API quota exhausted — upgrade required","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"404":{"description":"Unknown tool","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"422":{"description":"Input validation failure","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}}}}},"/tools/generate_ai_video":{"post":{"summary":"Generate AI video","description":"Generate a video from a prompt or image with AI. Async — returns 202 with a pending job; poll GET /tool_jobs/{uid} until `status` is `completed` or `failed`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"description":"What happens in the clip — describe the subject, motion, camera and style","type":"string"},"model":{"description":"AI credit cost varies by model, length and resolution","type":"string","enum":["seedance_1_lite","seedance_2","kling_2_5_turbo_pro","veo_3_1_fast"],"default":"seedance_1_lite"},"duration":{"description":"Each model offers some of these lengths — Kling 5 or 10, Veo 4, 6 or 8, Seedance any","type":"string","enum":[4,5,6,8,10],"default":5},"resolution":{"description":"Higher resolutions cost more per second — Kling's is fixed","type":"string","enum":["480p","720p","1080p"],"default":"720p"},"aspect_ratio":{"description":"Ignored when a starting image is given — the clip takes the image's shape","type":"string","enum":["16:9","9:16","1:1","4:3","3:4"],"default":"16:9"},"image_url":{"description":"Optional — the clip begins from this frame and animates it","type":"string","format":"uri"},"audio":{"description":"Generated sound, on the models that can — Veo charges less without it","type":"string","enum":["on","off"],"default":"on"},"metadata":{"type":"string","description":"Arbitrary metadata string stored with the tool run"}},"required":["prompt","model"]}}}},"responses":{"202":{"description":"Tool run accepted","content":{"application/json":{"schema":{"type":"object","properties":{"uid":{"type":"string"},"tool":{"type":"string","enum":["generate_ai_video"]},"status":{"type":"string","enum":["pending","running","completed","failed"],"description":"pending → running → completed / failed"},"progress":{"type":"integer","minimum":0,"maximum":100,"description":"0-100 job progress, 100 once completed"},"inputs":{"type":"object","description":"Inputs the job was created with"},"outputs":{"type":"object","properties":{"video_url":{"type":"string","format":"uri"}}},"metadata":{"type":"string","nullable":true,"description":"Arbitrary metadata string round-tripped from the create request"},"self":{"type":"string","format":"uri"},"created_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","format":"date-time","nullable":true},"error_message":{"type":"string","nullable":true,"description":"Human-readable failure reason (only present on failed jobs)"}}}}}},"402":{"description":"API quota exhausted — upgrade required","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"404":{"description":"Unknown tool","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"422":{"description":"Input validation failure","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}}}}},"/tools/video_thumbnails":{"post":{"summary":"Video thumbnails","description":"Grab still frames from a video at regular intervals. Async — returns 202 with a pending job; poll GET /tool_jobs/{uid} until `status` is `completed` or `failed`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"video_url":{"description":"Video URL","type":"string","format":"uri"},"count":{"description":"How many frames to grab, up to 10","type":"integer","default":3},"interval":{"description":"Seconds between frames — fractions are fine, 0.5 for two a second","type":"number","default":1},"start":{"description":"Where the first frame is taken","type":"number","default":0},"metadata":{"type":"string","description":"Arbitrary metadata string stored with the tool run"}},"required":["video_url"]}}}},"responses":{"202":{"description":"Tool run accepted","content":{"application/json":{"schema":{"type":"object","properties":{"uid":{"type":"string"},"tool":{"type":"string","enum":["video_thumbnails"]},"status":{"type":"string","enum":["pending","running","completed","failed"],"description":"pending → running → completed / failed"},"progress":{"type":"integer","minimum":0,"maximum":100,"description":"0-100 job progress, 100 once completed"},"inputs":{"type":"object","description":"Inputs the job was created with"},"outputs":{"type":"object","properties":{"image_url":{"type":"string","format":"uri"},"image_urls":{"type":"string","format":"uri"}}},"metadata":{"type":"string","nullable":true,"description":"Arbitrary metadata string round-tripped from the create request"},"self":{"type":"string","format":"uri"},"created_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","format":"date-time","nullable":true},"error_message":{"type":"string","nullable":true,"description":"Human-readable failure reason (only present on failed jobs)"}}}}}},"402":{"description":"API quota exhausted — upgrade required","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"404":{"description":"Unknown tool","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"422":{"description":"Input validation failure","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}}}}},"/tools/subtitle_video":{"post":{"summary":"Transcribe and burn subtitles","description":"Auto-transcribe the audio and burn styled subtitles onto the video. Async — returns 202 with a pending job; poll GET /tool_jobs/{uid} until `status` is `completed` or `failed`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"video_url":{"description":"Video URL","type":"string","format":"uri"},"language":{"description":"Auto detect works well when the audio is clear","type":"string","enum":["","en","es","fr","de","it","pt","nl","ru","pl","tr","ar","hi","zh","ja","ko","id","vi","th"]},"words_per_segment":{"description":"Words on screen at once","type":"integer","enum":[1,2,3,4,5,6,7,8,9,10],"nullable":true},"font":{"description":"Defaults to Inter","type":"string","enum":["inter","roboto","open-sans","noto-sans","montserrat","poppins","bebas-neue","anton","oswald","playfair-display"],"default":"inter"},"font_size":{"description":"Defaults to 28","type":"integer"},"color":{"description":"Defaults to white","type":"string","default":"#ffffff"},"bold":{"description":"Bold","type":"string","enum":["off","on"]},"italic":{"description":"Italic","type":"string","enum":["off","on"]},"alignment":{"description":"Defaults to Bottom Center","type":"string","enum":["2","1","3","5","4","6","8","7","9"]},"outline_width":{"description":"Text outline width or box padding","type":"integer","default":0},"outline_color":{"description":"Defaults to black","type":"string","default":"#000000"},"shadow_size":{"description":"Hard drop shadow, offset down-right","type":"integer","default":0},"shadow_color":{"description":"Defaults to black","type":"string","default":"#000000"},"background_style":{"description":"Solid box puts an opaque panel behind the text","type":"string","enum":["none","box"],"default":"none"},"background_color":{"description":"The colour of the box behind the text","type":"string"},"background_opacity":{"description":"0 is fully transparent, 100 fully opaque","type":"integer","default":100},"metadata":{"type":"string","description":"Arbitrary metadata string stored with the tool run"}},"required":["video_url"]}}}},"responses":{"202":{"description":"Tool run accepted","content":{"application/json":{"schema":{"type":"object","properties":{"uid":{"type":"string"},"tool":{"type":"string","enum":["subtitle_video"]},"status":{"type":"string","enum":["pending","running","completed","failed"],"description":"pending → running → completed / failed"},"progress":{"type":"integer","minimum":0,"maximum":100,"description":"0-100 job progress, 100 once completed"},"inputs":{"type":"object","description":"Inputs the job was created with"},"outputs":{"type":"object","properties":{"video_url":{"type":"string","format":"uri"}}},"metadata":{"type":"string","nullable":true,"description":"Arbitrary metadata string round-tripped from the create request"},"self":{"type":"string","format":"uri"},"created_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","format":"date-time","nullable":true},"error_message":{"type":"string","nullable":true,"description":"Human-readable failure reason (only present on failed jobs)"}}}}}},"402":{"description":"API quota exhausted — upgrade required","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"404":{"description":"Unknown tool","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"422":{"description":"Input validation failure","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}}}}},"/tools/generate_voiceover":{"post":{"summary":"Generate voiceover","description":"Turn text into spoken audio using a natural-sounding TTS voice. Async — returns 202 with a pending job; poll GET /tool_jobs/{uid} until `status` is `completed` or `failed`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"description":"What the voice should say — up to 2000 characters","type":"string"},"voice":{"description":"Pre-made ElevenLabs voice. Rachel and Adam are safe defaults","type":"string","enum":["rachel","adam","antoni","bella","domi","elli","josh","arnold","charlie","freya"],"default":"rachel"},"metadata":{"type":"string","description":"Arbitrary metadata string stored with the tool run"}},"required":["text","voice"]}}}},"responses":{"202":{"description":"Tool run accepted","content":{"application/json":{"schema":{"type":"object","properties":{"uid":{"type":"string"},"tool":{"type":"string","enum":["generate_voiceover"]},"status":{"type":"string","enum":["pending","running","completed","failed"],"description":"pending → running → completed / failed"},"progress":{"type":"integer","minimum":0,"maximum":100,"description":"0-100 job progress, 100 once completed"},"inputs":{"type":"object","description":"Inputs the job was created with"},"outputs":{"type":"object","properties":{"audio_url":{"type":"string","format":"uri"}}},"metadata":{"type":"string","nullable":true,"description":"Arbitrary metadata string round-tripped from the create request"},"self":{"type":"string","format":"uri"},"created_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","format":"date-time","nullable":true},"error_message":{"type":"string","nullable":true,"description":"Human-readable failure reason (only present on failed jobs)"}}}}}},"402":{"description":"API quota exhausted — upgrade required","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"404":{"description":"Unknown tool","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"422":{"description":"Input validation failure","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}}}}},"/tools/create_pdf":{"post":{"summary":"Create multi-page PDF","description":"Stitch JPGs, PNGs and PDFs into one multi-page PDF. Async — returns 202 with a pending job; poll GET /tool_jobs/{uid} until `status` is `completed` or `failed`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"urls":{"description":"One URL per line — JPG, PNG, or PDF. Upload adds them here. Order is preserved.","type":"array","items":{"type":"string","format":"uri"}},"metadata":{"type":"string","description":"Arbitrary metadata string stored with the tool run"}},"required":["urls"]}}}},"responses":{"202":{"description":"Tool run accepted","content":{"application/json":{"schema":{"type":"object","properties":{"uid":{"type":"string"},"tool":{"type":"string","enum":["create_pdf"]},"status":{"type":"string","enum":["pending","running","completed","failed"],"description":"pending → running → completed / failed"},"progress":{"type":"integer","minimum":0,"maximum":100,"description":"0-100 job progress, 100 once completed"},"inputs":{"type":"object","description":"Inputs the job was created with"},"outputs":{"type":"object","properties":{"pdf_url":{"type":"string","format":"uri"}}},"metadata":{"type":"string","nullable":true,"description":"Arbitrary metadata string round-tripped from the create request"},"self":{"type":"string","format":"uri"},"created_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","format":"date-time","nullable":true},"error_message":{"type":"string","nullable":true,"description":"Human-readable failure reason (only present on failed jobs)"}}}}}},"402":{"description":"API quota exhausted — upgrade required","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"404":{"description":"Unknown tool","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"422":{"description":"Input validation failure","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}}}}},"/tools/flatten_pdf":{"post":{"summary":"Flatten PDF for print","description":"Flatten transparency and form fields, and embed fonts for print. Async — returns 202 with a pending job; poll GET /tool_jobs/{uid} until `status` is `completed` or `failed`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"pdf_url":{"description":"PDF URL","type":"string","format":"uri"},"color":{"description":"Convert to CMYK if your printer asks for it","type":"string","enum":["original","cmyk"],"default":"original"},"text":{"description":"Outlines remove any font dependency but the text can no longer be selected","type":"string","enum":["embed","outline"],"default":"embed"},"metadata":{"type":"string","description":"Arbitrary metadata string stored with the tool run"}},"required":["pdf_url"]}}}},"responses":{"202":{"description":"Tool run accepted","content":{"application/json":{"schema":{"type":"object","properties":{"uid":{"type":"string"},"tool":{"type":"string","enum":["flatten_pdf"]},"status":{"type":"string","enum":["pending","running","completed","failed"],"description":"pending → running → completed / failed"},"progress":{"type":"integer","minimum":0,"maximum":100,"description":"0-100 job progress, 100 once completed"},"inputs":{"type":"object","description":"Inputs the job was created with"},"outputs":{"type":"object","properties":{"pdf_url":{"type":"string","format":"uri"}}},"metadata":{"type":"string","nullable":true,"description":"Arbitrary metadata string round-tripped from the create request"},"self":{"type":"string","format":"uri"},"created_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","format":"date-time","nullable":true},"error_message":{"type":"string","nullable":true,"description":"Human-readable failure reason (only present on failed jobs)"}}}}}},"402":{"description":"API quota exhausted — upgrade required","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"404":{"description":"Unknown tool","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"422":{"description":"Input validation failure","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}}}}},"/tools/pdf_to_image":{"post":{"summary":"PDF to image","description":"Turn PDF pages into JPG or PNG images. Async — returns 202 with a pending job; poll GET /tool_jobs/{uid} until `status` is `completed` or `failed`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"pdf_url":{"description":"PDF URL","type":"string","format":"uri"},"format":{"description":"Format","type":"string","enum":["png","jpg"],"default":"png"},"dpi":{"description":"72 to 300. 300 suits print, 72 to 150 suits screens","type":"integer","default":150},"pages":{"description":"All pages makes one image per page, up to 20","type":"string","enum":["first","all"],"default":"first"},"metadata":{"type":"string","description":"Arbitrary metadata string stored with the tool run"}},"required":["pdf_url"]}}}},"responses":{"202":{"description":"Tool run accepted","content":{"application/json":{"schema":{"type":"object","properties":{"uid":{"type":"string"},"tool":{"type":"string","enum":["pdf_to_image"]},"status":{"type":"string","enum":["pending","running","completed","failed"],"description":"pending → running → completed / failed"},"progress":{"type":"integer","minimum":0,"maximum":100,"description":"0-100 job progress, 100 once completed"},"inputs":{"type":"object","description":"Inputs the job was created with"},"outputs":{"type":"object","properties":{"image_url":{"type":"string","format":"uri"},"image_urls":{"type":"string","format":"uri"}}},"metadata":{"type":"string","nullable":true,"description":"Arbitrary metadata string round-tripped from the create request"},"self":{"type":"string","format":"uri"},"created_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","format":"date-time","nullable":true},"error_message":{"type":"string","nullable":true,"description":"Human-readable failure reason (only present on failed jobs)"}}}}}},"402":{"description":"API quota exhausted — upgrade required","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"404":{"description":"Unknown tool","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"422":{"description":"Input validation failure","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}}}}},"/tools/trim_video":{"post":{"summary":"Trim video","description":"Keep a slice of a video between two times. Async — returns 202 with a pending job; poll GET /tool_jobs/{uid} until `status` is `completed` or `failed`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"video_url":{"description":"Video URL","type":"string","format":"uri"},"start":{"description":"Start (seconds)","type":"number"},"end":{"description":"End (seconds)","type":"number"},"metadata":{"type":"string","description":"Arbitrary metadata string stored with the tool run"}},"required":["video_url","start","end"]}}}},"responses":{"202":{"description":"Tool run accepted","content":{"application/json":{"schema":{"type":"object","properties":{"uid":{"type":"string"},"tool":{"type":"string","enum":["trim_video"]},"status":{"type":"string","enum":["pending","running","completed","failed"],"description":"pending → running → completed / failed"},"progress":{"type":"integer","minimum":0,"maximum":100,"description":"0-100 job progress, 100 once completed"},"inputs":{"type":"object","description":"Inputs the job was created with"},"outputs":{"type":"object","properties":{"video_url":{"type":"string","format":"uri"}}},"metadata":{"type":"string","nullable":true,"description":"Arbitrary metadata string round-tripped from the create request"},"self":{"type":"string","format":"uri"},"created_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","format":"date-time","nullable":true},"error_message":{"type":"string","nullable":true,"description":"Human-readable failure reason (only present on failed jobs)"}}}}}},"402":{"description":"API quota exhausted — upgrade required","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"404":{"description":"Unknown tool","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"422":{"description":"Input validation failure","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}}}}},"/tools/concat_videos":{"post":{"summary":"Join videos","description":"Join two or more videos end-to-end into a single file. Async — returns 202 with a pending job; poll GET /tool_jobs/{uid} until `status` is `completed` or `failed`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"video_urls":{"description":"Two or more URLs in play order","type":"array","items":{"type":"string","format":"uri"}},"transition":{"description":"How each clip flows into the next. Defaults to none","type":"string","enum":["none","fade","dissolve","wipeleft","slideleft"]},"transition_duration":{"description":"Only used when transition is set. Defaults to 1","type":"number"},"width":{"description":"Defaults to the first video's width, capped at 1920 on the long edge","type":"integer"},"height":{"description":"Defaults to the first video's height, capped at 1080 on the short edge","type":"integer"},"fps":{"description":"Defaults to the highest frame rate among the inputs, capped at 60","type":"integer"},"metadata":{"type":"string","description":"Arbitrary metadata string stored with the tool run"}},"required":["video_urls"]}}}},"responses":{"202":{"description":"Tool run accepted","content":{"application/json":{"schema":{"type":"object","properties":{"uid":{"type":"string"},"tool":{"type":"string","enum":["concat_videos"]},"status":{"type":"string","enum":["pending","running","completed","failed"],"description":"pending → running → completed / failed"},"progress":{"type":"integer","minimum":0,"maximum":100,"description":"0-100 job progress, 100 once completed"},"inputs":{"type":"object","description":"Inputs the job was created with"},"outputs":{"type":"object","properties":{"video_url":{"type":"string","format":"uri"}}},"metadata":{"type":"string","nullable":true,"description":"Arbitrary metadata string round-tripped from the create request"},"self":{"type":"string","format":"uri"},"created_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","format":"date-time","nullable":true},"error_message":{"type":"string","nullable":true,"description":"Human-readable failure reason (only present on failed jobs)"}}}}}},"402":{"description":"API quota exhausted — upgrade required","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"404":{"description":"Unknown tool","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"422":{"description":"Input validation failure","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}}}}},"/tools/resize_video":{"post":{"summary":"Resize video","description":"Rescale a video to target dimensions, cover-crop or contain-letterbox. Async — returns 202 with a pending job; poll GET /tool_jobs/{uid} until `status` is `completed` or `failed`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"video_url":{"description":"Video URL","type":"string","format":"uri"},"width":{"description":"Width","type":"integer"},"height":{"description":"Height","type":"integer"},"fit":{"description":"cover crops, contain letterboxes, blur fills the bars with a blurred copy","type":"string","enum":["cover","contain","blur"]},"metadata":{"type":"string","description":"Arbitrary metadata string stored with the tool run"}},"required":["video_url","width","height"]}}}},"responses":{"202":{"description":"Tool run accepted","content":{"application/json":{"schema":{"type":"object","properties":{"uid":{"type":"string"},"tool":{"type":"string","enum":["resize_video"]},"status":{"type":"string","enum":["pending","running","completed","failed"],"description":"pending → running → completed / failed"},"progress":{"type":"integer","minimum":0,"maximum":100,"description":"0-100 job progress, 100 once completed"},"inputs":{"type":"object","description":"Inputs the job was created with"},"outputs":{"type":"object","properties":{"video_url":{"type":"string","format":"uri"}}},"metadata":{"type":"string","nullable":true,"description":"Arbitrary metadata string round-tripped from the create request"},"self":{"type":"string","format":"uri"},"created_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","format":"date-time","nullable":true},"error_message":{"type":"string","nullable":true,"description":"Human-readable failure reason (only present on failed jobs)"}}}}}},"402":{"description":"API quota exhausted — upgrade required","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"404":{"description":"Unknown tool","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"422":{"description":"Input validation failure","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}}}}},"/tools/crop_video":{"post":{"summary":"Crop video","description":"Crop a video to an explicit rectangle in pixels. Async — returns 202 with a pending job; poll GET /tool_jobs/{uid} until `status` is `completed` or `failed`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"video_url":{"description":"Video URL","type":"string","format":"uri"},"x":{"description":"X (px)","type":"integer"},"y":{"description":"Y (px)","type":"integer"},"width":{"description":"Width (px)","type":"integer"},"height":{"description":"Height (px)","type":"integer"},"metadata":{"type":"string","description":"Arbitrary metadata string stored with the tool run"}},"required":["video_url","x","y","width","height"]}}}},"responses":{"202":{"description":"Tool run accepted","content":{"application/json":{"schema":{"type":"object","properties":{"uid":{"type":"string"},"tool":{"type":"string","enum":["crop_video"]},"status":{"type":"string","enum":["pending","running","completed","failed"],"description":"pending → running → completed / failed"},"progress":{"type":"integer","minimum":0,"maximum":100,"description":"0-100 job progress, 100 once completed"},"inputs":{"type":"object","description":"Inputs the job was created with"},"outputs":{"type":"object","properties":{"video_url":{"type":"string","format":"uri"}}},"metadata":{"type":"string","nullable":true,"description":"Arbitrary metadata string round-tripped from the create request"},"self":{"type":"string","format":"uri"},"created_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","format":"date-time","nullable":true},"error_message":{"type":"string","nullable":true,"description":"Human-readable failure reason (only present on failed jobs)"}}}}}},"402":{"description":"API quota exhausted — upgrade required","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"404":{"description":"Unknown tool","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"422":{"description":"Input validation failure","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}}}}},"/tools/overlay_video":{"post":{"summary":"Overlay video","description":"Layer one video on top of another as picture-in-picture. Async — returns 202 with a pending job; poll GET /tool_jobs/{uid} until `status` is `completed` or `failed`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"base_video_url":{"description":"Base video URL","type":"string","format":"uri"},"overlay_video_url":{"description":"Overlay video URL","type":"string","format":"uri"},"position":{"description":"Snap to a corner or edge. Use this or x/y, not both","type":"string","enum":["top_left","top_center","top_right","center","bottom_left","bottom_center","bottom_right"]},"margin":{"description":"Gap from the edge when using position. Defaults to 0","type":"integer"},"x":{"description":"Absolute position from the left. Ignored when position is set","type":"integer"},"y":{"description":"Absolute position from the top. Ignored when position is set","type":"integer"},"scale":{"description":"1.0 = original size. Use this or width, not both","type":"number"},"width":{"description":"Exact size — the height follows the overlay's own proportions. For a circle this is the bubble's diameter","type":"integer"},"shape":{"description":"Circle crops the overlay to a centred bubble","type":"string","enum":["rectangle","circle"],"default":"rectangle"},"border_width":{"description":"0 for no border","type":"integer"},"border_color":{"description":"Border color","type":"string","default":"#ffffff"},"shadow":{"description":"Drop shadow","type":"string","enum":["off","on"],"default":"off"},"audio":{"description":"Overlay and mixed audio need the overlay to have a soundtrack","type":"string","enum":["base","overlay","mix"],"default":"base"},"start":{"description":"When the overlay begins","type":"number"},"when_finished":{"description":"When the overlay ends","type":"string","enum":["freeze","hide","loop"],"default":"freeze"},"metadata":{"type":"string","description":"Arbitrary metadata string stored with the tool run"}},"required":["base_video_url","overlay_video_url"]}}}},"responses":{"202":{"description":"Tool run accepted","content":{"application/json":{"schema":{"type":"object","properties":{"uid":{"type":"string"},"tool":{"type":"string","enum":["overlay_video"]},"status":{"type":"string","enum":["pending","running","completed","failed"],"description":"pending → running → completed / failed"},"progress":{"type":"integer","minimum":0,"maximum":100,"description":"0-100 job progress, 100 once completed"},"inputs":{"type":"object","description":"Inputs the job was created with"},"outputs":{"type":"object","properties":{"video_url":{"type":"string","format":"uri"}}},"metadata":{"type":"string","nullable":true,"description":"Arbitrary metadata string round-tripped from the create request"},"self":{"type":"string","format":"uri"},"created_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","format":"date-time","nullable":true},"error_message":{"type":"string","nullable":true,"description":"Human-readable failure reason (only present on failed jobs)"}}}}}},"402":{"description":"API quota exhausted — upgrade required","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"404":{"description":"Unknown tool","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"422":{"description":"Input validation failure","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}}}}},"/tools/overlay_image":{"post":{"summary":"Add image overlay","description":"Burn a logo, watermark, or badge onto a video. Async — returns 202 with a pending job; poll GET /tool_jobs/{uid} until `status` is `completed` or `failed`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"video_url":{"description":"Video URL","type":"string","format":"uri"},"image_url":{"description":"Overlay image URL","type":"string","format":"uri"},"position":{"description":"Snap to a corner or edge. Use this or x/y, not both","type":"string","enum":["top_left","top_center","top_right","center","bottom_left","bottom_center","bottom_right"]},"margin":{"description":"Gap from the edge when using position. Defaults to 0","type":"integer"},"x":{"description":"Absolute position from the left. Ignored when position is set","type":"integer"},"y":{"description":"Absolute position from the top. Ignored when position is set","type":"integer"},"opacity":{"description":"0.0 to 1.0","type":"number"},"metadata":{"type":"string","description":"Arbitrary metadata string stored with the tool run"}},"required":["video_url","image_url"]}}}},"responses":{"202":{"description":"Tool run accepted","content":{"application/json":{"schema":{"type":"object","properties":{"uid":{"type":"string"},"tool":{"type":"string","enum":["overlay_image"]},"status":{"type":"string","enum":["pending","running","completed","failed"],"description":"pending → running → completed / failed"},"progress":{"type":"integer","minimum":0,"maximum":100,"description":"0-100 job progress, 100 once completed"},"inputs":{"type":"object","description":"Inputs the job was created with"},"outputs":{"type":"object","properties":{"video_url":{"type":"string","format":"uri"}}},"metadata":{"type":"string","nullable":true,"description":"Arbitrary metadata string round-tripped from the create request"},"self":{"type":"string","format":"uri"},"created_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","format":"date-time","nullable":true},"error_message":{"type":"string","nullable":true,"description":"Human-readable failure reason (only present on failed jobs)"}}}}}},"402":{"description":"API quota exhausted — upgrade required","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"404":{"description":"Unknown tool","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"422":{"description":"Input validation failure","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}}}}},"/tools/add_audio":{"post":{"summary":"Add or replace audio","description":"Mix an audio track over a video, or replace it. Async — returns 202 with a pending job; poll GET /tool_jobs/{uid} until `status` is `completed` or `failed`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"video_url":{"description":"Video URL","type":"string","format":"uri"},"audio_url":{"description":"Audio URL","type":"string","format":"uri"},"mode":{"description":"Mode","type":"string","enum":["mix","replace"],"default":"mix"},"volume":{"description":"1.0 = original level","type":"number","default":1.0},"loop":{"description":"Loop the audio to match the video's length. Turn off for one-shot sounds","type":"string","enum":["on","off"],"default":"on"},"ducking":{"description":"Dip the new audio when the video's original audio is present. Mix mode only","type":"string","enum":["off","subtle","medium","heavy"],"default":"off"},"metadata":{"type":"string","description":"Arbitrary metadata string stored with the tool run"}},"required":["video_url","audio_url","mode"]}}}},"responses":{"202":{"description":"Tool run accepted","content":{"application/json":{"schema":{"type":"object","properties":{"uid":{"type":"string"},"tool":{"type":"string","enum":["add_audio"]},"status":{"type":"string","enum":["pending","running","completed","failed"],"description":"pending → running → completed / failed"},"progress":{"type":"integer","minimum":0,"maximum":100,"description":"0-100 job progress, 100 once completed"},"inputs":{"type":"object","description":"Inputs the job was created with"},"outputs":{"type":"object","properties":{"video_url":{"type":"string","format":"uri"}}},"metadata":{"type":"string","nullable":true,"description":"Arbitrary metadata string round-tripped from the create request"},"self":{"type":"string","format":"uri"},"created_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","format":"date-time","nullable":true},"error_message":{"type":"string","nullable":true,"description":"Human-readable failure reason (only present on failed jobs)"}}}}}},"402":{"description":"API quota exhausted — upgrade required","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"404":{"description":"Unknown tool","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"422":{"description":"Input validation failure","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}}}}},"/tools/add_cover_art":{"post":{"summary":"Add cover art to video","description":"Embed a still image as the video's poster thumbnail. Async — returns 202 with a pending job; poll GET /tool_jobs/{uid} until `status` is `completed` or `failed`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"video_url":{"description":"Video URL","type":"string","format":"uri"},"image_url":{"description":"Cover image URL","type":"string","format":"uri"},"metadata":{"type":"string","description":"Arbitrary metadata string stored with the tool run"}},"required":["video_url","image_url"]}}}},"responses":{"202":{"description":"Tool run accepted","content":{"application/json":{"schema":{"type":"object","properties":{"uid":{"type":"string"},"tool":{"type":"string","enum":["add_cover_art"]},"status":{"type":"string","enum":["pending","running","completed","failed"],"description":"pending → running → completed / failed"},"progress":{"type":"integer","minimum":0,"maximum":100,"description":"0-100 job progress, 100 once completed"},"inputs":{"type":"object","description":"Inputs the job was created with"},"outputs":{"type":"object","properties":{"video_url":{"type":"string","format":"uri"}}},"metadata":{"type":"string","nullable":true,"description":"Arbitrary metadata string round-tripped from the create request"},"self":{"type":"string","format":"uri"},"created_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","format":"date-time","nullable":true},"error_message":{"type":"string","nullable":true,"description":"Human-readable failure reason (only present on failed jobs)"}}}}}},"402":{"description":"API quota exhausted — upgrade required","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"404":{"description":"Unknown tool","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"422":{"description":"Input validation failure","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}}}}},"/tools/create_video_slideshow":{"post":{"summary":"Create video slideshow","description":"Turn images into an mp4 slideshow with optional transitions. Async — returns 202 with a pending job; poll GET /tool_jobs/{uid} until `status` is `completed` or `failed`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"image_urls":{"description":"Two or more URLs in slide order","type":"array","items":{"type":"string","format":"uri"}},"slide_duration":{"description":"Defaults to 3","type":"number"},"transition":{"description":"How each slide flows into the next. Defaults to none","type":"string","enum":["none","fade","dissolve","wipeleft","slideleft"]},"transition_duration":{"description":"Only used when transition is set. Defaults to 1","type":"number"},"width":{"description":"Defaults to 1280","type":"integer"},"height":{"description":"Defaults to 720","type":"integer"},"metadata":{"type":"string","description":"Arbitrary metadata string stored with the tool run"}},"required":["image_urls"]}}}},"responses":{"202":{"description":"Tool run accepted","content":{"application/json":{"schema":{"type":"object","properties":{"uid":{"type":"string"},"tool":{"type":"string","enum":["create_video_slideshow"]},"status":{"type":"string","enum":["pending","running","completed","failed"],"description":"pending → running → completed / failed"},"progress":{"type":"integer","minimum":0,"maximum":100,"description":"0-100 job progress, 100 once completed"},"inputs":{"type":"object","description":"Inputs the job was created with"},"outputs":{"type":"object","properties":{"video_url":{"type":"string","format":"uri"}}},"metadata":{"type":"string","nullable":true,"description":"Arbitrary metadata string round-tripped from the create request"},"self":{"type":"string","format":"uri"},"created_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","format":"date-time","nullable":true},"error_message":{"type":"string","nullable":true,"description":"Human-readable failure reason (only present on failed jobs)"}}}}}},"402":{"description":"API quota exhausted — upgrade required","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"404":{"description":"Unknown tool","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"422":{"description":"Input validation failure","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}}}}},"/tools/apply_color_filter":{"post":{"summary":"Apply colour filter","description":"Apply a named colour-grade preset to a video (Instagram-style filters). Async — returns 202 with a pending job; poll GET /tool_jobs/{uid} until `status` is `completed` or `failed`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"video_url":{"description":"Video URL","type":"string","format":"uri"},"filter":{"description":"Choose a preset colour grade","type":"string","enum":["black-and-white","sepia","invert","warm","cool","vivid","muted","dark-and-moody","faded","vintage","cross-process","teal-and-orange","bleach-bypass"],"default":"vintage"},"metadata":{"type":"string","description":"Arbitrary metadata string stored with the tool run"}},"required":["video_url","filter"]}}}},"responses":{"202":{"description":"Tool run accepted","content":{"application/json":{"schema":{"type":"object","properties":{"uid":{"type":"string"},"tool":{"type":"string","enum":["apply_color_filter"]},"status":{"type":"string","enum":["pending","running","completed","failed"],"description":"pending → running → completed / failed"},"progress":{"type":"integer","minimum":0,"maximum":100,"description":"0-100 job progress, 100 once completed"},"inputs":{"type":"object","description":"Inputs the job was created with"},"outputs":{"type":"object","properties":{"video_url":{"type":"string","format":"uri"}}},"metadata":{"type":"string","nullable":true,"description":"Arbitrary metadata string round-tripped from the create request"},"self":{"type":"string","format":"uri"},"created_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","format":"date-time","nullable":true},"error_message":{"type":"string","nullable":true,"description":"Human-readable failure reason (only present on failed jobs)"}}}}}},"402":{"description":"API quota exhausted — upgrade required","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"404":{"description":"Unknown tool","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"422":{"description":"Input validation failure","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}}}}},"/tools/soften_video":{"post":{"summary":"Soften video","description":"Smooth skin and flat surfaces while keeping edges sharp. Async — returns 202 with a pending job; poll GET /tool_jobs/{uid} until `status` is `completed` or `failed`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"video_url":{"description":"Video URL","type":"string","format":"uri"},"strength":{"description":"How much smoothing to apply","type":"string","enum":["subtle","medium","strong"],"default":"medium"},"metadata":{"type":"string","description":"Arbitrary metadata string stored with the tool run"}},"required":["video_url","strength"]}}}},"responses":{"202":{"description":"Tool run accepted","content":{"application/json":{"schema":{"type":"object","properties":{"uid":{"type":"string"},"tool":{"type":"string","enum":["soften_video"]},"status":{"type":"string","enum":["pending","running","completed","failed"],"description":"pending → running → completed / failed"},"progress":{"type":"integer","minimum":0,"maximum":100,"description":"0-100 job progress, 100 once completed"},"inputs":{"type":"object","description":"Inputs the job was created with"},"outputs":{"type":"object","properties":{"video_url":{"type":"string","format":"uri"}}},"metadata":{"type":"string","nullable":true,"description":"Arbitrary metadata string round-tripped from the create request"},"self":{"type":"string","format":"uri"},"created_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","format":"date-time","nullable":true},"error_message":{"type":"string","nullable":true,"description":"Human-readable failure reason (only present on failed jobs)"}}}}}},"402":{"description":"API quota exhausted — upgrade required","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"404":{"description":"Unknown tool","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"422":{"description":"Input validation failure","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}}}}},"/tools/create_gif_preview":{"post":{"summary":"Create GIF preview","description":"Turn a video into an animated GIF preview. Async — returns 202 with a pending job; poll GET /tool_jobs/{uid} until `status` is `completed` or `failed`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"video_url":{"description":"Video URL","type":"string","format":"uri"},"fps":{"description":"Frames per second, up to 8. Defaults to 8","type":"integer"},"width":{"description":"Up to 480. Height follows the source's aspect ratio","type":"integer"},"duration":{"description":"Trim to this many seconds from the start, up to 5. Defaults to 5","type":"number"},"metadata":{"type":"string","description":"Arbitrary metadata string stored with the tool run"}},"required":["video_url"]}}}},"responses":{"202":{"description":"Tool run accepted","content":{"application/json":{"schema":{"type":"object","properties":{"uid":{"type":"string"},"tool":{"type":"string","enum":["create_gif_preview"]},"status":{"type":"string","enum":["pending","running","completed","failed"],"description":"pending → running → completed / failed"},"progress":{"type":"integer","minimum":0,"maximum":100,"description":"0-100 job progress, 100 once completed"},"inputs":{"type":"object","description":"Inputs the job was created with"},"outputs":{"type":"object","properties":{"image_url":{"type":"string","format":"uri"}}},"metadata":{"type":"string","nullable":true,"description":"Arbitrary metadata string round-tripped from the create request"},"self":{"type":"string","format":"uri"},"created_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","format":"date-time","nullable":true},"error_message":{"type":"string","nullable":true,"description":"Human-readable failure reason (only present on failed jobs)"}}}}}},"402":{"description":"API quota exhausted — upgrade required","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"404":{"description":"Unknown tool","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"422":{"description":"Input validation failure","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}}}}},"/tool_jobs":{"get":{"summary":"List tool jobs","description":"Newest first, 20 per page. Same polling shape /v5/images uses — Zapier / integration triggers can dedupe by `uid` and stop once they see a known one.","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Paginated list of tool jobs (any tool_type, any status). `outputs` shape varies per-tool — see each tool's POST endpoint.","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"uid":{"type":"string"},"tool":{"type":"string","description":"Tool slug that dispatched this job"},"status":{"type":"string","enum":["pending","running","completed","failed"],"description":"pending → running → completed / failed"},"progress":{"type":"integer","minimum":0,"maximum":100,"description":"0-100 job progress, 100 once completed"},"inputs":{"type":"object","description":"Inputs the job was created with"},"outputs":{"type":"object","description":"Tool-specific output. Shape depends on the tool — see each tool's POST endpoint for the concrete keys."},"metadata":{"type":"string","nullable":true,"description":"Arbitrary metadata string round-tripped from the create request"},"self":{"type":"string","format":"uri"},"created_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","format":"date-time","nullable":true},"error_message":{"type":"string","nullable":true,"description":"Human-readable failure reason (only present on failed jobs)"}}}}}}}}}},"/tool_jobs/{uid}":{"get":{"summary":"Get a tool job","description":"Poll the status and outputs of a tool run. The `outputs` object's shape depends on which tool created the job — refer to the tool's POST endpoint for the concrete keys.","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Tool job details","content":{"application/json":{"schema":{"type":"object","properties":{"uid":{"type":"string"},"tool":{"type":"string","description":"Tool slug that dispatched this job"},"status":{"type":"string","enum":["pending","running","completed","failed"],"description":"pending → running → completed / failed"},"progress":{"type":"integer","minimum":0,"maximum":100,"description":"0-100 job progress, 100 once completed"},"inputs":{"type":"object","description":"Inputs the job was created with"},"outputs":{"type":"object","description":"Tool-specific output. Shape depends on the tool — see each tool's POST endpoint for the concrete keys."},"metadata":{"type":"string","nullable":true,"description":"Arbitrary metadata string round-tripped from the create request"},"self":{"type":"string","format":"uri"},"created_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","format":"date-time","nullable":true},"error_message":{"type":"string","nullable":true,"description":"Human-readable failure reason (only present on failed jobs)"}}}}}},"404":{"description":"Tool job not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}}}}},"/workflows":{"get":{"summary":"List workflows","parameters":[{"name":"page","in":"query","schema":{"type":"integer"},"required":false}],"responses":{"200":{"description":"Paginated list of workflows","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"uid":{"type":"string"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"tags":{"type":"array","items":{"type":"string"}},"inputs":{"type":"object","description":"Inputs this workflow accepts, keyed by name. Each value is { type, required }. `url`-typed inputs are validated as http(s) URLs when a run is created.","additionalProperties":{"type":"object","properties":{"type":{"type":"string","enum":["string","url","number","boolean"]},"required":{"type":"boolean"}}}},"steps":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","description":"Stable handle for this step; later steps reference it as {{steps.\u003ckey\u003e.\u003coutput\u003e}}"},"type":{"type":"string","enum":["tool","image","animation"],"description":"What kind of operation this step performs"},"ref":{"type":"string","description":"Tool slug, or template UID for image / animation steps"},"label":{"type":"string","description":"Human name of the step's target — the tool's label or the template's name"},"inputs":{"type":"object","description":"Step payload, with {{inputs.x}} / {{steps.x.y}} references unresolved"}}},"description":"Steps in run order"},"ui_write_access":{"type":"string","enum":["owner_only","team"]},"api_write_access":{"type":"string","enum":["team","owner_only","nobody"],"description":"Who may run this workflow via the API"},"created_at":{"type":"string","format":"date-time"}}}}}}}}},"post":{"summary":"Create a workflow","description":"Create a workflow with its inputs and steps in one call. Every step's `ref` is validated against its adapter — an unknown tool slug or a template UID outside this workspace is rejected — and a step may only reference steps before it.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string","nullable":true},"tags":{"type":"array","items":{"type":"string"}},"inputs":{"type":"object","description":"Inputs the workflow accepts, keyed by name. Omit to leave the existing inputs untouched; send {} to clear them.","additionalProperties":{"type":"object","properties":{"type":{"type":"string","enum":["string","url","number","boolean"],"description":"`url` is validated as an http(s) URL when a run is created"},"required":{"type":"boolean"}}}},"steps":{"type":"array","description":"The ordered step list, replaced wholesale. Array order IS execution order, so reorder by sending the array in the order you want. Omit to leave the existing steps untouched. A step dropped from the array is discarded, not deleted — its past runs still reference it.","items":{"type":"object","required":["key","type","ref"],"properties":{"key":{"type":"string","pattern":"^[a-z0-9_]+$","description":"Stable handle for this step, unique within the workflow. Later steps reference its output as {{steps.\u003ckey\u003e.\u003coutput\u003e}}. Lowercase letters, numbers and underscores."},"type":{"type":"string","enum":["tool","image","animation"],"description":"What kind of operation this step performs"},"ref":{"type":"string","description":"What it operates on — a tool slug for `tool` steps (see GET /tools), or a template UID for `image` and `animation` steps"},"inputs":{"type":"object","description":"Step payload. Values may reference the workflow's own inputs as {{inputs.\u003cname\u003e}} or an EARLIER step's output as {{steps.\u003ckey\u003e.\u003coutput\u003e}} — referencing a later step is rejected."}}}}},"required":["name"]}}}},"responses":{"201":{"description":"Workflow created","content":{"application/json":{"schema":{"type":"object","properties":{"uid":{"type":"string"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"tags":{"type":"array","items":{"type":"string"}},"inputs":{"type":"object","description":"Inputs this workflow accepts, keyed by name. Each value is { type, required }. `url`-typed inputs are validated as http(s) URLs when a run is created.","additionalProperties":{"type":"object","properties":{"type":{"type":"string","enum":["string","url","number","boolean"]},"required":{"type":"boolean"}}}},"steps":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","description":"Stable handle for this step; later steps reference it as {{steps.\u003ckey\u003e.\u003coutput\u003e}}"},"type":{"type":"string","enum":["tool","image","animation"],"description":"What kind of operation this step performs"},"ref":{"type":"string","description":"Tool slug, or template UID for image / animation steps"},"label":{"type":"string","description":"Human name of the step's target — the tool's label or the template's name"},"inputs":{"type":"object","description":"Step payload, with {{inputs.x}} / {{steps.x.y}} references unresolved"}}},"description":"Steps in run order"},"ui_write_access":{"type":"string","enum":["owner_only","team"]},"api_write_access":{"type":"string","enum":["team","owner_only","nobody"],"description":"Who may run this workflow via the API"},"created_at":{"type":"string","format":"date-time"}}}}}},"422":{"description":"Validation failure — missing name, duplicate step key, unknown ref, or a forward step reference","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}}}}},"/workflows/{uid}":{"patch":{"summary":"Update a workflow","description":"Change metadata, inputs or steps. Each of `inputs` and `steps` is replaced wholesale when present and left alone when omitted, so renaming a workflow does not disturb its definition. Read the workflow first and send back the full array with your changes applied.","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string","nullable":true},"tags":{"type":"array","items":{"type":"string"}},"inputs":{"type":"object","description":"Inputs the workflow accepts, keyed by name. Omit to leave the existing inputs untouched; send {} to clear them.","additionalProperties":{"type":"object","properties":{"type":{"type":"string","enum":["string","url","number","boolean"],"description":"`url` is validated as an http(s) URL when a run is created"},"required":{"type":"boolean"}}}},"steps":{"type":"array","description":"The ordered step list, replaced wholesale. Array order IS execution order, so reorder by sending the array in the order you want. Omit to leave the existing steps untouched. A step dropped from the array is discarded, not deleted — its past runs still reference it.","items":{"type":"object","required":["key","type","ref"],"properties":{"key":{"type":"string","pattern":"^[a-z0-9_]+$","description":"Stable handle for this step, unique within the workflow. Later steps reference its output as {{steps.\u003ckey\u003e.\u003coutput\u003e}}. Lowercase letters, numbers and underscores."},"type":{"type":"string","enum":["tool","image","animation"],"description":"What kind of operation this step performs"},"ref":{"type":"string","description":"What it operates on — a tool slug for `tool` steps (see GET /tools), or a template UID for `image` and `animation` steps"},"inputs":{"type":"object","description":"Step payload. Values may reference the workflow's own inputs as {{inputs.\u003cname\u003e}} or an EARLIER step's output as {{steps.\u003ckey\u003e.\u003coutput\u003e}} — referencing a later step is rejected."}}}}}}}}},"responses":{"200":{"description":"Updated workflow","content":{"application/json":{"schema":{"type":"object","properties":{"uid":{"type":"string"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"tags":{"type":"array","items":{"type":"string"}},"inputs":{"type":"object","description":"Inputs this workflow accepts, keyed by name. Each value is { type, required }. `url`-typed inputs are validated as http(s) URLs when a run is created.","additionalProperties":{"type":"object","properties":{"type":{"type":"string","enum":["string","url","number","boolean"]},"required":{"type":"boolean"}}}},"steps":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","description":"Stable handle for this step; later steps reference it as {{steps.\u003ckey\u003e.\u003coutput\u003e}}"},"type":{"type":"string","enum":["tool","image","animation"],"description":"What kind of operation this step performs"},"ref":{"type":"string","description":"Tool slug, or template UID for image / animation steps"},"label":{"type":"string","description":"Human name of the step's target — the tool's label or the template's name"},"inputs":{"type":"object","description":"Step payload, with {{inputs.x}} / {{steps.x.y}} references unresolved"}}},"description":"Steps in run order"},"ui_write_access":{"type":"string","enum":["owner_only","team"]},"api_write_access":{"type":"string","enum":["team","owner_only","nobody"],"description":"Who may run this workflow via the API"},"created_at":{"type":"string","format":"date-time"}}}}}},"403":{"description":"Workflow's api_write_access is `owner_only` and the caller's key is not owned by its creator","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"404":{"description":"Workflow not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"422":{"description":"Validation failure — duplicate step key, unknown ref, or a forward step reference","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"423":{"description":"Workflow is locked from API updates","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}}}},"delete":{"summary":"Delete a workflow","description":"Discards the workflow. Its past runs are kept.","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Workflow discarded"},"403":{"description":"Workflow is restricted to updates from its owner's API keys","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"404":{"description":"Workflow not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"423":{"description":"Workflow is locked from API updates","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}}}},"get":{"summary":"Get a workflow","description":"Returns the workflow's definition — the inputs it accepts and the steps it runs, in order. Call this before POST /workflow_runs to learn what to send.","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Workflow definition","content":{"application/json":{"schema":{"type":"object","properties":{"uid":{"type":"string"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"tags":{"type":"array","items":{"type":"string"}},"inputs":{"type":"object","description":"Inputs this workflow accepts, keyed by name. Each value is { type, required }. `url`-typed inputs are validated as http(s) URLs when a run is created.","additionalProperties":{"type":"object","properties":{"type":{"type":"string","enum":["string","url","number","boolean"]},"required":{"type":"boolean"}}}},"steps":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","description":"Stable handle for this step; later steps reference it as {{steps.\u003ckey\u003e.\u003coutput\u003e}}"},"type":{"type":"string","enum":["tool","image","animation"],"description":"What kind of operation this step performs"},"ref":{"type":"string","description":"Tool slug, or template UID for image / animation steps"},"label":{"type":"string","description":"Human name of the step's target — the tool's label or the template's name"},"inputs":{"type":"object","description":"Step payload, with {{inputs.x}} / {{steps.x.y}} references unresolved"}}},"description":"Steps in run order"},"ui_write_access":{"type":"string","enum":["owner_only","team"]},"api_write_access":{"type":"string","enum":["team","owner_only","nobody"],"description":"Who may run this workflow via the API"},"created_at":{"type":"string","format":"date-time"}}}}}},"404":{"description":"Workflow not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}}}}},"/workflow_runs":{"get":{"summary":"List workflow runs","parameters":[{"name":"page","in":"query","schema":{"type":"integer"},"required":false}],"responses":{"200":{"description":"Paginated list of runs, newest first","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"uid":{"type":"string"},"status":{"type":"string","enum":["queued","running","completed","failed"]},"workflow":{"type":"string","description":"UID of the workflow that was run"},"progress":{"type":"integer","description":"Percentage of steps completed. A failed run reports how far it got."},"inputs":{"type":"object","description":"Inputs this run was started with"},"outputs":{"type":"object","description":"Every completed step's output, keyed by step name"},"metadata":{"type":"string","nullable":true,"description":"Arbitrary metadata string round-tripped from the create request"},"steps":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"type":{"type":"string","enum":["tool","image","animation"]},"status":{"type":"string","enum":["pending","running","completed","failed","skipped"]},"output":{"type":"object","description":"Flattened result of this step, addressable by later steps as {{steps.\u003ckey\u003e.\u003coutput\u003e}}"},"error":{"type":"string","description":"Only present when this step failed"},"resource":{"type":"object","description":"The resource this step produced. Absent until the step has dispatched.","properties":{"type":{"type":"string","enum":["tool_job","image","animation"],"description":"Fetch from the matching endpoint — tool_job → /tool_jobs/{uid}"},"uid":{"type":"string"}}}}}},"error":{"type":"string","description":"Only present when the run failed"},"self":{"type":"string","format":"uri"},"created_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","format":"date-time","nullable":true}}}}}}}}},"post":{"summary":"Run a workflow","description":"Start a workflow. Async — returns 202 immediately; poll GET /workflow_runs/{uid} until `status` is `completed` or `failed`. Steps run in order, each feeding the next. A run charges nothing itself: each step is billed as the resource it creates, so a run costs exactly what running its steps individually would. To process many rows, POST once per row — each is its own run.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["workflow"],"properties":{"workflow":{"type":"string","description":"Workflow UID"},"inputs":{"type":"object","description":"Values for the workflow's declared inputs. May also be sent as a bare top-level object instead of nested under `inputs`."},"metadata":{"type":"string","description":"Arbitrary metadata string stored with the run"}}}}}},"responses":{"202":{"description":"Run queued","content":{"application/json":{"schema":{"type":"object","properties":{"uid":{"type":"string"},"status":{"type":"string","enum":["queued","running","completed","failed"]},"workflow":{"type":"string","description":"UID of the workflow that was run"},"progress":{"type":"integer","description":"Percentage of steps completed. A failed run reports how far it got."},"inputs":{"type":"object","description":"Inputs this run was started with"},"outputs":{"type":"object","description":"Every completed step's output, keyed by step name"},"metadata":{"type":"string","nullable":true,"description":"Arbitrary metadata string round-tripped from the create request"},"steps":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"type":{"type":"string","enum":["tool","image","animation"]},"status":{"type":"string","enum":["pending","running","completed","failed","skipped"]},"output":{"type":"object","description":"Flattened result of this step, addressable by later steps as {{steps.\u003ckey\u003e.\u003coutput\u003e}}"},"error":{"type":"string","description":"Only present when this step failed"},"resource":{"type":"object","description":"The resource this step produced. Absent until the step has dispatched.","properties":{"type":{"type":"string","enum":["tool_job","image","animation"],"description":"Fetch from the matching endpoint — tool_job → /tool_jobs/{uid}"},"uid":{"type":"string"}}}}}},"error":{"type":"string","description":"Only present when the run failed"},"self":{"type":"string","format":"uri"},"created_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","format":"date-time","nullable":true}}}}}},"400":{"description":"Missing required parameter (workflow)","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"403":{"description":"Workflow restricted to runs from its owner's API keys","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"404":{"description":"Workflow not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"422":{"description":"Missing a required input, or a url-typed input that is not a valid http(s) URL","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}},"423":{"description":"Workflow is locked from API runs","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}}}}},"/workflow_runs/{uid}":{"get":{"summary":"Get a workflow run","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Run details, live progress, and per-step results","content":{"application/json":{"schema":{"type":"object","properties":{"uid":{"type":"string"},"status":{"type":"string","enum":["queued","running","completed","failed"]},"workflow":{"type":"string","description":"UID of the workflow that was run"},"progress":{"type":"integer","description":"Percentage of steps completed. A failed run reports how far it got."},"inputs":{"type":"object","description":"Inputs this run was started with"},"outputs":{"type":"object","description":"Every completed step's output, keyed by step name"},"metadata":{"type":"string","nullable":true,"description":"Arbitrary metadata string round-tripped from the create request"},"steps":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"type":{"type":"string","enum":["tool","image","animation"]},"status":{"type":"string","enum":["pending","running","completed","failed","skipped"]},"output":{"type":"object","description":"Flattened result of this step, addressable by later steps as {{steps.\u003ckey\u003e.\u003coutput\u003e}}"},"error":{"type":"string","description":"Only present when this step failed"},"resource":{"type":"object","description":"The resource this step produced. Absent until the step has dispatched.","properties":{"type":{"type":"string","enum":["tool_job","image","animation"],"description":"Fetch from the matching endpoint — tool_job → /tool_jobs/{uid}"},"uid":{"type":"string"}}}}}},"error":{"type":"string","description":"Only present when the run failed"},"self":{"type":"string","format":"uri"},"created_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","format":"date-time","nullable":true}}}}}},"404":{"description":"Run not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable explanation of the error"}}}}}}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"API key (e.g. bb_ak_v5_...)"}},"schemas":{"LayerText":{"type":"object","description":"A `text` layer.","required":["id","type"],"properties":{"id":{"type":"string","description":"Unique layer id within the config"},"type":{"type":"string","enum":["text"],"description":"Layer type discriminator"},"name":{"type":"string","description":"Optional human-readable layer name"},"align-items":{"description":"Vertical text alignment within the container","type":"string","enum":["start","center","end"]},"anchor-gap-x":{"description":"Horizontal offset from the anchor point in pixels","type":"number"},"anchor-gap-y":{"description":"Vertical offset from the anchor point in pixels","type":"number"},"anchor-point":{"description":"Which point on the target layer to anchor to","type":"string","enum":["top-left","top-center","top-right","center-left","center","center-right","bottom-left","bottom-center","bottom-right"]},"anchor-to":{"description":"Name of another layer to anchor this layer's position to","type":"string"},"anchor-type":{"description":"Whether to anchor to the container bounds or text bounds","type":"string","enum":["container","text"]},"background-color":{"description":"background-color","type":"string"},"blur":{"description":"Gaussian blur radius in pixels","type":"number"},"border-color":{"description":"border-color","type":"string"},"border-radius":{"description":"Border radius in pixels for rounded corners","type":"number"},"border-style":{"description":"border-style","type":"string","enum":["none","solid"]},"border-width":{"description":"border-width","type":"number"},"box-shadow":{"description":"box-shadow","type":"string"},"clip-mode":{"description":"How clip-to hides this layer. outline cuts it to the target's shape. alpha also fades it by the transparency of the target's fill — its background-gradient, or else its background-color — so a gradient running to transparent fades this layer out. Hide the target layer to use it as a mask only","type":"string","enum":["outline","alpha"]},"clip-to":{"description":"Id or name of another layer to clip this layer to — only the part inside that layer's box is drawn, following its border-radius and rotation. Clips chain: a layer clipped to a layer that is itself clipped shows only inside both","type":"string"},"color":{"description":"color","type":"string"},"color-secondary":{"description":"Text color for text wrapped in *asterisks*","type":"string"},"direction":{"description":"direction","type":"string","enum":["ltr","rtl"]},"font-family":{"description":"Font family name (Google Fonts or custom font)","type":"string"},"font-family-secondary":{"description":"Font family for text wrapped in *asterisks*","type":"string"},"font-size":{"description":"font-size","type":"number"},"font-style":{"description":"font-style","type":"string","enum":["normal","italic"]},"font-style-secondary":{"description":"Font style for text wrapped in *asterisks*","type":"string","nullable":true,"enum":["normal","italic"]},"font-weight":{"description":"font-weight","type":"number","enum":[100,200,300,400,500,600,700,800,900]},"font-weight-secondary":{"description":"Font weight for text wrapped in *asterisks*","type":"number","nullable":true,"enum":[100,200,300,400,500,600,700,800,900]},"height":{"description":"height","type":"number"},"hidden":{"description":"Hide or show this layer","type":"boolean"},"left":{"description":"left","type":"number"},"letter-spacing":{"description":"letter-spacing","type":"number"},"line-height":{"description":"Line height multiplier for text spacing","type":"number"},"opacity":{"description":"Opacity from 0 (transparent) to 1 (opaque)","type":"number"},"padding":{"description":"padding","type":"number"},"perspective":{"description":"Perspective distance for 3D transforms in pixels","type":"number"},"responsive-anchor-gap":{"description":"How the anchor gap adjusts when the template is resized","type":"string","enum":["none","scale","scale-x","scale-y","stretch","stretch-x","stretch-y"]},"responsive-aspect-ratio":{"description":"Whether the layer keeps its aspect ratio when responsively resized","type":"string","enum":["free","locked"]},"responsive-position":{"description":"How the layer repositions when the template is resized","type":"string","enum":["none","scale","center-x","center-y","center","pin-right","pin-bottom","pin-right-bottom","center-x-pin-bottom","center-y-pin-right"]},"responsive-size":{"description":"How the layer resizes when the template is resized","type":"string","enum":["none","scale","stretch-x","stretch-y","stretch"]},"rotate":{"description":"Rotation angle in degrees","type":"number"},"rotateX":{"description":"3D rotation around the X axis in degrees","type":"number"},"rotateY":{"description":"3D rotation around the Y axis in degrees","type":"number"},"rotateZ":{"description":"3D rotation around the Z axis in degrees","type":"number"},"skewX":{"description":"Horizontal skew angle in degrees","type":"number"},"skewY":{"description":"Vertical skew angle in degrees","type":"number"},"text":{"description":"Text content to display","type":"string"},"text-align":{"description":"Horizontal text alignment","type":"string","enum":["left","center","right","justify","start","end"]},"text-background-image-mask":{"description":"Image URL to use as a clipping mask for the text fill","type":"string"},"text-decoration":{"description":"text-decoration","type":"string","enum":["none","underline","overline"]},"text-decoration-secondary":{"description":"Text decoration for text wrapped in *asterisks*","type":"string","nullable":true,"enum":["none","underline","line-through"]},"text-ellipsis":{"description":"Truncate overflowing text with an ellipsis","type":"boolean"},"text-fit":{"description":"How text is sized to fit its container","type":"string","enum":["off","auto_fit","resize_overflow"]},"text-highlight-border-radius":{"description":"Corner radius of the text highlight in pixels","type":"number"},"text-highlight-color":{"description":"Background color behind individual lines of text","type":"string"},"text-highlight-padding-horizontal":{"description":"Horizontal padding around text highlight in pixels","type":"number"},"text-highlight-padding-vertical":{"description":"Vertical padding around text highlight in pixels","type":"number"},"text-highlight-shadow":{"description":"CSS box-shadow applied to the text highlight, e.g. 0px 2px 4px #000","type":"string"},"text-shadow":{"description":"text-shadow","type":"string"},"text-stroke-color":{"description":"Color of the text outline stroke","type":"string"},"text-stroke-width":{"description":"Width of the text outline stroke in pixels","type":"number"},"text-transform":{"description":"text-transform","type":"string","enum":["none","uppercase","lowercase","capitalize"]},"text-transform-secondary":{"description":"Text transform for text wrapped in *asterisks*","type":"string","nullable":true,"enum":["none","uppercase","lowercase","capitalize"]},"top":{"description":"top","type":"number"},"white-space":{"description":"How whitespace and line breaks are handled","type":"string","enum":["normal","nowrap","pre","pre-wrap","pre-line"]},"width":{"description":"width","type":"number"},"word-break":{"description":"word-break","type":"string","enum":["normal","break-all","keep-all","break-word"]}}},"LayerRectangle":{"type":"object","description":"A `rectangle` layer.","required":["id","type"],"properties":{"id":{"type":"string","description":"Unique layer id within the config"},"type":{"type":"string","enum":["rectangle"],"description":"Layer type discriminator"},"name":{"type":"string","description":"Optional human-readable layer name"},"anchor-gap-x":{"description":"Horizontal offset from the anchor point in pixels","type":"number"},"anchor-gap-y":{"description":"Vertical offset from the anchor point in pixels","type":"number"},"anchor-point":{"description":"Which point on the target layer to anchor to","type":"string","enum":["top-left","top-center","top-right","center-left","center","center-right","bottom-left","bottom-center","bottom-right"]},"anchor-to":{"description":"Name of another layer to anchor this layer's position to","type":"string"},"anchor-type":{"description":"Whether to anchor to the container bounds or text bounds","type":"string","enum":["container","text"]},"background-color":{"description":"Background color of the container","type":"string"},"background-color-gradient":{"description":"Second color for a two-color gradient fill","type":"string"},"background-gradient":{"description":"Full CSS gradient for the fill, e.g. linear-gradient(135deg, #f00 0%, #00f 60%, transparent 100%) — any number of stops at any angle, and radial-gradient or conic-gradient are accepted. Takes priority over background-color-gradient and is drawn on top of background-color","type":"string"},"background-gradient-direction":{"description":"Direction of the gradient fill","type":"string","enum":["left","right","top","bottom"]},"blur":{"description":"Gaussian blur radius in pixels","type":"number"},"border-color":{"description":"border-color","type":"string"},"border-radius":{"description":"Border radius in pixels for rounded corners","type":"number"},"border-style":{"description":"border-style","type":"string","enum":["none","solid"]},"border-width":{"description":"border-width","type":"number"},"box-shadow":{"description":"box-shadow","type":"string"},"clip-mode":{"description":"How clip-to hides this layer. outline cuts it to the target's shape. alpha also fades it by the transparency of the target's fill — its background-gradient, or else its background-color — so a gradient running to transparent fades this layer out. Hide the target layer to use it as a mask only","type":"string","enum":["outline","alpha"]},"clip-to":{"description":"Id or name of another layer to clip this layer to — only the part inside that layer's box is drawn, following its border-radius and rotation. Clips chain: a layer clipped to a layer that is itself clipped shows only inside both","type":"string"},"height":{"description":"height","type":"number"},"hidden":{"description":"Hide or show this layer","type":"boolean"},"left":{"description":"left","type":"number"},"opacity":{"description":"Opacity from 0 (transparent) to 1 (opaque)","type":"number"},"padding":{"description":"padding","type":"number"},"perspective":{"description":"Perspective distance for 3D transforms in pixels","type":"number"},"responsive-anchor-gap":{"description":"How the anchor gap adjusts when the template is resized","type":"string","enum":["none","scale","scale-x","scale-y","stretch","stretch-x","stretch-y"]},"responsive-aspect-ratio":{"description":"Whether the layer keeps its aspect ratio when responsively resized","type":"string","enum":["free","locked"]},"responsive-position":{"description":"How the layer repositions when the template is resized","type":"string","enum":["none","scale","center-x","center-y","center","pin-right","pin-bottom","pin-right-bottom","center-x-pin-bottom","center-y-pin-right"]},"responsive-size":{"description":"How the layer resizes when the template is resized","type":"string","enum":["none","scale","stretch-x","stretch-y","stretch"]},"rotate":{"description":"Rotation angle in degrees","type":"number"},"rotateX":{"description":"3D rotation around the X axis in degrees","type":"number"},"rotateY":{"description":"3D rotation around the Y axis in degrees","type":"number"},"rotateZ":{"description":"3D rotation around the Z axis in degrees","type":"number"},"top":{"description":"top","type":"number"},"width":{"description":"width","type":"number"}}},"LayerRectangleImageContainer":{"type":"object","description":"A `rectangle_image_container` layer.","required":["id","type"],"properties":{"id":{"type":"string","description":"Unique layer id within the config"},"type":{"type":"string","enum":["rectangle_image_container"],"description":"Layer type discriminator"},"name":{"type":"string","description":"Optional human-readable layer name"},"ai-background-generate":{"description":"Whether the container should generate its background image via AI when an ai-prompt is supplied in the API request","type":"string","enum":["disabled","enabled"]},"ai-background-remove":{"description":"Whether to automatically remove the background of images submitted to this container via the API","type":"string","enum":["disabled","enabled"]},"ai-detect":{"description":"AI detection mode for automatic image positioning","type":"string","enum":["off","face","subject"]},"ai-detect-anchor":{"description":"Manual anchor point override for AI detection in x:y format (0-100)","type":"string"},"ai-detect-focus":{"description":"Which detection to focus on when multiple are found","type":"string","enum":["first","largest","group"]},"ai-detect-on-fail":{"description":"Fallback background-size when no face or subject is detected","type":"string","enum":["fallback_cover","fallback_contain"]},"ai-detect-zoom":{"description":"Zoom level for AI detection crop","type":"string","enum":["auto","50%","60%","70%","80%","90%"]},"ai-model":{"description":"Which AI model generates this layer's background. Costs vary by model — Flux Schnell is a tenth the price of Flux 1.1 Pro. Can be overridden per request by sending ai-model alongside ai-prompt","type":"string","enum":["flux_schnell","flux_1_1_pro","nano_banana","gpt_image_2"]},"ai-prompt":{"description":"Prompt for AI background generation — applies when the layer has ai-background-generate enabled","type":"string"},"anchor-gap-x":{"description":"Horizontal offset from the anchor point in pixels","type":"number"},"anchor-gap-y":{"description":"Vertical offset from the anchor point in pixels","type":"number"},"anchor-point":{"description":"Which point on the target layer to anchor to","type":"string","enum":["top-left","top-center","top-right","center-left","center","center-right","bottom-left","bottom-center","bottom-right"]},"anchor-to":{"description":"Name of another layer to anchor this layer's position to","type":"string"},"anchor-type":{"description":"Whether to anchor to the container bounds or text bounds","type":"string","enum":["container","text"]},"background-blend-mode":{"description":"Blend mode applied to the background image","type":"string","enum":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]},"background-color":{"description":"Background color of the container","type":"string"},"background-color-gradient":{"description":"Second color for a two-color gradient fill","type":"string"},"background-crop":{"description":"Region of the source image to show, as four percentages of the image: left top width height, e.g. 10% 5% 60% 80%. The region is stretched to fill the layer, so give it the layer's aspect ratio. Overrides background-size and background-position; send none to clear it. Ignored while ai-detect is on","type":"string"},"background-gradient":{"description":"Full CSS gradient for the fill, e.g. linear-gradient(135deg, #f00 0%, #00f 60%, transparent 100%) — any number of stops at any angle, and radial-gradient or conic-gradient are accepted. Takes priority over background-color-gradient and is drawn on top of background-color","type":"string"},"background-gradient-direction":{"description":"Direction of the gradient fill","type":"string","enum":["left","right","top","bottom"]},"background-image":{"description":"Image URL to display in the container","type":"string"},"background-position":{"description":"Anchor position for the background image within the container — most useful when background-size is contain","type":"string","enum":["center","top","right","bottom","left","top left","top right","bottom left","bottom right"]},"background-size":{"description":"background-size","type":"string","enum":["cover","contain"]},"blur":{"description":"Gaussian blur radius in pixels","type":"number"},"border-color":{"description":"border-color","type":"string"},"border-radius":{"description":"Border radius in pixels for rounded corners","type":"number"},"border-style":{"description":"border-style","type":"string","enum":["none","solid"]},"border-width":{"description":"border-width","type":"number"},"box-shadow":{"description":"box-shadow","type":"string"},"brightness":{"description":"Brightness adjustment where 1 is normal","type":"number"},"clip-mode":{"description":"How clip-to hides this layer. outline cuts it to the target's shape. alpha also fades it by the transparency of the target's fill — its background-gradient, or else its background-color — so a gradient running to transparent fades this layer out. Hide the target layer to use it as a mask only","type":"string","enum":["outline","alpha"]},"clip-to":{"description":"Id or name of another layer to clip this layer to — only the part inside that layer's box is drawn, following its border-radius and rotation. Clips chain: a layer clipped to a layer that is itself clipped shows only inside both","type":"string"},"contrast":{"description":"Contrast adjustment where 1 is normal","type":"number"},"grayscale":{"description":"Grayscale filter intensity from 0 to 1","type":"number"},"height":{"description":"height","type":"number"},"hidden":{"description":"Hide or show this layer","type":"boolean"},"left":{"description":"left","type":"number"},"opacity":{"description":"Opacity from 0 (transparent) to 1 (opaque)","type":"number"},"padding":{"description":"padding","type":"number"},"perspective":{"description":"Perspective distance for 3D transforms in pixels","type":"number"},"png-shadow":{"description":"Drop shadow for PNG images in CSS shadow format","type":"string"},"png-stroke-color":{"description":"Outline stroke color around PNG images","type":"string"},"png-stroke-width":{"description":"Outline stroke width around PNG images in pixels","type":"number"},"responsive-anchor-gap":{"description":"How the anchor gap adjusts when the template is resized","type":"string","enum":["none","scale","scale-x","scale-y","stretch","stretch-x","stretch-y"]},"responsive-aspect-ratio":{"description":"Whether the layer keeps its aspect ratio when responsively resized","type":"string","enum":["free","locked"]},"responsive-position":{"description":"How the layer repositions when the template is resized","type":"string","enum":["none","scale","center-x","center-y","center","pin-right","pin-bottom","pin-right-bottom","center-x-pin-bottom","center-y-pin-right"]},"responsive-size":{"description":"How the layer resizes when the template is resized","type":"string","enum":["none","scale","stretch-x","stretch-y","stretch"]},"rotate":{"description":"Rotation angle in degrees","type":"number"},"rotateX":{"description":"3D rotation around the X axis in degrees","type":"number"},"rotateY":{"description":"3D rotation around the Y axis in degrees","type":"number"},"rotateZ":{"description":"3D rotation around the Z axis in degrees","type":"number"},"saturate":{"description":"Saturation adjustment where 1 is normal","type":"number"},"sepia":{"description":"Sepia filter intensity from 0 to 1","type":"number"},"top":{"description":"top","type":"number"},"width":{"description":"width","type":"number"}}},"LayerCircle":{"type":"object","description":"A `circle` layer.","required":["id","type"],"properties":{"id":{"type":"string","description":"Unique layer id within the config"},"type":{"type":"string","enum":["circle"],"description":"Layer type discriminator"},"name":{"type":"string","description":"Optional human-readable layer name"},"anchor-gap-x":{"description":"Horizontal offset from the anchor point in pixels","type":"number"},"anchor-gap-y":{"description":"Vertical offset from the anchor point in pixels","type":"number"},"anchor-point":{"description":"Which point on the target layer to anchor to","type":"string","enum":["top-left","top-center","top-right","center-left","center","center-right","bottom-left","bottom-center","bottom-right"]},"anchor-to":{"description":"Name of another layer to anchor this layer's position to","type":"string"},"anchor-type":{"description":"Whether to anchor to the container bounds or text bounds","type":"string","enum":["container","text"]},"aspect-ratio-locked":{"description":"aspect-ratio-locked","type":"boolean"},"background-color":{"description":"Background color of the container","type":"string"},"background-color-gradient":{"description":"Second color for a two-color gradient fill","type":"string"},"background-gradient":{"description":"Full CSS gradient for the fill, e.g. linear-gradient(135deg, #f00 0%, #00f 60%, transparent 100%) — any number of stops at any angle, and radial-gradient or conic-gradient are accepted. Takes priority over background-color-gradient and is drawn on top of background-color","type":"string"},"background-gradient-direction":{"description":"Direction of the gradient fill","type":"string","enum":["left","right","top","bottom"]},"blur":{"description":"Gaussian blur radius in pixels","type":"number"},"border-color":{"description":"border-color","type":"string"},"border-radius":{"description":"Border radius in pixels for rounded corners","type":"number"},"border-style":{"description":"border-style","type":"string","enum":["none","solid"]},"border-width":{"description":"border-width","type":"number"},"box-shadow":{"description":"box-shadow","type":"string"},"clip-mode":{"description":"How clip-to hides this layer. outline cuts it to the target's shape. alpha also fades it by the transparency of the target's fill — its background-gradient, or else its background-color — so a gradient running to transparent fades this layer out. Hide the target layer to use it as a mask only","type":"string","enum":["outline","alpha"]},"clip-to":{"description":"Id or name of another layer to clip this layer to — only the part inside that layer's box is drawn, following its border-radius and rotation. Clips chain: a layer clipped to a layer that is itself clipped shows only inside both","type":"string"},"height":{"description":"height","type":"number"},"hidden":{"description":"Hide or show this layer","type":"boolean"},"left":{"description":"left","type":"number"},"opacity":{"description":"Opacity from 0 (transparent) to 1 (opaque)","type":"number"},"padding":{"description":"padding","type":"number"},"perspective":{"description":"Perspective distance for 3D transforms in pixels","type":"number"},"responsive-anchor-gap":{"description":"How the anchor gap adjusts when the template is resized","type":"string","enum":["none","scale","scale-x","scale-y","stretch","stretch-x","stretch-y"]},"responsive-aspect-ratio":{"description":"responsive-aspect-ratio","type":"string","enum":["free","locked"]},"responsive-position":{"description":"How the layer repositions when the template is resized","type":"string","enum":["none","scale","center-x","center-y","center","pin-right","pin-bottom","pin-right-bottom","center-x-pin-bottom","center-y-pin-right"]},"responsive-size":{"description":"How the layer resizes when the template is resized","type":"string","enum":["none","scale","stretch-x","stretch-y","stretch"]},"rotate":{"description":"Rotation angle in degrees","type":"number"},"rotateX":{"description":"3D rotation around the X axis in degrees","type":"number"},"rotateY":{"description":"3D rotation around the Y axis in degrees","type":"number"},"rotateZ":{"description":"3D rotation around the Z axis in degrees","type":"number"},"top":{"description":"top","type":"number"},"width":{"description":"width","type":"number"}}},"LayerCircleImageContainer":{"type":"object","description":"A `circle_image_container` layer.","required":["id","type"],"properties":{"id":{"type":"string","description":"Unique layer id within the config"},"type":{"type":"string","enum":["circle_image_container"],"description":"Layer type discriminator"},"name":{"type":"string","description":"Optional human-readable layer name"},"ai-background-generate":{"description":"Whether the container should generate its background image via AI when an ai-prompt is supplied in the API request","type":"string","enum":["disabled","enabled"]},"ai-background-remove":{"description":"Whether to automatically remove the background of images submitted to this container via the API","type":"string","enum":["disabled","enabled"]},"ai-detect":{"description":"AI detection mode for automatic image positioning","type":"string","enum":["off","face","subject"]},"ai-detect-anchor":{"description":"Manual anchor point override for AI detection in x:y format (0-100)","type":"string"},"ai-detect-focus":{"description":"Which detection to focus on when multiple are found","type":"string","enum":["first","largest","group"]},"ai-detect-on-fail":{"description":"Fallback background-size when no face or subject is detected","type":"string","enum":["fallback_cover","fallback_contain"]},"ai-detect-zoom":{"description":"Zoom level for AI detection crop","type":"string","enum":["auto","50%","60%","70%","80%","90%"]},"ai-model":{"description":"Which AI model generates this layer's background. Costs vary by model — Flux Schnell is a tenth the price of Flux 1.1 Pro. Can be overridden per request by sending ai-model alongside ai-prompt","type":"string","enum":["flux_schnell","flux_1_1_pro","nano_banana","gpt_image_2"]},"ai-prompt":{"description":"Prompt for AI background generation — applies when the layer has ai-background-generate enabled","type":"string"},"anchor-gap-x":{"description":"Horizontal offset from the anchor point in pixels","type":"number"},"anchor-gap-y":{"description":"Vertical offset from the anchor point in pixels","type":"number"},"anchor-point":{"description":"Which point on the target layer to anchor to","type":"string","enum":["top-left","top-center","top-right","center-left","center","center-right","bottom-left","bottom-center","bottom-right"]},"anchor-to":{"description":"Name of another layer to anchor this layer's position to","type":"string"},"anchor-type":{"description":"Whether to anchor to the container bounds or text bounds","type":"string","enum":["container","text"]},"aspect-ratio-locked":{"description":"aspect-ratio-locked","type":"boolean"},"background-blend-mode":{"description":"Blend mode applied to the background image","type":"string","enum":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]},"background-color":{"description":"Background color of the container","type":"string"},"background-color-gradient":{"description":"Second color for a two-color gradient fill","type":"string"},"background-crop":{"description":"Region of the source image to show, as four percentages of the image: left top width height, e.g. 10% 5% 60% 80%. The region is stretched to fill the layer, so give it the layer's aspect ratio. Overrides background-size and background-position; send none to clear it. Ignored while ai-detect is on","type":"string"},"background-gradient":{"description":"Full CSS gradient for the fill, e.g. linear-gradient(135deg, #f00 0%, #00f 60%, transparent 100%) — any number of stops at any angle, and radial-gradient or conic-gradient are accepted. Takes priority over background-color-gradient and is drawn on top of background-color","type":"string"},"background-gradient-direction":{"description":"Direction of the gradient fill","type":"string","enum":["left","right","top","bottom"]},"background-image":{"description":"Image URL to display in the container","type":"string"},"background-position":{"description":"Anchor position for the background image within the container — most useful when background-size is contain","type":"string","enum":["center","top","right","bottom","left","top left","top right","bottom left","bottom right"]},"background-size":{"description":"background-size","type":"string","enum":["cover","contain"]},"blur":{"description":"Gaussian blur radius in pixels","type":"number"},"border-color":{"description":"border-color","type":"string"},"border-radius":{"description":"Border radius in pixels for rounded corners","type":"number"},"border-style":{"description":"border-style","type":"string","enum":["none","solid"]},"border-width":{"description":"border-width","type":"number"},"box-shadow":{"description":"box-shadow","type":"string"},"brightness":{"description":"Brightness adjustment where 1 is normal","type":"number"},"clip-mode":{"description":"How clip-to hides this layer. outline cuts it to the target's shape. alpha also fades it by the transparency of the target's fill — its background-gradient, or else its background-color — so a gradient running to transparent fades this layer out. Hide the target layer to use it as a mask only","type":"string","enum":["outline","alpha"]},"clip-to":{"description":"Id or name of another layer to clip this layer to — only the part inside that layer's box is drawn, following its border-radius and rotation. Clips chain: a layer clipped to a layer that is itself clipped shows only inside both","type":"string"},"contrast":{"description":"Contrast adjustment where 1 is normal","type":"number"},"grayscale":{"description":"Grayscale filter intensity from 0 to 1","type":"number"},"height":{"description":"height","type":"number"},"hidden":{"description":"Hide or show this layer","type":"boolean"},"left":{"description":"left","type":"number"},"opacity":{"description":"Opacity from 0 (transparent) to 1 (opaque)","type":"number"},"padding":{"description":"padding","type":"number"},"perspective":{"description":"Perspective distance for 3D transforms in pixels","type":"number"},"png-shadow":{"description":"Drop shadow for PNG images in CSS shadow format","type":"string"},"png-stroke-color":{"description":"Outline stroke color around PNG images","type":"string"},"png-stroke-width":{"description":"Outline stroke width around PNG images in pixels","type":"number"},"responsive-anchor-gap":{"description":"How the anchor gap adjusts when the template is resized","type":"string","enum":["none","scale","scale-x","scale-y","stretch","stretch-x","stretch-y"]},"responsive-aspect-ratio":{"description":"responsive-aspect-ratio","type":"string","enum":["free","locked"]},"responsive-position":{"description":"How the layer repositions when the template is resized","type":"string","enum":["none","scale","center-x","center-y","center","pin-right","pin-bottom","pin-right-bottom","center-x-pin-bottom","center-y-pin-right"]},"responsive-size":{"description":"How the layer resizes when the template is resized","type":"string","enum":["none","scale","stretch-x","stretch-y","stretch"]},"rotate":{"description":"Rotation angle in degrees","type":"number"},"rotateX":{"description":"3D rotation around the X axis in degrees","type":"number"},"rotateY":{"description":"3D rotation around the Y axis in degrees","type":"number"},"rotateZ":{"description":"3D rotation around the Z axis in degrees","type":"number"},"saturate":{"description":"Saturation adjustment where 1 is normal","type":"number"},"sepia":{"description":"Sepia filter intensity from 0 to 1","type":"number"},"top":{"description":"top","type":"number"},"width":{"description":"width","type":"number"}}},"LayerImage":{"type":"object","description":"A `image` layer.","required":["id","type"],"properties":{"id":{"type":"string","description":"Unique layer id within the config"},"type":{"type":"string","enum":["image"],"description":"Layer type discriminator"},"name":{"type":"string","description":"Optional human-readable layer name"},"anchor-gap-x":{"description":"Horizontal offset from the anchor point in pixels","type":"number"},"anchor-gap-y":{"description":"Vertical offset from the anchor point in pixels","type":"number"},"anchor-point":{"description":"Which point on the target layer to anchor to","type":"string","enum":["top-left","top-center","top-right","center-left","center","center-right","bottom-left","bottom-center","bottom-right"]},"anchor-to":{"description":"Name of another layer to anchor this layer's position to","type":"string"},"anchor-type":{"description":"Whether to anchor to the container bounds or text bounds","type":"string","enum":["container","text"]},"aspect-ratio-locked":{"description":"aspect-ratio-locked","type":"boolean"},"background-blend-mode":{"description":"Blend mode applied to the image","type":"string","enum":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]},"background-color":{"description":"Background color of the container","type":"string"},"background-crop":{"description":"Region of the source image to show, as four percentages of the image: left top width height, e.g. 10% 5% 60% 80%. The region is stretched to fill the layer, so give it the layer's aspect ratio. Overrides background-size and background-position; send none to clear it. Ignored while ai-detect is on","type":"string"},"background-image":{"description":"Image URL to display","type":"string"},"background-size":{"description":"background-size","type":"string","enum":["cover","contain"]},"blur":{"description":"Gaussian blur radius in pixels","type":"number"},"border-color":{"description":"border-color","type":"string"},"border-radius":{"description":"Border radius in pixels for rounded corners","type":"number"},"border-style":{"description":"border-style","type":"string","enum":["none","solid"]},"border-width":{"description":"border-width","type":"number"},"box-shadow":{"description":"box-shadow","type":"string"},"brightness":{"description":"Brightness adjustment where 1 is normal","type":"number"},"clip-mode":{"description":"How clip-to hides this layer. outline cuts it to the target's shape. alpha also fades it by the transparency of the target's fill — its background-gradient, or else its background-color — so a gradient running to transparent fades this layer out. Hide the target layer to use it as a mask only","type":"string","enum":["outline","alpha"]},"clip-to":{"description":"Id or name of another layer to clip this layer to — only the part inside that layer's box is drawn, following its border-radius and rotation. Clips chain: a layer clipped to a layer that is itself clipped shows only inside both","type":"string"},"contrast":{"description":"Contrast adjustment where 1 is normal","type":"number"},"grayscale":{"description":"Grayscale filter intensity from 0 to 1","type":"number"},"height":{"description":"height","type":"number"},"hidden":{"description":"Hide or show this layer","type":"boolean"},"left":{"description":"left","type":"number"},"opacity":{"description":"Opacity from 0 (transparent) to 1 (opaque)","type":"number"},"padding":{"description":"padding","type":"number"},"perspective":{"description":"Perspective distance for 3D transforms in pixels","type":"number"},"png-shadow":{"description":"Drop shadow for PNG images in CSS shadow format","type":"string"},"png-stroke-color":{"description":"Outline stroke color around PNG images","type":"string"},"png-stroke-width":{"description":"Outline stroke width around PNG images in pixels","type":"number"},"responsive-anchor-gap":{"description":"How the anchor gap adjusts when the template is resized","type":"string","enum":["none","scale","scale-x","scale-y","stretch","stretch-x","stretch-y"]},"responsive-aspect-ratio":{"description":"Whether the layer keeps its aspect ratio when responsively resized","type":"string","enum":["free","locked"]},"responsive-position":{"description":"How the layer repositions when the template is resized","type":"string","enum":["none","scale","center-x","center-y","center","pin-right","pin-bottom","pin-right-bottom","center-x-pin-bottom","center-y-pin-right"]},"responsive-size":{"description":"How the layer resizes when the template is resized","type":"string","enum":["none","scale","stretch-x","stretch-y","stretch"]},"rotate":{"description":"Rotation angle in degrees","type":"number"},"rotateX":{"description":"3D rotation around the X axis in degrees","type":"number"},"rotateY":{"description":"3D rotation around the Y axis in degrees","type":"number"},"rotateZ":{"description":"3D rotation around the Z axis in degrees","type":"number"},"saturate":{"description":"Saturation adjustment where 1 is normal","type":"number"},"sepia":{"description":"Sepia filter intensity from 0 to 1","type":"number"},"top":{"description":"top","type":"number"},"width":{"description":"width","type":"number"}}},"LayerSvgShape":{"type":"object","description":"A `svg_shape` layer.","required":["id","type"],"properties":{"id":{"type":"string","description":"Unique layer id within the config"},"type":{"type":"string","enum":["svg_shape"],"description":"Layer type discriminator"},"name":{"type":"string","description":"Optional human-readable layer name"},"anchor-gap-x":{"description":"Horizontal offset from the anchor point in pixels","type":"number"},"anchor-gap-y":{"description":"Vertical offset from the anchor point in pixels","type":"number"},"anchor-point":{"description":"Which point on the target layer to anchor to","type":"string","enum":["top-left","top-center","top-right","center-left","center","center-right","bottom-left","bottom-center","bottom-right"]},"anchor-to":{"description":"Name of another layer to anchor this layer's position to","type":"string"},"anchor-type":{"description":"Whether to anchor to the container bounds or text bounds","type":"string","enum":["container","text"]},"background-color":{"description":"Background color of the container","type":"string"},"background-color-gradient":{"description":"Second color for a two-color gradient fill","type":"string"},"background-gradient":{"description":"Full CSS gradient for the fill, e.g. linear-gradient(135deg, #f00 0%, #00f 60%, transparent 100%) — any number of stops at any angle, and radial-gradient or conic-gradient are accepted. Takes priority over background-color-gradient and is drawn on top of background-color","type":"string"},"background-gradient-direction":{"description":"Direction of the gradient fill","type":"string","enum":["left","right","top","bottom"]},"basic-shape":{"description":"The SVG shape to render","type":"string","enum":["triangle","scalene","pentagon","right","trapeze","kite","polygon","parallelogram","ellipse","trefoil","star","semicircle","hexagon","crescent","octagon","cross","ring","heart","arrow","rhombus","custom"]},"blur":{"description":"Gaussian blur radius in pixels","type":"number"},"border-color":{"description":"border-color","type":"string"},"border-radius":{"description":"Border radius in pixels for rounded corners","type":"number"},"border-style":{"description":"border-style","type":"string","enum":["none","solid"]},"border-width":{"description":"border-width","type":"number"},"box-shadow":{"description":"box-shadow","type":"string"},"clip-mode":{"description":"How clip-to hides this layer. outline cuts it to the target's shape. alpha also fades it by the transparency of the target's fill — its background-gradient, or else its background-color — so a gradient running to transparent fades this layer out. Hide the target layer to use it as a mask only","type":"string","enum":["outline","alpha"]},"clip-to":{"description":"Id or name of another layer to clip this layer to — only the part inside that layer's box is drawn, following its border-radius and rotation. Clips chain: a layer clipped to a layer that is itself clipped shows only inside both","type":"string"},"fill":{"description":"Fill color of the shape","type":"string"},"height":{"description":"height","type":"number"},"hidden":{"description":"Hide or show this layer","type":"boolean"},"left":{"description":"left","type":"number"},"opacity":{"description":"Opacity from 0 (transparent) to 1 (opaque)","type":"number"},"padding":{"description":"padding","type":"number"},"perspective":{"description":"Perspective distance for 3D transforms in pixels","type":"number"},"responsive-anchor-gap":{"description":"How the anchor gap adjusts when the template is resized","type":"string","enum":["none","scale","scale-x","scale-y","stretch","stretch-x","stretch-y"]},"responsive-aspect-ratio":{"description":"Whether the layer keeps its aspect ratio when responsively resized","type":"string","enum":["free","locked"]},"responsive-position":{"description":"How the layer repositions when the template is resized","type":"string","enum":["none","scale","center-x","center-y","center","pin-right","pin-bottom","pin-right-bottom","center-x-pin-bottom","center-y-pin-right"]},"responsive-size":{"description":"How the layer resizes when the template is resized","type":"string","enum":["none","scale","stretch-x","stretch-y","stretch"]},"rotate":{"description":"Rotation angle in degrees","type":"number"},"rotateX":{"description":"3D rotation around the X axis in degrees","type":"number"},"rotateY":{"description":"3D rotation around the Y axis in degrees","type":"number"},"rotateZ":{"description":"3D rotation around the Z axis in degrees","type":"number"},"stroke":{"description":"Stroke color of the shape outline","type":"string"},"stroke-width":{"description":"Stroke width of the shape outline in pixels","type":"number"},"svg-url":{"description":"URL of the SVG file to draw when basic-shape is custom. The file keeps its own colors unless fill, a gradient or a stroke is set","type":"string"},"top":{"description":"top","type":"number"},"width":{"description":"width","type":"number"}}},"LayerQrCode":{"type":"object","description":"A `qr_code` layer.","required":["id","type"],"properties":{"id":{"type":"string","description":"Unique layer id within the config"},"type":{"type":"string","enum":["qr_code"],"description":"Layer type discriminator"},"name":{"type":"string","description":"Optional human-readable layer name"},"anchor-gap-x":{"description":"Horizontal offset from the anchor point in pixels","type":"number"},"anchor-gap-y":{"description":"Vertical offset from the anchor point in pixels","type":"number"},"anchor-point":{"description":"Which point on the target layer to anchor to","type":"string","enum":["top-left","top-center","top-right","center-left","center","center-right","bottom-left","bottom-center","bottom-right"]},"anchor-to":{"description":"Name of another layer to anchor this layer's position to","type":"string"},"anchor-type":{"description":"Whether to anchor to the container bounds or text bounds","type":"string","enum":["container","text"]},"background-color":{"description":"Background color of the container","type":"string"},"blur":{"description":"Gaussian blur radius in pixels","type":"number"},"border-color":{"description":"border-color","type":"string"},"border-radius":{"description":"Border radius in pixels for rounded corners","type":"number"},"border-style":{"description":"border-style","type":"string","enum":["none","solid"]},"border-width":{"description":"border-width","type":"number"},"box-shadow":{"description":"box-shadow","type":"string"},"clip-mode":{"description":"How clip-to hides this layer. outline cuts it to the target's shape. alpha also fades it by the transparency of the target's fill — its background-gradient, or else its background-color — so a gradient running to transparent fades this layer out. Hide the target layer to use it as a mask only","type":"string","enum":["outline","alpha"]},"clip-to":{"description":"Id or name of another layer to clip this layer to — only the part inside that layer's box is drawn, following its border-radius and rotation. Clips chain: a layer clipped to a layer that is itself clipped shows only inside both","type":"string"},"height":{"description":"height","type":"number"},"hidden":{"description":"Hide or show this layer","type":"boolean"},"left":{"description":"left","type":"number"},"opacity":{"description":"Opacity from 0 (transparent) to 1 (opaque)","type":"number"},"padding":{"description":"padding","type":"number"},"perspective":{"description":"Perspective distance for 3D transforms in pixels","type":"number"},"qr-color":{"description":"Foreground color of the QR code","type":"string"},"qr-target":{"description":"URL or text content to encode in the QR code","type":"string"},"responsive-anchor-gap":{"description":"How the anchor gap adjusts when the template is resized","type":"string","enum":["none","scale","scale-x","scale-y","stretch","stretch-x","stretch-y"]},"responsive-aspect-ratio":{"description":"Whether the layer keeps its aspect ratio when responsively resized","type":"string","enum":["free","locked"]},"responsive-position":{"description":"How the layer repositions when the template is resized","type":"string","enum":["none","scale","center-x","center-y","center","pin-right","pin-bottom","pin-right-bottom","center-x-pin-bottom","center-y-pin-right"]},"responsive-size":{"description":"How the layer resizes when the template is resized","type":"string","enum":["none","scale","stretch-x","stretch-y","stretch"]},"rotate":{"description":"Rotation angle in degrees","type":"number"},"rotateX":{"description":"3D rotation around the X axis in degrees","type":"number"},"rotateY":{"description":"3D rotation around the Y axis in degrees","type":"number"},"rotateZ":{"description":"3D rotation around the Z axis in degrees","type":"number"},"top":{"description":"top","type":"number"},"width":{"description":"width","type":"number"}}},"LayerBarCode":{"type":"object","description":"A `bar_code` layer.","required":["id","type"],"properties":{"id":{"type":"string","description":"Unique layer id within the config"},"type":{"type":"string","enum":["bar_code"],"description":"Layer type discriminator"},"name":{"type":"string","description":"Optional human-readable layer name"},"anchor-gap-x":{"description":"Horizontal offset from the anchor point in pixels","type":"number"},"anchor-gap-y":{"description":"Vertical offset from the anchor point in pixels","type":"number"},"anchor-point":{"description":"Which point on the target layer to anchor to","type":"string","enum":["top-left","top-center","top-right","center-left","center","center-right","bottom-left","bottom-center","bottom-right"]},"anchor-to":{"description":"Name of another layer to anchor this layer's position to","type":"string"},"anchor-type":{"description":"Whether to anchor to the container bounds or text bounds","type":"string","enum":["container","text"]},"background-color":{"description":"Background color of the container","type":"string"},"barcode-color":{"description":"Foreground color of the barcode","type":"string"},"barcode-data":{"description":"Data to encode in the barcode","type":"string"},"barcode-format":{"description":"Barcode encoding format","type":"string","enum":["CODE128","EAN13","UPC","EAN8"]},"blur":{"description":"Gaussian blur radius in pixels","type":"number"},"border-color":{"description":"border-color","type":"string"},"border-radius":{"description":"Border radius in pixels for rounded corners","type":"number"},"border-style":{"description":"border-style","type":"string","enum":["none","solid"]},"border-width":{"description":"border-width","type":"number"},"box-shadow":{"description":"box-shadow","type":"string"},"clip-mode":{"description":"How clip-to hides this layer. outline cuts it to the target's shape. alpha also fades it by the transparency of the target's fill — its background-gradient, or else its background-color — so a gradient running to transparent fades this layer out. Hide the target layer to use it as a mask only","type":"string","enum":["outline","alpha"]},"clip-to":{"description":"Id or name of another layer to clip this layer to — only the part inside that layer's box is drawn, following its border-radius and rotation. Clips chain: a layer clipped to a layer that is itself clipped shows only inside both","type":"string"},"height":{"description":"height","type":"number"},"hidden":{"description":"Hide or show this layer","type":"boolean"},"left":{"description":"left","type":"number"},"opacity":{"description":"Opacity from 0 (transparent) to 1 (opaque)","type":"number"},"padding":{"description":"padding","type":"number"},"perspective":{"description":"Perspective distance for 3D transforms in pixels","type":"number"},"responsive-anchor-gap":{"description":"How the anchor gap adjusts when the template is resized","type":"string","enum":["none","scale","scale-x","scale-y","stretch","stretch-x","stretch-y"]},"responsive-aspect-ratio":{"description":"Whether the layer keeps its aspect ratio when responsively resized","type":"string","enum":["free","locked"]},"responsive-position":{"description":"How the layer repositions when the template is resized","type":"string","enum":["none","scale","center-x","center-y","center","pin-right","pin-bottom","pin-right-bottom","center-x-pin-bottom","center-y-pin-right"]},"responsive-size":{"description":"How the layer resizes when the template is resized","type":"string","enum":["none","scale","stretch-x","stretch-y","stretch"]},"rotate":{"description":"Rotation angle in degrees","type":"number"},"rotateX":{"description":"3D rotation around the X axis in degrees","type":"number"},"rotateY":{"description":"3D rotation around the Y axis in degrees","type":"number"},"rotateZ":{"description":"3D rotation around the Z axis in degrees","type":"number"},"top":{"description":"top","type":"number"},"width":{"description":"width","type":"number"}}},"LayerRating":{"type":"object","description":"A `rating` layer.","required":["id","type"],"properties":{"id":{"type":"string","description":"Unique layer id within the config"},"type":{"type":"string","enum":["rating"],"description":"Layer type discriminator"},"name":{"type":"string","description":"Optional human-readable layer name"},"anchor-gap-x":{"description":"Horizontal offset from the anchor point in pixels","type":"number"},"anchor-gap-y":{"description":"Vertical offset from the anchor point in pixels","type":"number"},"anchor-point":{"description":"Which point on the target layer to anchor to","type":"string","enum":["top-left","top-center","top-right","center-left","center","center-right","bottom-left","bottom-center","bottom-right"]},"anchor-to":{"description":"Name of another layer to anchor this layer's position to","type":"string"},"anchor-type":{"description":"Whether to anchor to the container bounds or text bounds","type":"string","enum":["container","text"]},"background-color":{"description":"Background color of the container","type":"string"},"blur":{"description":"Gaussian blur radius in pixels","type":"number"},"border-color":{"description":"border-color","type":"string"},"border-radius":{"description":"Border radius in pixels for rounded corners","type":"number"},"border-style":{"description":"border-style","type":"string","enum":["none","solid"]},"border-width":{"description":"border-width","type":"number"},"box-shadow":{"description":"box-shadow","type":"string"},"clip-mode":{"description":"How clip-to hides this layer. outline cuts it to the target's shape. alpha also fades it by the transparency of the target's fill — its background-gradient, or else its background-color — so a gradient running to transparent fades this layer out. Hide the target layer to use it as a mask only","type":"string","enum":["outline","alpha"]},"clip-to":{"description":"Id or name of another layer to clip this layer to — only the part inside that layer's box is drawn, following its border-radius and rotation. Clips chain: a layer clipped to a layer that is itself clipped shows only inside both","type":"string"},"height":{"description":"height","type":"number"},"hidden":{"description":"Hide or show this layer","type":"boolean"},"left":{"description":"left","type":"number"},"opacity":{"description":"Opacity from 0 (transparent) to 1 (opaque)","type":"number"},"padding":{"description":"padding","type":"number"},"perspective":{"description":"Perspective distance for 3D transforms in pixels","type":"number"},"rating-background-color":{"description":"Fill color for inactive rating shapes","type":"string"},"rating-color":{"description":"Fill color for active rating shapes","type":"string"},"rating-count":{"description":"Number of shapes to display","type":"number"},"rating-gap":{"description":"Gap between rating shapes in pixels","type":"number"},"rating-score":{"description":"Rating score from 0 to 100","type":"number"},"rating-shadow":{"description":"Drop shadow for rating shapes in CSS shadow format","type":"string"},"rating-shape":{"description":"Shape used for each rating unit","type":"string","enum":["star","cute_star","heart","circle","diamond","square","hexagon"]},"rating-stroke-color":{"description":"Outline stroke color for rating shapes","type":"string"},"rating-stroke-width":{"description":"Outline stroke width for rating shapes in pixels","type":"number"},"responsive-anchor-gap":{"description":"How the anchor gap adjusts when the template is resized","type":"string","enum":["none","scale","scale-x","scale-y","stretch","stretch-x","stretch-y"]},"responsive-aspect-ratio":{"description":"Whether the layer keeps its aspect ratio when responsively resized","type":"string","enum":["free","locked"]},"responsive-position":{"description":"How the layer repositions when the template is resized","type":"string","enum":["none","scale","center-x","center-y","center","pin-right","pin-bottom","pin-right-bottom","center-x-pin-bottom","center-y-pin-right"]},"responsive-size":{"description":"How the layer resizes when the template is resized","type":"string","enum":["none","scale","stretch-x","stretch-y","stretch"]},"rotate":{"description":"Rotation angle in degrees","type":"number"},"rotateX":{"description":"3D rotation around the X axis in degrees","type":"number"},"rotateY":{"description":"3D rotation around the Y axis in degrees","type":"number"},"rotateZ":{"description":"3D rotation around the Z axis in degrees","type":"number"},"top":{"description":"top","type":"number"},"width":{"description":"width","type":"number"}}},"LayerLottie":{"type":"object","description":"A `lottie` layer.","required":["id","type"],"properties":{"id":{"type":"string","description":"Unique layer id within the config"},"type":{"type":"string","enum":["lottie"],"description":"Layer type discriminator"},"name":{"type":"string","description":"Optional human-readable layer name"},"anchor-gap-x":{"description":"Horizontal offset from the anchor point in pixels","type":"number"},"anchor-gap-y":{"description":"Vertical offset from the anchor point in pixels","type":"number"},"anchor-point":{"description":"Which point on the target layer to anchor to","type":"string","enum":["top-left","top-center","top-right","center-left","center","center-right","bottom-left","bottom-center","bottom-right"]},"anchor-to":{"description":"Name of another layer to anchor this layer's position to","type":"string"},"anchor-type":{"description":"Whether to anchor to the container bounds or text bounds","type":"string","enum":["container","text"]},"aspect-ratio-locked":{"description":"aspect-ratio-locked","type":"boolean"},"background-color":{"description":"background-color","type":"string"},"blur":{"description":"Gaussian blur radius in pixels","type":"number"},"border-color":{"description":"border-color","type":"string"},"border-radius":{"description":"Border radius in pixels for rounded corners","type":"number"},"border-style":{"description":"border-style","type":"string","enum":["none","solid"]},"border-width":{"description":"border-width","type":"number"},"box-shadow":{"description":"box-shadow","type":"string"},"clip-mode":{"description":"How clip-to hides this layer. outline cuts it to the target's shape. alpha also fades it by the transparency of the target's fill — its background-gradient, or else its background-color — so a gradient running to transparent fades this layer out. Hide the target layer to use it as a mask only","type":"string","enum":["outline","alpha"]},"clip-to":{"description":"Id or name of another layer to clip this layer to — only the part inside that layer's box is drawn, following its border-radius and rotation. Clips chain: a layer clipped to a layer that is itself clipped shows only inside both","type":"string"},"height":{"description":"height","type":"number"},"hidden":{"description":"Hide or show this layer","type":"boolean"},"left":{"description":"left","type":"number"},"lottie-delay":{"description":"Milliseconds to wait after the animation starts before this Lottie begins playing","type":"number"},"lottie-loop":{"description":"Whether the Lottie repeats when it reaches its end, rather than holding its last frame","type":"boolean"},"lottie-url":{"description":"URL of the Lottie JSON file to play","type":"string"},"opacity":{"description":"Opacity from 0 (transparent) to 1 (opaque)","type":"number"},"padding":{"description":"padding","type":"number"},"perspective":{"description":"Perspective distance for 3D transforms in pixels","type":"number"},"responsive-anchor-gap":{"description":"How the anchor gap adjusts when the template is resized","type":"string","enum":["none","scale","scale-x","scale-y","stretch","stretch-x","stretch-y"]},"responsive-aspect-ratio":{"description":"Whether the layer keeps its aspect ratio when responsively resized","type":"string","enum":["free","locked"]},"responsive-position":{"description":"How the layer repositions when the template is resized","type":"string","enum":["none","scale","center-x","center-y","center","pin-right","pin-bottom","pin-right-bottom","center-x-pin-bottom","center-y-pin-right"]},"responsive-size":{"description":"How the layer resizes when the template is resized","type":"string","enum":["none","scale","stretch-x","stretch-y","stretch"]},"rotate":{"description":"Rotation angle in degrees","type":"number"},"rotateX":{"description":"3D rotation around the X axis in degrees","type":"number"},"rotateY":{"description":"3D rotation around the Y axis in degrees","type":"number"},"rotateZ":{"description":"3D rotation around the Z axis in degrees","type":"number"},"top":{"description":"top","type":"number"},"width":{"description":"width","type":"number"}}},"LayerAnimatedBackground":{"type":"object","description":"A `animated_background` layer.","required":["id","type"],"properties":{"id":{"type":"string","description":"Unique layer id within the config"},"type":{"type":"string","enum":["animated_background"],"description":"Layer type discriminator"},"name":{"type":"string","description":"Optional human-readable layer name"},"anchor-gap-x":{"description":"Horizontal offset from the anchor point in pixels","type":"number"},"anchor-gap-y":{"description":"Vertical offset from the anchor point in pixels","type":"number"},"anchor-point":{"description":"Which point on the target layer to anchor to","type":"string","enum":["top-left","top-center","top-right","center-left","center","center-right","bottom-left","bottom-center","bottom-right"]},"anchor-to":{"description":"Name of another layer to anchor this layer's position to","type":"string"},"anchor-type":{"description":"Whether to anchor to the container bounds or text bounds","type":"string","enum":["container","text"]},"aspect-ratio-locked":{"description":"aspect-ratio-locked","type":"boolean"},"background-color":{"description":"background-color","type":"string"},"background-image":{"description":"background-image","type":"string"},"blur":{"description":"Gaussian blur radius in pixels","type":"number"},"border-color":{"description":"border-color","type":"string"},"border-radius":{"description":"Border radius in pixels for rounded corners","type":"number"},"border-style":{"description":"border-style","type":"string","enum":["none","solid"]},"border-width":{"description":"border-width","type":"number"},"box-shadow":{"description":"box-shadow","type":"string"},"clip-mode":{"description":"How clip-to hides this layer. outline cuts it to the target's shape. alpha also fades it by the transparency of the target's fill — its background-gradient, or else its background-color — so a gradient running to transparent fades this layer out. Hide the target layer to use it as a mask only","type":"string","enum":["outline","alpha"]},"clip-to":{"description":"Id or name of another layer to clip this layer to — only the part inside that layer's box is drawn, following its border-radius and rotation. Clips chain: a layer clipped to a layer that is itself clipped shows only inside both","type":"string"},"height":{"description":"height","type":"number"},"hidden":{"description":"Hide or show this layer","type":"boolean"},"left":{"description":"left","type":"number"},"motion-blur":{"description":"Softness of the background in pixels","type":"number"},"motion-color":{"description":"Colour of the background — its hue drives the preset, so any colour of that hue gives the same result","type":"string"},"motion-cycle":{"description":"Milliseconds for one full loop of the background motion","type":"number"},"motion-hue":{"description":"Base hue of the background, 0-360","type":"number"},"motion-preset":{"description":"Which moving background preset to draw","type":"string","enum":["aurora","mesh","conic","pulse"]},"motion-spread":{"description":"How far the secondary colours sit from the base hue, in degrees","type":"number"},"motion-travel":{"description":"How far the background moves, as a percentage of the layer","type":"number"},"opacity":{"description":"Opacity from 0 (transparent) to 1 (opaque)","type":"number"},"padding":{"description":"padding","type":"number"},"perspective":{"description":"Perspective distance for 3D transforms in pixels","type":"number"},"responsive-anchor-gap":{"description":"How the anchor gap adjusts when the template is resized","type":"string","enum":["none","scale","scale-x","scale-y","stretch","stretch-x","stretch-y"]},"responsive-aspect-ratio":{"description":"Whether the layer keeps its aspect ratio when responsively resized","type":"string","enum":["free","locked"]},"responsive-position":{"description":"How the layer repositions when the template is resized","type":"string","enum":["none","scale","center-x","center-y","center","pin-right","pin-bottom","pin-right-bottom","center-x-pin-bottom","center-y-pin-right"]},"responsive-size":{"description":"How the layer resizes when the template is resized","type":"string","enum":["none","scale","stretch-x","stretch-y","stretch"]},"rotate":{"description":"Rotation angle in degrees","type":"number"},"rotateX":{"description":"3D rotation around the X axis in degrees","type":"number"},"rotateY":{"description":"3D rotation around the Y axis in degrees","type":"number"},"rotateZ":{"description":"3D rotation around the Z axis in degrees","type":"number"},"top":{"description":"top","type":"number"},"width":{"description":"width","type":"number"}}},"LayerAudioWave":{"type":"object","description":"A `audio_wave` layer.","required":["id","type"],"properties":{"id":{"type":"string","description":"Unique layer id within the config"},"type":{"type":"string","enum":["audio_wave"],"description":"Layer type discriminator"},"name":{"type":"string","description":"Optional human-readable layer name"},"anchor-gap-x":{"description":"Horizontal offset from the anchor point in pixels","type":"number"},"anchor-gap-y":{"description":"Vertical offset from the anchor point in pixels","type":"number"},"anchor-point":{"description":"Which point on the target layer to anchor to","type":"string","enum":["top-left","top-center","top-right","center-left","center","center-right","bottom-left","bottom-center","bottom-right"]},"anchor-to":{"description":"Name of another layer to anchor this layer's position to","type":"string"},"anchor-type":{"description":"Whether to anchor to the container bounds or text bounds","type":"string","enum":["container","text"]},"aspect-ratio-locked":{"description":"aspect-ratio-locked","type":"boolean"},"audio-url":{"description":"URL of the audio file the wave follows","type":"string"},"background-color":{"description":"background-color","type":"string"},"background-image":{"description":"background-image","type":"string"},"blur":{"description":"Gaussian blur radius in pixels","type":"number"},"border-color":{"description":"border-color","type":"string"},"border-radius":{"description":"Border radius in pixels for rounded corners","type":"number"},"border-style":{"description":"border-style","type":"string","enum":["none","solid"]},"border-width":{"description":"border-width","type":"number"},"box-shadow":{"description":"box-shadow","type":"string"},"clip-mode":{"description":"How clip-to hides this layer. outline cuts it to the target's shape. alpha also fades it by the transparency of the target's fill — its background-gradient, or else its background-color — so a gradient running to transparent fades this layer out. Hide the target layer to use it as a mask only","type":"string","enum":["outline","alpha"]},"clip-to":{"description":"Id or name of another layer to clip this layer to — only the part inside that layer's box is drawn, following its border-radius and rotation. Clips chain: a layer clipped to a layer that is itself clipped shows only inside both","type":"string"},"height":{"description":"height","type":"number"},"hidden":{"description":"Hide or show this layer","type":"boolean"},"left":{"description":"left","type":"number"},"opacity":{"description":"Opacity from 0 (transparent) to 1 (opaque)","type":"number"},"padding":{"description":"padding","type":"number"},"perspective":{"description":"Perspective distance for 3D transforms in pixels","type":"number"},"responsive-anchor-gap":{"description":"How the anchor gap adjusts when the template is resized","type":"string","enum":["none","scale","scale-x","scale-y","stretch","stretch-x","stretch-y"]},"responsive-aspect-ratio":{"description":"Whether the layer keeps its aspect ratio when responsively resized","type":"string","enum":["free","locked"]},"responsive-position":{"description":"How the layer repositions when the template is resized","type":"string","enum":["none","scale","center-x","center-y","center","pin-right","pin-bottom","pin-right-bottom","center-x-pin-bottom","center-y-pin-right"]},"responsive-size":{"description":"How the layer resizes when the template is resized","type":"string","enum":["none","scale","stretch-x","stretch-y","stretch"]},"rotate":{"description":"Rotation angle in degrees","type":"number"},"rotateX":{"description":"3D rotation around the X axis in degrees","type":"number"},"rotateY":{"description":"3D rotation around the Y axis in degrees","type":"number"},"rotateZ":{"description":"3D rotation around the Z axis in degrees","type":"number"},"top":{"description":"top","type":"number"},"wave-bars":{"description":"Number of bars","type":"number"},"wave-color":{"description":"Colour of the bars","type":"string"},"wave-envelope":{"description":"Loudness samples the wave is drawn from, 25 per second from 0 to 1, comma-separated — set automatically when the audio URL is analysed","type":"string"},"wave-gap":{"description":"Gap between bars in pixels","type":"number"},"wave-min-height":{"description":"Height of a bar in silence, as a percentage of the layer","type":"number"},"wave-mirror":{"description":"Grow the bars from the middle in both directions rather than up from the bottom","type":"boolean"},"wave-offset":{"description":"Milliseconds into the audio at which the animation starts","type":"number"},"wave-radius":{"description":"Corner radius of each bar in pixels","type":"number"},"wave-sensitivity":{"description":"Scales how far the bars move — above 1 exaggerates quiet passages","type":"number"},"width":{"description":"width","type":"number"}}},"LayerGroup":{"type":"object","description":"A `group` layer.","required":["id","type"],"properties":{"id":{"type":"string","description":"Unique layer id within the config"},"type":{"type":"string","enum":["group"],"description":"Layer type discriminator"},"name":{"type":"string","description":"Optional human-readable layer name"},"anchor-gap-x":{"description":"Horizontal offset from the anchor point in pixels","type":"number"},"anchor-gap-y":{"description":"Vertical offset from the anchor point in pixels","type":"number"},"anchor-point":{"description":"Which point on the target layer to anchor to","type":"string","enum":["top-left","top-center","top-right","center-left","center","center-right","bottom-left","bottom-center","bottom-right"]},"anchor-to":{"description":"Name of another layer to anchor this layer's position to","type":"string"},"anchor-type":{"description":"Whether to anchor to the container bounds or text bounds","type":"string","enum":["container","text"]},"background-color":{"description":"Background color of the container","type":"string"},"blur":{"description":"Gaussian blur radius in pixels","type":"number"},"border-color":{"description":"border-color","type":"string"},"border-radius":{"description":"Border radius in pixels for rounded corners","type":"number"},"border-style":{"description":"border-style","type":"string","enum":["none","solid"]},"border-width":{"description":"border-width","type":"number"},"box-shadow":{"description":"box-shadow","type":"string"},"clip-mode":{"description":"How clip-to hides this layer. outline cuts it to the target's shape. alpha also fades it by the transparency of the target's fill — its background-gradient, or else its background-color — so a gradient running to transparent fades this layer out. Hide the target layer to use it as a mask only","type":"string","enum":["outline","alpha"]},"clip-to":{"description":"Id or name of another layer to clip this layer to — only the part inside that layer's box is drawn, following its border-radius and rotation. Clips chain: a layer clipped to a layer that is itself clipped shows only inside both","type":"string"},"collapsed":{"description":"collapsed","type":"boolean"},"height":{"description":"height","type":"number"},"hidden":{"description":"Hide or show this layer","type":"boolean"},"left":{"description":"left","type":"number"},"opacity":{"description":"Opacity from 0 (transparent) to 1 (opaque)","type":"number"},"padding":{"description":"padding","type":"number"},"perspective":{"description":"Perspective distance for 3D transforms in pixels","type":"number"},"responsive-anchor-gap":{"description":"How the anchor gap adjusts when the template is resized","type":"string","enum":["none","scale","scale-x","scale-y","stretch","stretch-x","stretch-y"]},"responsive-aspect-ratio":{"description":"Whether the layer keeps its aspect ratio when responsively resized","type":"string","enum":["free","locked"]},"responsive-position":{"description":"How the layer repositions when the template is resized","type":"string","enum":["none","scale","center-x","center-y","center","pin-right","pin-bottom","pin-right-bottom","center-x-pin-bottom","center-y-pin-right"]},"responsive-size":{"description":"How the layer resizes when the template is resized","type":"string","enum":["none","scale","stretch-x","stretch-y","stretch"]},"rotate":{"description":"Rotation angle in degrees","type":"number"},"rotateX":{"description":"3D rotation around the X axis in degrees","type":"number"},"rotateY":{"description":"3D rotation around the Y axis in degrees","type":"number"},"rotateZ":{"description":"3D rotation around the Z axis in degrees","type":"number"},"top":{"description":"top","type":"number"},"width":{"description":"width","type":"number"}}},"Layer":{"oneOf":[{"$ref":"#/components/schemas/LayerText"},{"$ref":"#/components/schemas/LayerRectangle"},{"$ref":"#/components/schemas/LayerRectangleImageContainer"},{"$ref":"#/components/schemas/LayerCircle"},{"$ref":"#/components/schemas/LayerCircleImageContainer"},{"$ref":"#/components/schemas/LayerImage"},{"$ref":"#/components/schemas/LayerSvgShape"},{"$ref":"#/components/schemas/LayerQrCode"},{"$ref":"#/components/schemas/LayerBarCode"},{"$ref":"#/components/schemas/LayerRating"},{"$ref":"#/components/schemas/LayerLottie"},{"$ref":"#/components/schemas/LayerAnimatedBackground"},{"$ref":"#/components/schemas/LayerAudioWave"},{"$ref":"#/components/schemas/LayerGroup"}],"discriminator":{"propertyName":"type","mapping":{"text":"#/components/schemas/LayerText","rectangle":"#/components/schemas/LayerRectangle","rectangle_image_container":"#/components/schemas/LayerRectangleImageContainer","circle":"#/components/schemas/LayerCircle","circle_image_container":"#/components/schemas/LayerCircleImageContainer","image":"#/components/schemas/LayerImage","svg_shape":"#/components/schemas/LayerSvgShape","qr_code":"#/components/schemas/LayerQrCode","bar_code":"#/components/schemas/LayerBarCode","rating":"#/components/schemas/LayerRating","lottie":"#/components/schemas/LayerLottie","animated_background":"#/components/schemas/LayerAnimatedBackground","audio_wave":"#/components/schemas/LayerAudioWave","group":"#/components/schemas/LayerGroup"}}},"Keyframes":{"type":"object","description":"Animation keyframes keyed by object id. Each value is an ordered array of keyframes for that object.","additionalProperties":{"type":"array","items":{"type":"object","description":"A single animation keyframe. Timing fields (delay/duration/endDelay) advance the object's timeline; any of the animatable attributes sets a target value the object tweens to over `duration` ms. Blank fields are ignored — omit any attribute you don't want to animate.","properties":{"delay":{"type":"integer","minimum":0,"maximum":10000,"description":"Milliseconds to wait after the previous frame ends before this frame's tween starts. Capped at 10000."},"duration":{"type":"integer","minimum":0,"maximum":10000,"description":"Milliseconds the tween runs for. Must be \u003e 0 for the frame to occupy time. Capped at 10000."},"endDelay":{"type":"integer","minimum":0,"maximum":10000,"description":"Milliseconds to hold the frame's final state before the next frame's delay starts. Capped at 10000."},"easing":{"type":"string","enum":["linear","easeInQuad","easeOutQuad","easeInOutQuad","easeInCubic","easeOutCubic","easeInOutCubic","easeInQuart","easeOutQuart","easeInOutQuart","easeInQuint","easeOutQuint","easeInOutQuint","easeInSine","easeOutSine","easeInOutSine","easeInExpo","easeOutExpo","easeInOutExpo","easeInCirc","easeOutCirc","easeInOutCirc","easeInBack","easeOutBack","easeInOutBack","easeInBounce","easeOutBounce","easeInOutBounce","easeInElastic","easeOutElastic","easeInOutElastic"],"description":"anime.js easing function applied to this frame's tween. Defaults to easeInOutQuad."},"left":{"type":"number","description":"Target x position in pixels"},"top":{"type":"number","description":"Target y position in pixels"},"width":{"type":"number","minimum":1,"description":"Target width in pixels"},"height":{"type":"number","minimum":1,"description":"Target height in pixels"},"scale":{"type":"number","description":"CSS scale multiplier (1 = no change)"},"blur":{"type":"number","minimum":0,"description":"CSS blur radius in pixels"},"opacity":{"type":"number","minimum":0,"maximum":1,"description":"0 (fully transparent) to 1 (fully opaque)"},"rotate":{"type":"number","description":"2D rotation in degrees"},"rotateX":{"type":"number","minimum":-180,"maximum":180,"description":"3D rotation around the X axis in degrees"},"rotateY":{"type":"number","minimum":-180,"maximum":180,"description":"3D rotation around the Y axis in degrees"},"rotateZ":{"type":"number","minimum":-360,"maximum":360,"description":"3D rotation around the Z axis in degrees"},"perspective":{"type":"number","minimum":0,"maximum":5000,"description":"Perspective distance in pixels applied to the object's container. Required for rotateX/Y/Z to render as true 3D — without it, rotations appear flat."},"background-size":{"type":"string","description":"CSS background-size value (e.g. `cover`, `contain`, `100% 100%`)"},"background-position":{"type":"string","description":"CSS background-position value (e.g. `50% 50%`, `top left`)"},"text-effect":{"type":"string","enum":["FadeIn","FadeOut","ZoomIn","ZoomOut","GetBigger","GetSmaller","ScaleIn","ScaleOut","PopIn","PopOut"],"description":"Text layers only — cascades the named preset across each word in the text container. Ignored on non-text objects."},"text-effect-speed":{"oneOf":[{"type":"string","enum":["auto"]},{"type":"integer","enum":[100,200,300,400,500]}],"description":"Per-word stagger in ms. `auto` divides the frame's duration evenly across words."},"text-effect-easing":{"type":"string","enum":["linear","easeInQuad","easeOutQuad","easeInOutQuad","easeInCubic","easeOutCubic","easeInOutCubic","easeInQuart","easeOutQuart","easeInOutQuart","easeInQuint","easeOutQuint","easeInOutQuint","easeInSine","easeOutSine","easeInOutSine","easeInExpo","easeOutExpo","easeInOutExpo","easeInCirc","easeOutCirc","easeInOutCirc","easeInBack","easeOutBack","easeInOutBack","easeInBounce","easeOutBounce","easeInOutBounce","easeInElastic","easeOutElastic","easeInOutElastic"],"description":"Easing applied to each word's cascade. Falls back to the frame's `easing` if omitted."}}}}},"ImageCreateRequest":{"type":"object","required":["template","modifications"],"properties":{"template":{"type":"string","description":"Template UID"},"modifications":{"type":"object","description":"Template and object modifications","properties":{"template":{"type":"object","description":"Template-level overrides","properties":{"width":{"type":"integer","description":"Override template width in pixels"},"height":{"type":"integer","description":"Override template height in pixels"},"transparent":{"type":"boolean","description":"Render with transparent background"}}},"objects":{"type":"array","description":"Array of object modifications","items":{"type":"object","properties":{"name":{"type":"string","description":"Layer name to target (use name or id, not both)"},"id":{"type":"string","description":"Layer ID to target (use name or id, not both)"},"left":{"description":"X position in pixels","type":"number"},"top":{"description":"Y position in pixels","type":"number"},"width":{"description":"Width in pixels","type":"number"},"height":{"description":"Height in pixels","type":"number"},"rotate":{"description":"Rotation angle in degrees","type":"number"},"rotateX":{"description":"3D rotation around the X axis in degrees","type":"number"},"rotateY":{"description":"3D rotation around the Y axis in degrees","type":"number"},"rotateZ":{"description":"3D rotation around the Z axis in degrees","type":"number"},"perspective":{"description":"Perspective distance for 3D transforms in pixels","type":"number"},"blur":{"description":"Gaussian blur radius in pixels","type":"number"},"opacity":{"description":"Opacity from 0 (transparent) to 1 (opaque)","type":"number"},"hidden":{"description":"Hide or show this layer","type":"boolean"},"padding":{"description":"Inner padding in pixels","type":"number"},"background-color":{"description":"Background color of the container","type":"string"},"box-shadow":{"description":"Box shadow in CSS format e.g. 2px 2px 4px #000","type":"string"},"border-style":{"description":"Border style: none or solid","type":"string","enum":["none","solid"]},"border-color":{"description":"Border color as hex, rgb, or named color","type":"string"},"border-width":{"description":"Border width in pixels","type":"number"},"clip-mode":{"description":"How clip-to hides this layer. outline cuts it to the target's shape. alpha also fades it by the transparency of the target's fill — its background-gradient, or else its background-color — so a gradient running to transparent fades this layer out. Hide the target layer to use it as a mask only","type":"string","enum":["outline","alpha"]},"anchor-point":{"description":"Which point on the target layer to anchor to","type":"string","enum":["top-left","top-center","top-right","center-left","center","center-right","bottom-left","bottom-center","bottom-right"]},"anchor-type":{"description":"Whether to anchor to the container bounds or text bounds","type":"string","enum":["container","text"]},"anchor-gap-x":{"description":"Horizontal offset from the anchor point in pixels","type":"number"},"anchor-gap-y":{"description":"Vertical offset from the anchor point in pixels","type":"number"},"responsive-position":{"description":"How the layer repositions when the template is resized","type":"string","enum":["none","scale","center-x","center-y","center","pin-right","pin-bottom","pin-right-bottom","center-x-pin-bottom","center-y-pin-right"]},"responsive-size":{"description":"How the layer resizes when the template is resized","type":"string","enum":["none","scale","stretch-x","stretch-y","stretch"]},"responsive-aspect-ratio":{"description":"Whether the layer keeps its aspect ratio when responsively resized","type":"string","enum":["free","locked"]},"responsive-anchor-gap":{"description":"How the anchor gap adjusts when the template is resized","type":"string","enum":["none","scale","scale-x","scale-y","stretch","stretch-x","stretch-y"]},"text":{"description":"Text content to display","type":"string"},"color":{"description":"Text or fill color as hex, rgb, or named color","type":"string"},"text-highlight-color":{"description":"Background color behind individual lines of text","type":"string"},"text-highlight-padding-vertical":{"description":"Vertical padding around text highlight in pixels","type":"number"},"text-highlight-padding-horizontal":{"description":"Horizontal padding around text highlight in pixels","type":"number"},"text-highlight-border-radius":{"description":"Corner radius of the text highlight in pixels","type":"number"},"text-highlight-shadow":{"description":"CSS box-shadow applied to the text highlight, e.g. 0px 2px 4px #000","type":"string"},"text-background-image-mask":{"description":"Image URL to use as a clipping mask for the text fill","type":"string"},"font-size":{"description":"Font size in pixels","type":"number"},"font-weight":{"description":"Font weight from 100 (thin) to 900 (black)","type":"number","enum":[100,200,300,400,500,600,700,800,900]},"font-style":{"description":"Font style: normal or italic","type":"string","enum":["normal","italic"]},"line-height":{"description":"Line height multiplier for text spacing","type":"number"},"text-decoration":{"description":"Text decoration: none, underline, or overline","type":"string","enum":["none","underline","overline"]},"text-transform":{"description":"Text capitalization: none, uppercase, lowercase, or capitalize","type":"string","enum":["none","uppercase","lowercase","capitalize"]},"text-align":{"description":"Horizontal text alignment","type":"string","enum":["left","center","right","justify","start","end"]},"align-items":{"description":"Vertical text alignment within the container","type":"string","enum":["start","center","end"]},"direction":{"description":"Text direction: ltr (left-to-right) or rtl (right-to-left)","type":"string","enum":["ltr","rtl"]},"word-break":{"description":"Word breaking behavior for long words","type":"string","enum":["normal","break-all","keep-all","break-word"]},"white-space":{"description":"How whitespace and line breaks are handled","type":"string","enum":["normal","nowrap","pre","pre-wrap","pre-line"]},"letter-spacing":{"description":"Letter spacing in pixels","type":"number"},"skewX":{"description":"Horizontal skew angle in degrees","type":"number"},"skewY":{"description":"Vertical skew angle in degrees","type":"number"},"text-shadow":{"description":"Text shadow in CSS format e.g. 2px 2px 4px #000","type":"string"},"text-stroke-width":{"description":"Width of the text outline stroke in pixels","type":"number"},"text-stroke-color":{"description":"Color of the text outline stroke","type":"string"},"font-family-secondary":{"description":"Font family for text wrapped in *asterisks*","type":"string"},"color-secondary":{"description":"Text color for text wrapped in *asterisks*","type":"string"},"font-weight-secondary":{"description":"Font weight for text wrapped in *asterisks*","type":"number","nullable":true,"enum":[100,200,300,400,500,600,700,800,900]},"font-style-secondary":{"description":"Font style for text wrapped in *asterisks*","type":"string","nullable":true,"enum":["normal","italic"]},"text-transform-secondary":{"description":"Text transform for text wrapped in *asterisks*","type":"string","nullable":true,"enum":["none","uppercase","lowercase","capitalize"]},"text-decoration-secondary":{"description":"Text decoration for text wrapped in *asterisks*","type":"string","nullable":true,"enum":["none","underline","line-through"]},"text-fit":{"description":"How text is sized to fit its container","type":"string","enum":["off","auto_fit","resize_overflow"]},"text-ellipsis":{"description":"Truncate overflowing text with an ellipsis","type":"boolean"},"background-color-gradient":{"description":"Second color for a two-color gradient fill","type":"string"},"background-gradient-direction":{"description":"Direction of the gradient fill","type":"string","enum":["left","right","top","bottom"]},"background-gradient":{"description":"Full CSS gradient for the fill, e.g. linear-gradient(135deg, #f00 0%, #00f 60%, transparent 100%) — any number of stops at any angle, and radial-gradient or conic-gradient are accepted. Takes priority over background-color-gradient and is drawn on top of background-color","type":"string"},"background-image":{"description":"Image URL to display in the container","type":"string"},"background-size":{"description":"How the background image fills the container","type":"string","enum":["cover","contain"]},"background-position":{"description":"Anchor position for the background image within the container — most useful when background-size is contain","type":"string","enum":["center","top","right","bottom","left","top left","top right","bottom left","bottom right"]},"background-crop":{"description":"Region of the source image to show, as four percentages of the image: left top width height, e.g. 10% 5% 60% 80%. The region is stretched to fill the layer, so give it the layer's aspect ratio. Overrides background-size and background-position; send none to clear it. Ignored while ai-detect is on","type":"string"},"background-blend-mode":{"description":"Blend mode applied to the background image","type":"string","enum":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]},"grayscale":{"description":"Grayscale filter intensity from 0 to 1","type":"number"},"sepia":{"description":"Sepia filter intensity from 0 to 1","type":"number"},"brightness":{"description":"Brightness adjustment where 1 is normal","type":"number"},"contrast":{"description":"Contrast adjustment where 1 is normal","type":"number"},"saturate":{"description":"Saturation adjustment where 1 is normal","type":"number"},"ai-detect":{"description":"AI detection mode for automatic image positioning","type":"string","enum":["off","face","subject"]},"ai-detect-focus":{"description":"Which detection to focus on when multiple are found","type":"string","enum":["first","largest","group"]},"ai-detect-on-fail":{"description":"Fallback background-size when no face or subject is detected","type":"string","enum":["fallback_cover","fallback_contain"]},"ai-detect-zoom":{"description":"Zoom level for AI detection crop","type":"string","enum":["auto","50%","60%","70%","80%","90%"]},"ai-detect-anchor":{"description":"Manual anchor point override for AI detection in x:y format (0-100)","type":"string"},"ai-background-remove":{"description":"Whether to automatically remove the background of images submitted to this container via the API","type":"string","enum":["disabled","enabled"]},"ai-background-generate":{"description":"Whether the container should generate its background image via AI when an ai-prompt is supplied in the API request","type":"string","enum":["disabled","enabled"]},"ai-prompt":{"description":"Prompt for AI background generation — applies when the layer has ai-background-generate enabled","type":"string"},"ai-model":{"description":"Which AI model generates this layer's background. Costs vary by model — Flux Schnell is a tenth the price of Flux 1.1 Pro. Can be overridden per request by sending ai-model alongside ai-prompt","type":"string","enum":["flux_schnell","flux_1_1_pro","nano_banana","gpt_image_2"]},"png-stroke-width":{"description":"Outline stroke width around PNG images in pixels","type":"number"},"png-stroke-color":{"description":"Outline stroke color around PNG images","type":"string"},"png-shadow":{"description":"Drop shadow for PNG images in CSS shadow format","type":"string"},"aspect-ratio-locked":{"description":"aspect-ratio-locked","type":"boolean"},"basic-shape":{"description":"The SVG shape to render","type":"string","enum":["triangle","scalene","pentagon","right","trapeze","kite","polygon","parallelogram","ellipse","trefoil","star","semicircle","hexagon","crescent","octagon","cross","ring","heart","arrow","rhombus","custom"]},"svg-url":{"description":"URL of the SVG file to draw when basic-shape is custom. The file keeps its own colors unless fill, a gradient or a stroke is set","type":"string"},"fill":{"description":"Fill color of the shape","type":"string"},"stroke":{"description":"Stroke color of the shape outline","type":"string"},"stroke-width":{"description":"Stroke width of the shape outline in pixels","type":"number"},"qr-target":{"description":"URL or text content to encode in the QR code","type":"string"},"qr-color":{"description":"Foreground color of the QR code","type":"string"},"barcode-data":{"description":"Data to encode in the barcode","type":"string"},"barcode-format":{"description":"Barcode encoding format","type":"string","enum":["CODE128","EAN13","UPC","EAN8"]},"barcode-color":{"description":"Foreground color of the barcode","type":"string"},"rating-score":{"description":"Rating score from 0 to 100","type":"number"},"rating-shape":{"description":"Shape used for each rating unit","type":"string","enum":["star","cute_star","heart","circle","diamond","square","hexagon"]},"rating-count":{"description":"Number of shapes to display","type":"number"},"rating-color":{"description":"Fill color for active rating shapes","type":"string"},"rating-background-color":{"description":"Fill color for inactive rating shapes","type":"string"},"rating-gap":{"description":"Gap between rating shapes in pixels","type":"number"},"rating-stroke-color":{"description":"Outline stroke color for rating shapes","type":"string"},"rating-stroke-width":{"description":"Outline stroke width for rating shapes in pixels","type":"number"},"rating-shadow":{"description":"Drop shadow for rating shapes in CSS shadow format","type":"string"},"lottie-url":{"description":"URL of the Lottie JSON file to play","type":"string"},"lottie-delay":{"description":"Milliseconds to wait after the animation starts before this Lottie begins playing","type":"number"},"lottie-loop":{"description":"Whether the Lottie repeats when it reaches its end, rather than holding its last frame","type":"boolean"},"motion-preset":{"description":"Which moving background preset to draw","type":"string","enum":["aurora","mesh","conic","pulse"]},"motion-color":{"description":"Colour of the background — its hue drives the preset, so any colour of that hue gives the same result","type":"string"},"motion-cycle":{"description":"Milliseconds for one full loop of the background motion","type":"number"},"motion-hue":{"description":"Base hue of the background, 0-360","type":"number"},"motion-spread":{"description":"How far the secondary colours sit from the base hue, in degrees","type":"number"},"motion-blur":{"description":"Softness of the background in pixels","type":"number"},"motion-travel":{"description":"How far the background moves, as a percentage of the layer","type":"number"},"audio-url":{"description":"URL of the audio file the wave follows","type":"string"},"wave-envelope":{"description":"Loudness samples the wave is drawn from, 25 per second from 0 to 1, comma-separated — set automatically when the audio URL is analysed","type":"string"},"wave-bars":{"description":"Number of bars","type":"number"},"wave-gap":{"description":"Gap between bars in pixels","type":"number"},"wave-color":{"description":"Colour of the bars","type":"string"},"wave-radius":{"description":"Corner radius of each bar in pixels","type":"number"},"wave-mirror":{"description":"Grow the bars from the middle in both directions rather than up from the bottom","type":"boolean"},"wave-min-height":{"description":"Height of a bar in silence, as a percentage of the layer","type":"number"},"wave-sensitivity":{"description":"Scales how far the bars move — above 1 exaggerates quiet passages","type":"number"},"wave-offset":{"description":"Milliseconds into the audio at which the animation starts","type":"number"},"collapsed":{"description":"collapsed","type":"boolean"},"font-family":{"description":"Font family name (Google Fonts or custom font)","type":"string"},"border-radius":{"description":"Border radius in pixels for rounded corners","type":"number"}}}}}},"formats":{"type":"array","description":"Output file formats","default":["jpg"],"items":{"type":"string","enum":["jpg","png","pdf","webp","avif"]}},"scale":{"type":"integer","description":"Output scale multiplier for higher resolution","default":1,"enum":[1,2,3,4]},"dpi":{"type":"integer","description":"DPI metadata embedded in the output image for print sizing","minimum":72,"maximum":600},"quality":{"type":"integer","description":"Compression quality for JPG/WebP output","minimum":1,"maximum":100},"proxy":{"type":"boolean","description":"Proxy and resize external images before rendering","default":false},"metadata":{"type":"string","description":"Arbitrary metadata string stored with the image"},"version":{"type":"integer","description":"Target a specific template version number"}}}}}}