SDKs
REST and cURL
Call the Framera API from any language: HTTPS, JSON and an API key.
The basics
- Base URL
https://api.framera.ai/v1, HTTPS only. - Send
Authorization: Bearer fr_…on every request; see Authentication. - Bodies are JSON with
Content-Type: application/json; responses are JSON with camelCase fields. - Add an
Idempotency-Keyto every create so retries are safe; see Idempotency. - Errors come as
{ "error": { "code", "message", "details" } }; see Errors.
cURL
cURL
curl https://api.framera.ai/v1/videos \
-H "Authorization: Bearer $FRAMERA_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"model":"odyssey-1-ultra","prompt":"A lighthouse at dusk","durationSeconds":30,"resolution":"720p"}'Go, PHP, Ruby, Java and C#
The same request with each language's standard HTTP client:
body := strings.NewReader(`{"model":"odyssey-1-ultra","prompt":"A lighthouse at dusk","durationSeconds":30,"resolution":"720p"}`)
req, _ := http.NewRequest("POST", "https://api.framera.ai/v1/videos", body)
req.Header.Set("Authorization", "Bearer "+os.Getenv("FRAMERA_API_KEY"))
req.Header.Set("Content-Type", "application/json")
req.Header.Set("Idempotency-Key", uuid.NewString())
res, err := http.DefaultClient.Do(req)Getting the result
A create returns a job straight away. Poll GET /v1/jobs/:id every few seconds until status is succeeded, failed or cancelled, or pass a webhookUrl and we POST the finished job to you. To check a webhook without an SDK, compute HMAC-SHA256 of "{t}.{raw body}" with your signing secret and compare it with v1 in the Framera-Signature header; see Webhooks.
Every field, documented
The API reference lists every endpoint, field, default and response, with a cURL example on each page. Writing your own client? The TypeScript and Python SDKs are readable references for the types, retries and signature checks: their source ships in each package.