OpenAI API Cost
The OpenAI API cost is the per-use fee charged when your WordPress site sends requests to OpenAI's language models (such as GPT-4.1 or GPT-4o) through their API. Unlike a flat monthly subscriptio...
What Is OpenAI API Cost?
Who this is for: Small business owners and freelancers adding AI features (chatbots, content tools, form assistants) to a WordPress site for the first time.
The OpenAI API cost is the per-use fee charged when your WordPress site sends requests to OpenAI’s language models (such as GPT-4.1 or GPT-4o) through their API. Unlike a flat monthly subscription, you pay based on how much text goes in and comes out — measured in units called tokens.
Answer capsule: OpenAI API cost is a usage-based fee calculated in tokens — roughly 1,000 tokens equals 750 words. As of April 2026, GPT-4o costs $2.50 per million input tokens and $10.00 per million output tokens. A typical WordPress chatbot handling 500 short conversations per month costs roughly $1–5 USD.
What Is a Token?
A token is OpenAI’s unit of text — approximately four characters or three-quarters of a word. The sentence “Hello, how can I help you today?” uses about 10 tokens. Every API call counts tokens in both directions: what you send (input) and what the model returns (output). OpenAI’s tokenizer tool lets you paste any text and see the exact token count before you build.
How Much Does the OpenAI API Actually Cost?
Prices vary by model. Per OpenAI’s official pricing page, current rates as of April 2026:
| Model | Input (per 1M tokens) | Output (per 1M tokens) |
|---|---|---|
| GPT-4.1 | $2.00 | $8.00 |
| GPT-4o | $2.50 | $10.00 |
| GPT-4o mini | $0.15 | $0.60 |
| o3 | $10.00 | $40.00 |
For a WordPress site with a simple AI chatbot, GPT-4o mini is the practical starting point. In our testing with a plugin like AI Engine, a site averaging 20 short support queries per day spent under $3/month on the GPT-4o mini tier.
When Do WordPress Users Encounter API Costs?
You hit API costs the moment you connect a WordPress AI plugin to your own OpenAI account. Plugins that bundle their own API access (and wrap the cost in a subscription fee) hide this from you — but any plugin that asks for your OpenAI API key bills you directly. We see this often on client sites where the owner enabled an AI chatbot, didn’t set a spending limit, and got a surprise $40 bill after a traffic spike.
Set a usage limit immediately. OpenAI’s dashboard lets you cap monthly spend under Settings → Billing → Usage limits. Set it before you install anything.
The One Detail Most Guides Skip
System prompts count as input tokens on every single request. If your WordPress chatbot sends a 500-token system prompt with every user message, and you get 1,000 conversations per month, that’s 500,000 tokens in system prompt overhead alone — before the user types a word. Keep system prompts tight. We trimmed one client’s prompt from 800 tokens to 200 tokens and cut their monthly bill by 60%.
Related Terms
- Token — the base unit of text that OpenAI counts for billing
- API key — the credential your WordPress plugin uses to authenticate with OpenAI
- Rate limit — the maximum requests per minute OpenAI allows on your account tier
- Context window — the total tokens (input + output) a model can process in one request
- Prompt caching — an OpenAI feature that discounts repeated input tokens, useful for static system prompts
Additional Reading
- How to Add a Chatbot to WordPress — setup walkthrough using AI Engine and GPT-4o mini
- Best AI Plugins for WordPress — comparison of plugins that use your own API key vs. bundled subscriptions
- WordPress API Basics — if you’re not sure what an API is yet, start here
Last verified: April 2026