Skip to main content
POST
Create an animation

Authorizations

Authorization
string
header
default:Bearer brew_your_api_key
required

Send your Brew API key as Authorization: Bearer brew_xxx.

Headers

Idempotency-Key
string

Optional idempotency key for safe retries. Reusing the same key with the same request body returns the original response for 24 hours.

Required string length: 1 - 100
X-Brand-Id
string

The brand this request acts on. REQUIRED for organization-scoped credentials (otherwise 400 BRAND_ID_REQUIRED — there is no default brand); list ids with GET /v1/brands. Brand-scoped credentials may omit it, and sending a different brand returns 403 BRAND_SCOPE_MISMATCH. A brand outside your organization returns 404 BRAND_NOT_FOUND.

Required string length: 1 - 64

Body

application/json

One Anime.js scene: title, format, html, css, script, and optional height, fps and seed.

title
string
required
Required string length: 1 - 120
format
enum<string>
required
Available options:
email,
square,
story,
landscape
html
string
required
Maximum string length: 100000
script
string
required
Required string length: 1 - 50000
height
integer
css
string
default:""
Maximum string length: 50000
fps
integer
default:25
Required range: 10 <= x <= 30
seed
integer
default:1
Required range: 1 <= x <= 2147483647

Response

The operation result.

gifUrl
string<uri> | null
required
stillUrl
string<uri>
required
mp4Url
string<uri> | null
required
contactSheetUrl
string<uri> | null
required
sceneUrl
string<uri>
required
format
enum<string>
required
Available options:
email,
square,
story,
landscape
width
integer
required
height
integer
required
displayWidth
integer
required
durationMs
integer
required
Required range: x >= 0
frameCount
integer
required
gifBytes
integer | null
required
Required range: x >= 0
notes
string[]
required