An API lets software request work from an AI service. A developer might use it to extract fields from an approved document or prepare a draft response inside an existing system.
You usually need a maintained application around it: input checks, permissions, error handling, review, logging and cost controls. The model call is only one part of the service.
Tokens
Tokens are units used to process text and other content. They are not the same as words. Providers may charge different rates for input and output, cached input, images, audio, tools or reasoning.
A simple text estimate is: input tokens ÷ 1,000,000 × input rate + output tokens ÷ 1,000,000 × output rate. That estimate is incomplete when other features are charged.
Subscription versus API
ChatGPT Plus documentation describes API usage as separately billed. Some other subscriptions advertise particular API-credit benefits, including specified Claude plans. Never assume that every subscription includes API use, or that a credit removes the need to monitor it. Check eligibility, expiry and billing route. S03 S06
An automation platform may charge in addition to the model provider. Make explicitly describes this pattern for external AI connections. S24
A current example
Google's published Gemini 4 Argon standard rate is USD 2 per million input tokens and USD 10 per million output tokens through 30 November 2026, with USD 4/20 stated from 1 December. Output includes thinking tokens; grounding can add costs. Verify the rate for the actual service and date before relying on it. S15
Before commissioning
Ask for a realistic monthly volume, worst-case retry behaviour, enforceable limits, a stop switch and a maintenance owner. Provider budget alerts may not be hard spending caps; the implementation must explain what actually stops expenditure.
Keep credentials in the application's protected configuration. Do not place them in prompts, public repositories or browser code.
Connect tools when you need to: the chapters
- Local AI: useful, but not automatically privateUnderstand what runs on your computer and what still depends on cloud services, licences and maintenance.
- MCP explained in plain EnglishHow Model Context Protocol connects AI applications to tools and information, and when you might need it.
- Practical MCP ideasBounded connection ideas for small businesses and councils, from public-document search to draft creation.
- MCP, APIs, automation or manual work?Choose the simplest connection that meets a real task and can be maintained.
- Make AI connections saferPermissions, prompt injection and human review for connected AI tools.
Ends with: Assess a connection
Explore next
Sources for this page
Checked against the suppliers’ and publishers’ own pages. Links open the original source.