In general, the costs associated with large language models (LLMs) depend on the input and output tokens, rather than the processing of the request.
You can only work on output tokens; for input, you should count the words and ask the user to write less. However, is that really a good practice?
The first step is to instruct the AI to provide concise responses by working on the prompt, defining guardrails, utilizing a knowledge base (KB), and using Botpress Agents.
For more information, visit the [Personality Agent documentation](
https://botpress.com/docs/learn/reference/agents/personality-agent) and the [Policy Agent documentation](
https://botpress.com/docs/learn/reference/agents/policy-agent).