Skip to main content
With an API key you can create movies from your own programs. The base URL is https://api.arlet.dev.

Create an API key

Create one under API keys in the left menu of Arlet. The key (starting with arlet_pat_) is shown only once, so copy it. A key belongs to the workspace it was created in, and movies made with it go into that workspace. Send this header with every request:

Create a movie

With an API key, a movie is made from text only. To use a web page, send the page’s text as text. A url or term source returns 422. Use a new UUID as the Idempotency-Key for each movie. If you do not get a response, send the same key and body again: you get the same result without creating a duplicate. Response (202):
Making a movie uses credits (1 for 60 seconds or less or when omitted, 2 for 90 seconds, 3 for 180 seconds). They are returned if the creation fails. Playing, sharing, downloading and editing a movie by hand do not use credits. In the web editor, “Edit with AI” is free for the first 3 instructions on each movie, then uses 1 credit per instruction (instructions that fail do not use credits).

Wait for it to finish

Making a movie takes a few minutes. Call this every 10 to 20 seconds until state is completed or failed.
When it is completed, movie_url holds the URL that opens the movie in Arlet. When it fails, error holds the reason.

Get movie details

Get the title, length, sources and more of a finished movie.

Errors