<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "FoundationModels",
  "identifier" : "/documentation/FoundationModels/LanguageModelSession/Usage-swift.struct/Output-swift.struct/reasoningTokenCount",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Foundation Models"
    ],
    "preciseIdentifier" : "s:16FoundationModels20LanguageModelSessionC5UsageV6OutputV19reasoningTokenCountSivp"
  },
  "title" : "reasoningTokenCount"
}
-->

# reasoningTokenCount

The number of output tokens that were part of the model’s
reasoning output.

```
var reasoningTokenCount: Int
```

## Discussion

This value is always less than or equal to [`totalTokenCount`](/documentation/FoundationModels/LanguageModelSession/Usage-swift.struct/Output-swift.struct/totalTokenCount).
A non-zero value requires the model to declare the
[`reasoning`](/documentation/FoundationModels/LanguageModelCapabilities/Capability/reasoning) capability.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)