aliyun-emoji
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseCategory: provider
Category: provider
Model Studio Emoji
Model Studio Emoji
Validation
校验
bash
mkdir -p output/aliyun-emoji
python -m py_compile skills/ai/video/aliyun-emoji/scripts/prepare_emoji_request.py && echo "py_compile_ok" > output/aliyun-emoji/validate.txtPass criteria: command exits 0 and is generated.
output/aliyun-emoji/validate.txtbash
mkdir -p output/aliyun-emoji
python -m py_compile skills/ai/video/aliyun-emoji/scripts/prepare_emoji_request.py && echo "py_compile_ok" > output/aliyun-emoji/validate.txt通过标准:命令退出码为0,且生成文件。
output/aliyun-emoji/validate.txtOutput And Evidence
输出与凭证
- Save normalized request payloads, detected face boxes, selected template ID, and task polling snapshots under .
output/aliyun-emoji/ - Record the exact portrait URL and whether detection passed.
Use Emoji when the user wants a fixed-template facial animation clip rather than open-ended video generation.
- 将标准化请求负载、检测到的人脸框、选定的模板ID以及任务轮询快照保存到目录下。
output/aliyun-emoji/ - 记录准确的人像URL以及检测是否通过。
当用户需要固定模板的人脸动画片段而非开放式视频生成时,使用本Emoji能力。
Critical model names
关键模型名称
Use these exact model strings:
emoji-detect-v1emoji-v1
Selection guidance:
- Run first to obtain
emoji-detect-v1andface_bbox.ext_bbox_face - Use only after detection succeeds.
emoji-v1
请使用以下准确的模型字符串:
emoji-detect-v1emoji-v1
选型指南:
- 首先运行获取
emoji-detect-v1和face_bbox。ext_bbox_face - 仅在检测成功后再使用。
emoji-v1
Prerequisites
前置要求
- China mainland (Beijing) only.
- Set in your environment, or add
DASHSCOPE_API_KEYtodashscope_api_key.~/.alibabacloud/credentials - Input image must be a public HTTP/HTTPS URL.
- 仅支持中国大陆(北京)区域。
- 在环境变量中设置,或将
DASHSCOPE_API_KEY添加到dashscope_api_key文件中。~/.alibabacloud/credentials - 输入图片必须为公开的HTTP/HTTPS URL。
Normalized interface (video.emoji)
标准化接口(video.emoji)
Detect Request
检测请求
- (string, optional): default
modelemoji-detect-v1 - (string, required)
image_url
- (字符串,可选):默认值为
modelemoji-detect-v1 - (字符串,必填)
image_url
Generate Request
生成请求
- (string, optional): default
modelemoji-v1 - (string, required)
image_url - (array<int>, required)
face_bbox - (array<int>, required)
ext_bbox_face - (string, required)
template_id
- (字符串,可选):默认值为
modelemoji-v1 - (字符串,必填)
image_url - (整数数组,必填)
face_bbox - (整数数组,必填)
ext_bbox_face - (字符串,必填)
template_id
Response
响应
- (string)
task_id - (string)
task_status - (string, when finished)
video_url
- (字符串)
task_id - (字符串)
task_status - (字符串,任务完成时返回)
video_url
Quick start
快速开始
bash
python skills/ai/video/aliyun-emoji/scripts/prepare_emoji_request.py \
--image-url "https://example.com/portrait.png" \
--face-bbox 302,286,610,593 \
--ext-bbox-face 71,9,840,778 \
--template-id emoji_001bash
python skills/ai/video/aliyun-emoji/scripts/prepare_emoji_request.py \
--image-url "https://example.com/portrait.png" \
--face-bbox 302,286,610,593 \
--ext-bbox-face 71,9,840,778 \
--template-id emoji_001Operational guidance
操作指南
- Use a single-person, front-facing portrait with no face occlusion.
- Template IDs come from the official template list or console experience; do not invent them in production calls.
- Emoji output is a person video clip, not a sticker pack or text overlay asset.
- 请使用无面部遮挡的单人正面人像图片。
- 模板ID来自官方模板列表或控制台体验页,生产环境调用时请勿自行编造。
- Emoji输出为人物视频片段,而非贴纸包或文字叠加素材。
Output location
输出位置
- Default output:
output/aliyun-emoji/request.json - Override base dir with .
OUTPUT_DIR
- 默认输出路径:
output/aliyun-emoji/request.json - 可通过环境变量覆盖基础目录。
OUTPUT_DIR
References
参考资料
references/sources.md
references/sources.md