Build a chatbot on the OpenAI API or use a builder? Real costs

On the OpenAI API, 1,000 answers cost $3 to $24, but the build takes 11 to 21 hours plus upkeep. When building beats buying a chatbot builder.

Build on the OpenAI API only if the bot must do something a builder can't, such as look up an order, and you have the developer hours. Otherwise buy. At OpenAI's 29 November 2026 prices, 1,000 answers cost $3 to $24 in API fees, but a first version takes 11 to 21 hours by our estimate, plus upkeep.

Build on the OpenAI APIHosted chatbot builder
Setup11 to 21 developer hours (our estimate)Minutes to add pages and paste a snippet, then testing
First-year cost at 1,000 answers a month$36 to $282 in API fees, plus 35 to 69 hours of your timeA flat plan: $200 to $900 a year on Laddu Chat (Starter to Growth, yearly or monthly billing)
UpkeepPage pipeline, API migrations, abuse limits: yoursThe vendor's; you keep sources current
Best forActions in your own systems, model or data control, high volume on a small modelAnswering from a site's pages and PDFs, collecting leads

If you're still choosing how to get an AI chat window onto a site at all, read how to put ChatGPT on your website first; it compares the API, a WordPress plugin and a hosted bot.

We make Laddu Chat, a hosted builder, so we sell the "buy" side. We also built the "build" side for ourselves: Laddu fetches pages, cleans and chunks them, stores vectors, caps message length and logs chats. Some of what follows is what went wrong while we did it.

What do you have to build around the OpenAI API?#

The API gives you a model, a hosted vector store with a file search tool, and a chat UI kit (ChatKit) that needs your server. A website chatbot needs six more things, and they're yours.

PartWhat OpenAI gives youWhat you buildFirst version (our estimate)
Server endpointThe Responses APIAn endpoint that holds the key, calls the model and streams the reply2 to 3 hours
Getting content inVector stores that take uploaded filesA job that fetches each page, strips menus and footers, uploads the text, and re-uploads it when the page changes3 to 6 hours
Chat windowChatKit, connected to your serverAn embed script that loads on every page, works on a phone and doesn't clash with the site's CSS3 to 6 hours
Abuse limitsProject spend limitsPer-visitor rate limits and a message length cap1 to 2 hours
Chat logNothingA database of conversations you can read back1 to 2 hours
LeadsNothingAn email when someone leaves their details (what a good lead flow looks like)1 to 2 hours
First version11 to 21 hours
UpkeepDeprecation noticesRe-running the page job after content changes, API and model migrations, checking that fetches still work2 to 4 hours a month
First year35 to 69 hours

Six parts of a DIY website chatbot: what the OpenAI API provides and what you build

Those hours are our estimates for a developer who has shipped a web app before, for one site, and exclude the slowest part: asking the bot 30 real questions, finding the wrong answers and fixing the content or the prompt. Multiply by your rate. At $75 an hour, the first version is $825 to $1,575 before anyone has used it, and the first year is $2,625 to $5,175.

How much does a DIY chatbot cost per month to run?#

Usually less than a builder's entry plan at small-site volumes, but not on every model. Here's the arithmetic at OpenAI's standard, short-context list prices on 29 November 2026, for 300 output tokens per answer and one file search call ($2.50 per 1,000 calls):

Model (input / output per 1M tokens)3 passages (~3,500 input tokens)10 passages (~9,000 input tokens)
gpt-6-luna ($0.10 / $0.50)$3.00 per 1,000 answers$3.55 per 1,000 answers
gpt-6.1-terra ($1.00 / $5.00)$7.50$13.00
gpt-6.2-sol ($2.00 / $10.00)$12.50$23.50

OpenAI API cost per 1,000 chatbot answers with 3 or 10 retrieved passages, prices checked 29 Nov 2026

The two cheaper models cost $3 to $13 per 1,000 answers. The top model with 10 passages ($23.50) costs more than Laddu's $20 Starter plan, which includes 2,500 answers.

The gotcha is the second column. OpenAI's retrieval guide says a vector store search returns up to 10 results by default, and the default chunk is 800 tokens. Ten 800-token chunks is up to 8,000 tokens of context per question, on top of your instructions. OpenAI's file search guide says limiting max_num_results reduces token usage and latency, at some risk to answer quality. Start at 3 to 5 and test.

Three more lines on the bill:

  • Storage: file search storage is $0.10 per GB per day, with 1 GB free. A small business site is a few megabytes.
  • Hosting: a serverless endpoint is close to free at this volume. Cloudflare Workers' free plan allows 100,000 requests a day, and the paid plan starts at $5 a month.
  • Fetching pages: if the site needs a headless browser to render (more on that below), that browser needs a server with real memory. Ours runs in a container capped at 3 GiB, after it was killed at 2 GiB.

Long chats resend the history each turn, so treat these figures as a floor. For what builders charge, with badge removal and per-site totals, see AI chatbot cost per month.

What does getting your pages into the bot involve?#

