For an AI agent, a ChatGPT plan is a fixed monthly price with usage limits that reset. An OpenAI API key is pay per token with no plan ceiling. A plan is cheaper while you stay under its limits; a key keeps working when the plan runs out. The practical setup is both: the plan first, the key as an automatic fallback.
This post compares the two for agents that call GPT and GPT Image through MCP, with prices taken from OpenAI's own pages on 2026-11-29. Prices change, so check the linked pages before you budget.
Before you start: the ChatGPT subscription link is unofficial. OpenAI does not make, endorse or support it, and you use it at your own risk. OpenAI may limit or ban accounts that use their plan through third-party services. The OpenAI API key path uses the official API.
How do the two options differ?
| ChatGPT plan | OpenAI API key | |
|---|---|---|
| How you pay | Fixed monthly plan price | Per token, billed by OpenAI to the key's owner |
| Limits | Usage windows (a 5-hour window on Plus and Business; weekly limits may apply) | API rate limits and your account's spend; no plan ceiling |
| When it runs out | Calls stop until the window resets, or you buy credits | Calls keep going while the account has credit |
| Images | Count against the same limits, 3 to 5 times faster on average | Priced per image by quality and size |
| Official for third-party tools | No. Unofficial, at your own risk | Yes |
| Masked image edits | Not supported | Supported |
The usage windows are what account_status reports. A real Plus account on 2026-11-29 showed primary 0% used of a 5-hour window; secondary 13% used of a 7-day window. Those percentages are the numbers to watch before a big batch.
What does each ChatGPT plan cost?
OpenAI's Codex pricing page lists these prices and says Codex is included in all of them:
| Plan | Price | Limits |
|---|---|---|
| Free | $0/month | Limited; image generation not available |
| Go | $8/month | Limited |
| Plus | $20/month | 5-hour limits, weekly limits may apply; credits can be bought |
| Pro | From $100/month ($100, $200 or $500) | No five-hour limit currently; credits can be bought |
| Business | $20 per user/month billed annually, $25 monthly | Workspace credits on flexible pricing |
| Enterprise and Edu | Contact sales | Flexible pricing scales with credits |
The page gives message estimates per 5-hour window for Plus and Business only, as ranges that depend on the model and the task. It gives no weekly number, only that weekly limits may apply. So no one can tell you "a Plus plan is worth N images a week" from OpenAI's own figures.
What does the OpenAI API cost for the same calls?
From OpenAI's API pricing page, checked 2026-11-29, per 1 million tokens at standard rates:
| Model | Input | Output |
|---|---|---|
gpt-5.5 (under 272K context) | $5.00 input, $0.50 cached input | $30.00 |
gpt-image-2 text | $5.00 input, $1.25 cached input | None |
gpt-image-2 image | $8.00 input, $2.00 cached input | $30.00 |
gpt-image-2.5-sunburst image | $8.00 input, $2.00 cached input | $30.00 |
Per image is easier to reason about. OpenAI's image generation guide lists these estimated output costs for gpt-image-2. Billing is token-based, so the real cost of a call can differ:
| Quality | 1024x1024 | 1024x1536 | 1536x1024 |
|---|---|---|---|
| Low | $0.006 | $0.005 | $0.005 |
| Medium | $0.053 | $0.041 | $0.041 |
| High | $0.211 | $0.165 | $0.165 |
Those are estimated output costs only. The prompt text, and any input images for edits, are billed on top as input tokens. Edits cost more than the table suggests, because gpt-image-2 processes every input image at high fidelity.
When is the subscription the better deal?
- You already pay for the plan and use only part of its limits. Calls on spare capacity cost nothing extra.
- Your agent work is bursty: a batch in the morning, nothing for hours. The 5-hour window resets between bursts.
- You mostly ask text questions. Text uses the limits much more slowly than images.
- The account risk is acceptable to you. The link is unofficial, and OpenAI may limit or ban accounts that use their plan through third-party services.
When is the API key the better deal?
- You generate many images. Images use plan limits 3 to 5 times faster, while low-quality API images cost about half a cent each.
- The agent must not stop. A scheduled job that fails at a limit costs more than the tokens it would have used.
- You need masked edits. Only the API path accepts a mask.
- You need an official route, for a business account, a client project or a compliance review.
- You want a bill per project. A separate key per project makes costs easy to split.
How does automatic fallback work?
You do not have to choose. The ChatGPT MCP server accepts both credentials on one instance. Every call tries the subscription first and moves to the key in three cases, each with a one-line note in front of the result:

- A usage or rate limit:
ChatGPT limit reached, billed to your API key. - A plan that does not include the feature:
Your ChatGPT plan does not include this, billed to your API key. - A link that stopped working:
ChatGPT link unavailable, billed to your API key.
The note matters for agents. Claude sees it in the tool result and can tell you, or stop a batch, once the calls start costing money. Masked edits skip the subscription entirely and go straight to the key. Setup for both credentials is in use your ChatGPT subscription in Claude.
How do you keep agent costs under control?
- Check before a batch. Have the agent call
account_statusfirst and stop if a window is nearly used up. - Explore at low quality. Generate drafts at
quality: lowand only the final pick at high. - Set a spend limit on the key in your OpenAI account, so a runaway loop has a ceiling.
- Switch tools off per key. An MCPifex key used by a text-only agent does not need the image tools. API keys and authentication shows how.
- Watch the fallback note. Ask the agent to report every result that contains "billed to your API key".

MCPifex itself does not meter calls: plans cap instances, not calls, as the pricing page shows. OpenAI's limits and prices are the only usage costs. For image prompts and options, see Claude image generation with GPT Image 2.
Quick answers
While you stay under its usage limits, yes: calls cost nothing beyond the $20 a month. Once the limits run out, calls stop until they reset, while an API key keeps working at per-token prices.
Through an MCP server that links the account, yes. That link is unofficial, not endorsed by OpenAI, and at your own risk. The API key is the official route.
OpenAI estimates output costs from $0.005 per image at low quality to $0.211 at high quality, depending on size. Prompt and input images are billed on top. Checked 2026-11-29.
Yes. The ChatGPT MCP server tries the plan first and moves the call to your API key on a limit, with a note saying the call was billed to the key.
Sources
- OpenAI, Codex pricing and usage limits, checked 2026-11-29.
- OpenAI, API pricing, checked 2026-11-29.
- OpenAI, Image generation guide, checked 2026-11-29.
Ready to try it?
Run hosted MCP servers behind one endpoint and choose exactly which tools your AI can use.



