💬 Forespørgselsomkostningsberegner

Paste your prompt below, choose an AI model, and instantly see how many tokens your prompt uses and what it costs to send. Pricing data is loaded live from OpenRouter. All processing runs in your browser — no text is stored or shared.

0 tegn 0 ord ~0 tokens (estimeret)
Indlæser modeller fra OpenRouter…
ℹ️ For reference only. Token counts are estimates based on the 4-characters-per-token approximation for English text. Actual tokens billed by the provider may differ. Pricing is sourced from OpenRouter and may not match direct provider rates.

Om denne lommeregner

Prompt Cost Calculator estimerer, hvor mange tokens din tekstprompt bruger, og hvad det koster at sende til en af 100+ AI-sprogmodeller tilgængelige via OpenRouter. Det er nyttigt for udviklere, produktteams og forskere, der ønsker at forstå omkostningerne ved deres prompts, inden de kører dem i skala.

How Token Estimation Works

AI language models process text as tokens — chunks of characters produced by a tokenisation algorithm. This calculator uses the standard English approximation of 1 token per 4 characters, which is accurate to within ±10% for typical English prose. Actual token counts depend on the specific tokeniser used by each model:

  • GPT models (OpenAI) bruger cl100k_base BPE-tokenizeren. Almindelige engelske ord er som regel 1 token; længere eller sjældne ord kan være 2–3 tokens.
  • Claude models (Anthropic) bruger en lignende BPE-tilgang med en lidt anden ordliste, og giver talkort inden for få procent af GPT.
  • Open-source models (Llama, Mistral, etc.) often use SentencePiece tokenisers, which can produce different counts for the same text.

For code, non-Latin scripts (Arabic, Chinese, Japanese), or heavily punctuated text, token counts per character tend to be higher than the English average.

Input vs Output Costs

This calculator shows the cost of your input prompt only. The model's response (output tokens) is billed separately at the output rate, which is typically 2–5× higher than the input rate. To also estimate output costs, use the AI Model Cost Calculator.

Ofte stillede spørgsmål

How are tokens counted from a prompt? This calculator uses the approximation of 1 token per 4 characters of English text. For a 100-word paragraph (roughly 500 characters), the estimate would be ~125 tokens. For exact counts, use the provider's official tokeniser.

Why does the same text have different token counts on different models? Each model family uses a different tokenisation algorithm. GPT uses BPE, Claude has its own variant, open-source models use SentencePiece. Counts can vary by 5–15% for the same text. This calculator uses a single universal approximation.

Does the cost shown include the model's response? No — only your input prompt is costed here. Output tokens are billed separately at the output rate (usually 2–5× the input rate). Use the AI Model Cost Lommeregner to include output costs.

How accurate is the token estimate? For typisk engelsk tekst er reglen med 4 tegn per token nøjagtig inden for ±10%. Nøjagtigheden er lavere for kode, blandet sproglig tekst og ikke-latinske skrifter.

Where does the pricing data come from? Priserne hentes live fra OpenRouter API og caches i din browser i 24 timer. Det dækker 100+ modeller fra OpenAI, Anthropic, Google, Meta, Mistral og andre.

⚠️
Vigtig bemærkning: Dette værktøj er beregnet til at give estimater og bør ikke bruges som erstatning for professionel rådgivning. Token-antal og omkostninger er tilnærmelser. Verificer altid med din udbyders officielle tokenizer og prisside, inden du budgetterer produktionsbelastninger.

Relaterede lommeregnere

  • AI Model Cost Calculator — Sammenlign API-priser for 100+ LLM'er inkl. GPT-4o, Claude, Gemini og Llama. Beregn præcise tokenomkostninger.
  • LLM Cost Comparator — Side-om-side per-million-token omkostning for GPT-5, Claude Opus 4.7, Gemini 3.1 Pro, Llama, DeepSeek.
  • AI vs Human ROI Calculator — Sammenlign AI-værktøjsomkostninger med menneskelig arbejdskraft. Månedlige besparelser, årligt ROI og break-even med live modelpriser.