Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/pricing / / ModelPrice

Interface: ModelPrice

Defined in: pricing/src/types.ts:17

Per-model pricing entry. All amounts are in USD per token unless the snapshot declares an alternative currency. Reasoning tokens (when supported) follow the same pricing as completion tokens unless the entry declares an explicit reasoningUsdPerToken.

Stable

Properties

PropertyModifierTypeDescriptionDefined in
cachedReadUsdPerToken?readonlynumberOptional cached-read price (Anthropic / OpenAI prompt caching).pricing/src/types.ts:27
inputUsdPerTokenreadonlynumberPrice per input token, in USD.pricing/src/types.ts:23
modelreadonlystringLower-case model id, e.g. 'claude-3-5-sonnet-20241022'.pricing/src/types.ts:21
notes?readonlystringFree-form notes for tooling / docs.pricing/src/types.ts:33
outputUsdPerTokenreadonlynumberPrice per output token, in USD.pricing/src/types.ts:25
providerreadonlystringLower-case provider id (e.g. 'anthropic', 'openai', 'ollama').pricing/src/types.ts:19
reasoningUsdPerToken?readonlynumberOptional reasoning-token price (OpenAI o1 / Gemini 2 thinking).pricing/src/types.ts:29
region?readonlystringOptional region label (e.g. 'us-east-1').pricing/src/types.ts:31