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
Output: empty object
get
assets.get
Read one hosted asset: its durable CDN URL, filename, size and status.
Risk: read
Output
getByRenderId
assets.getByRenderId
List the assets a render produced (video, poster, thumbnail), including the durable CDN URL to serve them from.
Risk: read
Output
assets full type
assets full type
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
destinations full type
destinations full type
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
asset full type
asset full type
get
generations.get
Where a generation job stands. Once done it returns the public URL of the generated asset.
Risk: read
Output
getModel
generations.getModel
Read one generation model, including the JSON Schema of the options it accepts.
Risk: read
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
Output
models full type
models full type
quote
generations.quote
Estimate the generation credits an asset would cost, without reserving credits or generating anything.
Risk: read
asset full type
asset full type
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
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
timeline full type
timeline full type
output full type
output full type
merge full type
merge full type
response full type
response full type
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
Output
response full type
response full type
Sources
delete
sources.delete
Permanently delete an ingested source file; there is no undo.
Risk: destructive · Irreversible
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
outputs full type
outputs full type
get
sources.get
Read one ingested source file: its hosted URL, status, dimensions and duration.
Risk: read
Output
list
sources.list
List the ingested source files with their status and metadata.
Risk: read
sources full type
sources full type
Templates
create
templates.create
Save an edit (timeline and output) as a named template that can be rendered with placeholders.
Risk: write
template full type
template full type
response full type
response full type
delete
templates.delete
Permanently delete a saved template; there is no undo.
Risk: destructive · Irreversible
Output
get
templates.get
Read one saved template, including its full edit.
Risk: read
Output
response full type
response full type
list
templates.list
List the saved templates with their ids and names.
Risk: read
response full type
response full type
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
merge full type
merge full type
response full type
response full type
update
templates.update
Overwrite a saved template with a new name or edit.
Risk: write
template full type
template full type
response full type
response full type
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