LangChain Reference home page
Search...
⌘K
Ask AI
GitHub
Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
⌘I
LangChain Assistant
New
History
Ask a question to get started
Enter
to send
•
Shift+Enter
new line
Menu
Navigation
Projects
Anthropic
AWS
Cloudflare
DeepSeek
Google
Node
Google Common
Google GAuth
Google GenAI
Google Vertex AI
Google Vertex AI Web
Google WebAuth
Groq
Mistral AI
MongoDB
Ollama
OpenAI
OpenRouter
Overview
Chat Models
Redis
xAI
Language
Python
JavaScript
Theme
Light
Dark
JavaScript
@langchain/openrouter
OpenRouter
ChatGenerationTokenUsage
Interface
v0.4.3 (latest)
●
Since v0.1
ChatGenerationTokenUsage
Copy
interface
ChatGenerationTokenUsage
Properties
property
completion_tokens
:
number
property
completion_tokens_details
:
__
type
|
null
property
prompt_tokens
:
number
property
prompt_tokens_details
:
__
type
|
null
property
total_tokens
:
number
View source on GitHub
Version History