+ Sim is the open-source AI workspace where teams build, deploy, and manage AI agents. + This page compares {a.model.displayName} and {b.model.displayName} on API pricing per 1M + tokens, context window, max output, and capabilities. Both models are available in the + Sim Agent block, and each Agent block in a Sim agent can use a different model. +
++ API model comparison +
+{sentence}
+ ))} ++ API prices are per 1M tokens. Pricing last updated{' '} + + . +
++ Both models are available in the Sim Agent block. Pick either one from the model + picker, and each Agent block in the same agent can use a different model. +
+| + Metric + | + {[a, b].map(({ model }) => ( ++ + {model.displayName} + + | + ))} +|
|---|---|---|
| + {row.label} + | +{row.a} | +{row.b} | +
+ Sim is the open-source AI workspace where teams build, deploy, and manage AI agents. + This page ranks the context windows and max output tokens of{' '} + {CONTEXT_WINDOW_MODELS.length} models from {CONTEXT_WINDOW_PROVIDER_COUNT} providers, + including Claude, GPT, Gemini, and Grok, with API prices per 1M tokens. Every model + listed is available in the Sim Agent block. +
++ Context windows and max output tokens for {CONTEXT_WINDOW_MODELS.length} models from{' '} + {CONTEXT_WINDOW_PROVIDER_COUNT} providers, sorted from largest to smallest, with API + prices per 1M tokens. Every model listed is available in the Sim Agent block. Data last + updated{' '} + + . +
++ The biggest context window each provider offers in Sim, and the model that has it. +
++ Sorted by context window, largest first. Prices are standard API rates per 1M + tokens. +
+| + Model + | ++ Provider + | ++ Context + | ++ Max output + | ++ Input + | ++ Output + | +
|---|---|---|---|---|---|
| + + {model.displayName} + + {model.deprecated ? ( + + Legacy + + ) : null} + | ++ {model.providerName} + | ++ {formatTokenCount(model.contextWindow)} + | ++ {getMaxOutputLabel(model)} + | ++ {formatPrice(model.pricing.input)} + | ++ {formatPrice(model.pricing.output)} + | +
+ API pricing, context window, max output, and capabilities for two models side by + side. For every model at once, see the{' '} + + LLM context window comparison + + . +
+ ++ Select one or more models to compare their cost. +
+ ) : ( +| + Model + | ++ Per request + | ++ Per day + | ++ Per month + | +
|---|
+ Rates are list prices in USD per 1M tokens, and a month is {DAYS_PER_MONTH} days. Reasoning + tokens bill as output, so count them in output tokens. Prompt-cache writes and tool calls + are not included. +
++ {model.providerName} · Input {formatPrice(row.inputRate)} · Cached{' '} + {row.cachedInputRate === undefined ? 'N/A' : formatPrice(row.cachedInputRate)} · + Output {formatPrice(row.outputRate)} +
+ {notes.map((note) => ( ++ {note} +
+ ))} ++ Sim is the open-source AI workspace where teams build, deploy, and manage AI agents. The + free Sim LLM API pricing calculator estimates cost per request, per day, and per month + for {TOOL_MODELS.length} OpenAI, Anthropic Claude, Google Gemini, and other models, + using the same rates and long-context tier rules Sim uses to cost model calls in its + execution logs. +
++ Free tool +
++ Estimate what an LLM API call costs across OpenAI, Anthropic Claude, Google Gemini, and{' '} + {TOOL_MODELS.length} current models. Enter tokens per request, the share of input served + from the prompt cache, and requests per day; Sim prices each model with the same rates + and long-context tier rules it uses to cost model calls in its execution logs. +
++ Prices last updated{' '} + +
++ LLM API cost is tokens times rate: input tokens at the input rate, cached input at + the cached rate, and output tokens at the output rate, all quoted per one million + tokens. Three things move the total. +
+{driver.body}
++ {COUNT_FORMAT.format(text.length)} characters. Text stays in your browser and is never + sent to Sim. +
++ Select one or more models to count tokens. +
+ ) : ( +| + Model + | ++ Tokens + | ++ Input cost + | +
|---|---|---|
|
+
+ {model.displayName}
+
+ + {model.providerName} · Input {formatPrice(model.pricing.input)}/1M + + |
+
+
+ |
+ + {formatUsd(inputCost)} + | +
+ Exact counts use OpenAI's tiktoken encodings. Other providers do not publish a browser + tokenizer, so their counts are character-based estimates. Input cost uses list prices and + excludes the tokens a provider adds for message formatting. +
++ Sim is the open-source AI workspace where teams build, deploy, and manage AI agents. The + free Sim token counter counts the tokens and characters in pasted text for OpenAI, + Anthropic Claude, Google Gemini, and other models, exactly for OpenAI and as an estimate + for the rest, and shows each model's input cost. Text never leaves the browser. +
++ Free tool +
++ Paste a prompt or document to count its tokens and characters and see what it costs as + input to OpenAI, Anthropic Claude, Google Gemini, and other models. Counts are exact for + OpenAI models and estimated for the rest, and your text never leaves the browser. +
++ A tokenizer splits text into the tokens a model reads, and each provider uses its + own vocabulary, so the same text yields different counts on different models. +
+{fact.body}
+