Does token-usage accounting include tool/function definitions?
Last updated: July 31, 2026
Yes. Input token usage includes tool definitions. To see exactly what's sent to the model, use the Model API /chat/render endpoint, which returns the fully rendered prompt. It's handy for debugging token counts and prompt composition.
See our API reference for more details. https://friendli.ai/docs/openapi/model-apis/chat-render