跳到主要内容
限时活动每支视频只要 HK$1限量 1000 支,先到先得立即抢购
Axiom Lab
开发者文档

参考

API 参考 · 账户与能力

当前 Key 的身份,以及可用的工作流和视频类型。

查看 Markdown

Me

GET/v1/me

需要 API Key成功 200

参数

名称类型说明
X-Project-IDheaderstring要操作的项目;省略时使用默认项目; 可为 null

返回 200 application/json

名称类型说明
id必填string
key_id必填stringSame as id
organization_id必填string
project_id必填string
role必填string可选值:owner editor viewer
billing_mode必填string可选值:budget prepaid
wallet必填object
permissions必填map<string, boolean>

示例

curl "https://axiomlab.online/v1/me" \
  -H "Authorization: Bearer $AZIMO_API_KEY"

Workflows

GET/v1/workflows

需要 API Key成功 200

参数

名称类型说明
X-Project-IDheaderstring要操作的项目;省略时使用默认项目; 可为 null

返回 200 application/json

名称类型说明
router必填object
workflows必填map<string, object>

示例

curl "https://axiomlab.online/v1/workflows" \
  -H "Authorization: Bearer $AZIMO_API_KEY"

Video Skills

GET/v1/workflows/creative_video/skills

需要 API Key成功 200

Kept for client compatibility: the production service chooses its own techniques, so no skill catalogue is offered.

参数

名称类型说明
X-Project-IDheaderstring要操作的项目;省略时使用默认项目; 可为 null

返回 200 application/json

名称类型说明
data必填array<any>

示例

curl "https://axiomlab.online/v1/workflows/creative_video/skills" \
  -H "Authorization: Bearer $AZIMO_API_KEY"

Video Types

GET/v1/video-types

需要 API Key成功 200

参数

名称类型说明
langquerystringDisplay language, zh (default) or en; when absent the first zh/en entry of Accept-Language is used; 长度 ≤ 16; 可为 null
X-Project-IDheaderstring要操作的项目;省略时使用默认项目; 可为 null
accept-languageheaderstring可为 null

返回 200 application/json

名称类型说明
data必填array<object>
data[].id必填string
data[].version必填any
data[].templateany
next_cursorstringOpaque; pass as cursor (or the after alias) for the next page; 可为 null
has_moreboolean默认 false

示例

curl "https://axiomlab.online/v1/video-types" \
  -H "Authorization: Bearer $AZIMO_API_KEY"

Playground

GET/v1/playground

需要 API Key成功 200

The workflow gallery: eight fixed entries, each with routing values, whether this account can start it now, and a runnable example.

参数

名称类型说明
langquerystringDisplay language, zh (default) or en; when absent the first zh/en entry of Accept-Language is used; 长度 ≤ 16; 可为 null
X-Project-IDheaderstring要操作的项目;省略时使用默认项目; 可为 null
accept-languageheaderstring可为 null

返回 200 application/json

名称类型说明
data必填array<object>
data[].id必填stringStable catalogue id
data[].name必填string
data[].summary必填stringOne benefit-oriented sentence
data[].workflow必填stringBackend routing value for options.workflow; null for an entry that has no workflow yet (custom); 可为 null
data[].video_type必填stringoptions.video_type for structured explainers, otherwise null; 可为 null
data[].aspect必填string可选值:16:9 9:16 1:1
data[].duration必填integerDefault options.duration_max in seconds
data[].duration_range必填array<integer>[minimum, maximum] seconds the workflow accepts
data[].needs_assets必填booleanAt least one material file is required: a plan without one is needs_input with materials_required
data[].available必填booleanThe entry is open in this catalogue and its workflow is configured here. A display flag, not an API permission: plans and videos are checked by their own requirements
data[].reason必填stringWhy available is false: coming_soon (not open in this catalogue) or not_configured (this environment); 可选值:coming_soon not_configured contact_sales; 可为 null
data[].coming_soon必填boolean
data[].example必填object
data[].example.prompt必填stringA ready-to-run creative brief for POST /v1/videos or POST /v1/plans
data[].example.content_data必填map<string, string>Sample value for every input of the workflow's video type (options.content_data); empty when the workflow has none

示例

curl "https://axiomlab.online/v1/playground" \
  -H "Authorization: Bearer $AZIMO_API_KEY"

← 全部接口