{"openapi":"3.1.0","info":{"title":"Evening Remix API","version":"1.0.0","description":"Choose a model, upload your video and cast photos, then create a remix. Follow remix.statusUrl every pollAfterSeconds (honor Retry-After) until nextAction is download, then GET remix.resultUrl and fetch video.url without credentials. Authenticate every account request with an API key scoped to remix:read and/or remix:write; keys use your account's credits and ownership checks. Create and revoke API keys at /developers. The model is never changed automatically."},"servers":[{"url":"https://remix.tryevening.com/api/v1"}],"security":[{"bearerAuth":[]},{"apiKey":[]}],"paths":{"/models":{"get":{"operationId":"listModels","summary":"Discover models, accepted lengths and current credit rates","security":[],"responses":{"200":{"description":"Model catalog. Recast requires an explicit resolution; upscaled models export 1080P.","content":{"application/json":{"schema":{"type":"object","properties":{"models":{"type":"array","items":{"type":"object"}}}}}}}}}},"/templates":{"get":{"operationId":"listTemplates","summary":"Browse reusable source scenes","security":[],"responses":{"200":{"description":"Template sources and their cast positions","content":{"application/json":{"schema":{"type":"object","properties":{"templates":{"type":"array","items":{"type":"object"}}}}}}}}}},"/credits":{"get":{"operationId":"getCredits","summary":"Read your shared app-credit balance","description":"Requires remix:read. Billing checkout remains on the website.","responses":{"200":{"description":"Balance and website pricing link","content":{"application/json":{"schema":{"type":"object","properties":{"balance":{"type":["object","null"],"properties":{"remaining":{"type":"number"},"unlimited":{"type":"boolean"},"nextResetAt":{}}},"pricingUrl":{"type":"string","format":"uri"}}}}}},"400":{"description":"Request failed; inspect error.code and error.message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Request failed; inspect error.code and error.message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Request failed; inspect error.code and error.message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request failed; inspect error.code and error.message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request failed; inspect error.code and error.message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Request failed; inspect error.code and error.message.","headers":{"Allow":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request failed; inspect error.code and error.message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request failed; inspect error.code and error.message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request failed; inspect error.code and error.message.","headers":{"Retry-After":{"description":"Seconds to wait before trying again (60 by default for 429, 30 for 502 and 503).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request failed; inspect error.code and error.message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Request failed; inspect error.code and error.message.","headers":{"Retry-After":{"description":"Seconds to wait before trying again (60 by default for 429, 30 for 502 and 503).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request failed; inspect error.code and error.message.","headers":{"Retry-After":{"description":"Seconds to wait before trying again (60 by default for 429, 30 for 502 and 503).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/feedback":{"post":{"operationId":"sendFeedback","summary":"Send feedback to the Evening team","description":"An API key with remix:read is optional: anonymous feedback is accepted with a strict per-network rate limit (5 per hour). A key that is sent must be valid. message is required (at most 4000 characters). Never include passwords, API keys or tokens. Each call records a new entry.","security":[{},{"bearerAuth":[]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackRequest"}}}},"responses":{"201":{"description":"Feedback recorded","content":{"application/json":{"schema":{"type":"object","required":["feedback"],"properties":{"feedback":{"type":"object","required":["id","createdAt","received"],"properties":{"id":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"received":{"const":true}}}}}}}},"400":{"description":"Request failed; inspect error.code and error.message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Request failed; inspect error.code and error.message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Request failed; inspect error.code and error.message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request failed; inspect error.code and error.message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request failed; inspect error.code and error.message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Request failed; inspect error.code and error.message.","headers":{"Allow":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request failed; inspect error.code and error.message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request failed; inspect error.code and error.message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request failed; inspect error.code and error.message.","headers":{"Retry-After":{"description":"Seconds to wait before trying again (60 by default for 429, 30 for 502 and 503).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request failed; inspect error.code and error.message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Request failed; inspect error.code and error.message.","headers":{"Retry-After":{"description":"Seconds to wait before trying again (60 by default for 429, 30 for 502 and 503).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request failed; inspect error.code and error.message.","headers":{"Retry-After":{"description":"Seconds to wait before trying again (60 by default for 429, 30 for 502 and 503).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/uploads":{"post":{"operationId":"createUpload","summary":"Create a single-use upload ticket","description":"Requires remix:write. PUT raw bytes to upload.uploadUrl with the returned contentType within 600 seconds. Do not send API keys to the upload URL. Photos: at most 8 MiB. Videos: at most 20 MiB.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadRequest"}}}},"responses":{"201":{"description":"Upload ticket","content":{"application/json":{"schema":{"type":"object","required":["upload"],"properties":{"upload":{"type":"object","required":["id","uploadUrl","method","contentType","expiresIn"],"properties":{"id":{"type":"string"},"uploadUrl":{"type":"string","format":"uri"},"method":{"const":"PUT"},"contentType":{"type":"string"},"expiresIn":{"const":600}}}}}}}},"400":{"description":"Request failed; inspect error.code and error.message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Request failed; inspect error.code and error.message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Request failed; inspect error.code and error.message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request failed; inspect error.code and error.message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request failed; inspect error.code and error.message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Request failed; inspect error.code and error.message.","headers":{"Allow":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request failed; inspect error.code and error.message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request failed; inspect error.code and error.message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request failed; inspect error.code and error.message.","headers":{"Retry-After":{"description":"Seconds to wait before trying again (60 by default for 429, 30 for 502 and 503).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request failed; inspect error.code and error.message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Request failed; inspect error.code and error.message.","headers":{"Retry-After":{"description":"Seconds to wait before trying again (60 by default for 429, 30 for 502 and 503).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request failed; inspect error.code and error.message.","headers":{"Retry-After":{"description":"Seconds to wait before trying again (60 by default for 429, 30 for 502 and 503).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/remixes":{"post":{"operationId":"createRemix","summary":"Create a character swap with one model","description":"Requires remix:write and permission for the people and source footage. Set Idempotency-Key to a UUID, or supply id in the body; if both are present they must match. Reuse the same UUID and body for every retry, including a timeout or 503. Poll the returned remix.statusUrl; Seedance and WAN normalize UUIDs to lowercase. Exactly one source object is required: {type: upload, template or remix, id}. Unknown fields are rejected. Cast count is inferred from imageIds when people is omitted. Recast requires resolution. WAN accepts prepared 5, 10 or 15 whole seconds. Credits are charged once; confirmed failures are refunded. An uncertain submission is never automatically sent again: poll the same UUID. Existing UUIDs return the stored job; a different model returns 409.","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"UUID required unless id is supplied in the body. Reuse this value and request body for retries.","schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateRemix"}}}},"responses":{"200":{"description":"Existing remix returned without another debit or submission.","headers":{"Location":{"description":"Creation response: relative polling route for this remix (same route as remix.statusUrl).","schema":{"type":"string"}},"Retry-After":{"description":"Seconds before polling statusUrl again (pollAfterSeconds), when nextAction is poll.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["remix"],"properties":{"remix":{"$ref":"#/components/schemas/Remix"}}}}}},"202":{"description":"Generation accepted. Poll remix.statusUrl after Retry-After seconds.","headers":{"Location":{"description":"Creation response: relative polling route for this remix (same route as remix.statusUrl).","schema":{"type":"string"}},"Retry-After":{"description":"Seconds before polling statusUrl again (pollAfterSeconds), when nextAction is poll.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["remix"],"properties":{"remix":{"$ref":"#/components/schemas/Remix"}}}}}},"400":{"description":"Request failed; inspect error.code and error.message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Request failed; inspect error.code and error.message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Request failed; inspect error.code and error.message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request failed; inspect error.code and error.message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request failed; inspect error.code and error.message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Request failed; inspect error.code and error.message.","headers":{"Allow":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request failed; inspect error.code and error.message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request failed; inspect error.code and error.message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request failed; inspect error.code and error.message.","headers":{"Retry-After":{"description":"Seconds to wait before trying again (60 by default for 429, 30 for 502 and 503).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request failed; inspect error.code and error.message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Request failed; inspect error.code and error.message.","headers":{"Retry-After":{"description":"Seconds to wait before trying again (60 by default for 429, 30 for 502 and 503).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request failed; inspect error.code and error.message.","headers":{"Retry-After":{"description":"Seconds to wait before trying again (60 by default for 429, 30 for 502 and 503).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"get":{"operationId":"listRemixes","summary":"List your remixes with cursor pagination","description":"Requires remix:read. Stable newest-first order, including jobs created on the website or MCP. Lists read saved status without refreshing providers; progress is always null here.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"cursor","in":"query","description":"Use nextCursor from the previous page, unchanged.","schema":{"type":"string"}}],"responses":{"200":{"description":"One page of owned remixes","content":{"application/json":{"schema":{"type":"object","required":["remixes","nextCursor"],"properties":{"remixes":{"type":"array","items":{"$ref":"#/components/schemas/Remix"}},"nextCursor":{"type":["string","null"]}}}}}},"400":{"description":"Request failed; inspect error.code and error.message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Request failed; inspect error.code and error.message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Request failed; inspect error.code and error.message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request failed; inspect error.code and error.message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request failed; inspect error.code and error.message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Request failed; inspect error.code and error.message.","headers":{"Allow":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request failed; inspect error.code and error.message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request failed; inspect error.code and error.message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request failed; inspect error.code and error.message.","headers":{"Retry-After":{"description":"Seconds to wait before trying again (60 by default for 429, 30 for 502 and 503).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request failed; inspect error.code and error.message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Request failed; inspect error.code and error.message.","headers":{"Retry-After":{"description":"Seconds to wait before trying again (60 by default for 429, 30 for 502 and 503).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request failed; inspect error.code and error.message.","headers":{"Retry-After":{"description":"Seconds to wait before trying again (60 by default for 429, 30 for 502 and 503).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/remixes/{id}":{"get":{"operationId":"getRemix","summary":"Refresh one owned remix (statusUrl)","description":"Requires remix:read. This is the remix's statusUrl: each call advances and refreshes the job. Follow nextAction: poll again after pollAfterSeconds (30 for WAN and Seedance, 10 for Recast, 60 when requiresReview), download (GET resultUrl), contact_support, or new_request. When requiresReview is true, keep polling at the slower interval; the job may still recover. Never recreate it with a new UUID. If a known temporary provider error prevents a refresh, the response is still 200 with the last saved status and warning.code status_unavailable; nothing is resubmitted or refunded because of it, so keep polling the same ID.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Current status. Completed remixes include a fresh expiring outputUrl.","headers":{"Retry-After":{"description":"Seconds before polling statusUrl again (pollAfterSeconds), when nextAction is poll.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["remix"],"properties":{"remix":{"$ref":"#/components/schemas/Remix"}}}}}},"400":{"description":"Request failed; inspect error.code and error.message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Request failed; inspect error.code and error.message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Request failed; inspect error.code and error.message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request failed; inspect error.code and error.message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request failed; inspect error.code and error.message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Request failed; inspect error.code and error.message.","headers":{"Allow":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request failed; inspect error.code and error.message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request failed; inspect error.code and error.message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request failed; inspect error.code and error.message.","headers":{"Retry-After":{"description":"Seconds to wait before trying again (60 by default for 429, 30 for 502 and 503).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request failed; inspect error.code and error.message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Request failed; inspect error.code and error.message.","headers":{"Retry-After":{"description":"Seconds to wait before trying again (60 by default for 429, 30 for 502 and 503).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request failed; inspect error.code and error.message.","headers":{"Retry-After":{"description":"Seconds to wait before trying again (60 by default for 429, 30 for 502 and 503).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/remixes/{id}/result":{"get":{"operationId":"getRemixResult","summary":"Read a remix's result (resultUrl)","description":"Requires remix:read. A saved-state read: it never refreshes providers or advances the job, so poll statusUrl until nextAction is download first. 200 returns a video link valid for about one hour; fetch it without credentials and call this route again for a fresh link. 202 means the remix is not finished. 422 (generation_failed) means it failed; read error.message and confirm the spend before creating a new remix. 409 (conflict) means it completed but the result is unavailable; contact support.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Completed video","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemixResult"}}}},"202":{"description":"Not finished yet. Poll remix.statusUrl after Retry-After seconds.","headers":{"Retry-After":{"description":"Seconds before polling statusUrl again (pollAfterSeconds), when nextAction is poll.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["remix"],"properties":{"remix":{"$ref":"#/components/schemas/Remix"}}}}}},"400":{"description":"Request failed; inspect error.code and error.message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Request failed; inspect error.code and error.message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Request failed; inspect error.code and error.message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request failed; inspect error.code and error.message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request failed; inspect error.code and error.message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Request failed; inspect error.code and error.message.","headers":{"Allow":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request failed; inspect error.code and error.message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request failed; inspect error.code and error.message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Generation failed (error.code generation_failed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request failed; inspect error.code and error.message.","headers":{"Retry-After":{"description":"Seconds to wait before trying again (60 by default for 429, 30 for 502 and 503).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request failed; inspect error.code and error.message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Request failed; inspect error.code and error.message.","headers":{"Retry-After":{"description":"Seconds to wait before trying again (60 by default for 429, 30 for 502 and 503).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request failed; inspect error.code and error.message.","headers":{"Retry-After":{"description":"Seconds to wait before trying again (60 by default for 429, 30 for 502 and 503).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/remixes/{id}/download":{"get":{"operationId":"downloadRemix","summary":"Download your completed MP4","description":"Requires remix:read. Send the API key to this API route. The expiring outputUrl, downloadUrl and result video.url links are already signed and must be fetched without API keys. Returns 409 before completion.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"MP4 attachment","content":{"video/mp4":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"Request failed; inspect error.code and error.message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Request failed; inspect error.code and error.message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Request failed; inspect error.code and error.message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request failed; inspect error.code and error.message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request failed; inspect error.code and error.message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Request failed; inspect error.code and error.message.","headers":{"Allow":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request failed; inspect error.code and error.message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request failed; inspect error.code and error.message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request failed; inspect error.code and error.message.","headers":{"Retry-After":{"description":"Seconds to wait before trying again (60 by default for 429, 30 for 502 and 503).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request failed; inspect error.code and error.message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Request failed; inspect error.code and error.message.","headers":{"Retry-After":{"description":"Seconds to wait before trying again (60 by default for 429, 30 for 502 and 503).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request failed; inspect error.code and error.message.","headers":{"Retry-After":{"description":"Seconds to wait before trying again (60 by default for 429, 30 for 502 and 503).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"An ev_ API key. Never put API keys in URLs."},"apiKey":{"type":"apiKey","in":"header","name":"x-api-key","description":"Alternative to Authorization: Bearer for the same ev_ API key. Send exactly one key header."}},"schemas":{"CreateRemix":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"imageIds":{"minItems":1,"maxItems":4,"type":"array","items":{"type":"string"}},"resolution":{"type":"string","enum":["768P","1080P"]},"people":{"type":"integer","minimum":1,"maximum":4},"consent":{"type":"boolean","const":true},"shotConsent":{"type":"boolean","const":true},"title":{"type":"string","minLength":1,"maxLength":100},"model":{"default":"recast","type":"string","enum":["recast","seedance-2.5","wan-3.0"]},"source":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"upload"},"id":{"type":"string","minLength":1,"maxLength":256}},"required":["type","id"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"template"},"id":{"type":"string","minLength":1,"maxLength":100}},"required":["type","id"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"remix"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["type","id"],"additionalProperties":false}]}},"required":["imageIds","consent","shotConsent","source"],"additionalProperties":false,"allOf":[{"if":{"properties":{"model":{"const":"recast"}}},"then":{"required":["resolution"]}},{"if":{"required":["model"],"properties":{"model":{"enum":["wan-3.0","seedance-2.5"]}}},"then":{"properties":{"resolution":{"const":"1080P"}}}}]},"FeedbackRequest":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"message":{"type":"string","minLength":1,"maxLength":4000,"description":"The feedback itself, in plain words. Never include passwords, API keys or tokens."},"category":{"description":"bug, idea, praise or other.","type":"string","enum":["bug","idea","praise","other"]},"rating":{"description":"Optional overall rating from 1 (poor) to 5 (great).","type":"integer","minimum":1,"maximum":5},"remixId":{"description":"Optional ID of the remix this feedback is about.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"contact":{"description":"Optional way to reach the person, only if they want a reply.","type":"string","minLength":1,"maxLength":200},"clientName":{"description":"Optional name of the app or agent sending this, for example the assistant's name.","type":"string","minLength":1,"maxLength":100}},"required":["message"],"additionalProperties":false},"UploadRequest":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"contentType":{"type":"string","enum":["image/jpeg","image/png","image/webp","video/mp4","video/quicktime","video/webm"]},"size":{"type":"integer","exclusiveMinimum":0,"maximum":20971520}},"required":["contentType","size"],"additionalProperties":false},"Remix":{"type":"object","required":["id","model","status","credits","nextAction","outputUrl","message","elapsedSeconds","progress","warning","statusUrl","resultUrl"],"properties":{"id":{"type":"string","format":"uuid"},"model":{"enum":["recast","seedance-2.5","wan-3.0"]},"title":{"type":"string"},"templateId":{"type":["string","null"]},"status":{"type":"string"},"resolution":{"enum":["768P","1080P"]},"people":{"type":"integer","minimum":0,"maximum":4,"description":"Legacy Seedance rows may have zero; new requests use 1–4 cast roles."},"duration":{"type":"number"},"credits":{"type":"integer"},"createdAt":{"type":"string","description":"UTC database timestamp"},"pipeline":{"type":"string"},"stage":{"type":["string","null"]},"outputUrl":{"type":["string","null"],"description":"Completed remixes: signed video link valid for about one hour. Fetch without credentials."},"downloadUrl":{"type":["string","null"],"description":"Same link as outputUrl."},"sharedUrl":{"type":["string","null"]},"error":{"type":["string","null"]},"providerError":{"type":["string","null"]},"nextAction":{"enum":["poll","download","contact_support","new_request"]},"requiresReview":{"type":"boolean"},"pollAfterSeconds":{"type":["integer","null"],"description":"When nextAction is poll: 30 for WAN and Seedance, 10 for Recast, 60 when requiresReview, at least 30 with a warning."},"message":{"type":"string","description":"Short human-readable description of the current stage."},"elapsedSeconds":{"type":"integer","minimum":0,"description":"Seconds since createdAt; stops counting when the remix completes or fails. Not an estimate of remaining time."},"progress":{"type":["object","null"],"required":["completed","total"],"properties":{"completed":{"type":"integer","minimum":0},"total":{"type":"integer","minimum":1}},"description":"Completed upscale chunks for WAN and Seedance during upscaling. Only GET statusUrl reports it; otherwise null."},"warning":{"type":["object","null"],"required":["code","message"],"properties":{"code":{"const":"status_unavailable"},"message":{"type":"string"}},"description":"Set when a temporary provider problem prevented a refresh. The remix fields are the last saved status; keep polling."},"statusUrl":{"type":"string","format":"uri","description":"Absolute GET /remixes/{id} route. Poll it while nextAction is poll."},"resultUrl":{"type":"string","format":"uri","description":"Absolute GET /remixes/{id}/result route. Fetch it once nextAction is download."}}},"RemixResult":{"type":"object","required":["id","model","video"],"properties":{"id":{"type":"string","format":"uuid"},"model":{"enum":["recast","seedance-2.5","wan-3.0"]},"video":{"type":"object","required":["url","contentType","expiresAt"],"properties":{"url":{"type":"string","format":"uri","description":"Signed MP4 link. Fetch without credentials."},"contentType":{"const":"video/mp4"},"expiresAt":{"type":"string","format":"date-time"}}}}},"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"message":{"type":"string"}}}}}}}}}}}