{"openapi":"3.1.0","info":{"title":"Vercanto API","version":"0.1.0","description":"Generate and edit images, video, voice and music. Every operation is also available as an MCP tool at https://vercanto.com/mcp."},"servers":[{"url":"https://vercanto.com"}],"security":[{"bearer":[]}],"tags":[{"name":"Generate"},{"name":"Edit and transform"},{"name":"Characters"},{"name":"Templates"},{"name":"Film projects"},{"name":"Library"},{"name":"Brand themes"},{"name":"Models, credits and jobs"}],"paths":{"/api/v1/tools":{"get":{"operationId":"list_tools","summary":"List every tool with its input schema","security":[],"responses":{"200":{"description":"Tool catalogue"}}}},"/api/v1/tools/generate_image":{"post":{"operationId":"generate_image","summary":"Generate or edit an image","description":"Create images from a text prompt, or edit / restyle existing images by passing them in image_urls together with an instruction. Write the prompt as a full description: subject, setting, composition, lighting, style, and any text that must appear (in quotes). Ask for up to 4 images at once to give the user options. Set remove_background for a transparent PNG (logos, product cut-outs, stickers). Finished images come back as permanent URLs; show them to the user. For a branded task call get_theme first and fold the brand's colors and tone into the prompt.\n\nCost: Per image, by model. See list_models.","tags":["Generate"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","minLength":1,"maxLength":8000,"description":"What to create, or how to change the supplied images."},"model":{"description":"Model id from list_models. Omit for the recommended default.","type":"string"},"image_urls":{"description":"Images to edit or use as references (subject, style, product). Needs a model with the \"edit\" capability.","maxItems":10,"type":"array","items":{"type":"string","minLength":1,"maxLength":8000000,"description":"An image to edit or use as a reference. Either an asset_id from the library (ast_…) or a public https URL."}},"aspect_ratio":{"description":"Shape of the image. Default 1:1.","type":"string","enum":["1:1","16:9","9:16","4:3","3:4","3:2","2:3","4:5","5:4","21:9"]},"width":{"description":"Exact width in pixels (use with height instead of aspect_ratio).","type":"integer","minimum":256,"maximum":4096},"height":{"type":"integer","minimum":256,"maximum":4096},"resolution":{"description":"Output resolution tier, for models that offer one.","type":"string","enum":["1K","2K","4K"]},"num_images":{"default":1,"type":"integer","minimum":1,"maximum":4},"remove_background":{"description":"Cut the subject out and return a transparent PNG.","type":"boolean"},"seed":{"description":"Fix the seed to make a result reproducible.","type":"integer","minimum":0,"maximum":2147483647},"extras":{"description":"Model-specific options. Call get_model_params to see what a model accepts.","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"project_id":{"description":"Optional budget project id (from list_projects) to file this spend under.","type":"string"},"name":{"description":"Name for the result in the library. Defaults to the start of the prompt.","type":"string","maxLength":160},"tags":{"description":"Tags to file the result under.","maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":40}}},"required":["prompt"]}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/tools/generate_video":{"post":{"operationId":"generate_video","summary":"Generate a video","description":"Create a video clip. Text only gives text-to-video; add image_url to animate a still as the first frame; add end_image_url as well to interpolate between two frames; use reference_image_urls to keep a character, product or style consistent. Describe the shot like a director: subject, action, camera move, lighting, mood, and any spoken line in quotes. Video is the most expensive thing here, so agree the idea with the user first (plan in text, or make a still with generate_image and animate that). Rendering takes from half a minute to several minutes: if the response says the job is still running, tell the user and poll check_job. If it says approval is required, give the user the review_url.\n\nCost: Per second, by model and resolution. See list_models.","tags":["Generate"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","minLength":1,"maxLength":8000},"model":{"description":"Model id from list_models. Omit for the recommended default.","type":"string"},"image_url":{"type":"string","minLength":1,"maxLength":8000000,"description":"First frame to animate. Either an asset_id from the library (ast_…) or a public https URL."},"end_image_url":{"type":"string","minLength":1,"maxLength":8000000,"description":"Last frame, for first-and-last-frame interpolation. Either an asset_id from the library (ast_…) or a public https URL."},"reference_image_urls":{"description":"Characters, products or style references to keep consistent.","maxItems":8,"type":"array","items":{"type":"string","minLength":1,"maxLength":8000000,"description":"A reference image. Either an asset_id from the library (ast_…) or a public https URL."}},"reference_video_urls":{"maxItems":3,"type":"array","items":{"type":"string","minLength":1,"maxLength":8000000,"description":"A reference video. Either an asset_id from the library (ast_…) or a public https URL."}},"reference_audio_urls":{"description":"Audio to drive lip-sync or to follow, for models that take it.","maxItems":3,"type":"array","items":{"type":"string","minLength":1,"maxLength":8000000,"description":"A reference audio clip. Either an asset_id from the library (ast_…) or a public https URL."}},"duration":{"description":"Clip length in seconds. Allowed values depend on the model.","type":"number","minimum":1,"maximum":60},"aspect_ratio":{"type":"string","enum":["16:9","9:16","1:1","4:3","3:4","21:9"]},"resolution":{"type":"string","enum":["360p","480p","720p","1080p","4K"]},"generate_audio":{"description":"Ask for native sound (dialogue, ambience) where the model supports it.","type":"boolean"},"seed":{"type":"integer","minimum":0,"maximum":2147483647},"review":{"description":"Force the human review step for this clip even when the workspace renders automatically.","type":"boolean"},"extras":{"description":"Model-specific options. Call get_model_params to see what a model accepts.","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"project_id":{"description":"Optional budget project id (from list_projects) to file this spend under.","type":"string"},"name":{"description":"Name for the result in the library. Defaults to the start of the prompt.","type":"string","maxLength":160},"tags":{"description":"Tags to file the result under.","maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":40}}},"required":["prompt"]}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/tools/generate_speech":{"post":{"operationId":"generate_speech","summary":"Generate a voiceover","description":"Turn text into spoken audio: voiceovers, narration, dialogue lines. Pick a stock voice with voice_id, or pass character_id to speak in a saved Character's voice. Write the text exactly as it should be spoken; spell out numbers and abbreviations the way they should sound. Up to 5,000 characters per call, or 3,000 on the ElevenLabs models; split longer scripts and join the parts with merge_media.\n\nCost: Per 1,000 characters, by model. See list_models.","tags":["Generate"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":5000,"description":"The words to speak."},"model":{"description":"Speech model id from list_models. Omit for the default.","type":"string"},"voice_id":{"description":"A stock voice of the chosen model. See get_model_params for the list.","type":"string","maxLength":200},"character_id":{"description":"Speak in this saved Character's voice.","type":"string"},"language":{"description":"Language hint, e.g. en, tr, es.","type":"string","maxLength":20},"speed":{"type":"number","minimum":0.5,"maximum":2},"extras":{"description":"Model-specific options. Call get_model_params to see what a model accepts.","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"project_id":{"description":"Optional budget project id (from list_projects) to file this spend under.","type":"string"},"name":{"description":"Name for the result in the library. Defaults to the start of the prompt.","type":"string","maxLength":160},"tags":{"description":"Tags to file the result under.","maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":40}}},"required":["text"]}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/tools/generate_music":{"post":{"operationId":"generate_music","summary":"Generate music","description":"Compose original music: songs with lyrics, instrumentals, background beds, jingles and stings. Describe genre, mood, tempo, instruments and how it should develop. Pass lyrics for a vocal track, or set instrumental for none. Use merge_media to lay the result under a video.\n\nCost: Per track or per minute, by model. See list_models.","tags":["Generate"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","minLength":1,"maxLength":4000,"description":"Style, mood, tempo, instruments, structure."},"lyrics":{"description":"Lyrics to sing. Omit for an instrumental or to let the model write them.","type":"string","maxLength":5000},"instrumental":{"type":"boolean"},"duration":{"description":"Target length in seconds, for models that accept one.","type":"number","minimum":3,"maximum":600},"model":{"type":"string"},"extras":{"description":"Model-specific options. Call get_model_params to see what a model accepts.","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"project_id":{"description":"Optional budget project id (from list_projects) to file this spend under.","type":"string"},"name":{"description":"Name for the result in the library. Defaults to the start of the prompt.","type":"string","maxLength":160},"tags":{"description":"Tags to file the result under.","maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":40}}},"required":["prompt"]}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/tools/generate_sound_effect":{"post":{"operationId":"generate_sound_effect","summary":"Generate a sound effect","description":"Create a sound effect from a description: foley, impacts, whooshes, ambience, interface sounds. Be concrete about the source, the space and the timing (\"a heavy wooden door slams in a stone hall, long reverb\").\n\nCost: Per second, by model. See list_models.","tags":["Generate"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","minLength":1,"maxLength":2000},"duration":{"default":5,"description":"Length in seconds.","type":"number","minimum":0.5,"maximum":30},"model":{"type":"string"},"extras":{"description":"Model-specific options. Call get_model_params to see what a model accepts.","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"project_id":{"description":"Optional budget project id (from list_projects) to file this spend under.","type":"string"},"name":{"description":"Name for the result in the library. Defaults to the start of the prompt.","type":"string","maxLength":160},"tags":{"description":"Tags to file the result under.","maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":40}}},"required":["prompt"]}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/tools/compare_models":{"post":{"operationId":"compare_models","summary":"Compare image models","description":"Run the same image prompt through 2 to 4 models at once and return the results side by side, so the user can pick the look they prefer before a larger batch. Use a shared seed to keep the comparison fair where models support it.\n\nCost: The sum of one image from each model.","tags":["Generate"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","minLength":1,"maxLength":8000},"models":{"minItems":2,"maxItems":4,"type":"array","items":{"type":"string"},"description":"Model ids from list_models (category image)."},"aspect_ratio":{"default":"1:1","type":"string","enum":["1:1","16:9","9:16","4:3","3:4","3:2","2:3","4:5","5:4","21:9"]},"seed":{"type":"integer","minimum":0,"maximum":2147483647},"project_id":{"description":"Optional budget project id (from list_projects) to file this spend under.","type":"string"}},"required":["prompt","models"]}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/tools/render_html_image":{"post":{"operationId":"render_html_image","summary":"Render HTML to an image","description":"Render HTML and CSS to a PNG. This is the right tool whenever text has to be exact and crisp: banners, social cards, quote graphics, price tags, thumbnails with headlines, simple charts. Compose a generated photo as the background and set the type in HTML on top of it. Layout is flexbox only (no CSS grid, no floats, no <script>). Use inline styles or a <style> block. Images must be https URLs or asset URLs. The Inter typeface is available in regular and bold.\n\nCost: 1 credit","tags":["Generate"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"html":{"type":"string","minLength":1,"maxLength":400000,"description":"The markup to render. The root element should fill 100% width and height."},"width":{"default":1200,"type":"integer","minimum":64,"maximum":4096},"height":{"default":630,"type":"integer","minimum":64,"maximum":4096},"project_id":{"description":"Optional budget project id (from list_projects) to file this spend under.","type":"string"},"name":{"description":"Name for the result in the library. Defaults to the start of the prompt.","type":"string","maxLength":160},"tags":{"description":"Tags to file the result under.","maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":40}}},"required":["html"]}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/tools/render_html_video":{"post":{"operationId":"render_html_video","summary":"Render HTML to a motion graphic","description":"Render an animated HTML composition to an MP4: title cards, lower thirds, kinetic type, animated stats, logo stings. The markup is rendered once per frame with {{tokens}} filled in. Built-in tokens: {{progress}} (0 to 1), {{time}} (seconds), {{frame}}. Declare your own animated numbers in `animate`, e.g. {\"x\": {\"from\": -400, \"to\": 0, \"end\": 0.8, \"ease\": \"ease-out\"}, \"fade\": {\"from\": 0, \"to\": 1, \"end\": 0.5}} and use them in styles: style=\"transform: translateX({{x}}px); opacity: {{fade}}\". Static text goes in `values`. Layout is flexbox only (no CSS grid, no floats, no <script>). Use inline styles or a <style> block. Images must be https URLs or asset URLs. The Inter typeface is available in regular and bold.\n\nCost: 2 credits per second","tags":["Generate"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"html":{"type":"string","minLength":1,"maxLength":200000},"width":{"default":1280,"type":"integer","minimum":64,"maximum":1920},"height":{"default":720,"type":"integer","minimum":64,"maximum":1920},"duration":{"default":4,"description":"Length in seconds.","type":"number","minimum":0.5,"maximum":20},"fps":{"default":24,"type":"integer","minimum":10,"maximum":30},"animate":{"description":"Named numeric tweens, usable as {{name}}.","type":"object","propertyNames":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]*$"},"additionalProperties":{"type":"object","properties":{"from":{"type":"number"},"to":{"type":"number"},"start":{"description":"Second at which the tween begins. Default 0.","type":"number","minimum":0},"end":{"description":"Second at which it ends. Default: the clip's end.","type":"number","minimum":0},"ease":{"default":"ease-in-out","type":"string","enum":["linear","ease-in","ease-out","ease-in-out"]},"decimals":{"default":2,"type":"integer","minimum":0,"maximum":4}},"required":["from","to"]}},"values":{"description":"Static {{token}} values.","type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","number","boolean"]}},"project_id":{"description":"Optional budget project id (from list_projects) to file this spend under.","type":"string"},"name":{"description":"Name for the result in the library. Defaults to the start of the prompt.","type":"string","maxLength":160},"tags":{"description":"Tags to file the result under.","maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":40}}},"required":["html"]}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/tools/remove_background":{"post":{"operationId":"remove_background","summary":"Remove a background","description":"Cut the subject out of an image and get a transparent PNG back. Video works only where list_models shows a background-removal model that handles video.\n\nCost: Per image, or per second of video. See list_models.","tags":["Edit and transform"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"media":{"type":"string","minLength":1,"maxLength":8000000,"description":"The image or video to cut out. Either an asset_id from the library (ast_…) or a public https URL."},"model":{"description":"Background-removal model id. Omit for the default.","type":"string"},"name":{"description":"Name for the result in the library.","type":"string","maxLength":160},"project_id":{"description":"Optional budget project id (from list_projects) to file this spend under.","type":"string"}},"required":["media"]}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/tools/upscale_image":{"post":{"operationId":"upscale_image","summary":"Upscale an image","description":"Increase an image's resolution and sharpen its detail. Use before print, large displays, or when a generated image is too small. Different models trade faithfulness against added detail; see list_models, category image-upscale.\n\nCost: Per image, by model. See list_models.","tags":["Edit and transform"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"image":{"type":"string","minLength":1,"maxLength":8000000,"description":"The image to upscale. Either an asset_id from the library (ast_…) or a public https URL."},"model":{"type":"string"},"scale":{"description":"Enlargement factor from 1 to 4, where the model supports a choice.","type":"number","minimum":1,"maximum":4},"name":{"description":"Name for the result in the library.","type":"string","maxLength":160},"project_id":{"description":"Optional budget project id (from list_projects) to file this spend under.","type":"string"}},"required":["image"]}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/tools/upscale_video":{"post":{"operationId":"upscale_video","summary":"Upscale a video","description":"Raise a video's resolution (for example 720p to 1080p or 4K) and clean up compression artifacts. Priced by the clip's length; long clips cost accordingly, so tell the user the estimate first (get_credits_balance with an estimate).\n\nCost: Per second of video, by model. See list_models.","tags":["Edit and transform"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"video":{"type":"string","minLength":1,"maxLength":8000000,"description":"The video to upscale. Either an asset_id from the library (ast_…) or a public https URL."},"model":{"type":"string"},"scale":{"description":"Enlargement factor, e.g. 2.","type":"number","minimum":1,"maximum":4},"name":{"description":"Name for the result in the library.","type":"string","maxLength":160},"project_id":{"description":"Optional budget project id (from list_projects) to file this spend under.","type":"string"}},"required":["video"]}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/tools/increase_frame_rate":{"post":{"operationId":"increase_frame_rate","summary":"Smooth a video","description":"Create in-between frames with AI to smooth choppy generated video (e.g. 24 to 60 fps). slowdown_factor works only with a model that lists it in get_model_params.\n\nCost: Per second of video, by model. See list_models.","tags":["Edit and transform"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"video":{"type":"string","minLength":1,"maxLength":8000000,"description":"The video to process. Either an asset_id from the library (ast_…) or a public https URL."},"target_fps":{"type":"integer","minimum":16,"maximum":120},"slowdown_factor":{"type":"number","minimum":1,"maximum":8},"model":{"type":"string"},"name":{"description":"Name for the result in the library.","type":"string","maxLength":160},"project_id":{"description":"Optional budget project id (from list_projects) to file this spend under.","type":"string"}},"required":["video"]}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/tools/transcribe":{"post":{"operationId":"transcribe","summary":"Transcribe speech","description":"Turn the speech in an audio or video file into text with word-level timing. Use it to find the best moments in a long recording, to write captions, or to check what a generated voiceover actually says.\n\nCost: Per minute of audio. See list_models.","tags":["Edit and transform"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"media":{"type":"string","minLength":1,"maxLength":8000000,"description":"The audio or video file to transcribe. Either an asset_id from the library (ast_…) or a public https URL."},"language":{"description":"Language code such as tr, en, es or sv-SE. Omit to tell Turkish from English automatically; give it for any other language.","type":"string","maxLength":20},"model":{"type":"string"},"project_id":{"description":"Optional budget project id (from list_projects) to file this spend under.","type":"string"}},"required":["media"]}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/tools/trim_video":{"post":{"operationId":"trim_video","summary":"Trim a clip","description":"Cut a video or audio file down to a time range. Give start and either end or duration, in seconds. Use it to remove a weak opening, to pull a moment out of a longer clip, or to fit a platform's length limit.\n\nCost: 2 credits","tags":["Edit and transform"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"media":{"type":"string","minLength":1,"maxLength":8000000,"description":"The video or audio file to trim. Either an asset_id from the library (ast_…) or a public https URL."},"start":{"default":0,"description":"Start time in seconds.","type":"number","minimum":0},"end":{"description":"End time in seconds.","type":"number","exclusiveMinimum":0},"duration":{"description":"Length to keep, in seconds (alternative to end).","type":"number","exclusiveMinimum":0},"name":{"description":"Name for the result in the library.","type":"string","maxLength":160},"project_id":{"description":"Optional budget project id (from list_projects) to file this spend under.","type":"string"}},"required":["media"]}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/tools/scale_video":{"post":{"operationId":"scale_video","summary":"Resize or reframe a video","description":"Change a video's dimensions. mode \"crop\" fills the new frame and trims the overflow evenly around the centre (use it to turn 16:9 into 9:16 for Reels and Shorts; keep the subject centred), \"pad\" keeps the whole picture and adds bars, \"stretch\" distorts to fit. Common targets: 1080x1920 vertical, 1920x1080 landscape, 1080x1080 square.\n\nCost: 2 credits","tags":["Edit and transform"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"video":{"type":"string","minLength":1,"maxLength":8000000,"description":"The video to resize. Either an asset_id from the library (ast_…) or a public https URL."},"width":{"type":"integer","minimum":64,"maximum":3840},"height":{"type":"integer","minimum":64,"maximum":3840},"mode":{"default":"crop","type":"string","enum":["crop","pad","stretch"]},"pad_color":{"default":"#000000","description":"Bar colour for mode \"pad\", as #RRGGBB.","type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"name":{"description":"Name for the result in the library.","type":"string","maxLength":160},"project_id":{"description":"Optional budget project id (from list_projects) to file this spend under.","type":"string"}},"required":["video","width","height"]}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/tools/extract_frames":{"post":{"operationId":"extract_frames","summary":"Pull frames from a video","description":"Save still frames from a video. Give `at` for a single frame at that second (a thumbnail, or the last frame of one shot to use as the first frame of the next). Give `every_seconds` to sample the whole clip at an interval, for a contact sheet or to review what was generated.\n\nCost: 2 credits","tags":["Edit and transform"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"video":{"type":"string","minLength":1,"maxLength":8000000,"description":"The video to take frames from. Either an asset_id from the library (ast_…) or a public https URL."},"at":{"description":"Timestamp in seconds for a single frame.","type":"number","minimum":0},"last":{"description":"Take the final frame of the video.","type":"boolean"},"every_seconds":{"description":"Sample one frame every N seconds.","type":"number","minimum":0.04,"maximum":600},"max_frames":{"default":12,"type":"integer","minimum":1,"maximum":200},"format":{"default":"jpg","type":"string","enum":["png","jpg","webp"]},"name":{"description":"Name for the result in the library.","type":"string","maxLength":160},"project_id":{"description":"Optional budget project id (from list_projects) to file this spend under.","type":"string"}},"required":["video"]}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/tools/merge_media":{"post":{"operationId":"merge_media","summary":"Combine clips and audio","description":"Three jobs in one tool. (1) Put a voiceover or music track onto a video: give `video` and `audio`; the track replaces the video's sound unless mix is true. (2) Join videos end to end into one film: give `videos` in order; they are fitted to the first clip's size. (3) Join audio clips: give `audios` in order. This is how separate shots, narration and music become a finished piece.\n\nCost: 2 credits","tags":["Edit and transform"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"video":{"type":"string","minLength":1,"maxLength":8000000,"description":"Video to add audio to. Either an asset_id from the library (ast_…) or a public https URL."},"audio":{"type":"string","minLength":1,"maxLength":8000000,"description":"Audio track to lay onto the video. Either an asset_id from the library (ast_…) or a public https URL."},"videos":{"description":"Clips to join, in order.","minItems":2,"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":8000000,"description":"A video clip. Either an asset_id from the library (ast_…) or a public https URL."}},"audios":{"description":"Audio clips to join, in order.","minItems":2,"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":8000000,"description":"An audio clip. Either an asset_id from the library (ast_…) or a public https URL."}},"mix":{"default":false,"description":"Keep the video's own sound and mix the new track with it.","type":"boolean"},"audio_volume":{"default":1,"description":"Volume of the added track (1 = unchanged).","type":"number","minimum":0,"maximum":2},"name":{"description":"Name for the result in the library.","type":"string","maxLength":160},"project_id":{"description":"Optional budget project id (from list_projects) to file this spend under.","type":"string"}}}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/tools/add_subtitles":{"post":{"operationId":"add_subtitles","summary":"Add captions to a video","description":"Transcribe a video's speech and burn animated captions into the picture, in the short-form style where each word lights up as it is spoken. Most social video is watched muted, so captions are worth adding to anything with a voice. Style the type with `style`; a few big words per line reads best on phones.\n\nCost: 6 credits per minute","tags":["Edit and transform"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"video":{"type":"string","minLength":1,"maxLength":8000000,"description":"The video to caption. Either an asset_id from the library (ast_…) or a public https URL."},"language":{"description":"Spoken language code (tr, en, es, sv-SE…). Omit to tell Turkish from English automatically; give it for any other language.","type":"string","maxLength":20},"style":{"type":"object","properties":{"font_size":{"description":"In pixels at the video's own resolution. Default scales with the frame.","type":"integer","minimum":16,"maximum":200},"color":{"default":"#FFFFFF","type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"highlight_color":{"default":"#FFE14D","description":"Colour of the word being spoken.","type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"outline_color":{"default":"#000000","type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"position":{"default":"bottom","type":"string","enum":["bottom","middle","top"]},"words_per_line":{"default":4,"type":"integer","minimum":1,"maximum":10},"bold":{"default":true,"type":"boolean"},"uppercase":{"default":false,"type":"boolean"},"animation":{"default":"karaoke","type":"string","enum":["karaoke","none"]}}},"name":{"description":"Name for the result in the library.","type":"string","maxLength":160},"project_id":{"description":"Optional budget project id (from list_projects) to file this spend under.","type":"string"}},"required":["video"]}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/tools/manage_character":{"post":{"operationId":"manage_character","summary":"Create or update a Character","description":"Save a reusable Character: a person, mascot or presenter whose look and voice should stay the same across images, videos and voiceovers. Omit character_id to create one; pass it to update. Store a clear reference image (generate one first if the character is fictional) and a description of the fixed traits: face, hair, build, wardrobe, style. Give the character a stock voice with voice_id (free). audio_url clones a voice, only with consent=true after the user confirms they own the voice or have the speaker's explicit consent, and only where this service offers cloning; otherwise the call says so and charges nothing. Afterwards pass character_id to generate_speech, and the image as a reference to generate_image and generate_video.\n\nCost: Free","tags":["Characters"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"character_id":{"description":"Update this Character. Omit to create a new one.","type":"string"},"name":{"type":"string","minLength":1,"maxLength":80},"description":{"description":"The traits that must stay fixed: face, hair, build, wardrobe, visual style, personality.","type":"string","maxLength":4000},"image_url":{"type":"string","minLength":1,"maxLength":8000000,"description":"Main reference image of the character. Either an asset_id from the library (ast_…) or a public https URL."},"reference_urls":{"description":"More angles, outfits or expressions.","maxItems":8,"type":"array","items":{"type":"string","minLength":1,"maxLength":8000000,"description":"An extra reference image. Either an asset_id from the library (ast_…) or a public https URL."}},"voice_id":{"description":"A stock voice of voice_model.","type":"string","maxLength":200},"audio_url":{"type":"string","minLength":1,"maxLength":8000000,"description":"A clean 10-60 second recording of the voice to clone. Either an asset_id from the library (ast_…) or a public https URL."},"consent":{"description":"Must be true with audio_url: the user confirms they have the right to clone this voice.","type":"boolean"},"voice_model":{"description":"Speech model the voice belongs to. Omit for a sensible default.","type":"string"},"remove_voice":{"type":"boolean"}}}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/tools/list_characters":{"post":{"operationId":"list_characters","summary":"List Characters","description":"List the Characters saved in this workspace with their reference images and voices. Check this before creating a person or mascot: the user may already have one.\n\nCost: Free","tags":["Characters"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/tools/delete_character":{"post":{"operationId":"delete_character","summary":"Delete a Character","description":"Delete a saved Character, including its cloned voice. Only when the user asks for it.\n\nCost: Free","tags":["Characters"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"character_id":{"type":"string"}},"required":["character_id"]}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/tools/create_template":{"post":{"operationId":"create_template","summary":"Create a reusable template","description":"Save a layout the team will reuse: a sale banner, a quote card, a product ad, a thumbnail format. Two kinds. An \"html\" template is HTML/CSS with {{token}} placeholders, rendered exactly (flexbox only, inline styles or a <style> block; {{width}} and {{height}} are filled in per size). A \"generative\" template is an image prompt with {{token}} placeholders, sent to an image model. Declare each placeholder in params with a type and description so future renders know what to pass. List the sizes the template should produce.\n\nCost: Free","tags":["Templates"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"description":{"type":"string","maxLength":1000},"html":{"description":"Markup for an html template.","type":"string","maxLength":300000},"prompt":{"description":"Prompt for a generative template.","type":"string","maxLength":8000},"model":{"description":"Image model for a generative template. Omit for the default.","type":"string"},"params":{"maxItems":40,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]*$"},"type":{"default":"text","type":"string","enum":["text","image_url","color","number","boolean"]},"description":{"type":"string","maxLength":300},"default":{"type":["string","number","boolean"]},"required":{"type":"boolean"}},"required":["name"]}},"sizes":{"description":"Sizes to render. Default: square.","maxItems":12,"type":"array","items":{"anyOf":[{"type":"string","description":"A named size: square, story, portrait, 16x9, landscape, og, banner, thumbnail."},{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":40},"width":{"type":"integer","minimum":64,"maximum":4096},"height":{"type":"integer","minimum":64,"maximum":4096}},"required":["name","width","height"]}]}}},"required":["name"]}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/tools/render_template":{"post":{"operationId":"render_template","summary":"Render a template","description":"Produce finished images from a saved template. Pass 1 to 4 `variants`, each a set of parameter values (different headlines, products, colours), and the sizes to output; use size_names [\"all\"] for every size the template defines. Every variant is rendered at every requested size.\n\nCost: 1 credit per html render; the model's image price per generative render.","tags":["Templates"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"template_id":{"type":"string"},"variants":{"minItems":1,"maxItems":4,"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","number","boolean"]}},"description":"One object of parameter values per variant."},"size_names":{"description":"Which of the template's sizes to render. Default: the first. Use [\"all\"] for every size.","maxItems":12,"type":"array","items":{"type":"string"}},"project_id":{"description":"Optional budget project id (from list_projects) to file this spend under.","type":"string"}},"required":["template_id","variants"]}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/tools/update_template":{"post":{"operationId":"update_template","summary":"Update a template","description":"Change a saved template's markup or prompt, its parameters, sizes, name or description. Only the fields you pass are changed.\n\nCost: Free","tags":["Templates"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"template_id":{"type":"string"},"name":{"type":"string","minLength":1,"maxLength":120},"description":{"type":"string","maxLength":1000},"html":{"type":"string","maxLength":300000},"prompt":{"type":"string","maxLength":8000},"model":{"type":"string"},"params":{"maxItems":40,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]*$"},"type":{"default":"text","type":"string","enum":["text","image_url","color","number","boolean"]},"description":{"type":"string","maxLength":300},"default":{"type":["string","number","boolean"]},"required":{"type":"boolean"}},"required":["name"]}},"sizes":{"maxItems":12,"type":"array","items":{"anyOf":[{"type":"string","description":"A named size: square, story, portrait, 16x9, landscape, og, banner, thumbnail."},{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":40},"width":{"type":"integer","minimum":64,"maximum":4096},"height":{"type":"integer","minimum":64,"maximum":4096}},"required":["name","width","height"]}]}}},"required":["template_id"]}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/tools/list_templates":{"post":{"operationId":"list_templates","summary":"List templates","description":"List the templates saved in this workspace with their parameters and sizes. Check here before designing a recurring format from scratch.\n\nCost: Free","tags":["Templates"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/tools/create_film_project":{"post":{"operationId":"create_film_project","summary":"Start a film project","description":"Start a multi-shot film: an ad, a short story, an explainer, a trailer. A film project holds the brief, the script and an ordered shot list, and moves through three gates so money is never spent on the wrong thing: (1) the user approves the script and shot list, (2) a storyboard still is made for every shot and the user approves the storyboard, (3) each shot is generated as video and the film is assembled. Nothing in a later gate can be attached before the earlier one is approved. Keep shots short (3 to 8 seconds) and the whole film around a minute or less.\n\nCost: Free","tags":["Film projects"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":160},"brief":{"description":"Goal, audience, tone, where it will run.","type":"string","maxLength":4000},"script":{"type":"string","maxLength":20000},"aspect_ratio":{"default":"16:9","description":"Generate every shot at this same aspect ratio.","type":"string","enum":["16:9","9:16","1:1","4:3","3:4"]},"shots":{"maxItems":24,"type":"array","items":{"type":"object","properties":{"shot_id":{"description":"Keep an existing shot by passing its id; omit for a new shot.","type":"string"},"description":{"type":"string","minLength":1,"maxLength":2000,"description":"What happens in the shot."},"prompt":{"description":"The generation prompt for this shot, once written.","type":"string","maxLength":8000},"duration":{"description":"Planned length in seconds.","type":"number","minimum":1,"maximum":30},"dialogue":{"type":"string","maxLength":2000},"character_ids":{"description":"Characters appearing in the shot. A note for you: pass their reference images when you generate the shot.","maxItems":6,"type":"array","items":{"type":"string"}}},"required":["description"]}}},"required":["title"]}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/tools/update_film_project":{"post":{"operationId":"update_film_project","summary":"Update a film project","description":"Edit a film project: revise the script or shot list, attach a storyboard still or a finished clip to a shot with set_shot, set narration or music, or record the user's approval of a gate. Approvals belong to the user: only pass approve together with user_confirmed=true after they have seen that stage and said yes in this conversation. Changing the script or the shot list after approval clears the approvals that depended on it.\n\nCost: Free","tags":["Film projects"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"film_id":{"type":"string"},"title":{"type":"string","minLength":1,"maxLength":160},"brief":{"type":"string","maxLength":4000},"script":{"type":"string","maxLength":20000},"shots":{"description":"Replaces the shot list. Pass shot_id to keep a shot and its attached media.","maxItems":24,"type":"array","items":{"type":"object","properties":{"shot_id":{"description":"Keep an existing shot by passing its id; omit for a new shot.","type":"string"},"description":{"type":"string","minLength":1,"maxLength":2000,"description":"What happens in the shot."},"prompt":{"description":"The generation prompt for this shot, once written.","type":"string","maxLength":8000},"duration":{"description":"Planned length in seconds.","type":"number","minimum":1,"maximum":30},"dialogue":{"type":"string","maxLength":2000},"character_ids":{"description":"Characters appearing in the shot. A note for you: pass their reference images when you generate the shot.","maxItems":6,"type":"array","items":{"type":"string"}}},"required":["description"]}},"set_shot":{"type":"object","properties":{"shot_id":{"type":"string"},"storyboard":{"type":"string","minLength":1,"maxLength":8000000,"description":"Storyboard still for this shot. Either an asset_id from the library (ast_…) or a public https URL."},"video":{"type":"string","minLength":1,"maxLength":8000000,"description":"Finished clip for this shot. Either an asset_id from the library (ast_…) or a public https URL."},"prompt":{"type":"string","maxLength":8000}},"required":["shot_id"]},"approve":{"type":"string","enum":["script","storyboard"]},"user_confirmed":{"description":"Must be true with approve: the user has reviewed this stage and approved it.","type":"boolean"},"narration":{"type":"string","minLength":1,"maxLength":8000000,"description":"Narration audio for the whole film. Either an asset_id from the library (ast_…) or a public https URL."},"music":{"type":"string","minLength":1,"maxLength":8000000,"description":"Music bed for the whole film. Either an asset_id from the library (ast_…) or a public https URL."}},"required":["film_id"]}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/tools/get_film_project":{"post":{"operationId":"get_film_project","summary":"Read a film project","description":"Read a film project: script, shots with their storyboard stills and clips, approvals, and what to do next. Call this when resuming work on a film.\n\nCost: Free","tags":["Film projects"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"film_id":{"type":"string"}},"required":["film_id"]}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/tools/list_film_projects":{"post":{"operationId":"list_film_projects","summary":"List film projects","description":"List the film projects in this workspace with their stage and progress.\n\nCost: Free","tags":["Film projects"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/tools/assemble_film":{"post":{"operationId":"assemble_film","summary":"Assemble the film","description":"Stitch a film project's finished shots, in order, into one video at the project's aspect ratio (a clip of another shape is letterboxed). Optionally lays a narration track and a looping music bed underneath (the project's saved ones are used unless you pass others). The clips' own sound is kept and mixed in unless keep_clip_audio is false. Every shot must have its clip attached and the storyboard must be approved.\n\nCost: 4 credits + 2 per shot","tags":["Film projects"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"film_id":{"type":"string"},"narration":{"type":"string","minLength":1,"maxLength":8000000,"description":"Narration audio. Either an asset_id from the library (ast_…) or a public https URL."},"music":{"type":"string","minLength":1,"maxLength":8000000,"description":"Music bed. Either an asset_id from the library (ast_…) or a public https URL."},"music_volume":{"default":0.25,"type":"number","minimum":0,"maximum":1},"keep_clip_audio":{"default":true,"description":"Keep the sound generated with each shot. Set false when narration should stand alone.","type":"boolean"},"project_id":{"description":"Optional budget project id (from list_projects) to file this spend under.","type":"string"}},"required":["film_id"]}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/tools/search_assets":{"post":{"operationId":"search_assets","summary":"Search the library","description":"Find files in the workspace library: everything that was generated, uploaded or imported. Filter by type, source, tags or free text (matches name, description and prompt). Returns newest first. Use this before generating to reuse an existing image, logo or clip.\n\nCost: Free","tags":["Library"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"description":"Free text matched against name, description and prompt.","type":"string","maxLength":200},"type":{"type":"string","enum":["image","video","audio","3d_model"]},"source":{"type":"string","enum":["generated","uploaded","imported"]},"tags":{"description":"Only assets carrying every one of these tags.","maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":40}},"favorites_only":{"type":"boolean"},"limit":{"default":20,"type":"integer","minimum":1,"maximum":100},"offset":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991}}}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/tools/upload_asset":{"post":{"operationId":"upload_asset","summary":"Add a file from a URL","description":"Copy a file from a public URL into the workspace library so it gets a permanent URL and an asset_id that other tools accept. Works with direct links to images, video, audio and 3D models. Links to a video page on a social platform are supported only when this deployment has the importer enabled. For a file on the user's computer use import_media instead.\n\nCost: Free","tags":["Library"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri","description":"Public https URL of the file."},"name":{"type":"string","maxLength":160},"description":{"type":"string","maxLength":1000},"tags":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":40}}},"required":["url"]}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/tools/import_media":{"post":{"operationId":"import_media","summary":"Let the user add files","description":"Use when the user wants to bring in files from their own device (photos, a logo, a voice sample, footage). Returns a link to the upload page; give it to the user, wait for them to say they are done, then call search_assets with source \"uploaded\" to find the new files.\n\nCost: Free","tags":["Library"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/tools/update_asset":{"post":{"operationId":"update_asset","summary":"Edit asset details","description":"Rename an asset, change its description, replace its tags or mark it as a favorite. Good tags make search_assets useful later.\n\nCost: Free","tags":["Library"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"asset_id":{"type":"string","pattern":"^ast_[A-Za-z0-9]{16}$"},"name":{"type":"string","minLength":1,"maxLength":160},"description":{"type":"string","maxLength":1000},"tags":{"description":"Replaces the existing tags.","maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":40}},"favorite":{"type":"boolean"}},"required":["asset_id"]}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/tools/delete_asset":{"post":{"operationId":"delete_asset","summary":"Delete an asset","description":"Remove an asset from the library. Only do this when the user asks for it. The file stops appearing in searches; its URL may keep working for a short time.\n\nCost: Free","tags":["Library"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"asset_id":{"type":"string","pattern":"^ast_[A-Za-z0-9]{16}$"}},"required":["asset_id"]}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/tools/get_upload_url":{"post":{"operationId":"get_upload_url","summary":"Start a direct upload","description":"For agents that hold a local file: returns a one-time URL to PUT the raw bytes to. After the PUT succeeds call confirm_upload with the upload_id to turn it into a library asset. Use this for large files instead of sending them through the conversation.\n\nCost: Free","tags":["Library"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"filename":{"type":"string","minLength":1,"maxLength":160},"content_type":{"type":"string","minLength":3,"maxLength":100,"description":"MIME type, e.g. video/mp4."}},"required":["filename","content_type"]}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/tools/confirm_upload":{"post":{"operationId":"confirm_upload","summary":"Finish a direct upload","description":"Call after the PUT to the URL from get_upload_url has succeeded. Registers the file as a library asset and returns its asset_id and permanent URL.\n\nCost: Free","tags":["Library"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"upload_id":{"type":"string","minLength":1},"name":{"type":"string","maxLength":160},"description":{"type":"string","maxLength":1000},"tags":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":40}}},"required":["upload_id"]}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/tools/update_theme":{"post":{"operationId":"update_theme","summary":"Save a brand theme","description":"Create or update a brand theme: the reusable description of how a brand looks and sounds. `data` is free-form JSON; a useful shape is { colors: {primary, secondary, accent, background, text}, fonts: {heading, body}, logos: [{url, usage}], tone: \"…\", do: [\"…\"], dont: [\"…\"], audience: \"…\" }. By default new keys are merged into the saved theme (top level only); pass merge=false to replace it. Save a theme once, then read it with get_theme before generating so everything stays on brand.\n\nCost: Free","tags":["Brand themes"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80,"description":"Theme name, e.g. the brand or campaign it belongs to."},"data":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"Theme content: colors, fonts, logos, tone rules. Any JSON shape."},"merge":{"default":true,"description":"Merge into the existing theme (default) or replace it.","type":"boolean"},"set_default":{"description":"Make this the workspace's default theme.","type":"boolean"}},"required":["name","data"]}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/tools/get_theme":{"post":{"operationId":"get_theme","summary":"Read a brand theme","description":"Read a brand theme by name, or the workspace default when no name is given. Call this at the start of any branded task and apply its colors, fonts, logos and tone rules to your prompts.\n\nCost: Free","tags":["Brand themes"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80,"description":"Theme name, e.g. the brand or campaign it belongs to."}}}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/tools/list_themes":{"post":{"operationId":"list_themes","summary":"List brand themes","description":"List the brand themes saved in this workspace, with which one is the default.\n\nCost: Free","tags":["Brand themes"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/tools/delete_theme":{"post":{"operationId":"delete_theme","summary":"Delete a brand theme","description":"Delete a brand theme by name. Only when the user asks for it.\n\nCost: Free","tags":["Brand themes"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80,"description":"Theme name, e.g. the brand or campaign it belongs to."}},"required":["name"]}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/tools/list_models":{"post":{"operationId":"list_models","summary":"List models","description":"List the AI models available here with what each is good at, what it can do and what it costs in credits. Filter by category (image, video, speech, music, sfx, or a utility category) or by free text. Every generation tool picks a sensible default when you do not name a model; look here when the user wants a specific model, a different look, a lower price or a capability the default lacks.\n\nCost: Free","tags":["Models, credits and jobs"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"category":{"type":"string","enum":["image","video","speech","music","sfx","transcription","audio-isolation","background-removal","image-upscale","video-upscale","frame-interpolation","character-swap"]},"query":{"description":"Free text: a model name, vendor or capability such as \"edit\" or \"reference-to-video\".","type":"string","maxLength":100}}}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/tools/get_model_params":{"post":{"operationId":"get_model_params","summary":"Get a model's options","description":"Show everything one model accepts: the standard parameters it honours with their allowed values (durations, resolutions, aspect ratios, voices) and the model-specific options that can be passed through `extras`. Call this before using a model you have not used in this conversation.\n\nCost: Free","tags":["Models, credits and jobs"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"model":{"type":"string","description":"Model id from list_models."}},"required":["model"]}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/tools/get_credits_balance":{"post":{"operationId":"get_credits_balance","summary":"Check credits","description":"Return the workspace's credit balance and plan. Pass `estimate` to price a job before running it; do this before anything expensive (video, long audio, batches) and tell the user the cost. One credit is one US cent at list price.\n\nCost: Free","tags":["Models, credits and jobs"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"estimate":{"type":"object","properties":{"model":{"type":"string","description":"Model id from list_models."},"num_images":{"type":"integer","minimum":1,"maximum":4},"duration":{"description":"Seconds of video or audio (to generate, or of the source file for edits).","type":"number","minimum":0.5,"maximum":3600},"resolution":{"type":"string"},"characters":{"description":"Length of the text, for speech.","type":"integer","minimum":1,"maximum":5000},"generate_audio":{"type":"boolean"},"width":{"description":"Width of the source file in pixels, for upscales and other edits.","type":"integer","minimum":1,"maximum":16384},"height":{"type":"integer","minimum":1,"maximum":16384},"scale":{"description":"Enlargement factor, for upscales.","type":"number","minimum":1,"maximum":4}},"required":["model"]}}}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/tools/get_credits_link":{"post":{"operationId":"get_credits_link","summary":"Get a link to add credits","description":"Return a link the user can open to buy a credit pack. Offer it when the balance is too low for what they asked for. Never claim that credits were added; the user completes the purchase themselves.\n\nCost: Free","tags":["Models, credits and jobs"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"product":{"default":"1000","description":"Pack id: the pack's price in cents.","type":"string","enum":["1000","5000","10000","25000","50000"]}}}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/tools/check_job":{"post":{"operationId":"check_job","summary":"Check a job","description":"Get the status and result of a job by its job_id. Use it when a generation tool answered that the job is still running or awaiting approval. It waits up to wait_seconds for the job to finish before answering, so one call is usually enough; if it is still running, tell the user and check again a little later rather than in a tight loop.\n\nCost: Free","tags":["Models, credits and jobs"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"job_id":{"type":"string","minLength":1},"wait_seconds":{"default":40,"type":"integer","minimum":0,"maximum":50}},"required":["job_id"]}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/tools/list_jobs":{"post":{"operationId":"list_jobs","summary":"List recent jobs","description":"List the workspace's most recent jobs with their status and cost. Use it to find a job_id you lost track of, or to see what is still rendering.\n\nCost: Free","tags":["Models, credits and jobs"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["awaiting_approval","queued","running","succeeded","failed","canceled"]},"limit":{"default":10,"type":"integer","minimum":1,"maximum":50}}}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/tools/load_image":{"post":{"operationId":"load_image","summary":"Look at an image","description":"Fetch an image so you can actually see it: check a generation against the brief before showing it, read text in a screenshot, compare variants, or study a reference the user uploaded. Large images are scaled down for viewing; the original is untouched.\n\nCost: Free","tags":["Models, credits and jobs"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"image":{"type":"string","minLength":1,"maxLength":8000000,"description":"The image to look at. Either an asset_id from the library (ast_…) or a public https URL."}},"required":["image"]}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/tools/list_projects":{"post":{"operationId":"list_projects","summary":"List budget projects","description":"List the workspace's budget projects (campaigns or clients that spend is tracked against) with their budgets and what has been used. Pass a project's id as project_id to any generation tool to file that job's cost under it.\n\nCost: Free","tags":["Models, credits and jobs"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/tools/submit_feedback":{"post":{"operationId":"submit_feedback","summary":"Send feedback","description":"Send feedback to the team that runs this service: a bug, a confusing result, a missing model or feature. Use it when the user asks you to report something, or when a tool behaved in a way that blocked their work.\n\nCost: Free","tags":["Models, credits and jobs"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","minLength":3,"maxLength":4000},"rating":{"type":"integer","minimum":1,"maximum":5},"context":{"description":"What you were trying to do, and any job_id involved.","type":"string","maxLength":2000}},"required":["message"]}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}}},"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"An API key created in the dashboard, or an OAuth access token."}},"responses":{"Error":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}}}}}