跳到主要内容
新用户体验价前 5 支视频每支只要 HK$1之后每支 HK$30–HK$810查看计费
Axiom Lab
开发者文档

参考

API 参考

Axiom Lab REST API 的全部 79 个接口。按类别查看参数、请求体、返回字段和 curl 示例;也可复制完整参考。接口说明为英文原文。

查看 Markdown

基础约定

Base URL
https://axiomlab.online
鉴权
大多数 /v1 请求带 Authorization: Bearer <API key>(公开风格接口 GET /v1/styles* 与签名下载链接免 Key;若携带无效 Key 仍返回 401)。登录后在个人中心创建 Key,原始 Key 只显示一次。
项目
用 X-Project-ID 选择项目,省略时使用默认项目。
幂等
创建类请求带 Idempotency-Key,超时重试时复用同一个值;同一个值配不同的请求内容会返回 409。
异步制作
POST /v1/videos 返回 202 和视频 ID;轮询 GET /v1/videos/{job_id} 或用 Webhook 接收结果。needs_input 表示还缺材料,不代表完成。
分页
列表返回 data、next_cursor 和 has_more;把 next_cursor 作为 cursor 传入即可取下一页。
价格
按制作成功的成片从港币预付余额结算(没做成或取消不扣费);详见 价格说明,企业批量合作联系 sales@axiomlab.online。

错误

出错时返回 JSON,字段如下;报告问题时请附上 request_id。

名称类型说明
error必填object
error.code必填stringStable machine-readable code, e.g. unauthenticated, not_found, idempotency_conflict, validation_error, rate_limited, insufficient_balance, budget_exceeded, contact_sales, internal_error
error.message必填string
error.detailsanyStructured context: validation errors, unmet workflow requirements, or null
error.request_id必填string可为 null
状态码含义
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

接口目录