Write good requests
Masko knows a mascot's look from its reference pictures. A mascot made from a description has none until a picture is kept as its reference; until then each pose is drawn from the description alone and can differ. A pose, animation or background request says what happens, never how the mascot looks.
These are the rules the MCP server gives apps in its instructions. The REST API, the masko command and the SDK take the same words in these fields:
| Request | REST API, masko studio and SDK | MCP tool and fields |
|---|---|---|
| Pose | image_prompt with type: "image" | generate_mascot_image: pose |
| Animation | animation_prompt and loop with type: "animation" | animate_mascot: motion and loop |
| Background | purpose, place and description with type: "background" | make_background: the same fields |
| Voice | description on POST /v1/mascots/{id}/voice/samples | sample_mascot_voices: description |
| Talking | speech.text, speech.direction and speech.script with type: "animation" | make_talking_animation: text, direction and script |
Generate refuses a prompt field with 400, before any charge: prompt only describes a new mascot on POST /v1/mascots.
Pose
image_prompt is one moment. Say what the body does (posture, each arm, where the head turns and the eyes look), how it feels as the face shows it, and what it holds or wears, only if something. Keep the user's intent and energy and add nothing they did not ask for. Leave out colours, materials, art style, the background (it is removed) and framing. Name it in 1 to 3 words.
- Good: "leans forward on tiptoe, both arms up in a cheer, eyes squeezed shut, huge open smile".
- Weak: "a cute red fox in a forest, 3D style, happy".
{
"type": "image",
"name": "Cheering",
"image_prompt": "leans forward on tiptoe, both arms up in a cheer, eyes squeezed shut, huge open smile"
}Animation
animation_prompt animates a finished pose (item_id): one action, continued or repeated, written as precise time ranges, to the hundredth of a second, that cover the clip's real length, with what happens in each moment, how big, how fast and the mood. Timing matters: it is the plan the user approves, and Masko keeps it, only fine-tuning the timing from the pose. Show the ranges before generating; when the user already said to go ahead, show them and generate in the same reply. Standard renders a little more than the seconds asked, 2 s as 2.33 s, 3 s as 3.04 s, 5 s as 5.17 s, 6 s as 6.58 s, 8 s as 8.00 s and 10 s as 10.13 s, so the last range ends there. In a loop the last range keeps the action going into the next cycle: it never lowers, returns or settles, because Masko joins the end to the start; for an action that ends somewhere else, such as falling asleep, send "loop": false. The animation joins the pose's item and takes its name; with POST /v1/animations, name it in 1 to 3 words.
- Good, for a 5-second Standard loop: "0.00-0.80s: crouches low, wriggling with excitement. 0.80-1.70s: springs up, both arms thrown high. 1.70-2.60s: lands softly and sways side to side. 2.60-3.80s: jumps again, a little higher. 3.80-5.17s: lands and crouches into the next spring."
- Weak: "0-2s: starts. 2-5s: returns to the start pose" (vague, and a loop never returns).
{
"type": "animation",
"item_id": "ITEM_ID",
"animation_prompt": "0.00-0.80s: crouches low, wriggling with excitement. 0.80-1.70s: springs up, both arms thrown high. 1.70-2.60s: lands softly and sways side to side. 2.60-3.80s: jumps again, a little higher. 3.80-5.17s: lands and crouches into the next spring.",
"animation_model": "standard"
}Background
purpose says what it is for (splash, paywall, a quiz result page) and, if the user has one in mind, description gives the place in a few words. place is its shape (phone_screen, phone_header, square, web_hero or banner) and comes from the purpose when left out. A background is an empty place in the mascot's style; never ask for the mascot, text or buttons in it. See backgrounds.
Voice
The voice description gives gender (or gender-neutral), pitch, pace, energy, texture, mood and accent in one or two sentences, such as "gender-neutral, light, bright and slightly raspy, quick and warm, with a playful American accent". Never a child's age: say light, bright or small instead.
Free voice ideas can be rewritten in a direction such as "Older" with POST /v1/mascots/{id}/voice/adjust before paying, and come with sample_line, a line in the mascot's words: send it as sample_line with the samples. See talking animations.
Talking
Send the words to say as speech.text. Pass the user's words exactly; when you write them, keep to one to three short sentences (3 to 10 seconds). Masko adds movements without changing a word, and speech.direction, such as "proud, points at the button at the end", steers them.
Write speech.script only when the user dictates movements: [2 to 6 words for what its own body does where it stands, optional feeling after a comma] before the words, such as [waves, excited] Hi, I'm Pika!. No props, no walking, nothing toward or away from the viewer.
Over REST, send "dry_run": true first for the script and the price, free. Over MCP, the talking tool's credit ceiling does the same: above it nothing is charged, and the price comes back with the script Masko would use when the words were sent as text.
{
"type": "animation",
"item_id": "ITEM_ID",
"speech": {
"text": "Your first mascot is ready. Tap the button to meet it.",
"direction": "proud, points at the button at the end"
},
"dry_run": true
}Free ideas
Ideas are written for one mascot from its pictures and personality, and cost no credits:
GET /v1/mascots/{id}/suggestions: poses, each with aname, aposeto send asimage_promptand a matchinganimationto send asanimation_prompt.GET /v1/mascots/{id}/backgrounds/suggestions?purpose=paywall: five places, each with adescriptionto send back.GET /v1/mascots/{id}/voice/suggestions: voice descriptions and asample_line.
They count toward a daily limit of 300 free ideas per account. The MCP's suggest_ideas gives all of them. From a terminal:
masko studio GET mascots/MASCOT_ID/suggestions