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_tokenand cached input atper_cached_input_token. In the OpenAI formats uncached input is input minus cached input; in Messages it isinput_tokensas reported. - NagaAI charges output, including reasoning, at
per_output_token. cache_creation_input_tokensin 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.
stream_options: {"include_usage": true}, in response.completed in Responses, and in message_delta in Messages.