IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).

Python class

InputTokensDetails

InputTokensDetails

class max.pipelines.request.InputTokensDetails(*, cached_tokens=None, text_tokens=None, audio_tokens=None, image_tokens=None)

source

Bases: BaseModel

Detailed token count information for input.

Parameters:

  • cached_tokens (int | None)
  • text_tokens (int | None)
  • audio_tokens (int | None)
  • image_tokens (int | None)

audio_tokens

audio_tokens: int | None

source

cached_tokens

cached_tokens: int | None

source

image_tokens

image_tokens: int | None

source

model_config

model_config: ClassVar[ConfigDict] = {'frozen': True}

source

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

text_tokens

text_tokens: int | None

source