Calculate cost for a model call
Calculate cost for a model call
Given a model ID, gateway, provider, and token usage, returns an itemized cost breakdown in USD.
POST
Calculate cost for a model call
Documentation Index
Fetch the complete documentation index at: https://narev.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
Body
application/json
Example:
"gpt-4o"
Available options:
anthropic, bedrock, cerebras, chutes, cohere, deepinfra, deepseek, fireworks, github-models, google_ai_studio, groq, minimax, mistral, moonshot, nebius, novita, nvidia, openai, sambanova, siliconflow, stepfun, together, xai, zai Example:
"openai"
Available options:
AI21, AionLabs, Akash, AkashML, Alibaba, Amazon Bedrock, Ambient, Anthropic, Arcee AI, AtlasCloud, Azure, BaseTen, Cerebras, Chutes, Cirrascale, Clarifai, Cloudflare, Cohere, Crusoe, DeepInfra, DeepSeek, Featherless, Fireworks, Friendli, GMICloud, Google, Google AI Studio, Groq, Hyperbolic, Inception, Inceptron, Infermatic, Inflection, Io Net, Ionstream, Liquid, Mancer 2, Mara, Minimax, Mistral, ModelRun, Moonshot AI, Morph, Nebius, NextBit, Novita, Nvidia, OpenAI, OpenInference, Parasail, Perplexity, Phala, Reka, Relace, SambaNova, Seed, SiliconFlow, StepFun, StreamLake, Switchpoint, Together, Upstage, Venice, WandB, Xiaomi, Z.AI, github-models, xAI Example:
"OpenAI"
Example:
false
Response
Cost breakdown when pricing was found.
Available options:
anthropic, bedrock, cerebras, chutes, cohere, deepinfra, deepseek, fireworks, github-models, google_ai_studio, groq, minimax, mistral, moonshot, nebius, novita, nvidia, openai, sambanova, siliconflow, stepfun, together, xai, zai Available options:
AI21, AionLabs, Akash, AkashML, Alibaba, Amazon Bedrock, Ambient, Anthropic, Arcee AI, AtlasCloud, Azure, BaseTen, Cerebras, Chutes, Cirrascale, Clarifai, Cloudflare, Cohere, Crusoe, DeepInfra, DeepSeek, Featherless, Fireworks, Friendli, GMICloud, Google, Google AI Studio, Groq, Hyperbolic, Inception, Inceptron, Infermatic, Inflection, Io Net, Ionstream, Liquid, Mancer 2, Mara, Minimax, Mistral, ModelRun, Moonshot AI, Morph, Nebius, NextBit, Novita, Nvidia, OpenAI, OpenInference, Parasail, Perplexity, Phala, Reka, Relace, SambaNova, Seed, SiliconFlow, StepFun, StreamLake, Switchpoint, Together, Upstage, Venice, WandB, Xiaomi, Z.AI, github-models, xAI