Cost guide
ChatGPT integration cost: build effort plus the monthly API bill
ChatGPT integration cost has two parts: the one-time effort to build a feature into your website, app or internal system, and the monthly bill from the OpenAI API, charged per token. This guide separates the two, shows OpenAI's published token prices as of November 2026, works through a usage estimate you can copy, and lists the build decisions that move the effort most.
- Build
- Fixed price, per milestone
- Pricing
- On a call within 1 hour
- OpenAI account
- In your company's name
- Token prices
- Checked November 2026
Updated · By the Codebrix team
ChatGPT the product and the OpenAI API are billed separately
When a business says it wants ChatGPT in its software, it almost always means the OpenAI API: the same family of models, called from your own code, with your own instructions and data. ChatGPT subscriptions and API usage are priced on separate pages, and the API is billed by usage rather than per seat.
Two facts from OpenAI's data controls page shape most projects, as of November 2026. Data sent to the API is not used to train or improve OpenAI models by default. Abuse monitoring logs may be retained for up to 30 days, and zero data retention is subject to OpenAI's prior approval. Whether that suits your data is a question for your own legal adviser. For the service itself, see ChatGPT integration services.
What the build effort is made of
The API call is a few lines of code. The cost is in everything around it that makes the answer correct, safe and useful inside your workflow.
| Component | What it involves | What makes it bigger |
|---|---|---|
| Prompt and output design | Instructions, examples and a fixed output format your code can read | Many task types, or outputs that must match a strict schema |
| Connection to your data | Pulling the right records or documents into each request | Large document sets needing search, see RAG development |
| User interface | Where people trigger the feature and review its output | Editing, approval steps and history |
| Workflow integration | Writing results back to your CRM, helpdesk or database | Several systems, or ones without a usable API |
| Checks and evaluation | A test set of real examples with expected answers, run before each change | High-stakes outputs that need human review |
| Logging and cost controls | Token use per feature and per user, alerts, limits | Per-customer billing or quotas inside your own product |
A single, well-defined task on one screen is a small build. An assistant that answers from your documents and acts in other systems is a larger one, closer to AI agent development. If the main output is a customer-facing chat, the AI chatbot development cost guide covers that case, including WhatsApp charges.
OpenAI API token prices as of November 2026
OpenAI charges per million tokens, with separate prices for input (everything you send), cached input (a repeated opening part of the prompt the system has stored) and output (what the model writes). These are three models from OpenAI's pricing page, standard tier, short-context rates.
| Model | Input | Cached input | Output |
|---|---|---|---|
| gpt-6.2-sol | $2.00 | $0.10 | $10.00 |
| gpt-6.1-terra | $1.00 | $0.05 | $5.00 |
| gpt-6-luna | $0.10 | $0.01 | $0.50 |
- Short context means 272,000 input tokens or fewer per request; longer requests are priced separately.
- Reasoning tokens are not visible in the API response but are billed as output tokens, per OpenAI's reasoning guide.
- Web search costs $10.00 per 1,000 calls, plus the search content tokens at model rates.
- File search storage costs $0.10 per GB per day after the first free GB, and file search calls cost $2.50 per 1,000 in the Responses API.
- Embeddings for document search cost $0.02 per million tokens for text-embedding-3-small and $0.13 for text-embedding-3-large.
- For eligible models, background requests that can wait are priced 30% below standard for a 2-hour completion window and 40% below for an 8-hour window.
Prices and model names change often. Check the pricing page on the day you budget, not this table.
How to estimate monthly usage before you build
- List each task the feature performs, such as classify a ticket or draft a reply.
- Estimate how many times a month each task runs, from your own records.
- Run 20 or so real examples through the API in a test account and record the input and output tokens for each.
- Split input into the fixed part (instructions and examples) and the variable part (the record being processed).
- Multiply by monthly volume, then add headroom for retries, longer-than-usual records and reasoning tokens.
Worked example: triaging support tickets
Assumptions, stated so you can swap in your own: 20,000 tickets a month; each request sends 1,500 tokens of fixed instructions plus 500 tokens of ticket text, so 2,000 input tokens; the model returns a category and a draft reply of 300 tokens. That is 40 million input tokens and 6 million output tokens a month.
| Model | Input cost | Output cost | Monthly total |
|---|---|---|---|
| gpt-6.2-sol | 40 × $2.00 = $80.00 | 6 × $10.00 = $60.00 | $140.00 |
| gpt-6.1-terra | 40 × $1.00 = $40.00 | 6 × $5.00 = $30.00 | $70.00 |
| gpt-6.1-terra, fixed instructions cached | 30 × $0.05 + 10 × $1.00 = $11.50 | 6 × $5.00 = $30.00 | $41.50 |
| gpt-6-luna | 40 × $0.10 = $4.00 | 6 × $0.50 = $3.00 | $7.00 |
The cached row assumes every request reuses the 1,500 fixed tokens from the cache, which is the best case; real hit rates are lower. Reasoning tokens would add to the output column. Treat the table as a method for your own numbers, not a forecast.
Ways to keep the OpenAI bill down
- Prompt caching is on by default for supported models. The minimum cacheable prompt is 1,024 tokens for GPT-5.6 and later, so put stable instructions and shared reference material first.
- On GPT-5.6 and later, cache entries last at least 30 minutes by default, and a 12-hour lifetime can be requested, as of November 2026.
- Send easy tasks, such as classification, to a smaller model and keep the larger one for drafting or judgement.
- Set a lower reasoning effort where the task allows; OpenAI notes that lower effort favours speed and lower token use.
- Cap output length and ask for structured output, so the model does not write paragraphs your code throws away.
- Move work that can wait, such as overnight summaries, to background processing on eligible models.
Rate limits, usage tiers and spend controls
OpenAI applies rate limits measured in requests and tokens per minute and per day, and an approved monthly usage limit per organisation. An organisation's tier moves up automatically as its total credit purchases reach each threshold.
| Tier | Total credit purchases to qualify | Approved monthly usage limit |
|---|---|---|
| Build | $5 | $500 |
| Launch | $100 | $5,000 |
| Grow | $500 | $200,000 |
A new account starts low, so a launch that will process a large backlog on day one needs the tier checked in advance. OpenAI also suggests setting spend limits for the organisation or individual projects, which are separate from the usage limits above. Give each environment and feature its own project, so a test script cannot spend the production budget.
How Codebrix prices a ChatGPT integration
The OpenAI account, the API keys and the cloud hosting sit in your company's name, so the token bill goes directly to you and you can see it. Keys stay on the server, never in the app or the browser. Codebrix builds in Python, Node.js and TypeScript and also works with Anthropic and Gemini models, where a mix suits the task.
Codebrix does not publish prices for the build. Describe the task, the volumes and the systems involved in the enquiry form. The team calls back within an hour, at any hour, 7 days a week, shares pricing on that call, then sends a written fixed-price proposal with milestones; you pay per milestone. After launch you get 30 days of free bug fixes, and prompt updates or model changes can continue on a month-to-month retainer. For the general upkeep picture, see software maintenance cost and our AI integration services.
Frequently asked questions
How much does it cost to integrate ChatGPT into a website or app?
There are two separate costs. The build covers prompts, the connection to your data, the interface, checks and cost controls, and depends mostly on how many tasks and systems are involved. The running cost is the OpenAI API bill, charged per million tokens at prices that differ by model. Codebrix shares build pricing on a call after you send the requirement.
What counts as input and output tokens on the OpenAI bill?
Input tokens are everything your code sends in a request: instructions, examples, retrieved documents, conversation history and the user's text. Output tokens are what the model writes back. Reasoning models also produce reasoning tokens that you do not see in the response, and OpenAI bills those as output. Cached input, a repeated opening part of a prompt, is billed at a lower rate.
Does OpenAI train its models on data we send through the API?
Not by default. As of November 2026, OpenAI's data controls page says data sent to the API is not used to train or improve its models. Abuse monitoring logs may be kept for up to 30 days, and zero data retention needs OpenAI's prior approval. Ask your legal adviser whether those terms fit the data your feature will send.
Why is our OpenAI API bill higher than we estimated?
The usual causes are conversation history resent in full on every turn, prompts that grew during the build, reasoning tokens billed as output, retries on errors, tool calls such as web search with their own fees, and cache misses when the start of the prompt changes. Logging tokens per feature and per user shows which one it is.
Which OpenAI model should we use to keep costs low?
Use the smallest model that passes your own test set. Build twenty or more real examples with expected answers, run them through two or three models, and compare quality against price. Simple classification often works on a small model, while drafting and judgement may need a larger one. Many features route each task to a different model rather than using one throughout.
Can we cap how much we spend on the OpenAI API?
Yes. OpenAI applies an approved monthly usage limit to each organisation based on its tier, and recommends setting your own spend limits for the organisation or for individual projects. Create separate projects for testing and production and for each major feature, so one runaway script or a sudden spike in a single feature cannot use the whole month's budget.
Sources
Related
OpenAI API
ChatGPT integration services for your app and internal tools
ChatGPT integration services that add OpenAI models to your app or internal tool, with tool calling, structured outputs, rate limits and data controls set.
Read moreCost guide
AI chatbot development cost: build price and monthly running cost
AI chatbot development cost in two parts: what drives the build price, and a worked formula for monthly LLM token and WhatsApp running costs.
Read moreAI integration
AI integration services for the software you already run
AI integration services that add LLM assistants, document search, summaries and classification to your product, tested on your data with cost limits set.
Read moreRAG development
RAG development services for answers your team can check
RAG development services: ingestion, chunking, hybrid search, reranking and permission-aware retrieval, with retrieval and answers measured separately.
Read moreCost guide
How much AI agent development costs, and what each task costs to run
AI agent development cost: what drives the build, token cost per task with a worked multi-step example, tool fees, evals and human review time.
Read morePython development
Python development services: web apps, automation, AI features and reporting
Python development services for web apps, APIs, automation, AI features and reports. Scripts turned into monitored services, with the code in your name.
Read more