How to plan your API budget: tokens, video and voice with no surprises
The API bill rarely grows smoothly: it jumps whenever a new feature with expensive calls appears. Below is a way to count spending before launch rather than after it, with clear benchmarks for three typical scenarios.
Three units of measurement
An AI API has three different billing models, and mixing them up is the main cause of unexpected bills.
- Tokens — text. Price per million input tokens; output is counted with a coefficient.
- Call — images, video, voice. A fixed price per one result (image, clip, character batch).
- Package — balance top-up. A package is not tied to a model type: it simply adds to the shared account.
A practical conversion rule: one token ≈ 2–3 characters of text (about 4 for Latin). A dense A4 page is roughly 1,500–2,000 tokens. One five-second clip costs about as much as 150–200 thousand input text tokens.
Formula for text
Request cost = (input tokens / 1,000,000 × input price) + (output tokens / 1,000,000 × input price × output coefficient).
Example: 1,600 input + 300 output tokens on DeepSeek Flash ($0.48 per 1M, coefficient ×3):
1,600 / 1e6 × 0.48 = $0.000768
300 / 1e6 × 0.48 × 3 = $0.000432
Total: $0.0012 per request → $1.20 per 1,000 requestsA simple benchmark follows: a thousand chats on a budget model ≈ $1, on a mid-tier ≈ $2, on a heavy model ≈ $6.
Scenario 1. Support chatbot
Conditions: 30,000 chats per month, an average of 4 messages per chat, 1,600 input and 250 output tokens per message.
Two levers then help: shorten the chat history (usually it is the main cost — about 60% of input) and add a router so the expensive model kicks in only for complex requests. Together these cut spending by 2–2.5× with no noticeable quality loss.
Scenario 2. Content factory
Conditions: 30 posts per month, each with 1 text + 1 image + one 5-second clip.
Video consumes 95% of the budget. If drafts are made on Lite and the final on Kling (for example 5 drafts and 1 final per post), a month comes to about $30 instead of $18–60 “all top-tier”.
Scenario 3. Course voice-over
Conditions: 5 hours of audio, average speaking pace around 900 characters per minute with pauses.
5 hours × 60 minutes × 900 characters ≈ 270,000 characters
MiniMax Speech 2.8: 270,000 / 50,000 × $3.05 ≈ $16.5Plus a buffer for re-recorded phrases (usually 15–20%) — about $19.5 total. For comparison, a studio five-hour session with a narrator and editing costs an order of magnitude more.
How to choose a top-up package
Rule: start with the smallest top-up to measure real usage on actual requests, then match a forecast once spending is stable and predictable.
Five ways to cut spending
- Cap max_tokens. The default 4,000 tokens per reply is a potential bill; 300–600 is usually enough for chat.
- Trim history. Keep the last 5–6 turns instead of the whole thread; old messages go into a summary, not the prompt.
- Route by complexity. A cheap model handles 70–80% of requests; the expensive one takes only the rest.
- Draft on a cheap model. For video and images: many variants on Lite/Mini, the final on the top-tier model.
- Cache repeated answers. FAQs, template replies and product descriptions that do not change should not be generated again.
What to do with the forecast
Count not an “average check”, but three numbers: requests per day, average input size, and the share of expensive calls. The first two give the text budget; the third gives the media budget. If the share of video or avatars is above 10% of requests, the budget is set by them, and that is where to optimize — not the text.
Common questions
Take 100 real requests, run them on the chosen model, and multiply the average cost by the planned monthly request count. Accuracy ±15%.
Yes. The package tops up the shared balance, and deductions follow each model’s rate: text per token, video and voice per call.
Two five-second clips: 2 × $0.60 = $1.20, against $1.20 for one ten-second clip — same price, but two edit variants and two different openings.
Create a key in a minute; Base URL https://kiree.net/v1, pay only for actual usage, no subscription.