Quickstart
Make your first AI film with the Framera API in about five minutes: create an account, add credits, create a key, start a film and get the finished video back.
1. Create an account and add credits
Create a developer account, then open Balance and billing in the console and add credits by card, from $25.
Every request is real and paid from your balance at the price it shows. A failed job is never charged. To know a price before you start, ask POST /v1/quotes, which is free.
2. Create an API key
Open API keys in the console and click Create key. Copy it straight away: it is shown once. Keys start fr_live_….
Keep the key on your server, in an environment variable:
export FRAMERA_API_KEY="fr_live_…"3. Install the SDK
Official SDKs for TypeScript and Python. Any other language can call the REST API directly.
npm install @framera/sdk4. Start a film
Send a prompt. The call returns at once with a job, queued, and the film is made in the background.
The example on the right makes a 30-second 720p film, $3.44. Change durationSeconds and resolution to change the length and quality. Every job carries its price, so you always know what it costs.
5. Get the finished film
Two ways:
- Wait for it with
jobs.wait(), best for scripts and short jobs. - Get a webhook by passing
webhookUrl. We POST a signedjob.succeededevent with the finished job to your server. Best for apps. See Webhooks.
A finished job's outputs[0].url is a signed link to the MP4, valid for an hour. Copy the file to your own storage if you keep it longer; see Storing outputs.