下面的每个效果都会在playground模板浏览器中打开。特色特效优先。
Compose 将一个主题、脚本或产品创意转化为一个有计划、有声音、带字幕的短视频。下面的卡片来自playground和API使用的同一实时食谱目录。
Templates work on the generation endpoints by adding a single template field to the request body:
curl https://api.empiriolabs.ai/v1/videos/generations \
-H "Authorization: Bearer $EMPIRIOLABS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kling-o3",
"template": "<template-slug>",
"prompt": "Describe your subject."
}'Compose是一个完整的生产流程。列出食谱,规划分镜,然后制作最终视频:
curl https://api.empiriolabs.ai/v1/videos/compose \
-H "Authorization: Bearer $EMPIRIOLABS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"recipe": "custom",
"mode": "plan",
"brief": "Explain why cold plunge clips went viral.",
"aspect_ratio": "9:16",
"scene_count": 5
}'Compose目前从实时目录中公开了20种字幕样式和8个自定义视觉样式预设,因此playground输出和API输出保持一致。
精选的热门AI视频和图像特效食谱。每个模板都针对特定的外观或格式进行了调整,因此只需点击(或一个API字段)即可产生效果,无需提示工程。
Compose 配方是完整的生产流程。他们规划场景,创建或选择视觉素材,添加配音、字幕、可选音乐,并返回完成的短视频。
Yes. Pass "template": "<slug>" on POST /v1/videos/generations or POST /v1/images/generations along with your prompt, and the template is applied to the request.
Yes. Use GET /v1/videos/compose/recipes to list public recipe metadata, then call POST /v1/videos/compose with mode: "plan" or mode: "render".
每个模板都有其调校时推荐的型号,且许多模板支持多个型号。游乐场在你选择模板时会预先选择推荐的模型;在 API 上,你自己选择模型 ID。
打开 Playground 中的模板浏览器选择一个模板,然后生成。计费是你运行的模型的正常pay-as-you-go费率。