Short answer. AI API cost depends on the billing model and your workload. Per-token providers charge for input and output tokens, so the bill scales with volume, context length and retries. Flat-rate plans charge a fixed monthly amount. Plugsky self-serve plans run from $0 to $120 per month, with no monthly token cap on Builder and Scale.
The two billing shapes
Almost every AI API uses one of two shapes. Per-token billing charges for each unit of text processed, usually with different rates for input and output. Subscription billing charges a fixed amount for a period, sometimes with a request or token allowance and sometimes without a monthly cap.
The shape matters more than the headline rate. A low per-token price with a high minimum commit can cost more than a flat plan at your volume, and a generous flat plan is wasted if your usage is a fraction of its capacity. Compare at your own traffic, not at a vendor's illustrative workload.
What actually drives a per-token bill
Output length. Most providers charge more for output than input, because generation is sequential compute. Long answers, chain-of-thought and verbose formatting dominate the bill.
Context length. Every request re-sends its context: system prompt, conversation history, retrieved documents and tool definitions. A 30,000-token context costs the same whether or not the model uses all of it.
Model class. Frontier models cost more per token than small models. Routing easy requests to a smaller model is often the largest single saving available.
Retries and failures. A retried request is billed again. Timeouts, malformed JSON and rate-limit backoff all add cost without adding output.
Pipeline depth. RAG adds embedding calls, retrieval and sometimes reranking. Agents add tool calls and intermediate reasoning turns. Cost per user request can be several times the cost of a single chat call.
| Cost driver | Why it matters | What to measure |
|---|---|---|
| Input tokens | Context is re-billed on every call | Median and p95 prompt tokens |
| Output tokens | Usually priced higher than input | Answer length by task type |
| Model class | Frontier rates can be many times small-model rates | Share of traffic per model |
| Retries | Failed and repeated calls are billed | Retry rate and timeout rate |
| Embeddings and reranking | Adds calls before generation | Chunks per document and per query |
| Agent turns | Multiplies calls per task | Tool calls per completed task |
| Fixed plan capacity | Unused allowance is still paid for | Utilisation against the plan limit |
How to estimate your own bill
Start from a real workload, not a guess. Take one representative week of traffic, count requests and tokens for each model, and separate input from output. Then apply the published rates. Repeat at two or three volume levels so you can see the shape of the curve.
As an arithmetic example, if a provider charges $3 per million input tokens and $15 per million output tokens, a workload of 20 million input and 4 million output tokens costs $60 plus $60, or $120 per month. That is arithmetic on hypothetical rates, not a quote from any vendor. Substitute the rates you are actually comparing.
Then add the parts a token estimate misses: embedding calls for retrieval, reranking, retries, evaluation runs, staging traffic and the engineering time spent managing quotas. A bill that looks cheap per token can be expensive per completed task.
Plugsky's published prices
Self-serve plans are Free at $0, Hobby at $8, Starter at $20, Builder at $60 and Scale at $120 per month, with 20% off annual billing. Hobby includes 1,000 requests and 2M tokens per day; Starter includes 2,000 requests and 5M tokens per day. Builder and Scale have no monthly token cap and no per-token overage, with fair-use concurrency and rate limits still applying. Paid plans carry a 7-day money-back guarantee.
The Free plan includes plugsky-micro and plugsky-lite with no card, at 100 requests and 50K tokens per day for accounts created from 2 November 2026. Paid plans open the full public catalogue. Hobby and Starter publish daily request and token allowances; Builder and Scale publish no monthly token cap. Concurrency and requests-per-minute limits still apply on every plan to protect shared capacity.
Enterprise terms, including dedicated capacity, private deployment, residency and SLAs, are quoted per deployment and agreed in writing. There is no single published enterprise price, because the scope varies.
Costs that are not on the price list
Integration. An OpenAI-compatible API keeps migration cheap, but custom SDK features, tool schemas and evaluation harnesses still take engineering time.
Observability. Logging prompts, outputs, latency and token usage costs storage and, in some cases, a separate vendor. Without it you cannot attribute spend to a feature or a tenant.
Support and compliance. Security review, DPA negotiation, audit evidence and named support are real costs, even when the API itself is cheap.
Exit. Proprietary features, fine-tuned artefacts and prompt libraries create switching costs. Keep prompts and parsing portable so the next negotiation is competitive.
A budgeting method that survives production
Budget per successful outcome, not per request. Define what a completed task is, measure the number of API calls it takes, and divide total spend by successful completions. Track the median and the peak separately, because capacity and cost behave differently under load.
Set spend alerts per key and per tenant, cap retries, cache repeated system prompts where the provider supports it, and route by difficulty. Review the model mix monthly: a model released after your budget was set may do the same job for less, or a model you rely on may be retired.
Finally, keep a rollback option. A pricing model that is affordable today can change; a portable integration lets you move rather than absorb the increase.
Related pages
- AI API pricing comparison
- AI API cost calculator
- What is an AI API?
- Best AI API in 2027
- Live pricing and plans
Sources and dated checks
Checked 1 December 2026. Primary sources: Plugsky facts, the live pricing page, the API docs and the public model catalogue. Third-party provider terms and prices change; confirm them in the provider console and the signed contract before capacity planning.
Author: Plugsky Editorial Team. This page is product documentation and procurement guidance, not legal advice. Compliance suitability, residency scope and contract terms are determined by your own review.