{"openapi":"3.1.0","info":{"title":"VlogMe API","version":"2009ed067e8ec35804b7f522918bd4f0a7b493c3","description":"VlogMe photo tools and vlog episodes. Upload your media, get a quote, and start with the quote and an Idempotency-Key. See /docs/api and GET /api/catalog."},"servers":[{"url":"https://vlogme.ai"}],"security":[{"bearerAuth":[]},{"connectedApp":[]}],"paths":{"/api/health":{"get":{"operationId":"health","summary":"Service health","tags":["Discover"],"x-scope":"public","security":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"default":{"description":"A refusal with an error message and code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/catalog":{"get":{"operationId":"catalog","summary":"Photo tools, vlog jobs, image and video editing actions and their input schemas","tags":["Discover"],"x-scope":"public","security":[],"parameters":[{"name":"kind","in":"query","required":false,"schema":{"type":"string"}},{"name":"workflow","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"default":{"description":"A refusal with an error message and code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/openapi.json":{"get":{"operationId":"openapi","summary":"This OpenAPI 3.1 document","tags":["Discover"],"x-scope":"public","security":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"default":{"description":"A refusal with an error message and code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/me":{"get":{"operationId":"me","summary":"Your account, balance and (for a key) the key's scopes","tags":["Account"],"x-scope":"read","security":[{"bearerAuth":[]},{"connectedApp":["read"]}],"responses":{"200":{"description":"The authenticated account","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Account"}}}},"401":{"description":"Missing or invalid authentication","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account or credential lacks access","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer","minimum":1},"description":"Seconds to wait before retrying"}}},"default":{"description":"A refusal with an error message and code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/assets":{"get":{"operationId":"listAssets","summary":"List Lab files, newest first","tags":["Lab"],"x-scope":"read","security":[{"bearerAuth":[]},{"connectedApp":["read"]}],"parameters":[{"name":"section","in":"query","required":false,"schema":{"description":"main: Files; working: Working files; all (default): every file that is not archived","type":"string","enum":["main","working","hidden","archived","all"]}},{"name":"kind","in":"query","required":false,"schema":{"type":"string","enum":["image","video","audio","document"]}},{"name":"service","in":"query","required":false,"schema":{"type":"string","maxLength":40}},{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":120}},{"name":"project_id","in":"query","required":false,"schema":{"description":"A project id, or none","type":"string"}},{"name":"include_superseded","in":"query","required":false,"schema":{"type":"string","enum":["0","1"]}},{"name":"fields","in":"query","required":false,"schema":{"type":"string","enum":["full","compact"]}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":99}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":100000}}],"responses":{"200":{"description":"{assets, has_more, next_offset}","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing or invalid authentication","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account or credential lacks access","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer","minimum":1},"description":"Seconds to wait before retrying"}}},"default":{"description":"A refusal with an error message and code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/assets/intent":{"post":{"operationId":"uploadIntent","summary":"Reserve an upload (tus, or put_url for a key)","tags":["Lab"],"x-scope":"write","security":[{"bearerAuth":[]},{"connectedApp":["write"]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mime_type":{"type":"string","enum":["image/jpeg","image/png","image/webp","image/bmp","video/mp4","video/quicktime","video/x-m4v","audio/mpeg","audio/mp4","audio/wav","audio/ogg"]},"bytes":{"type":"integer","minimum":1,"maximum":1073741824},"title":{"type":"string","maxLength":200},"duration_seconds":{"description":"Optional estimate of a video or audio file's length in seconds (a fraction is fine). Its only use: a file over 150 minutes is refused before you upload it. The server measures the real length when the upload completes, so you may leave it out","type":"number","minimum":0,"maximum":9000},"content_sha256":{"description":"The file's SHA-256 (64 lowercase hex): an identical earlier upload is reused","type":"string","pattern":"^[0-9a-f]{64}$"},"allow_duplicate":{"type":"boolean"}},"required":["mime_type","bytes"]}}}},"responses":{"200":{"description":"The reused or replayed upload intent","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadIntent"}}}},"201":{"description":"The new upload intent","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadIntent"}}}},"401":{"description":"Missing or invalid authentication","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account or credential lacks access","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer","minimum":1},"description":"Seconds to wait before retrying"}}},"default":{"description":"A refusal with an error message and code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/assets/import":{"post":{"operationId":"importAsset","summary":"Import a file from a public https URL (fetched in the background)","tags":["Lab"],"x-scope":"write","security":[{"bearerAuth":[]},{"connectedApp":["write"]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":1,"maxLength":2048,"description":"A public https URL of an image, video or audio file"},"title":{"type":"string","maxLength":200}},"required":["url"],"additionalProperties":false}}}},"responses":{"202":{"description":"{asset:{id,status:\"uploading\"}, import:{status:\"queued\"}}","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing or invalid authentication","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account or credential lacks access","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer","minimum":1},"description":"Seconds to wait before retrying"}}},"default":{"description":"A refusal with an error message and code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/assets/{id}":{"get":{"operationId":"getAsset","summary":"One Lab file (and its import state while one runs)","tags":["Lab"],"x-scope":"read","security":[{"bearerAuth":[]},{"connectedApp":["read"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"The file","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetCompact"}}}},"401":{"description":"Missing or invalid authentication","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account or credential lacks access","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not yours or missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer","minimum":1},"description":"Seconds to wait before retrying"}}},"default":{"description":"A refusal with an error message and code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"updateAsset","summary":"Rename, archive or restore a file","tags":["Lab"],"x-scope":"write","security":[{"bearerAuth":[]},{"connectedApp":["write"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"description":"1–200 characters after trimming","type":"string","minLength":1,"maxLength":200},"archived":{"description":"true archives the file (Lab → Archived), false restores it","type":"boolean"}},"additionalProperties":false}}}},"responses":{"200":{"description":"The file","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetCompact"}}}},"401":{"description":"Missing or invalid authentication","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account or credential lacks access","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"A working or hidden file cannot be archived","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer","minimum":1},"description":"Seconds to wait before retrying"}}},"default":{"description":"A refusal with an error message and code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deleteAsset","summary":"Delete a file (irreversible)","tags":["Lab"],"x-scope":"delete","security":[{"bearerAuth":[]},{"connectedApp":["delete"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing or invalid authentication","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account or credential lacks access","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer","minimum":1},"description":"Seconds to wait before retrying"}}},"default":{"description":"A refusal with an error message and code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/assets/{id}/complete":{"post":{"operationId":"completeUpload","summary":"Check an upload and make the file ready","tags":["Lab"],"x-scope":"write","security":[{"bearerAuth":[]},{"connectedApp":["write"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"The uploaded asset","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetCompact"}}}},"401":{"description":"Missing or invalid authentication","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account or credential lacks access","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer","minimum":1},"description":"Seconds to wait before retrying"}}},"default":{"description":"A refusal with an error message and code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/assets/{id}/download":{"get":{"operationId":"downloadAsset","summary":"A signed private link to the file","tags":["Lab"],"x-scope":"read","security":[{"bearerAuth":[]},{"connectedApp":["read"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"ttl","in":"query","required":false,"schema":{"description":"Lifetime of both links in seconds (60 by default; 900 with purpose=download)","type":"integer","minimum":60,"maximum":3600}},{"name":"redirect","in":"query","required":false,"schema":{"description":"1 answers 302 to the file, so curl -L downloads it (to download_url with purpose=download, so curl -LOJ saves it under its name)","type":"string","enum":["0","1"]}},{"name":"purpose","in":"query","required":false,"schema":{"description":"Marks an explicit user download rather than an internal preview: the link then lasts 15 minutes unless ttl says otherwise","type":"string","enum":["download"]}}],"responses":{"200":{"description":"{url, download_url, file_name, asset}: url shows the file in place; download_url is a link on this site that saves it as file_name and needs no key (curl -OJ). Both stop working after ttl seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetDownload"}}}},"302":{"description":"redirect=1: the signed link (download_url, the one that saves the file, with purpose=download)","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing or invalid authentication","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account or credential lacks access","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer","minimum":1},"description":"Seconds to wait before retrying"}}},"default":{"description":"A refusal with an error message and code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/assets/{id}/compatible-preview":{"get":{"operationId":"compatiblePreview","summary":"A browser-compatible MP4 preview of a video","tags":["Lab"],"x-scope":"read","security":[{"bearerAuth":[]},{"connectedApp":["read"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing or invalid authentication","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account or credential lacks access","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer","minimum":1},"description":"Seconds to wait before retrying"}}},"default":{"description":"A refusal with an error message and code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/assets/{id}/last-frame":{"get":{"operationId":"lastVideoFrame","summary":"The last decoded picture of an owned video, to continue a vlog scene","tags":["Lab"],"x-scope":"read","security":[{"bearerAuth":[]},{"connectedApp":["read"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"The last decoded frame","content":{"image/jpeg":{"schema":{"type":"string","format":"binary"}}}},"401":{"description":"Missing or invalid authentication","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account or credential lacks access","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer","minimum":1},"description":"Seconds to wait before retrying"}}},"default":{"description":"A refusal with an error message and code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/video-editor/preview":{"post":{"operationId":"videoEditorPreview","summary":"Render a short MP4 preview of a video edit","tags":["Lab"],"x-scope":"write","security":[{"bearerAuth":[]},{"connectedApp":["write"]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"asset_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)$"},"recipe":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["asset_id","recipe"]}}}},"responses":{"200":{"description":"Video edit preview","content":{"video/mp4":{"schema":{"type":"string","format":"binary"}}}},"401":{"description":"Missing or invalid authentication","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account or credential lacks access","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer","minimum":1},"description":"Seconds to wait before retrying"}}},"default":{"description":"A refusal with an error message and code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/jobs/quote":{"post":{"operationId":"quoteJob","summary":"The exact credit price of a job, with its fingerprint","tags":["Jobs"],"x-scope":"read","security":[{"bearerAuth":[]},{"connectedApp":["read"]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"kind":{"const":"image"},"input":{"title":"image · edit · gpt_image_2","type":"object","properties":{"workflow":{"type":"string","const":"edit"},"model_id":{"description":"gpt_image_2 by default","type":"string","enum":["gpt_image_2"]},"prompt":{"type":"string","minLength":2,"maxLength":4000,"description":"Up to 4000 characters"},"aspect_ratio":{"description":"original by default; GPT Image 2 supports original, 1:1, 3:2 and 2:3","type":"string","enum":["original","1:1","3:2","2:3"]},"variant_count":{"description":"More than one only for variations with nano_banana_2 (4 by default there)","type":"integer","minimum":1,"maximum":4},"asset_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"A file id from your Lab"},"reference_asset_ids":{"maxItems":3,"type":"array","items":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"A file id from your Lab"}},"reference_roles":{"description":"One role per reference, in the same order","maxItems":3,"type":"array","items":{"type":"string","enum":["character","product","style","background","reference"]}}},"required":["workflow","prompt","asset_id"]}},"required":["kind","input"]},{"type":"object","properties":{"kind":{"const":"image"},"input":{"title":"image · variations · nano_banana_2","type":"object","properties":{"workflow":{"type":"string","const":"variations"},"model_id":{"type":"string","enum":["nano_banana_2"]},"prompt":{"type":"string","minLength":2,"maxLength":4000,"description":"Up to 4000 characters"},"aspect_ratio":{"description":"original by default; GPT Image 2 supports original, 1:1, 3:2 and 2:3","type":"string","enum":["original","9:16","16:9","1:1","4:5","4:3","3:4","3:2","2:3"]},"variant_count":{"description":"More than one only for variations with nano_banana_2 (4 by default there)","type":"integer","minimum":1,"maximum":4},"asset_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"A file id from your Lab"},"reference_asset_ids":{"maxItems":3,"type":"array","items":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"A file id from your Lab"}},"reference_roles":{"description":"One role per reference, in the same order","maxItems":3,"type":"array","items":{"type":"string","enum":["character","product","style","background","reference"]}}},"required":["workflow","model_id","prompt","asset_id"]}},"required":["kind","input"]},{"type":"object","properties":{"kind":{"const":"image"},"input":{"title":"image · inpaint · gpt_image_2","type":"object","properties":{"workflow":{"type":"string","const":"inpaint"},"model_id":{"description":"gpt_image_2 by default","type":"string","enum":["gpt_image_2"]},"prompt":{"type":"string","minLength":2,"maxLength":4000,"description":"Up to 4000 characters"},"aspect_ratio":{"description":"original by default; GPT Image 2 supports original, 1:1, 3:2 and 2:3","type":"string","enum":["original","1:1","3:2","2:3"]},"variant_count":{"description":"More than one only for variations with nano_banana_2 (4 by default there)","type":"integer","minimum":1,"maximum":4},"asset_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"A file id from your Lab"},"reference_asset_ids":{"maxItems":3,"type":"array","items":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"A file id from your Lab"}},"reference_roles":{"description":"One role per reference, in the same order","maxItems":3,"type":"array","items":{"type":"string","enum":["character","product","style","background","reference"]}},"mask_asset_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"A matching PNG mask from your Lab: transparent pixels mark the editable area; for an opaque grayscale mask, white marks the editable area"}},"required":["workflow","prompt","asset_id","mask_asset_id"]}},"required":["kind","input"]},{"type":"object","properties":{"kind":{"const":"image"},"input":{"title":"image · face_restore · codeformer","type":"object","properties":{"workflow":{"type":"string","const":"face_restore"},"asset_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"A file id from your Lab"},"model_id":{"type":"string","const":"codeformer"}},"required":["workflow","asset_id"]}},"required":["kind","input"]},{"type":"object","properties":{"kind":{"const":"image"},"input":{"title":"image · remove_bg · birefnet","type":"object","properties":{"workflow":{"type":"string","const":"remove_bg"},"asset_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"A file id from your Lab"},"model_id":{"type":"string","const":"birefnet"}},"required":["workflow","asset_id"]}},"required":["kind","input"]},{"type":"object","properties":{"kind":{"const":"image"},"input":{"title":"image · upscale · magnific","type":"object","properties":{"workflow":{"type":"string","const":"upscale"},"asset_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"A file id from your Lab"},"upscale_factor":{"description":"2 by default","type":"number","enum":[2,3,4]},"model_id":{"type":"string","const":"magnific"},"source_megapixels":{"type":"number","exclusiveMinimum":0,"maximum":40,"description":"Measured by the server from your image"}},"required":["workflow","asset_id"]}},"required":["kind","input"]},{"type":"object","properties":{"kind":{"const":"video"},"input":{"title":"video · image_to_video · kling_v3_pro","type":"object","properties":{"model_id":{"type":"string","const":"kling_v3_pro"},"prompt":{"type":"string","minLength":0,"maxLength":2500},"negative_prompt":{"type":"string","minLength":0,"maxLength":2500},"duration_seconds":{"description":"5 by default","type":"number","enum":[3,5,8,10,12,15]},"aspect_ratio":{"description":"original by default","type":"string","enum":["9:16","16:9","1:1","4:3","3:4","21:9","original"]},"character_orientation":{"description":"\"image\" follows the image's orientation; anything else the video's","type":"string"},"asset_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"A file id from your Lab"},"vlog_frame":{"type":"object","properties":{"aspect_ratio":{"type":"string","enum":["9:16","16:9","1:1"]},"anchor_x":{"description":"Horizontal crop position, 0 = left, 1 = right; defaults to 0.5","type":"number","minimum":0,"maximum":1},"anchor_y":{"description":"Vertical crop position, 0 = top, 1 = bottom; defaults to 0.5","type":"number","minimum":0,"maximum":1}},"required":["aspect_ratio"],"additionalProperties":false,"description":"Fill this frame before animation, from the selected position in the original photo."},"workflow":{"type":"string","const":"image_to_video"}},"required":["model_id","asset_id"]}},"required":["kind","input"]},{"type":"object","properties":{"kind":{"const":"video"},"input":{"title":"video · talking_avatar · portrait_avatar","type":"object","properties":{"model_id":{"type":"string","const":"portrait_avatar"},"prompt":{"type":"string","minLength":0,"maxLength":2000},"negative_prompt":{"description":"Ignored: this model has no negative prompt","type":"string"},"duration_seconds":{"description":"8 by default","type":"integer","minimum":2,"maximum":300},"aspect_ratio":{"description":"The clip follows the source portrait. Legacy ratio values are accepted as original.","type":"string","enum":["original","9:16","16:9","1:1"]},"character_orientation":{"description":"\"image\" follows the image's orientation; anything else the video's","type":"string"},"asset_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"A file id from your Lab"},"audio_asset_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"A file id from your Lab"},"vlog_frame":{"type":"object","properties":{"aspect_ratio":{"type":"string","enum":["9:16","16:9","1:1"]},"anchor_x":{"description":"Horizontal crop position, 0 = left, 1 = right; defaults to 0.5","type":"number","minimum":0,"maximum":1},"anchor_y":{"description":"Vertical crop position, 0 = top, 1 = bottom; defaults to 0.5","type":"number","minimum":0,"maximum":1}},"required":["aspect_ratio"],"additionalProperties":false,"description":"Fill this frame before animation, from the selected position in the original photo."},"rights_confirmed":{"type":"boolean","const":true,"description":"You have the rights to the portrait and the voice"},"workflow":{"type":"string","const":"talking_avatar"}},"required":["model_id","asset_id","audio_asset_id","rights_confirmed"]}},"required":["kind","input"]},{"type":"object","properties":{"kind":{"const":"video"},"input":{"title":"video · motion · kling_motion_control_pro","type":"object","properties":{"model_id":{"type":"string","const":"kling_motion_control_pro"},"prompt":{"type":"string","minLength":0,"maxLength":2500},"negative_prompt":{"description":"Ignored: this model has no negative prompt","type":"string"},"duration_seconds":{"description":"10 by default","type":"integer","minimum":1,"maximum":300},"character_orientation":{"description":"\"image\" follows the image's orientation; anything else the video's","type":"string"},"asset_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"A file id from your Lab"},"video_asset_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"A file id from your Lab"},"workflow":{"type":"string","const":"motion"}},"required":["model_id","asset_id","video_asset_id"]}},"required":["kind","input"]},{"type":"object","properties":{"kind":{"const":"audio"},"input":{"title":"audio · voice · eleven_v3","type":"object","properties":{"workflow":{"description":"The default audio workflow","type":"string","const":"voice"},"text":{"type":"string","minLength":1,"maxLength":5000},"voice_id":{"type":"string","pattern":"^[A-Za-z0-9]{10,40}$","description":"A voice id from GET /api/voices"},"model_id":{"type":"string","const":"eleven_v3"}},"required":["text","voice_id","model_id"]}},"required":["kind","input"]},{"type":"object","properties":{"kind":{"const":"video_edit"},"input":{"title":"video_edit · vlog_assemble","type":"object","properties":{"workflow":{"type":"string","const":"vlog_assemble"},"aspect_ratio":{"type":"string","enum":["9:16","16:9","1:1"]},"episode_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)$"},"episode_revision":{"type":"integer","minimum":1,"maximum":2147483647},"blocks":{"minItems":1,"maxItems":24,"type":"array","items":{"type":"object","properties":{"asset_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)$"},"start_seconds":{"type":"number","minimum":0,"maximum":9000},"duration_seconds":{"type":"number","minimum":0.1,"maximum":600},"fit":{"description":"Fill the frame by default; contain shows the whole video with a blurred background.","type":"string","enum":["cover","contain"]},"overlays":{"maxItems":6,"type":"array","items":{"type":"object","properties":{"asset_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)$"},"start_seconds":{"type":"number","minimum":0,"maximum":9000},"duration_seconds":{"type":"number","minimum":0.1,"maximum":600},"fit":{"description":"Fill the frame by default; contain shows the whole video with a blurred background.","type":"string","enum":["cover","contain"]},"at_seconds":{"type":"number","minimum":0,"maximum":9000}},"required":["asset_id","at_seconds"]}}},"required":["asset_id"]}}},"required":["workflow","aspect_ratio","blocks"]}},"required":["kind","input"]},{"type":"object","properties":{"kind":{"const":"video_edit"},"input":{"title":"video_edit · trim","type":"object","properties":{"asset_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"A file id from your Lab"},"start_seconds":{"type":"number","minimum":0},"duration_seconds":{"type":"number","exclusiveMinimum":0},"crop":{"type":"object","properties":{"x":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"y":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"width":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"height":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["x","y","width","height"]},"speed":{"type":"number","minimum":0.25,"maximum":4},"volume":{"type":"number","minimum":0,"maximum":4},"brightness":{"type":"number","minimum":-1,"maximum":1},"contrast":{"type":"number","minimum":0,"maximum":3},"saturation":{"type":"number","minimum":0,"maximum":3},"gamma":{"type":"number","minimum":0.1,"maximum":3},"reverse":{"type":"boolean"},"text":{"description":"Drawn on the video for the whole clip","type":"string","maxLength":280},"text_position":{"description":"Where the text sits. Read only when text is set. bottom by default","type":"string","enum":["top","center","bottom"]},"text_size":{"description":"Read only when text is set. medium by default","type":"string","enum":["small","medium","large"]}},"required":["asset_id","start_seconds","duration_seconds"]}},"required":["kind","input"]},{"type":"object","properties":{"kind":{"const":"video_edit"},"input":{"title":"video_edit · upscale","type":"object","properties":{"asset_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"A file id from your Lab"},"upscale_factor":{"type":"number","enum":[2,4]},"duration_seconds":{"type":"number","minimum":0.5,"maximum":300,"description":"Measured by the server from your video"},"source_width":{"description":"Owned source width measured by the server; caller values are replaced","type":"integer","minimum":16,"maximum":9007199254740991},"source_height":{"description":"Owned source height measured by the server; caller values are replaced","type":"integer","minimum":16,"maximum":9007199254740991},"source_frame_rate":{"description":"Owned source frame rate measured by the server; caller values are replaced","type":"number","exclusiveMinimum":0},"source_exact_seconds":{"description":"Exact owned source length measured by the server; its ceiling matches duration_seconds","type":"number","minimum":0.5,"maximum":300}},"required":["asset_id","upscale_factor"]}},"required":["kind","input"]}]}}}},"responses":{"200":{"description":"The quote","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Quote"}}}},"400":{"description":"Invalid inputs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid authentication","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account or credential lacks access","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer","minimum":1},"description":"Seconds to wait before retrying"}}},"503":{"description":"The provider is unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"A refusal with an error message and code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/jobs":{"post":{"operationId":"createJob","summary":"Start a paid job at its quoted price","tags":["Jobs"],"x-scope":"write","security":[{"bearerAuth":[]},{"connectedApp":["write"]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"kind":{"const":"image"},"input":{"title":"image · edit · gpt_image_2","type":"object","properties":{"workflow":{"type":"string","const":"edit"},"model_id":{"description":"gpt_image_2 by default","type":"string","enum":["gpt_image_2"]},"prompt":{"type":"string","minLength":2,"maxLength":4000,"description":"Up to 4000 characters"},"aspect_ratio":{"description":"original by default; GPT Image 2 supports original, 1:1, 3:2 and 2:3","type":"string","enum":["original","1:1","3:2","2:3"]},"variant_count":{"description":"More than one only for variations with nano_banana_2 (4 by default there)","type":"integer","minimum":1,"maximum":4},"asset_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"A file id from your Lab"},"reference_asset_ids":{"maxItems":3,"type":"array","items":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"A file id from your Lab"}},"reference_roles":{"description":"One role per reference, in the same order","maxItems":3,"type":"array","items":{"type":"string","enum":["character","product","style","background","reference"]}}},"required":["workflow","prompt","asset_id"]},"quoted_credits":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"The credits of the quote"},"quote_fingerprint":{"type":"string","description":"The quote_fingerprint of the quote, unchanged"},"webhook_url":{"description":"A public https URL for the job events (API keys only)","type":"string","maxLength":2048}},"required":["kind","input","quoted_credits","quote_fingerprint"]},{"type":"object","properties":{"kind":{"const":"image"},"input":{"title":"image · variations · nano_banana_2","type":"object","properties":{"workflow":{"type":"string","const":"variations"},"model_id":{"type":"string","enum":["nano_banana_2"]},"prompt":{"type":"string","minLength":2,"maxLength":4000,"description":"Up to 4000 characters"},"aspect_ratio":{"description":"original by default; GPT Image 2 supports original, 1:1, 3:2 and 2:3","type":"string","enum":["original","9:16","16:9","1:1","4:5","4:3","3:4","3:2","2:3"]},"variant_count":{"description":"More than one only for variations with nano_banana_2 (4 by default there)","type":"integer","minimum":1,"maximum":4},"asset_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"A file id from your Lab"},"reference_asset_ids":{"maxItems":3,"type":"array","items":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"A file id from your Lab"}},"reference_roles":{"description":"One role per reference, in the same order","maxItems":3,"type":"array","items":{"type":"string","enum":["character","product","style","background","reference"]}}},"required":["workflow","model_id","prompt","asset_id"]},"quoted_credits":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"The credits of the quote"},"quote_fingerprint":{"type":"string","description":"The quote_fingerprint of the quote, unchanged"},"webhook_url":{"description":"A public https URL for the job events (API keys only)","type":"string","maxLength":2048}},"required":["kind","input","quoted_credits","quote_fingerprint"]},{"type":"object","properties":{"kind":{"const":"image"},"input":{"title":"image · inpaint · gpt_image_2","type":"object","properties":{"workflow":{"type":"string","const":"inpaint"},"model_id":{"description":"gpt_image_2 by default","type":"string","enum":["gpt_image_2"]},"prompt":{"type":"string","minLength":2,"maxLength":4000,"description":"Up to 4000 characters"},"aspect_ratio":{"description":"original by default; GPT Image 2 supports original, 1:1, 3:2 and 2:3","type":"string","enum":["original","1:1","3:2","2:3"]},"variant_count":{"description":"More than one only for variations with nano_banana_2 (4 by default there)","type":"integer","minimum":1,"maximum":4},"asset_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"A file id from your Lab"},"reference_asset_ids":{"maxItems":3,"type":"array","items":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"A file id from your Lab"}},"reference_roles":{"description":"One role per reference, in the same order","maxItems":3,"type":"array","items":{"type":"string","enum":["character","product","style","background","reference"]}},"mask_asset_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"A matching PNG mask from your Lab: transparent pixels mark the editable area; for an opaque grayscale mask, white marks the editable area"}},"required":["workflow","prompt","asset_id","mask_asset_id"]},"quoted_credits":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"The credits of the quote"},"quote_fingerprint":{"type":"string","description":"The quote_fingerprint of the quote, unchanged"},"webhook_url":{"description":"A public https URL for the job events (API keys only)","type":"string","maxLength":2048}},"required":["kind","input","quoted_credits","quote_fingerprint"]},{"type":"object","properties":{"kind":{"const":"image"},"input":{"title":"image · face_restore · codeformer","type":"object","properties":{"workflow":{"type":"string","const":"face_restore"},"asset_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"A file id from your Lab"},"model_id":{"type":"string","const":"codeformer"}},"required":["workflow","asset_id"]},"quoted_credits":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"The credits of the quote"},"quote_fingerprint":{"type":"string","description":"The quote_fingerprint of the quote, unchanged"},"webhook_url":{"description":"A public https URL for the job events (API keys only)","type":"string","maxLength":2048}},"required":["kind","input","quoted_credits","quote_fingerprint"]},{"type":"object","properties":{"kind":{"const":"image"},"input":{"title":"image · remove_bg · birefnet","type":"object","properties":{"workflow":{"type":"string","const":"remove_bg"},"asset_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"A file id from your Lab"},"model_id":{"type":"string","const":"birefnet"}},"required":["workflow","asset_id"]},"quoted_credits":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"The credits of the quote"},"quote_fingerprint":{"type":"string","description":"The quote_fingerprint of the quote, unchanged"},"webhook_url":{"description":"A public https URL for the job events (API keys only)","type":"string","maxLength":2048}},"required":["kind","input","quoted_credits","quote_fingerprint"]},{"type":"object","properties":{"kind":{"const":"image"},"input":{"title":"image · upscale · magnific","type":"object","properties":{"workflow":{"type":"string","const":"upscale"},"asset_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"A file id from your Lab"},"upscale_factor":{"description":"2 by default","type":"number","enum":[2,3,4]},"model_id":{"type":"string","const":"magnific"},"source_megapixels":{"type":"number","exclusiveMinimum":0,"maximum":40,"description":"Measured by the server from your image"}},"required":["workflow","asset_id"]},"quoted_credits":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"The credits of the quote"},"quote_fingerprint":{"type":"string","description":"The quote_fingerprint of the quote, unchanged"},"webhook_url":{"description":"A public https URL for the job events (API keys only)","type":"string","maxLength":2048}},"required":["kind","input","quoted_credits","quote_fingerprint"]},{"type":"object","properties":{"kind":{"const":"video"},"input":{"title":"video · image_to_video · kling_v3_pro","type":"object","properties":{"model_id":{"type":"string","const":"kling_v3_pro"},"prompt":{"type":"string","minLength":0,"maxLength":2500},"negative_prompt":{"type":"string","minLength":0,"maxLength":2500},"duration_seconds":{"description":"5 by default","type":"number","enum":[3,5,8,10,12,15]},"aspect_ratio":{"description":"original by default","type":"string","enum":["9:16","16:9","1:1","4:3","3:4","21:9","original"]},"character_orientation":{"description":"\"image\" follows the image's orientation; anything else the video's","type":"string"},"asset_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"A file id from your Lab"},"vlog_frame":{"type":"object","properties":{"aspect_ratio":{"type":"string","enum":["9:16","16:9","1:1"]},"anchor_x":{"description":"Horizontal crop position, 0 = left, 1 = right; defaults to 0.5","type":"number","minimum":0,"maximum":1},"anchor_y":{"description":"Vertical crop position, 0 = top, 1 = bottom; defaults to 0.5","type":"number","minimum":0,"maximum":1}},"required":["aspect_ratio"],"additionalProperties":false,"description":"Fill this frame before animation, from the selected position in the original photo."},"workflow":{"type":"string","const":"image_to_video"}},"required":["model_id","asset_id"]},"quoted_credits":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"The credits of the quote"},"quote_fingerprint":{"type":"string","description":"The quote_fingerprint of the quote, unchanged"},"webhook_url":{"description":"A public https URL for the job events (API keys only)","type":"string","maxLength":2048}},"required":["kind","input","quoted_credits","quote_fingerprint"]},{"type":"object","properties":{"kind":{"const":"video"},"input":{"title":"video · talking_avatar · portrait_avatar","type":"object","properties":{"model_id":{"type":"string","const":"portrait_avatar"},"prompt":{"type":"string","minLength":0,"maxLength":2000},"negative_prompt":{"description":"Ignored: this model has no negative prompt","type":"string"},"duration_seconds":{"description":"8 by default","type":"integer","minimum":2,"maximum":300},"aspect_ratio":{"description":"The clip follows the source portrait. Legacy ratio values are accepted as original.","type":"string","enum":["original","9:16","16:9","1:1"]},"character_orientation":{"description":"\"image\" follows the image's orientation; anything else the video's","type":"string"},"asset_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"A file id from your Lab"},"audio_asset_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"A file id from your Lab"},"vlog_frame":{"type":"object","properties":{"aspect_ratio":{"type":"string","enum":["9:16","16:9","1:1"]},"anchor_x":{"description":"Horizontal crop position, 0 = left, 1 = right; defaults to 0.5","type":"number","minimum":0,"maximum":1},"anchor_y":{"description":"Vertical crop position, 0 = top, 1 = bottom; defaults to 0.5","type":"number","minimum":0,"maximum":1}},"required":["aspect_ratio"],"additionalProperties":false,"description":"Fill this frame before animation, from the selected position in the original photo."},"rights_confirmed":{"type":"boolean","const":true,"description":"You have the rights to the portrait and the voice"},"workflow":{"type":"string","const":"talking_avatar"}},"required":["model_id","asset_id","audio_asset_id","rights_confirmed"]},"quoted_credits":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"The credits of the quote"},"quote_fingerprint":{"type":"string","description":"The quote_fingerprint of the quote, unchanged"},"webhook_url":{"description":"A public https URL for the job events (API keys only)","type":"string","maxLength":2048}},"required":["kind","input","quoted_credits","quote_fingerprint"]},{"type":"object","properties":{"kind":{"const":"video"},"input":{"title":"video · motion · kling_motion_control_pro","type":"object","properties":{"model_id":{"type":"string","const":"kling_motion_control_pro"},"prompt":{"type":"string","minLength":0,"maxLength":2500},"negative_prompt":{"description":"Ignored: this model has no negative prompt","type":"string"},"duration_seconds":{"description":"10 by default","type":"integer","minimum":1,"maximum":300},"character_orientation":{"description":"\"image\" follows the image's orientation; anything else the video's","type":"string"},"asset_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"A file id from your Lab"},"video_asset_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"A file id from your Lab"},"workflow":{"type":"string","const":"motion"}},"required":["model_id","asset_id","video_asset_id"]},"quoted_credits":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"The credits of the quote"},"quote_fingerprint":{"type":"string","description":"The quote_fingerprint of the quote, unchanged"},"webhook_url":{"description":"A public https URL for the job events (API keys only)","type":"string","maxLength":2048}},"required":["kind","input","quoted_credits","quote_fingerprint"]},{"type":"object","properties":{"kind":{"const":"audio"},"input":{"title":"audio · voice · eleven_v3","type":"object","properties":{"workflow":{"description":"The default audio workflow","type":"string","const":"voice"},"text":{"type":"string","minLength":1,"maxLength":5000},"voice_id":{"type":"string","pattern":"^[A-Za-z0-9]{10,40}$","description":"A voice id from GET /api/voices"},"model_id":{"type":"string","const":"eleven_v3"}},"required":["text","voice_id","model_id"]},"quoted_credits":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"The credits of the quote"},"quote_fingerprint":{"type":"string","description":"The quote_fingerprint of the quote, unchanged"},"webhook_url":{"description":"A public https URL for the job events (API keys only)","type":"string","maxLength":2048}},"required":["kind","input","quoted_credits","quote_fingerprint"]},{"type":"object","properties":{"kind":{"const":"video_edit"},"input":{"title":"video_edit · vlog_assemble","type":"object","properties":{"workflow":{"type":"string","const":"vlog_assemble"},"aspect_ratio":{"type":"string","enum":["9:16","16:9","1:1"]},"episode_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)$"},"episode_revision":{"type":"integer","minimum":1,"maximum":2147483647},"blocks":{"minItems":1,"maxItems":24,"type":"array","items":{"type":"object","properties":{"asset_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)$"},"start_seconds":{"type":"number","minimum":0,"maximum":9000},"duration_seconds":{"type":"number","minimum":0.1,"maximum":600},"fit":{"description":"Fill the frame by default; contain shows the whole video with a blurred background.","type":"string","enum":["cover","contain"]},"overlays":{"maxItems":6,"type":"array","items":{"type":"object","properties":{"asset_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)$"},"start_seconds":{"type":"number","minimum":0,"maximum":9000},"duration_seconds":{"type":"number","minimum":0.1,"maximum":600},"fit":{"description":"Fill the frame by default; contain shows the whole video with a blurred background.","type":"string","enum":["cover","contain"]},"at_seconds":{"type":"number","minimum":0,"maximum":9000}},"required":["asset_id","at_seconds"]}}},"required":["asset_id"]}}},"required":["workflow","aspect_ratio","blocks"]},"quoted_credits":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"The credits of the quote"},"quote_fingerprint":{"type":"string","description":"The quote_fingerprint of the quote, unchanged"},"webhook_url":{"description":"A public https URL for the job events (API keys only)","type":"string","maxLength":2048}},"required":["kind","input","quoted_credits","quote_fingerprint"]},{"type":"object","properties":{"kind":{"const":"video_edit"},"input":{"title":"video_edit · trim","type":"object","properties":{"asset_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"A file id from your Lab"},"start_seconds":{"type":"number","minimum":0},"duration_seconds":{"type":"number","exclusiveMinimum":0},"crop":{"type":"object","properties":{"x":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"y":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"width":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"height":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["x","y","width","height"]},"speed":{"type":"number","minimum":0.25,"maximum":4},"volume":{"type":"number","minimum":0,"maximum":4},"brightness":{"type":"number","minimum":-1,"maximum":1},"contrast":{"type":"number","minimum":0,"maximum":3},"saturation":{"type":"number","minimum":0,"maximum":3},"gamma":{"type":"number","minimum":0.1,"maximum":3},"reverse":{"type":"boolean"},"text":{"description":"Drawn on the video for the whole clip","type":"string","maxLength":280},"text_position":{"description":"Where the text sits. Read only when text is set. bottom by default","type":"string","enum":["top","center","bottom"]},"text_size":{"description":"Read only when text is set. medium by default","type":"string","enum":["small","medium","large"]}},"required":["asset_id","start_seconds","duration_seconds"]},"quoted_credits":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"The credits of the quote"},"quote_fingerprint":{"type":"string","description":"The quote_fingerprint of the quote, unchanged"},"webhook_url":{"description":"A public https URL for the job events (API keys only)","type":"string","maxLength":2048}},"required":["kind","input","quoted_credits","quote_fingerprint"]},{"type":"object","properties":{"kind":{"const":"video_edit"},"input":{"title":"video_edit · upscale","type":"object","properties":{"asset_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"A file id from your Lab"},"upscale_factor":{"type":"number","enum":[2,4]},"duration_seconds":{"type":"number","minimum":0.5,"maximum":300,"description":"Measured by the server from your video"},"source_width":{"description":"Owned source width measured by the server; caller values are replaced","type":"integer","minimum":16,"maximum":9007199254740991},"source_height":{"description":"Owned source height measured by the server; caller values are replaced","type":"integer","minimum":16,"maximum":9007199254740991},"source_frame_rate":{"description":"Owned source frame rate measured by the server; caller values are replaced","type":"number","exclusiveMinimum":0},"source_exact_seconds":{"description":"Exact owned source length measured by the server; its ceiling matches duration_seconds","type":"number","minimum":0.5,"maximum":300}},"required":["asset_id","upscale_factor"]},"quoted_credits":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"The credits of the quote"},"quote_fingerprint":{"type":"string","description":"The quote_fingerprint of the quote, unchanged"},"webhook_url":{"description":"A public https URL for the job events (API keys only)","type":"string","maxLength":2048}},"required":["kind","input","quoted_credits","quote_fingerprint"]}]}}}},"responses":{"201":{"description":"The new job or the existing job for an exact replay","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"}}}},"400":{"description":"Invalid input or missing idempotency key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid authentication","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Not enough credits","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account or credential lacks access","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The price or inputs changed, or the Idempotency-Key belongs to another request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer","minimum":1},"description":"Seconds to wait before retrying"}}},"503":{"description":"The provider is unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"A refusal with an error message and code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"get":{"operationId":"listJobs","summary":"Your jobs, newest first","tags":["Jobs"],"x-scope":"read","security":[{"bearerAuth":[]},{"connectedApp":["read"]}],"parameters":[{"name":"kind","in":"query","required":false,"schema":{"type":"string","enum":["video","image","audio","video_edit","image_edit"]}},{"name":"status","in":"query","required":false,"schema":{"type":"string"}},{"name":"project_id","in":"query","required":false,"schema":{"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)$"}},{"name":"idempotency_key","in":"query","required":false,"schema":{"description":"The Idempotency-Key used to start the job","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)$"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":100000}},{"name":"cursor","in":"query","required":false,"schema":{"description":"The next_cursor of the previous page","type":"string"}},{"name":"fields","in":"query","required":false,"schema":{"type":"string","enum":["full","compact"]}}],"responses":{"200":{"description":"{jobs, next_cursor}; a failed, partial or needs_review job carries error_code and error_message","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing or invalid authentication","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account or credential lacks access","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer","minimum":1},"description":"Seconds to wait before retrying"}}},"default":{"description":"A refusal with an error message and code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/jobs/{id}":{"get":{"operationId":"getJob","summary":"One job with its results; ?wait= waits for a terminal state","tags":["Jobs"],"x-scope":"read","security":[{"bearerAuth":[]},{"connectedApp":["read"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"wait","in":"query","required":false,"schema":{"description":"Seconds to wait for a terminal state (0–30)","type":"integer","minimum":0,"maximum":30}}],"responses":{"200":{"description":"The job. When it failed, error_code is the reason (the list is on the JobCompact schema) and error_message says it in a sentence: what happened, that it was not charged, what to change","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"}}}},"401":{"description":"Missing or invalid authentication","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account or credential lacks access","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer","minimum":1},"description":"Seconds to wait before retrying"}}},"default":{"description":"A refusal with an error message and code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/voices":{"get":{"operationId":"listVoices","summary":"VlogMe featured voices, premade voices and the library voices you saved","tags":["Voices"],"x-scope":"read","security":[{"bearerAuth":[]},{"connectedApp":["read"]}],"responses":{"200":{"description":"Voices available to the account","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceList"}}}},"401":{"description":"Missing or invalid authentication","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account or credential lacks access","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer","minimum":1},"description":"Seconds to wait before retrying"}}},"default":{"description":"A refusal with an error message and code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/projects":{"get":{"operationId":"listProjects","summary":"List your vlog episode or image editor drafts","tags":["Projects"],"x-scope":"read","security":[{"bearerAuth":[]},{"connectedApp":["read"]}],"parameters":[{"name":"kind","in":"query","required":false,"schema":{"type":"string","enum":["vlog","image_editor"]}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"description":"The next_cursor of the previous page","type":"string"}}],"responses":{"200":{"description":"Projects and the cursor for the next page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectList"}}}},"401":{"description":"Missing or invalid authentication","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account or credential lacks access","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer","minimum":1},"description":"Seconds to wait before retrying"}}},"default":{"description":"A refusal with an error message and code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"createProject","summary":"Create an episode or image editor draft","tags":["Projects"],"x-scope":"write","security":[{"bearerAuth":[]},{"connectedApp":["write"]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"vlog"},"title":{"type":"string","maxLength":120},"data":{"type":"object","properties":{"format":{"type":"string","const":"vlog_episode_v1"},"ratio":{"type":"string","enum":["9:16","16:9","1:1"]},"presenter":{"type":"object","properties":{"name":{"type":"string","maxLength":120},"portraitId":{"anyOf":[{"type":"string","const":""},{"type":"string","pattern":"^[0-9a-f]{8}(?:-[0-9a-f]{4}){3}-[0-9a-f]{12}$"}]},"voiceId":{"type":"string","maxLength":160},"rightsConfirmed":{"type":"boolean"},"frame":{"type":"object","properties":{"anchor_x":{"type":"number","minimum":0,"maximum":1},"anchor_y":{"type":"number","minimum":0,"maximum":1}},"required":["anchor_x","anchor_y"]}},"required":["name","portraitId","voiceId","rightsConfirmed"]},"cards":{"maxItems":16,"type":"array","items":{"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)$"},"type":{"type":"string","enum":["host","insert","overlay","continue"]},"source":{"type":"string","enum":["generate","video"]},"speech":{"type":"string","enum":["script","recording"]},"atSeconds":{"type":"number","minimum":0,"maximum":600},"trimSeconds":{"type":"number","minimum":0,"maximum":600},"photoId":{"anyOf":[{"type":"string","const":""},{"type":"string","pattern":"^[0-9a-f]{8}(?:-[0-9a-f]{4}){3}-[0-9a-f]{12}$"}]},"audioId":{"anyOf":[{"type":"string","const":""},{"type":"string","pattern":"^[0-9a-f]{8}(?:-[0-9a-f]{4}){3}-[0-9a-f]{12}$"}]},"videoId":{"anyOf":[{"type":"string","const":""},{"type":"string","pattern":"^[0-9a-f]{8}(?:-[0-9a-f]{4}){3}-[0-9a-f]{12}$"}]},"text":{"type":"string","maxLength":5000},"originalText":{"type":"string","maxLength":5000},"prompt":{"type":"string","maxLength":2500},"seconds":{"type":"number","minimum":0,"maximum":600},"frame":{"type":"object","properties":{"anchor_x":{"type":"number","minimum":0,"maximum":1},"anchor_y":{"type":"number","minimum":0,"maximum":1}},"required":["anchor_x","anchor_y"]},"fit":{"type":"string","enum":["cover","contain"]}},"required":["id","type","source","speech","atSeconds"]}},"checkpoints":{"type":"object","propertyNames":{"type":"string","pattern":"^(?:[0-9a-f-]{36}:(?:voice|visual|last-frame|frame)|episode:assembly)$"},"additionalProperties":{"type":"object","properties":{"signature":{"type":"string","pattern":"^[0-9a-f]{64}$"},"attempt":{"type":"integer","minimum":0,"maximum":1000000},"jobId":{"anyOf":[{"type":"string","const":""},{"type":"string","pattern":"^[0-9a-f]{8}(?:-[0-9a-f]{4}){3}-[0-9a-f]{12}$"}]},"assetId":{"anyOf":[{"type":"string","const":""},{"type":"string","pattern":"^[0-9a-f]{8}(?:-[0-9a-f]{4}){3}-[0-9a-f]{12}$"}]},"failed":{"type":"boolean"},"firstClip":{"type":"boolean"}},"required":["signature","attempt"]}},"finalAssetId":{"anyOf":[{"type":"string","const":""},{"type":"string","pattern":"^[0-9a-f]{8}(?:-[0-9a-f]{4}){3}-[0-9a-f]{12}$"}]}},"required":["format","ratio","presenter","cards","checkpoints","finalAssetId"]},"continued_from":{"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":["kind","data"]},{"type":"object","properties":{"kind":{"type":"string","const":"image_editor"},"title":{"type":"string","maxLength":120},"data":{"type":"object","properties":{"asset_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)$"},"state":{"type":"object","properties":{"settings":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"strokes":{"type":"array","items":{}},"labels":{"type":"array","items":{}}},"required":["settings","strokes","labels"],"additionalProperties":{}}},"required":["asset_id"]}},"required":["kind","data"]}]}}}},"responses":{"200":{"description":"The replayed draft","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Project"}}}},"201":{"description":"The new draft","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Project"}}}},"400":{"description":"Invalid project draft","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid authentication","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account or credential lacks access","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer","minimum":1},"description":"Seconds to wait before retrying"}}},"default":{"description":"A refusal with an error message and code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/projects/{id}":{"get":{"operationId":"getProject","summary":"One draft","tags":["Projects"],"x-scope":"read","security":[{"bearerAuth":[]},{"connectedApp":["read"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"The project","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Project"}}}},"401":{"description":"Missing or invalid authentication","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account or credential lacks access","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Project missing or not owned by the account","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer","minimum":1},"description":"Seconds to wait before retrying"}}},"default":{"description":"A refusal with an error message and code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"put":{"operationId":"updateProject","summary":"Update an episode or image editor draft at its current revision","tags":["Projects"],"x-scope":"write","security":[{"bearerAuth":[]},{"connectedApp":["write"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"revision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"title":{"type":"string","maxLength":120},"data":{"anyOf":[{"type":"object","properties":{"format":{"type":"string","const":"vlog_episode_v1"},"ratio":{"type":"string","enum":["9:16","16:9","1:1"]},"presenter":{"type":"object","properties":{"name":{"type":"string","maxLength":120},"portraitId":{"anyOf":[{"type":"string","const":""},{"type":"string","pattern":"^[0-9a-f]{8}(?:-[0-9a-f]{4}){3}-[0-9a-f]{12}$"}]},"voiceId":{"type":"string","maxLength":160},"rightsConfirmed":{"type":"boolean"},"frame":{"type":"object","properties":{"anchor_x":{"type":"number","minimum":0,"maximum":1},"anchor_y":{"type":"number","minimum":0,"maximum":1}},"required":["anchor_x","anchor_y"]}},"required":["name","portraitId","voiceId","rightsConfirmed"]},"cards":{"maxItems":16,"type":"array","items":{"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)$"},"type":{"type":"string","enum":["host","insert","overlay","continue"]},"source":{"type":"string","enum":["generate","video"]},"speech":{"type":"string","enum":["script","recording"]},"atSeconds":{"type":"number","minimum":0,"maximum":600},"trimSeconds":{"type":"number","minimum":0,"maximum":600},"photoId":{"anyOf":[{"type":"string","const":""},{"type":"string","pattern":"^[0-9a-f]{8}(?:-[0-9a-f]{4}){3}-[0-9a-f]{12}$"}]},"audioId":{"anyOf":[{"type":"string","const":""},{"type":"string","pattern":"^[0-9a-f]{8}(?:-[0-9a-f]{4}){3}-[0-9a-f]{12}$"}]},"videoId":{"anyOf":[{"type":"string","const":""},{"type":"string","pattern":"^[0-9a-f]{8}(?:-[0-9a-f]{4}){3}-[0-9a-f]{12}$"}]},"text":{"type":"string","maxLength":5000},"originalText":{"type":"string","maxLength":5000},"prompt":{"type":"string","maxLength":2500},"seconds":{"type":"number","minimum":0,"maximum":600},"frame":{"type":"object","properties":{"anchor_x":{"type":"number","minimum":0,"maximum":1},"anchor_y":{"type":"number","minimum":0,"maximum":1}},"required":["anchor_x","anchor_y"]},"fit":{"type":"string","enum":["cover","contain"]}},"required":["id","type","source","speech","atSeconds"]}},"checkpoints":{"type":"object","propertyNames":{"type":"string","pattern":"^(?:[0-9a-f-]{36}:(?:voice|visual|last-frame|frame)|episode:assembly)$"},"additionalProperties":{"type":"object","properties":{"signature":{"type":"string","pattern":"^[0-9a-f]{64}$"},"attempt":{"type":"integer","minimum":0,"maximum":1000000},"jobId":{"anyOf":[{"type":"string","const":""},{"type":"string","pattern":"^[0-9a-f]{8}(?:-[0-9a-f]{4}){3}-[0-9a-f]{12}$"}]},"assetId":{"anyOf":[{"type":"string","const":""},{"type":"string","pattern":"^[0-9a-f]{8}(?:-[0-9a-f]{4}){3}-[0-9a-f]{12}$"}]},"failed":{"type":"boolean"},"firstClip":{"type":"boolean"}},"required":["signature","attempt"]}},"finalAssetId":{"anyOf":[{"type":"string","const":""},{"type":"string","pattern":"^[0-9a-f]{8}(?:-[0-9a-f]{4}){3}-[0-9a-f]{12}$"}]}},"required":["format","ratio","presenter","cards","checkpoints","finalAssetId"]},{"type":"object","properties":{"asset_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)$"},"state":{"type":"object","properties":{"settings":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"strokes":{"type":"array","items":{}},"labels":{"type":"array","items":{}}},"required":["settings","strokes","labels"],"additionalProperties":{}}},"required":["asset_id"]}]}},"required":["revision","data"]}}}},"responses":{"200":{"description":"The updated episode draft","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Project"}}}},"400":{"description":"Invalid project draft","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid authentication","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account or credential lacks access","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Project missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The project revision changed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer","minimum":1},"description":"Seconds to wait before retrying"}}},"default":{"description":"A refusal with an error message and code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deleteProject","summary":"Delete a draft","tags":["Projects"],"x-scope":"delete","security":[{"bearerAuth":[]},{"connectedApp":["delete"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing or invalid authentication","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account or credential lacks access","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer","minimum":1},"description":"Seconds to wait before retrying"}}},"default":{"description":"A refusal with an error message and code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"vma_…","description":"An API key from Account → API & MCP. Each operation's x-scope names the scope it needs."},"connectedApp":{"type":"oauth2","description":"Authorization code with PKCE S256 and dynamic client registration.","flows":{"authorizationCode":{"authorizationUrl":"https://vlogme.ai/oauth/authorize","tokenUrl":"https://vlogme.ai/oauth/token","refreshUrl":"https://vlogme.ai/oauth/token","scopes":{"read":"Read account, files, and jobs","write":"Upload, save episode drafts, and start jobs","delete":"Delete files or drafts"}}}}},"schemas":{"Error":{"type":"object","required":["error","code"],"properties":{"error":{"type":"string"},"code":{"type":"string","examples":["invalid_input","idempotency_required","idempotency_conflict","auth_required","scope_missing","insufficient_credits","not_found","price_changed","conflict","gone","rate_limited","provider_unavailable"]},"request_id":{"type":"string"},"field_errors":{"type":"array","items":{"type":"object","required":["field","code"],"properties":{"field":{"type":"string"},"code":{"type":"string"}}}},"required":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}],"description":"The scope or any of the scopes accepted by the operation"},"buy_url":{"type":"string","format":"uri"},"create_key_url":{"type":"string","format":"uri"},"status":{"type":"integer","description":"Present in MCP tool results"},"retry_after_s":{"type":"integer","description":"With rate_limited; also the Retry-After header"}}},"Quote":{"type":"object","required":["credits","quote_fingerprint"],"properties":{"credits":{"type":"integer","minimum":0},"quote_fingerprint":{"type":"string"},"parts":{"type":"array","items":{"type":"object"}},"warnings":{"type":"array","items":{"type":"string"}},"vlog_frame":{"type":"object","properties":{"aspect_ratio":{"type":"string","enum":["9:16","16:9","1:1"]},"anchor_x":{"type":"number","minimum":0,"maximum":1},"anchor_y":{"type":"number","minimum":0,"maximum":1}}},"vlog_assembly":{"type":"object","properties":{"aspect_ratio":{"type":"string"},"blocks":{"type":"array","items":{"type":"object"}}}}}},"UploadIntent":{"type":"object","required":["asset"],"properties":{"asset":{"$ref":"#/components/schemas/AssetCompact"},"reused":{"type":"boolean"},"replayed":{"type":"boolean"},"upload":{"type":"object","properties":{"path":{"type":"string"},"url":{"type":"string","format":"uri"},"put_url":{"type":"string","format":"uri"},"token":{"type":"string"}}}}},"Account":{"type":"object","required":["user","balance"],"properties":{"user":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"email":{"type":"string"}}},"balance":{"type":"object","properties":{"total":{"type":"integer"}}},"token":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"scopes":{"type":"array","items":{"type":"string"}}}}}},"VoiceList":{"type":"object","required":["voices"],"properties":{"voices":{"type":"array","items":{"type":"object","required":["voice_id","name"],"properties":{"voice_id":{"type":"string"},"name":{"type":"string"}}}}}},"Project":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"kind":{"type":"string","enum":["vlog","image_editor"]},"title":{"type":"string"},"revision":{"type":"integer"},"vlog_continued_from":{"type":["string","null"],"format":"uuid"},"data":{"type":"object"},"editor_url":{"type":"string","format":"uri-reference","description":"Open an image editor draft in the cabinet"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}}},"ProjectList":{"type":"object","required":["projects","next_cursor"],"properties":{"projects":{"type":"array","items":{"$ref":"#/components/schemas/Project"}},"next_cursor":{"type":["string","null"]}}},"AssetCompact":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"kind":{"enum":["image","video","audio","document"]},"status":{"type":"string"},"title":{"type":"string"},"mime_type":{"type":"string"},"bytes":{"type":"integer"},"duration_seconds":{"type":["number","null"]},"created_at":{"type":"string"},"section":{"type":["string","null"]},"lab_state":{"type":["string","null"]},"project_id":{"type":["string","null"]},"archived":{"type":"boolean"},"shared":{"type":"boolean"},"import":{"type":"object","properties":{"status":{"enum":["queued","fetching","failed"]},"error_code":{"type":["string","null"]}}}}},"Asset":{"allOf":[{"$ref":"#/components/schemas/AssetCompact"},{"type":"object","properties":{"metadata":{"type":"object"},"storage_path":{"type":"string"}}}]},"AssetDownload":{"type":"object","required":["url","download_url","file_name","asset"],"properties":{"url":{"type":"string","format":"uri","description":"A signed link that shows the file in place (a player, an image, a preview)"},"download_url":{"type":"string","format":"uri","description":"A link on this site that saves the same file as file_name: answered as an attachment (a browser saves it instead of opening it), with Range support. It needs no key, only the link, and stops working when url does (ttl). curl -OJ saves it under the name it is answered with"},"file_name":{"type":"string","description":"The file's title made safe for a file name, with the extension of its real type"},"asset":{"type":"object","description":"The file: id, kind, status, title, mime_type, bytes, created_at, duration_seconds, metadata, shared"}}},"JobCompact":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"kind":{"type":"string","enum":["video","image","audio","video_edit","image_edit"]},"status":{"enum":["queued","running","waiting_provider","needs_review","succeeded","partial","failed"]},"error_code":{"type":["string","null"],"description":"Why a failed job ended, as a machine code: input_face_not_allowed, input_face_required, input_content_refused, prompt_refused, output_content_refused, copyright_refused, content_refused, input_media_unsupported, input_too_large, prompt_too_long, provider_timeout, request_invalid, provider_rejected, provider_failed, provider_busy, provider_unavailable. These reasons describe failed jobs; a job in needs_review is still being checked whatever its code (including provider_status_unknown), its credits stay reserved, and it must not be started again. Other values may appear (partial results, review or a refund by support): branch on the codes you know and show error_message for the rest."},"error_message":{"type":"string","description":"Only on a failed, partial or needs_review job: a plain English sentence for a person. For a failed job it says what happened, that the job was not charged, and what to change before trying again."},"quoted_credits":{"type":"integer"},"result_asset_id":{"type":["string","null"]},"idempotency_key":{"type":"string"},"project_id":{"type":["string","null"]},"created_at":{"type":"string"},"updated_at":{"type":"string"},"media_lease_until":{"type":["string","null"]},"webhook_delivered_at":{"type":["string","null"]}}},"Job":{"allOf":[{"$ref":"#/components/schemas/JobCompact"},{"type":"object","properties":{"input":{"type":"object","description":"The job input without internal fields"},"results":{"type":"array","items":{"type":"object"}},"warnings":{"type":"array","items":{"type":"string"}},"waited_seconds":{"type":"integer"},"retry_after_s":{"type":"integer"}}}]},"JobInput":{"anyOf":[{"title":"image · edit · gpt_image_2","type":"object","properties":{"workflow":{"type":"string","const":"edit"},"model_id":{"description":"gpt_image_2 by default","type":"string","enum":["gpt_image_2"]},"prompt":{"type":"string","minLength":2,"maxLength":4000,"description":"Up to 4000 characters"},"aspect_ratio":{"description":"original by default; GPT Image 2 supports original, 1:1, 3:2 and 2:3","type":"string","enum":["original","1:1","3:2","2:3"]},"variant_count":{"description":"More than one only for variations with nano_banana_2 (4 by default there)","type":"integer","minimum":1,"maximum":4},"asset_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"A file id from your Lab"},"reference_asset_ids":{"maxItems":3,"type":"array","items":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"A file id from your Lab"}},"reference_roles":{"description":"One role per reference, in the same order","maxItems":3,"type":"array","items":{"type":"string","enum":["character","product","style","background","reference"]}}},"required":["workflow","prompt","asset_id"]},{"title":"image · variations · nano_banana_2","type":"object","properties":{"workflow":{"type":"string","const":"variations"},"model_id":{"type":"string","enum":["nano_banana_2"]},"prompt":{"type":"string","minLength":2,"maxLength":4000,"description":"Up to 4000 characters"},"aspect_ratio":{"description":"original by default; GPT Image 2 supports original, 1:1, 3:2 and 2:3","type":"string","enum":["original","9:16","16:9","1:1","4:5","4:3","3:4","3:2","2:3"]},"variant_count":{"description":"More than one only for variations with nano_banana_2 (4 by default there)","type":"integer","minimum":1,"maximum":4},"asset_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"A file id from your Lab"},"reference_asset_ids":{"maxItems":3,"type":"array","items":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"A file id from your Lab"}},"reference_roles":{"description":"One role per reference, in the same order","maxItems":3,"type":"array","items":{"type":"string","enum":["character","product","style","background","reference"]}}},"required":["workflow","model_id","prompt","asset_id"]},{"title":"image · inpaint · gpt_image_2","type":"object","properties":{"workflow":{"type":"string","const":"inpaint"},"model_id":{"description":"gpt_image_2 by default","type":"string","enum":["gpt_image_2"]},"prompt":{"type":"string","minLength":2,"maxLength":4000,"description":"Up to 4000 characters"},"aspect_ratio":{"description":"original by default; GPT Image 2 supports original, 1:1, 3:2 and 2:3","type":"string","enum":["original","1:1","3:2","2:3"]},"variant_count":{"description":"More than one only for variations with nano_banana_2 (4 by default there)","type":"integer","minimum":1,"maximum":4},"asset_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"A file id from your Lab"},"reference_asset_ids":{"maxItems":3,"type":"array","items":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"A file id from your Lab"}},"reference_roles":{"description":"One role per reference, in the same order","maxItems":3,"type":"array","items":{"type":"string","enum":["character","product","style","background","reference"]}},"mask_asset_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"A matching PNG mask from your Lab: transparent pixels mark the editable area; for an opaque grayscale mask, white marks the editable area"}},"required":["workflow","prompt","asset_id","mask_asset_id"]},{"title":"image · face_restore · codeformer","type":"object","properties":{"workflow":{"type":"string","const":"face_restore"},"asset_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"A file id from your Lab"},"model_id":{"type":"string","const":"codeformer"}},"required":["workflow","asset_id"]},{"title":"image · remove_bg · birefnet","type":"object","properties":{"workflow":{"type":"string","const":"remove_bg"},"asset_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"A file id from your Lab"},"model_id":{"type":"string","const":"birefnet"}},"required":["workflow","asset_id"]},{"title":"image · upscale · magnific","type":"object","properties":{"workflow":{"type":"string","const":"upscale"},"asset_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"A file id from your Lab"},"upscale_factor":{"description":"2 by default","type":"number","enum":[2,3,4]},"model_id":{"type":"string","const":"magnific"},"source_megapixels":{"type":"number","exclusiveMinimum":0,"maximum":40,"description":"Measured by the server from your image"}},"required":["workflow","asset_id"]},{"title":"video · image_to_video · kling_v3_pro","type":"object","properties":{"model_id":{"type":"string","const":"kling_v3_pro"},"prompt":{"type":"string","minLength":0,"maxLength":2500},"negative_prompt":{"type":"string","minLength":0,"maxLength":2500},"duration_seconds":{"description":"5 by default","type":"number","enum":[3,5,8,10,12,15]},"aspect_ratio":{"description":"original by default","type":"string","enum":["9:16","16:9","1:1","4:3","3:4","21:9","original"]},"character_orientation":{"description":"\"image\" follows the image's orientation; anything else the video's","type":"string"},"asset_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"A file id from your Lab"},"vlog_frame":{"type":"object","properties":{"aspect_ratio":{"type":"string","enum":["9:16","16:9","1:1"]},"anchor_x":{"description":"Horizontal crop position, 0 = left, 1 = right; defaults to 0.5","type":"number","minimum":0,"maximum":1},"anchor_y":{"description":"Vertical crop position, 0 = top, 1 = bottom; defaults to 0.5","type":"number","minimum":0,"maximum":1}},"required":["aspect_ratio"],"additionalProperties":false,"description":"Fill this frame before animation, from the selected position in the original photo."},"workflow":{"type":"string","const":"image_to_video"}},"required":["model_id","asset_id"]},{"title":"video · talking_avatar · portrait_avatar","type":"object","properties":{"model_id":{"type":"string","const":"portrait_avatar"},"prompt":{"type":"string","minLength":0,"maxLength":2000},"negative_prompt":{"description":"Ignored: this model has no negative prompt","type":"string"},"duration_seconds":{"description":"8 by default","type":"integer","minimum":2,"maximum":300},"aspect_ratio":{"description":"The clip follows the source portrait. Legacy ratio values are accepted as original.","type":"string","enum":["original","9:16","16:9","1:1"]},"character_orientation":{"description":"\"image\" follows the image's orientation; anything else the video's","type":"string"},"asset_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"A file id from your Lab"},"audio_asset_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"A file id from your Lab"},"vlog_frame":{"type":"object","properties":{"aspect_ratio":{"type":"string","enum":["9:16","16:9","1:1"]},"anchor_x":{"description":"Horizontal crop position, 0 = left, 1 = right; defaults to 0.5","type":"number","minimum":0,"maximum":1},"anchor_y":{"description":"Vertical crop position, 0 = top, 1 = bottom; defaults to 0.5","type":"number","minimum":0,"maximum":1}},"required":["aspect_ratio"],"additionalProperties":false,"description":"Fill this frame before animation, from the selected position in the original photo."},"rights_confirmed":{"type":"boolean","const":true,"description":"You have the rights to the portrait and the voice"},"workflow":{"type":"string","const":"talking_avatar"}},"required":["model_id","asset_id","audio_asset_id","rights_confirmed"]},{"title":"video · motion · kling_motion_control_pro","type":"object","properties":{"model_id":{"type":"string","const":"kling_motion_control_pro"},"prompt":{"type":"string","minLength":0,"maxLength":2500},"negative_prompt":{"description":"Ignored: this model has no negative prompt","type":"string"},"duration_seconds":{"description":"10 by default","type":"integer","minimum":1,"maximum":300},"character_orientation":{"description":"\"image\" follows the image's orientation; anything else the video's","type":"string"},"asset_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"A file id from your Lab"},"video_asset_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"A file id from your Lab"},"workflow":{"type":"string","const":"motion"}},"required":["model_id","asset_id","video_asset_id"]},{"title":"audio · voice · eleven_v3","type":"object","properties":{"workflow":{"description":"The default audio workflow","type":"string","const":"voice"},"text":{"type":"string","minLength":1,"maxLength":5000},"voice_id":{"type":"string","pattern":"^[A-Za-z0-9]{10,40}$","description":"A voice id from GET /api/voices"},"model_id":{"type":"string","const":"eleven_v3"}},"required":["text","voice_id","model_id"]},{"title":"video_edit · vlog_assemble","type":"object","properties":{"workflow":{"type":"string","const":"vlog_assemble"},"aspect_ratio":{"type":"string","enum":["9:16","16:9","1:1"]},"episode_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)$"},"episode_revision":{"type":"integer","minimum":1,"maximum":2147483647},"blocks":{"minItems":1,"maxItems":24,"type":"array","items":{"type":"object","properties":{"asset_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)$"},"start_seconds":{"type":"number","minimum":0,"maximum":9000},"duration_seconds":{"type":"number","minimum":0.1,"maximum":600},"fit":{"description":"Fill the frame by default; contain shows the whole video with a blurred background.","type":"string","enum":["cover","contain"]},"overlays":{"maxItems":6,"type":"array","items":{"type":"object","properties":{"asset_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)$"},"start_seconds":{"type":"number","minimum":0,"maximum":9000},"duration_seconds":{"type":"number","minimum":0.1,"maximum":600},"fit":{"description":"Fill the frame by default; contain shows the whole video with a blurred background.","type":"string","enum":["cover","contain"]},"at_seconds":{"type":"number","minimum":0,"maximum":9000}},"required":["asset_id","at_seconds"]}}},"required":["asset_id"]}}},"required":["workflow","aspect_ratio","blocks"]},{"title":"video_edit · trim","type":"object","properties":{"asset_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"A file id from your Lab"},"start_seconds":{"type":"number","minimum":0},"duration_seconds":{"type":"number","exclusiveMinimum":0},"crop":{"type":"object","properties":{"x":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"y":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"width":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"height":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["x","y","width","height"]},"speed":{"type":"number","minimum":0.25,"maximum":4},"volume":{"type":"number","minimum":0,"maximum":4},"brightness":{"type":"number","minimum":-1,"maximum":1},"contrast":{"type":"number","minimum":0,"maximum":3},"saturation":{"type":"number","minimum":0,"maximum":3},"gamma":{"type":"number","minimum":0.1,"maximum":3},"reverse":{"type":"boolean"},"text":{"description":"Drawn on the video for the whole clip","type":"string","maxLength":280},"text_position":{"description":"Where the text sits. Read only when text is set. bottom by default","type":"string","enum":["top","center","bottom"]},"text_size":{"description":"Read only when text is set. medium by default","type":"string","enum":["small","medium","large"]}},"required":["asset_id","start_seconds","duration_seconds"]},{"title":"video_edit · upscale","type":"object","properties":{"asset_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"A file id from your Lab"},"upscale_factor":{"type":"number","enum":[2,4]},"duration_seconds":{"type":"number","minimum":0.5,"maximum":300,"description":"Measured by the server from your video"},"source_width":{"description":"Owned source width measured by the server; caller values are replaced","type":"integer","minimum":16,"maximum":9007199254740991},"source_height":{"description":"Owned source height measured by the server; caller values are replaced","type":"integer","minimum":16,"maximum":9007199254740991},"source_frame_rate":{"description":"Owned source frame rate measured by the server; caller values are replaced","type":"number","exclusiveMinimum":0},"source_exact_seconds":{"description":"Exact owned source length measured by the server; its ceiling matches duration_seconds","type":"number","minimum":0.5,"maximum":300}},"required":["asset_id","upscale_factor"]}]}}}}