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:
aionlabs, anthropic, arcee, baseten, bedrock, cerebras, charm, chutes, cloudflare, cohere, deepinfra, deepseek, fireworks, github-models, gmi, google_ai_studio, groq, inception, interfaze, minimax, mistral, moonshot, nebius, novita, nvidia, openai, sambanova, siliconflow, stepfun, together, venice, xai, xiaomi, zai, 302ai, abacus, abliteration-ai, aihubmix, alibaba, alibaba-cn, alibaba-coding-plan, alibaba-coding-plan-cn, alibaba-token-plan, alibaba-token-plan-cn, ambient, anyapi, atomic-chat, auriko, azure, azure-cognitive-services, bailing, berget, clarifai, claudinio, cloudferro-sherlock, cloudflare-ai-gateway, cloudflare-workers-ai, cortecs, crof, databricks, digitalocean, dinference, drun, evroc, fastrouter, freemodel, friendli, frogbot, github-copilot, gitlab, gmicloud, google-vertex, google-vertex-anthropic, helicone, hpc-ai, huggingface, iflowcn, inceptron, inference, io-net, jiekou, kenari, kimi-for-coding, kuae-cloud-coding-plan, lilac, llama, llmgateway, llmtr, lmstudio, longcat, lucidquery, meganova, merge-gateway, minimax-cn, minimax-cn-coding-plan, minimax-coding-plan, mixlayer, moark, modelscope, moonshotai-cn, morph, nano-gpt, nearai, neon, neuralwatt, nova, ollama-cloud, opencode, opencode-go, orcarouter, ovhcloud, perplexity, perplexity-agent, poe, poolside, privatemode-ai, qihang-ai, qiniu-ai, regolo-ai, requesty, routing-run, sakana, sap-ai-core, sarvam, scaleway, siliconflow-cn, snowflake-cortex, stackit, stepfun-ai, subconscious, submodel, synthetic, tencent-coding-plan, tencent-token-plan, tencent-tokenhub, the-grid-ai, tinfoil, trustedrouter, umans-ai, umans-ai-coding-plan, upstage, v0, vercel, vivgrid, vultr, wafer.ai, wandb, xiaomi-token-plan-ams, xiaomi-token-plan-cn, xiaomi-token-plan-sgp, xpersona, zai-coding-plan, zeldoc, zenmux, zhipuai, zhipuai-coding-plan Example:
"openai"