Azure OpenAI GPT-5.6 Usage Response Missing cache_write_tokens Field

EndUser59 10 Reputation points
2026-07-13T03:47:15.9766667+00:00

Azure’s GPT-5.6 series models are accessed through the https://my-resource.openai.azure.com domain. However, the usage object in the response does not include the cache_write_tokens field, which is inconsistent with the official OpenAI API.

  1. What is Azure’s plan for this going forward? Will Azure align with the official OpenAI API behavior, or will it remain different?
  2. Is Azure currently charging for GPT-5.6 cache writes?

Official OpenAI documentation: https://learn.microsoft.com/en-us/azure/foundry/openai/how-to/prompt-caching

Azure OpenAI in Foundry Models

3 answers

Sort by: Most helpful
  1. Alex James 0 Reputation points
    2026-07-24T14:20:35.38+00:00

    As far as I know, Azure OpenAI doesn't always expose every usage field that the public OpenAI API returns, so the absence of cache_write_tokens is expected today rather than a bug. If prompt caching is enabled, Azure may still apply caching internally, but the detailed accounting fields can differ from the official OpenAI API.

    I haven't seen any public commitment that Azure will add cache_write_tokens or fully align the response schema. If you need definitive information about billing for GPT-5.6 cache writes, it's probably best answered by the Azure OpenAI product team, since pricing and usage reporting are Azure-specific.

    Was this answer helpful?

    0 comments No comments

  2. Anshika Varshney 15,115 Reputation points Microsoft External Staff Moderator
    2026-07-15T20:25:44.88+00:00

    Hello @EndUser59

    Thank you for raising this question.

    Based on the information shared, the cache_write_tokens field is documented for GPT-5.6 models and is expected to appear in the usage response when prompt caching is being utilized.

    If you are not seeing cache_write_tokens in the response, it would be helpful to verify:

    • The exact GPT-5.6 model version being used.
    • The API version specified in your request.
    • Whether prompt caching is actually being triggered for the requests being tested.

    To investigate further, could you please share:

    • The API version used in your request (redacting any sensitive information).
    • A sample usage response showing the missing field.
    • The model name and deployment type.

    This information will help determine whether the behavior is related to API versioning, response formatting, or a potential product issue.

    Thankyou!

    Was this answer helpful?


  3. Kartikay Chauhan 0 Reputation points
    2026-07-13T04:28:06.7466667+00:00

    Per Microsoft's current documentation, this is answered directly: for GPT-5.6 and later model families, cache_write_tokens is a documented, supported field in the usage response — it reports the number of prompt tokens written to cache, and cache writes are billed at 1.25× the uncached input token rate. So to your two questions:

    1. Is Azure charging for GPT-5.6 cache writes? Yes — at 1.25× the standard input token rate, per the current pricing/caching docs.
    2. Will Azure align with OpenAI's API behavior? The field is meant to exist for GPT-5.6+, so if it's genuinely missing from your response, that's likely not an intentional platform difference — more likely an API version issue. Cache-write reporting was added at a specific api-version; if you're on an older pinned version, you'd miss the field even on a model that supports it. Worth double-checking the api-version query param against the latest one in the docs below.

    There's also an existing thread on this exact topic worth checking in case it's already been addressed by a Microsoft engineer: GPT-5.6 Implicit Prompt Caching and Explicit Prompt Cache API Support in Azure OpenAI.

    Reference: Prompt caching with Azure OpenAI in Microsoft Foundry Models

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.