Skip to main content
New to Corsair? See API access, authentication, and error handling.

Assets

delete

assets.delete Permanently delete a hosted asset from Shotstack storage and its CDN; there is no undo. Risk: destructive · Irreversible
Input Output: empty object

get

assets.get Read one hosted asset: its durable CDN URL, filename, size and status. Risk: read
Input Output

getByRenderId

assets.getByRenderId List the assets a render produced (video, poster, thumbnail), including the durable CDN URL to serve them from. Risk: read
Input Output

transfer

assets.transfer Copy a file to external destinations such as Shotstack hosting, S3, Google Cloud Storage, Mux, Vimeo or Google Drive (set up under Integrations in the dashboard). Answers queued; the copy runs afterwards. The hosted copy is listed by assets.getByRenderId with the id you passed. Risk: destructive
Input
Output

Generations

create

generations.create Generate an image, video or audio asset from a prompt with an AI model; spends generation credits. Follow it with generations.get until status is done or failed. Pass idempotencyKey to make retries safe. Risk: destructive
Input
Output

get

generations.get Where a generation job stands. Once done it returns the public URL of the generated asset. Risk: read
Input Output

getModel

generations.getModel Read one generation model, including the JSON Schema of the options it accepts. Risk: read
Input Output

listModels

generations.listModels List the generation models available to this account, each with the asset type it generates and whether the plan includes it. Pass expand: ‘options’ to include each model’s option schema. Risk: read
Input Output

quote

generations.quote Estimate the generation credits an asset would cost, without reserving credits or generating anything. Risk: read
Input
Output

Media

probe

media.probe Inspect a media file at a remote URL and return its FFprobe metadata: width, height, duration, fps and type. Risk: read
Input Output

Renders

create

renders.create Queue a video, image, GIF or audio render of a JSON timeline; spends credits on production (sandbox renders are watermarked). Follow it with renders.get until status is done or failed, or pass a callback URL. Risk: destructive
Input
Output

get

renders.get Where a render stands. Once done it returns the temporary download URL, which expires after 24 hours; serve the asset from its CDN URL via assets.getByRenderId instead. Risk: read
Input Output

Sources

delete

sources.delete Permanently delete an ingested source file; there is no undo. Risk: destructive · Irreversible
Input Output: empty object

fetch

sources.fetch Fetch a file from a URL into Shotstack storage so the Edit API can use it; renditions and transcriptions in outputs spend credits. Follow it with sources.get until status is ready, or pass a callback URL. Risk: destructive
Input
Output

get

sources.get Read one ingested source file: its hosted URL, status, dimensions and duration. Risk: read
Input Output

list

sources.list List the ingested source files with their status and metadata. Risk: read
Input: empty object Output

Templates

create

templates.create Save an edit (timeline and output) as a named template that can be rendered with placeholders. Risk: write
Input
Output

delete

templates.delete Permanently delete a saved template; there is no undo. Risk: destructive · Irreversible
Input Output

get

templates.get Read one saved template, including its full edit. Risk: read
Input Output

list

templates.list List the saved templates with their ids and names. Risk: read
Input: empty object Output

render

templates.render Queue a render of a saved template with placeholder values merged in; spends credits. Poll renders.get for the result. Risk: destructive
Input
Output

update

templates.update Overwrite a saved template with a new name or edit. Risk: write
Input
Output

Uploads

create

uploads.create Get a signed S3 URL to upload a file directly, so the Edit API can use it as a source. PUT the bytes to the returned url within one hour. Risk: write
Input: empty object Output