Introduction
One API key, one request shape and one bill for the leading AI image and video models.
RawFrame puts image and video generation models from several providers behind a single REST API. You send the same request to every model, pay from one prepaid credit balance, and get your files back from our storage, whichever provider made them.
Quickstart
Make your first video in under five minutes.
Models
What each model accepts: durations, resolutions, aspect ratios, references.
API reference
Every endpoint, generated from the OpenAPI spec.
SDKs
TypeScript and Python, with retries and wait helpers built in.
How it works
- Create a generation.
POST /v1/generationswith a model, a prompt and optionalparamsandreferences. The request is checked against the model's capabilities, its maximum price is reserved from your credits, and it's queued. The response comes back immediately with statusqueued. - Wait for it. Poll
GET /v1/generations/{id}, stream status over Server-Sent Events, or receive a webhook. Video usually takes one to several minutes; images take seconds. - Download the outputs. A succeeded generation has signed
outputs[].urllinks to our storage, valid for an hour. Fetch the generation again any time for fresh links while the files are retained.
You're charged for what was produced, never more than the reserved estimate. Failed and canceled generations aren't charged. See Pricing and credits.
Conventions
- Base URL:
https://api.rawframe.dev, versioned under/v1(Versioning). - Authentication:
Authorization: Bearer <API key>(Authentication). - JSON in and out. Field names are
snake_case. Times are ISO 8601 in UTC. - Money is integer micro-USD: 1 USD = 1,000,000.
charge_micros: 40000is $0.04. - Ids have a type prefix:
gen_generations,upl_uploads,ast_output files,whe_webhook endpoints. - Errors share one shape with a stable
code(Errors).