Skip to main content
NagaAI returns the audio and image fields only when the provider reports them. total_tokens can differ from input plus output.

How usage maps to cost

  • NagaAI charges uncached input at per_input_token and cached input at per_cached_input_token. In the OpenAI formats uncached input is input minus cached input; in Messages it is input_tokens as reported.
  • NagaAI charges output, including reasoning, at per_output_token.
  • cache_creation_input_tokens in Messages shows tokens written to the provider’s cache. Writing to the cache costs nothing extra.
  • The response has no cost field. See Billing for prices and Balance, metrics and logs for spend.
In a stream, usage arrives at the end: in the last chunk of Chat Completions when you set stream_options: {"include_usage": true}, in response.completed in Responses, and in message_delta in Messages.