Overview
Kotonia is a service for talking with characters by voice. Talking to a character whose face you can see is the clearest difference from the big general-purpose chat apps, so the avatar has had attention for a while.
Until now the avatar was Ditto: give it one photo or picture, and it generates a video of the mouth and head moving with the audio, frame by frame, on a GPU. This time we added a method that splits the character picture into parts and moves them in the browser. The reasons come before looks: how the GPU is used, and the time when the character is not speaking.
This is written in the order of the decisions, for people who want to do something similar. The mechanics and the failures are in a separate technical article.
1. Ditto is only alive while it speaks
Ditto's cost is proportional to speaking time.
- One frame takes about 20 ms of GPU (measured in August 2026 on an RTX PRO 6000 Blackwell). At 25 fps, one second of speech uses about 0.5 seconds of GPU
- There is one instance, so it renders for one person at a time. A second person waits until the first one's line ends
- Each frame goes to the browser as a JPEG
- Exporting video with Ditto in the studio makes real-time conversations wait, so exports are limited to paid plans and 30 seconds of audio
Because of that cost, the avatar was a still picture whenever it was not speaking (there were other reasons too: a looping video moves more while silent than while talking, and freezes one emotion).
But split a conversation by time, and the character speaks for a small share of it.
- While the user talks (listening)
- While the reply is being thought up (a few seconds for the local LLM)
- While the user reads the reply and thinks
All that time, the character was one still picture. When we talk to someone, we look at their face most while we talk and while we wait for their answer, and that was exactly the dead time.
2. Parts: GPU only when it is made
With the character split into parts (face, eyes, mouth, hair, clothes…), moving them is just Canvas math in the browser.
| Ditto | Parts | |
|---|---|---|
| GPU used | the whole time it speaks (~0.5 s per second) | once, when it is made (~8–12 min) |
| External API | none | an image API when made (~$0.16 per avatar) |
| Cost per conversation | proportional to speech | 0 (0.5–0.9 MB of parts loaded once) |
| Concurrent users | 1 (one GPU instance) | as many as there are devices |
| While listening / thinking | still picture | moves (blinks, breathing, nods, a thinking face) |
| Realistic pictures | strong | weak (splitting breaks more easily) |
| Head motion | learned, natural | smaller (parts are only shifted) |
The biggest change is that cost moved from "how much it is used" to "how many are made". With Ditto, more users mean longer GPU queues; with parts, more users add nothing on the conversation side. That leaves room to keep the character moving while it is not speaking.
Motion is split into two layers.
- A fast layer: nods while listening, a thinking face, blinks and gaze, decided on the device alone
- A heavy layer: expressions (smile, shy, surprised…) and gestures, chosen line by line by the conversation's LLM and switched when that line starts playing
The conversation stays turn-based, yet "listening" and "thinking" become visible. That is far cheaper than bringing in a full-duplex conversation model.
Ditto stays. Photos and realistic pictures suit Ditto better, and each character uses one or the other.
3. Pricing: 200 yen per avatar, nothing if it breaks, PSD import free
200 yen
The cost per avatar is about 24 yen of image API plus about 10 minutes of GPU. The price lets someone on the cheapest chat plan (500 yen) try one within their points. People make one avatar for their own character rather than many, which suits a one-time payment.
Nothing if it breaks
Some pictures split badly. The first avatar made (I tried it with an official character) had a grey slab on the shoulder, and it was charged 200 yen all the same.
Now the still avatar is compared with the original automatically when it is done, and a broken one counts as a failure and costs no points. "No refunds because it looks different from what you expected" in the terms is one thing; "our processing broke it" is another. Charging users for the latter loses their trust on the very first avatar. The mechanics are in the technical article.
PSD import free
People who have a PSD split into layers for Live2D often never got as far as rigging it. For them the splitting step (GPU and image API) is unnecessary, so the cost is close to zero. We made it free, as a door for creators. Layer names differ by artist, so a local LLM assigns layers from their names and positions (all 30 layers were assigned correctly even with romanized and abbreviated names).
No Live2D models
Rendering a user's Live2D model with the Cubism SDK makes the service an "expandable application" under Live2D's terms, and the small-business exemption no longer applies. A PSD does not go through the SDK. If you are doing something similar, check this first.
4. Narrowing the scope: clear pictures only
Across 10 varied pictures, a single character facing forward almost always worked; several people, side views and mostly hidden faces tended to break. Making every tricky composition work is off the table for now.
Instead, the conditions for a picture that works are written plainly, both on the creation screen and on the feature page: "one character facing forward, upper body to full body". Since a broken result costs nothing, the only loss for someone trying is the wait.
5. Rollout
- A feature page (
/use/moving-avatar/), with the original picture next to a recording of a conversation at the top. Something that moves is better shown as video than as a mock-up - The screen at the chat limit: free users who hit the limit can watch a 20-second feature introduction and keep chatting. The introductions rotate through 12 slots, the same as the number of watches per day, and adding a slot would add free conversation. So instead of adding one, we replaced the weakest (an introduction to voice and expression settings: 22 views since November 20, zero clicks). The video has no text, so one file serves every language
- X: the same video with a headline per language
Clicks are counted per introduction. So far there have been 287 views and 7 clicks in total, so it will take a few weeks to see whether it works.
6. Why it took 13 hours
From the first line of code to opening it to users took 13 hours; including the fixes and the quality gate afterwards, one day. It was fast because three things already existed.
- Replies came back as a JSON intermediate representation, so expressions and gestures were two more fields
- The image model (HiDream) and the splitting (See-through) ran on our own GPUs
- The first thing we built was a way to render the same video from fixed input and a blind comparison page
What was slow was judgment. When other people's pictures broke, the AI doing the work (Claude) kept adding post-processing that deleted stray islands; it was I who said the real issue was separating the person from the background. The quality gate came from the AI when I asked for a candid retrospective, out of a hole in its own checking (nobody had noticed the missing arms). The more of the hands-on work is delegated, the more work remains on the side that asks what to measure and where to stop.
Summary
- If an avatar's cost is proportional to speaking time, it gets frozen while not speaking, and the time people look at it most is dead
- Splitting the picture into parts and moving them in the browser needs the GPU only once, and the avatar can move while listening
- A one-time price near cost, no charge if it breaks, and free PSD import make the entry point
- State plainly which pictures work, and replace an ad slot rather than adding one
