$npx -y skills add cinience/alicloud-skills --skill aliyun-emojiUse when generating template-driven emoji videos with Alibaba Cloud Model Studio Emoji (emoji-v1) from a detected portrait image. Use when producing fixed-style meme or emoji motion clips from a single face image and a selected template ID.
| 1 | Category: provider |
| 2 | |
| 3 | # Model Studio Emoji |
| 4 | |
| 5 | ## Validation |
| 6 | |
| 7 | ```bash |
| 8 | mkdir -p output/aliyun-emoji |
| 9 | python -m py_compile skills/ai/video/aliyun-emoji/scripts/prepare_emoji_request.py && echo "py_compile_ok" > output/aliyun-emoji/validate.txt |
| 10 | ``` |
| 11 | |
| 12 | Pass criteria: command exits 0 and `output/aliyun-emoji/validate.txt` is generated. |
| 13 | |
| 14 | ## Output And Evidence |
| 15 | |
| 16 | - Save normalized request payloads, detected face boxes, selected template ID, and task polling snapshots under `output/aliyun-emoji/`. |
| 17 | - Record the exact portrait URL and whether detection passed. |
| 18 | |
| 19 | Use Emoji when the user wants a fixed-template facial animation clip rather than open-ended video generation. |
| 20 | |
| 21 | ## Critical model names |
| 22 | |
| 23 | Use these exact model strings: |
| 24 | - `emoji-detect-v1` |
| 25 | - `emoji-v1` |
| 26 | |
| 27 | Selection guidance: |
| 28 | - Run `emoji-detect-v1` first to obtain `face_bbox` and `ext_bbox_face`. |
| 29 | - Use `emoji-v1` only after detection succeeds. |
| 30 | |
| 31 | ## Prerequisites |
| 32 | |
| 33 | - China mainland (Beijing) only. |
| 34 | - Set `DASHSCOPE_API_KEY` in your environment, or add `dashscope_api_key` to `~/.alibabacloud/credentials`. |
| 35 | - Input image must be a public HTTP/HTTPS URL. |
| 36 | |
| 37 | ## Normalized interface (video.emoji) |
| 38 | |
| 39 | ### Detect Request |
| 40 | - `model` (string, optional): default `emoji-detect-v1` |
| 41 | - `image_url` (string, required) |
| 42 | |
| 43 | ### Generate Request |
| 44 | - `model` (string, optional): default `emoji-v1` |
| 45 | - `image_url` (string, required) |
| 46 | - `face_bbox` (array<int>, required) |
| 47 | - `ext_bbox_face` (array<int>, required) |
| 48 | - `template_id` (string, required) |
| 49 | |
| 50 | ### Response |
| 51 | - `task_id` (string) |
| 52 | - `task_status` (string) |
| 53 | - `video_url` (string, when finished) |
| 54 | |
| 55 | ## Quick start |
| 56 | |
| 57 | ```bash |
| 58 | python skills/ai/video/aliyun-emoji/scripts/prepare_emoji_request.py \ |
| 59 | --image-url "https://example.com/portrait.png" \ |
| 60 | --face-bbox 302,286,610,593 \ |
| 61 | --ext-bbox-face 71,9,840,778 \ |
| 62 | --template-id emoji_001 |
| 63 | ``` |
| 64 | |
| 65 | ## Operational guidance |
| 66 | |
| 67 | - Use a single-person, front-facing portrait with no face occlusion. |
| 68 | - Template IDs come from the official template list or console experience; do not invent them in production calls. |
| 69 | - Emoji output is a person video clip, not a sticker pack or text overlay asset. |
| 70 | |
| 71 | ## Output location |
| 72 | |
| 73 | - Default output: `output/aliyun-emoji/request.json` |
| 74 | - Override base dir with `OUTPUT_DIR`. |
| 75 | |
| 76 | ## References |
| 77 | |
| 78 | - `references/sources.md` |