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

参考

API 参考 · 其他

查看 Markdown

Read Founder Card

POST/v1/founder/card

需要 API Key成功 200

Read a business card into empty form fields. The vision cost is internal, not a second customer charge.

参数

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

请求体 application/json

名称类型说明
asset必填string长度 ≤ 80

返回 200 application/json

名称类型说明
namestring
companystring
titlesarray<string>
contactstring
phonestring
emailstring
addressstring
citystring
websitestring
sloganstring
businessarray<string>

示例

curl -X POST "https://axiomlab.online/v1/founder/card" \
  -H "Authorization: Bearer $AZIMO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"asset": "<asset>"}'

Edit Founder Script

POST/v1/founder/script

需要 API Key成功 200

Replace lines of a plan's script. The result must still pass the same checks; an edit cannot waive them.

参数

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

请求体 application/json

名称类型说明
plan_id必填string长度 ≤ 80
linesarray<object>最多 12 项

返回 200 application/json

名称类型说明
id必填string
project_id必填string可为 null
kind必填string
name必填string
version必填integer
created_at必填number
updated_at必填number
data必填object
data.status必填string可选值:planning ready needs_input unavailable
data.request必填object
data.assetsarray<object>
data.routingobject可为 null
data.requirementsarray<object>
data.reasonstring可为 null
data.job_idstringThe production this plan started; a plan starts at most one; 可为 null

示例

curl -X POST "https://axiomlab.online/v1/founder/script" \
  -H "Authorization: Bearer $AZIMO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"plan_id": "<plan_id>"}'

Import Founder Zip

POST/v1/founder/import

需要 API Key成功 200

Unpack a zip the customer uploaded. Photos become assets; fact lines stay drafts until the customer adds them.

Vision and the extraction call are internal cost, the same as card reading: not a second customer charge.

参数

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

请求体 application/json

名称类型说明
asset必填string长度 ≤ 80

返回 200 application/json

名称类型说明
photosarray<object>
photos[].asset必填string
photos[].rolestring
photos[].notestring
photos[].qualitystring
photos[].sourcestring
factsarray<object>
facts[].yearstring
facts[].textstring
facts[].sourcestring
facts[].excerptstring
skippedarray<string>

示例

curl -X POST "https://axiomlab.online/v1/founder/import" \
  -H "Authorization: Bearer $AZIMO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"asset": "<asset>"}'

Styles

GET/v1/styles

需要 API Key成功 200

The visual styles a film can be made in (options.style), named in the page's language. Needs no key or session (the signed-out create page shows them too); a key that is sent must be valid.

参数

名称类型说明
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>Empty while the styles cannot be listed; a film then gets the default style
data[].id必填stringThe value for options.style
data[].name必填string
data[].line必填stringWhat the style suits, in one line
data[].beta必填booleanA new style: no film made with it has been delivered yet
data[].default必填booleanThe style a film gets when options.style is not set
data[].cover必填stringA still of the style's sample film (GET /v1/styles/{id}/cover); 可为 null
data[].clip必填stringA 5-second silent loop of the style's sample film, starting and ending on the cover (GET /v1/styles/{id}/clip); 可为 null

示例

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

Style Cover

GET/v1/styles/{style_id}/cover

需要 API Key成功 200

A still of the style's sample film. Needs no key or session, like the list. The listed link changes with the image, so a browser may keep it for a day.

参数

名称类型说明
style_id必填pathstring
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 image/jpeg

返回文件内容。

示例

curl "https://axiomlab.online/v1/styles/<style_id>/cover" \
  -H "Authorization: Bearer $AZIMO_API_KEY"

Style Clip

GET/v1/styles/{style_id}/clip

需要 API Key成功 200

A 5-second silent loop of the style's sample film. Needs no key or session, like the list. Honours a single byte Range. The listed link changes with the clip, so a browser may keep it for a day.

参数

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

返回 200 video/mp4

返回文件内容。

其他状态码

  • 416 The range lies outside the clip (`Content-Range: bytes */<length>`)

示例

curl "https://axiomlab.online/v1/styles/<style_id>/clip" \
  -H "Authorization: Bearer $AZIMO_API_KEY"

← 全部接口