LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • Client
  • AsyncClient
  • Run Helpers
  • Run Trees
  • Evaluation
  • Schemas
  • Utilities
  • Wrappers
  • Anonymizer
  • Testing
  • Expect API
  • Middleware
  • Pytest Plugin
  • Deployment SDK
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

OverviewClientAsyncClientRun HelpersRun TreesEvaluationSchemasUtilitiesWrappersAnonymizerTestingExpect APIMiddlewarePytest PluginDeployment SDK
Language
Theme
PythonlangsmithschemasOutputCostDetails
Class●Since v0.3

OutputCostDetails

Copy
OutputCostDetails()

Bases

TypedDict

Constructors

Attributes

View source on GitHub
constructor
__init__
NameType
audiofloat
reasoningfloat
attribute
audio: float

Cost of audio output tokens.

attribute
reasoning: float

Cost of reasoning output tokens.

Tokens generated by the model in a chain of thought process (i.e. by OpenAI's o1 models) that are not returned as part of model output.

Breakdown of output token costs.

Does not need to sum to full output cost. Does not need to have all keys.