In April 2025, OpenRouter added a way for applications to receive usage accounting alongside a streamed model response. Its announcement describes opting in through the request’s usage settings, then receiving input and output TokenA piece of text, such as a word, part of a word or a punctuation mark, that a language model represents as numbers and handles as a unit.Full definition → counts, reasoning and cache details, and cost without making another APIApplication programming interface: the agreed set of operations, inputs and outputs through which one piece of software uses another.Full definition → call. This puts the answer and its accounting in the same response flow, making it easier for an ApplicationSoftware arranged so that a person can use it; in this course, the software around a model that accepts your request, prepares the context and shows the reply.Full definition → to associate each completed request with the resources it consumed.
Terms in this piece · Glossary
Token — A piece of text, such as a word, part of a word or a punctuation mark, that a language model represents as numbers and handles as a unit.
API — Application programming interface: the agreed set of operations, inputs and outputs through which one piece of software uses another.
Application — Software arranged so that a person can use it; in this course, the software around a model that accepts your request, prepares the context and shows the reply.
Prompt — Information or instructions supplied to a model; in a chat, the request you type is often called your prompt.