ai_token_arbitrage
Calculate multi-model LLM API token inference costs, prompt caching economics (up to 90% discount), batch discounts, and cost disparity across Claude 3.5 Sonnet, GPT-4o, DeepSeek V3/R1, and Gemini 1.5 Pro/Flash.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| isBatch | No | Whether asynchronous batch API 50% discount applies | |
| promptTokens | No | Input prompt token count per API request | |
| cacheHitRatio | No | Prompt cache hit ratio (0.0 to 1.0 or 0 to 100%) | |
| completionTokens | No | Output completion token count per API request |