Skip to content
New account priceyour first 5 videos are just HK$1 eachthen HK$30 eachSee pricing
Axiom Lab
Developer docs

Reference

API reference

All 77 Axiom Lab REST API endpoints. Choose a category for parameters, request bodies, response fields and curl examples, or copy the complete reference.

View Markdown

Basics

Base URL
https://axiomlab.online
Authentication
Most /v1 requests send Authorization: Bearer <API key> (public style routes GET /v1/styles* and signed download links need no key; an invalid key still returns 401). Create a key in your account; the raw key is shown only once.
Projects
X-Project-ID selects a project; the default project is used when it is omitted.
Idempotency
Send an Idempotency-Key with requests that create something and reuse it when retrying; the same value with a different request returns 409.
Asynchronous jobs
POST /v1/videos returns 202 and a video id; poll GET /v1/videos/{job_id} or receive a webhook. needs_input means something is missing, not that the video is done.
Pagination
Lists return data, next_cursor and has_more; pass next_cursor as cursor to get the next page.
Pricing
Settled from prepaid HKD balance per successfully made film (nothing if a film isn't made or is cancelled); see Pricing or contact sales@axiomlab.online for enterprise volume.

Errors

Errors are JSON with the fields below; include the request_id when you report a problem.

NameTypeDescription
errorrequiredobject
error.coderequiredstringStable machine-readable code, e.g. unauthenticated, not_found, idempotency_conflict, validation_error, rate_limited, insufficient_balance, budget_exceeded, contact_sales, internal_error
error.messagerequiredstring
error.detailsanyStructured context: validation errors, unmet workflow requirements, or null
error.request_idrequiredstringnullable
StatusMeaning
401Missing or invalid bearer key (`WWW-Authenticate: Bearer`)
402Wallet balance or spending limit would be exceeded
403Key role or project scope does not allow this; `contact_sales` for anything about pricing
404Resource not found in this organization/project
409State conflict, or Idempotency-Key reused with a different request
422Validation error; `details` lists the failing fields or requirements
429Hourly limit reached (`Retry-After` in seconds)
500Unexpected failure; cite `request_id` when reporting it

Endpoints