Use case · Updated November 2026

Cheap AI for chatbots — because history gets resent every turn

A chatbot's cost isn't the answer; it's the conversation you resend with every message. GLM-5.3-Flash and Qwen2.5-7B-Instruct are built for exactly this shape of traffic — fast first token, low per-turn cost.

Model choice for chat

Chat styleModelWhy
General assistant, long answersGLM-5.3-FlashNatural tone, fast first token, low per-turn cost
Short transactional repliesQwen2.5-7B-Instruct$0.10 / $0.30 per 1M — the cheap floor
Support bot with long policy docsDeepSeek-V4-Flash1M context, documents cached across turns

The three levers on chatbot cost

  1. Window size. Send the last N turns plus a summary, not the whole history.
  2. max_tokens. Cap replies at what the UI can actually display.
  3. Cache-friendly prompts. Keep the system prompt identical at the front — repeated prefix input is what cache pricing rewards.

Wire it up

curl https://api.novatoken.dev/v1/chat/completions \
  -H "Authorization: Bearer sk-your-key" \
  -H "Content-Type: application/json" \
  -d '{"model":"zai-org/GLM-5.3-Flash","stream":true,
       "messages":[{"role":"system","content":"You are a concise support agent."},
                   {"role":"user","content":"Where is my order?"}]}'

OpenAI SDK, LangChain, LlamaIndex, Vercel AI SDK — anything with a base-URL switch works unchanged.

FAQ

Which model should a chatbot use?

GLM-5.3-Flash for conversational quality at low cost; Qwen2.5-7B-Instruct when volume dominates and answers are short. Keep Kimi out of the chat path — it's the premium coding tier.

How do I keep history from exploding cost?

Trim or summarise old turns, cap max_tokens, and cache the system prompt upstream. Short windows with a good system prompt usually beat long histories.

Can I stream responses?

Yes — SSE streaming works, which matters for perceived latency in chat UIs.

Put a chatbot on $5

One key for DeepSeek, Kimi, Qwen and GLM. Card payment, USD, $5 to start.

Buy $5 of usage