Skip to main content

Module economics

Module economics 

Source

Structs§

SessionEconomics
Tracks token usage and tool calls for a session.
ToolCost
Token cost of a single tool result within a turn.
ToolRecord
A record of a tool call.
TurnBudget
Per-turn breakdown of context consumed. Populated at turn end and surfaced in the SPECULAR panel.

Constants§

INPUT_PRICE_PER_1K
Input token price: $0.002 per 1K tokens.
OUTPUT_PRICE_PER_1K
Output token price: $0.006 per 1K tokens.