File search has no "add a URL" option. It only searches files you upload to a vector store, so "train it on our site" means you write and run a pipeline:

  1. Fetch each page. Some sites draw content with JavaScript, so a plain HTTP request gets an empty shell and you need a headless browser.
  2. Cut the page down to the content. Menus, footers, cookie banners and scripts are noise the bot will happily quote.
  3. Upload the text to the vector store. OpenAI chunks and embeds it (800-token chunks with 400 tokens of overlap by default, adjustable from 100 to 4,096).
  4. When a page changes, find the old file, delete it, and upload the new one. Nothing does this for you.

We measured the noise in step 2. On 29 November 2026 we fetched 8 public pages of our own site (the home page, /pricing, a comparison page and 5 blog posts) and counted tokens with OpenAI's o200k_base tokenizer. The raw HTML came to 78,773 tokens. The readable text in the main content area was 25,839. Across the 8 pages, two thirds of the HTML was markup. The home page was 13,461 tokens of HTML for 1,246 tokens of text, a 10-to-1 ratio.

Raw HTML vs readable text tokens on 8 real pages of chat.laddu-ai.com, measured 29 Nov 2026

The money there is trivial: embedding all 25,839 tokens with text-embedding-3-small ($0.02 per 1M tokens) would cost about a twentieth of a cent. The problem is quality. Feed a vector store raw HTML and your chunks are full of class names and navigation links, and the passages it retrieves get worse.

What breaks after launch?#

None of these show up in a demo. All four happened to us while we built Laddu's page pipeline:

  • Waiting for the page to "go quiet" never ends. We first told the headless browser to wait until the network was idle. Pages with analytics or a chat widget never go idle, so every fetch sat out a 60-second timeout and bot builds failed. Waiting for the DOM to load, plus a 2-second pause for scripts, fixed it.
  • The browser clicked the logo. Our fetcher simulates a mouse click at one spot on the page. On many sites that spot is the header logo, which links home. We asked for a prices page and stored the home page, so a bot had no prices to quote. We now block link navigation during the fetch.
  • One chunk was 77,834 characters. Our first splitter only broke text at blank lines. A long page with none produced a chunk too big for our vector database's 48 KB metadata limit, and the whole upload failed.
  • The browser died and the health check stayed green. The container ran out of memory, /health kept answering 200, and every real fetch returned 500. Only a check that fetches a real page catches that.

Then there's OpenAI's own churn. Its deprecations page lists more than 60 models, endpoints and features with shutdown dates in 2026, including the Assistants API (shut down on 26 August 2026) and Agent Builder (shut down on 30 November 2026). If you built on either, you're rewriting and re-testing the bot on every client site that uses it.

Your own spend limit can also switch the bot off. A hard limit makes OpenAI return a 429 error once it's reached. That protects your card from a scraper looping on the widget overnight, but the bot is dead until you notice. Set a spend alert below the hard limit so you hear about it first.

How does the math change for an agency with several client sites?#

One codebase can serve every client. Give each client its own vector store, and its own OpenAI project with a hard monthly spend limit, so one client's traffic spike can't eat another's budget. Your hosting barely moves. At 1,000 answers per client per month on gpt-6.1-terra with 3 passages, five clients cost about $37.50 a month in API fees.

The work doesn't share as well. Every client adds its own:

  • Picking and cleaning their pages, then re-running the pipeline every time they change a price.
  • Testing answers on their content before launch.
  • Every "the bot said something odd" email, for as long as you run it.

Compare that with a builder: in Laddu Chat, Growth is $75 a month for 3 bots and Scale is $250 a month for 50, with answer credits shared across all of them. If you'd bill a client a monthly fee for the chatbot anyway, the builder's cost per client is what you're weighing against your own hours. We worked through what to charge in how to sell an AI chatbot to web design clients.

When is building it yourself the right call?#

Build when at least one of these is true:

  • The bot has to do things, not just answer: check an order status, look up stock, book a slot. That's function calling against your own systems. Laddu doesn't do it.
  • You need control of the model or the data path: a specific model, a data residency endpoint, your own logging, or a security review that rules out third-party chat tools.
  • The volume is high and a small model is good enough. On gpt-6-luna with 3 to 5 passages, 1,000 answers cost about $3.00 to $3.15, against $6.25 per 1,000 on Laddu's Scale plan ($250 for 40,000 answers). At hundreds of thousands of answers a month, that gap pays for the build. On the top model, it doesn't: gpt-6.2-sol costs $12.50 to $23.50 per 1,000.
  • Chatbots are your product. If you want to sell a chatbot platform, own it.

Buy when the client wants a widget that answers from its service pages, price list and PDFs and collects contact details, with no lookups in other systems. With a builder, keeping a headless browser alive, stopping the widget's CSS from fighting the client's theme and moving off a retired endpoint are the vendor's problems, not yours. (If PDFs are most of the content, see a chatbot that answers from PDFs for what breaks there.)

Where does Laddu Chat fit, and where doesn't it?#

