Platform Editor Pricing Docs Sign In Get Started

API Reference

The Render API is available over HTTPS at region-specific endpoints. It supports Cross-Origin Resource Sharing (CORS) for browser-based requests.

Base URL: https://render-{region}.impossible.io

Replace {region} with your project’s region (e.g., us-east-1, eu-west-1). See Regions & Endpoints for the full list.

Token-based rendering (v2)

All render workflows start by creating a token, then using it to retrieve the video.

Render endpoints

MethodEndpointDescription
POST/v2/render/{project-id}Create a render token. With format, waits until the render is complete and returns the video url; with async: true, starts the render in the background and returns immediately; with neither, returns the token without rendering.
POST/v2/token/{project-id}Create a render token without starting the render. Useful for pre-generating URLs.
GET/v2/progress/{token}Poll render progress for async renders. Returns done and total part counts.

Retrieval endpoints

MethodEndpointDescription
GET/v2/render/{token}.{ext}Render and deliver when complete. Highest latency, smoothest playback.
GET/v2/get/{token}.{ext}Progressive download. Starts delivering as frames become available.
GET/v2/play/{token}.{ext}Streaming. Lowest latency, renders on-demand as playback progresses.
DELETE/v2/token/{token}Delete a token and its associated rendered data.

Render modes

There are three ways to create a render token, each suited to different use cases.

Synchronous render

POST https://render-{region}.impossible.io/v2/render/{project-id}

Set format to the output format you want. The API waits until the render is complete, then returns the token, the URL of the rendered file, and the expiration. This is the simplest approach — you get a ready-to-use URL in a single call.

{
  "movie": "welcome-video",
  "params": { "name": "Alex" },
  "format": "mp4"
}

Response:

{
  "token": "V3:us-east-1:abc123-def456-789",
  "url": "https://media.impossible.io/us-east-1/123456789012/a1b2c3d4/9f8e7d6c5b4a3f2e.mp4",
  "expires": 1709740800,
  "status": 200
}

url points at the rendered file. The token’s retrieval URLs (/v2/render/{token}.mp4) redirect to the same file. A synchronous request can take as long as the render, up to 15 minutes.

i Note

Without format or async, POST /v2/render does not render: it returns the token only, exactly like POST /v2/token. Existing integrations rely on this, so it stays the default.

Asynchronous render

POST https://render-{region}.impossible.io/v2/render/{project-id}

Set "async": true to return immediately with a token. The render continues in the background. Use the progress endpoint to poll until complete, then retrieve the video using the token.

{
  "movie": "welcome-video",
  "params": { "name": "Alex" },
  "async": true
}

Response (HTTP 201):

{
  "token": "V3:us-east-1:abc123-def456-789",
  "expires": 1709740800,
  "status": 201
}

format is optional here and selects the format rendered in the background (default mp4).

Poll progress:

GET https://render-{region}.impossible.io/v2/progress/{token}

{
  "token": "V3:us-east-1:abc123-def456-789",
  "done": 42,
  "total": 100
}

total is the number of parts the render is split into and done the number finished. total is 0 until the renderer has planned the render, so 0/0 means “not started yet”. The render is complete when total > 0 and done >= total. Give the polling loop a time limit, since a failed render stops making progress. Then construct the retrieval URL:

https://render-{region}.impossible.io/v2/render/{token}.mp4

Token-only (no render)

POST https://render-{region}.impossible.io/v2/token/{project-id}

Creates a token without starting a render (POST /v2/render without format or async does the same). The render is triggered on first retrieval (when someone requests the video URL). Useful for pre-generating URLs before the video is needed.

{
  "movie": "welcome-video",
  "params": { "name": "Alex" }
}

Response:

{
  "token": "V3:us-east-1:abc123-def456-789",
  "expires": 1709740800,
  "status": 200
}

Construct the retrieval URL from the token:

https://render-{region}.impossible.io/v2/render/{token}.mp4

The render starts when this URL is first requested.

* Tip

Use synchronous render when you need the video immediately. Use async render for long renders where you want to show progress. Use token-only when you’re generating URLs ahead of time (e.g., in emails or landing pages) and the video will be rendered on demand.

Request body

Parameter Type Required Default Description
movie String | Object Yes — The dynamic movie name, or an object mapping file extensions to movie names for multi-format rendering.
params Object No {} Key-value pairs for your dynamic movie variables (names, text, image URLs, colors, etc.).
format String No — Output format, e.g. "mp4". When set, POST /v2/render waits until the render is complete and the response includes the video url. With async, the format rendered in the background (default "mp4"). Only applies to POST /v2/render.
async Boolean No false When true, the render endpoint starts the render in the background and returns immediately with a token. Poll /v2/progress/{token} for status. Only applies to POST /v2/render.
parallel Number No 1 Number of distributed render servers to use. Higher values render faster for long videos.
routingkey String No "default" Routing key for dedicated render clusters. Only needed for enterprise plans.
upload Object | Array No — Upload task definition(s) to send the rendered video directly to third-party services. See Uploading in the Rendering guide.

Direct rendering (v1)

Renders and delivers in a single request. Simpler but less flexible — no upload support, no token reuse.

MethodEndpointDescription
GET/v1/render/{project-id}/{movie}.{ext}Render and deliver when complete.
GET/v1/get/{project-id}/{movie}.{ext}Progressive download.
GET/v1/play/{project-id}/{movie}.{ext}Streaming playback.

Pass dynamic parameters as query string values: ?name=Alex&company=Acme.

Supported output formats

Video formats

FormatExtensionNotes
MP4 (H.264).mp4Most compatible. Render mode only.
WebM (VP8/VP9).webmAll retrieval modes. Best for streaming.
Flash Video.flvLegacy. All retrieval modes.
HLS.m3u8Adaptive streaming. Render + get modes.
MPEG-DASH.mpdAdaptive streaming. Render + get modes.
MPEG-2.mpegBroadcast use.
Windows Media.wmvLegacy.
GIF.gifAnimated GIF output.
Apple ProRes.movProfessional editing.

Image formats

FormatExtensionParameters
JPEG.jpgframe (frame number), q (quality 10-99)
PNG.pngframe (frame number), compression (0-9)
TIFF.tifframe (frame number)

Image sequences

FormatExtensionParameters
ZIP archive.zipformat (png/jpg/tif), from (start frame), to (end frame), q (JPEG quality), compression (PNG compression)

Error responses

StatusMeaning
200Success. Token or video returned.
201Accepted (async render or upload). Processing in background.
400Bad request. Check your request body.
403Forbidden. The project requires authentication and no valid API Key was sent.
404Project or movie not found.
429Rate limited. Too many concurrent requests.
500Server error. Retry with backoff.

Authentication

Send your API Key as a Bearer token in the Authorization header:

Authorization: Bearer <apiKey>

By default, render and retrieval endpoints do not require authentication — the project ID is enough. A project can be configured to reject unauthenticated render requests with 403 Forbidden, in which case every render request must carry the header above. The setting is per project, off by default, and lives in the Console on the project’s Publish > Distribution panel under Require authentication for render requests. See Credentials for details.

Rate limiting is based on your account tier.