contextSize
The maximum context size in tokens that the model supports.
Declaration
@backDeployed(before: iOS 26.4, macOS 26.4, visionOS 26.4)
final var contextSize: Int { get }Mentioned in
Return Value
The context size, in tokens.
Discussion
The context size represents the total number of tokens that can be used in a single session, including both input prompts and generated responses.