Calculate cost for a model call
Calculate cost for trace
Given a model ID, provider, and token usage, returns an itemized cost breakdown in USD.
POST
Calculate cost for a model call
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"