Short answer. A token cost estimator approximates token counts from text and applies a per-token rate to estimate cost per request for planning and budgeting.
How token estimation works
Token estimators approximate how a model tokenizer will split text into tokens. A common rule of thumb is four characters per token for English prose, but code, JSON and non-Latin scripts produce different ratios. The only accurate count comes from the tokenizer used by the target model.
Use estimation for planning and budgeting, then measure real token counts from API responses when you run traffic.
Input versus output tokens
Input tokens are the prompt, system message, retrieved context and tool definitions sent to the model. Output tokens are what the model generates. Most providers price output higher than input, so long answers and chain-of-thought reasoning dominate cost.
Track the two separately. A prompt-heavy workload with short answers has a different cost profile from a chat workload with long replies.
Context, caching and batching
Long context windows multiply input cost on every request because the full context is billed each time. Caching repeated system prompts or retrieved chunks can reduce input cost on providers that support it. Batching requests can reduce overhead where the API supports batch endpoints.
On flat-rate plans, these optimisations still matter for latency and throughput even though they do not change the bill.
Estimating for RAG and agents
RAG pipelines add retrieval context, reranking and sometimes multiple model calls per user request. Agent loops add tool calls and intermediate reasoning. Estimate cost per completed task, not per single API call, and include failed or retried calls.
Free $0 (plugsky-micro and plugsky-lite), Hobby $8 per month, Starter $20 per month, Builder $60 per month and Scale $120 per month, with 20% off on annual billing.
Estimating cost per task
Single-call estimates understate real cost for retrieval and agent workflows. A RAG request may include a system prompt, retrieved chunks, a user query and a generated answer, and an agent may loop over several tool calls before finishing. Estimate cost per completed task by multiplying per-call estimates by the number of calls, then add retries and failed attempts.
Track cost per successful outcome, not per request. This makes it easier to compare providers and to decide whether a more expensive model is justified by higher success rates.
When you move to production, log actual token usage from API responses and reconcile estimates against invoices monthly.
Common estimation pitfalls
Do not assume four characters per token for code or JSON; tokenizers split punctuation and whitespace differently, and code often produces more tokens per character than prose.
Do not forget system prompts, tool definitions and retrieved context in RAG. They are billed as input tokens on every request and can dominate cost.
Do not estimate single calls when measuring agent or RAG cost. Multiply by calls per task and include retries, failed calls and long outputs.
Security and compliance posture
Authentication, RBAC, SAML SSO, audit export, spend controls and BYOK are available; private options include VPC, on-prem and air-gapped deployment. Plugsky does not claim ISO 27001, SOC 2 or FedRAMP certification; controls are aligned with SOC 2 practices and suitability is determined by your own review.
Migration and exit
Because the API is OpenAI-compatible, migration in is usually a base URL and model name change; migration out is also straightforward because prompts and parsing are standard.
Token cost estimator
Related pages
Frequently asked questions
How accurate is token estimation?
It is an approximation. Real counts depend on the model tokenizer.
Why count characters divided by four?
It is a rough heuristic for English prose. Code and other languages differ.
Do images and audio count as tokens?
Providers bill multimodal inputs under their own rules, often as token equivalents.
How do I get exact counts?
Use the usage fields returned by the API for your actual requests.
Does Plugsky bill per token?
Self-serve plans are flat monthly with no per-token overage on Builder and Scale.
Can I estimate agent loop cost?
Yes. Multiply per-call estimates by the number of calls per task, including retries.
Sources and dated checks
Checked 1 December 2026. Primary sources: Plugsky pricing page, docs and model catalogue. Confirm current provider pricing and limits in the provider console before capacity planning.