Laddu Chat is the "buy" option for a small site or a handful of client sites. You train a bot on web pages (add each URL), PDFs up to 10MB and pasted text, then paste a short snippet into the site. Turn on lead fields (name, email or phone) and set a Support Email in Configure, and every plan captures leads and emails them to you; Growth and Scale add a Leads dashboard and CSV export. 100 free credits, no card; paid plans start at $20 a month. Each answer is one credit, and testing in Preview uses credits too.

It's the wrong pick, and you should build, if you need any of these:

  • Actions. No webhooks, Zapier, HubSpot or function calling. It answers and captures leads, nothing more. Leads are emailed to your Support Email (once you set one and turn on lead fields), and Growth and Scale export them as CSV.
  • Model choice. One model on every plan; you can't pick.
  • Automatic sync. Each URL adds one page, and there's no sitemap import or scheduled refresh. When a page changes, click Recrawl on the source, then Retrain if it shows.
  • Client accounts. All bots sit in one account (one user = one org), with no client-only logins (anyone you invite sees every bot) or per-client billing, and usage shows per account, not per bot. You bill clients yourself.
  • Your domain. The widget loads from chat.laddu-ai.com, and removing the "Powered by Laddu AI" badge (included on Growth and Scale, $24 a month on Free and Starter) removes only that badge.

If none of those rules it out, test it on one real client site before you write any code: start a free Laddu Chat account, add the 5 to 10 pages visitors ask about, and ask it the questions the client gets by email. If the answers hold up, you've saved yourself the 11 to 21 hours. If they don't, you've learned what your own build has to do better.

Sources#

  • OpenAI API, "Pricing": standard short-context prices per 1M input / output tokens: gpt-6-luna $0.10 / $0.50, gpt-6.1-terra $1.00 / $5.00, gpt-6.2-sol $2.00 / $10.00; text-embedding-3-small $0.02; file search $2.50 per 1,000 tool calls; storage $0.10 per GB per day, 1 GB free. https://developers.openai.com/api/docs/pricing (checked 29 November 2026)
  • OpenAI API, "Retrieval": search returns up to 10 results by default (max 50); default chunking 800 tokens with 400 overlap, adjustable 100 to 4,096; 512 MB per file. https://developers.openai.com/api/docs/guides/retrieval (checked 29 November 2026)
  • OpenAI API, "File search": limiting max_num_results reduces token usage and latency, possibly at the cost of answer quality; supported file types include .html. https://developers.openai.com/api/docs/guides/tools-file-search (checked 29 November 2026)
  • OpenAI API, "Deprecations": Assistants API shutdown 26 August 2026; Agent Builder shutdown 30 November 2026; more than 60 entries with 2026 shutdown dates. https://developers.openai.com/api/docs/deprecations (checked 29 November 2026)
  • OpenAI API, "ChatKit": Agent Builder scheduled to shut down 30 November 2026; ChatKit still available via your own server. https://developers.openai.com/api/docs/guides/chatkit (checked 29 November 2026)
  • OpenAI API, "Spend limits": hard limits return a 429 error (project_spend_limit_exceeded); alerts don't stop traffic. https://developers.openai.com/api/docs/guides/spend-limits (checked 29 November 2026)
  • Cloudflare Workers pricing: Free plan 100,000 requests per day; Paid plan from $5 per month. https://developers.cloudflare.com/workers/platform/pricing/ (checked 29 November 2026)
  • Token measurement: 8 pages of chat.laddu-ai.com fetched with curl on 29 November 2026, counted with tiktoken o200k_base; "readable text" is the text inside each page's article or main element.
  • Laddu Chat engineering notes (page fetching, chunking and monitoring incidents), November 2026. Laddu plans and features: /pricing and Laddu Chat product facts, verified 26 to 28 November 2026.

Frequently asked questions#

Is it cheaper to build a website chatbot with the OpenAI API?

Cheaper to run, not always cheaper overall. At OpenAI's 29 November 2026 list prices, 1,000 answers cost about $3 to $24 in API fees, depending on the model and how many retrieved passages you send with each question. The cost that decides it is your time: a first version takes a developer roughly 11 to 21 hours by our estimate, and someone has to keep the content and the code current after launch.

Can I use OpenAI's Assistants API or Agent Builder for a website chatbot?

Not for new work. OpenAI's deprecations page lists the Assistants API as shut down on 26 August 2026 (replaced by the Responses API) and Agent Builder with a shutdown date of 30 November 2026. ChatKit, OpenAI's embeddable chat UI, is still available, but you connect it to your own server.

Does OpenAI file search read my website by URL?

No. File search searches files you upload to a vector store, such as .html, .pdf, .md or .txt files. Getting your pages there is your job: fetch each page, strip the menus and footers, upload the text, and upload it again when the page changes.

How do I stop a public chatbot from running up my OpenAI bill?

Set a hard spend limit on the OpenAI project that serves the bot, and add per-visitor rate limits on your own endpoint. A hard limit makes OpenAI return a 429 error once it's reached, so the bot stops answering until the next month or until you raise it. Cap the message length too.