Using the OpenAI API for business: projects, models and data terms

Updated · 6 min read

What the OpenAI API is and how your software uses it

The OpenAI API is the way your own software sends requests to OpenAI models. Your server sends a request containing instructions and content, the model returns a reply, and your code decides what happens next. This is different from a chat product, where a person types into a ready-made window.

Usage is billed by the amount of text and other input your software sends and receives, so cost follows volume. Keep the business logic in code you control, so that you can change the model, the prompt or the checks without rebuilding the product around them.

Projects, keys and access

Set up the structure before the first build. Projects and keys are cheap to create at the start and awkward to untangle after a launch.

  • Organisation and projects. Use one organisation for the company and a project for each product or environment, so usage, limits and keys stay separate.
  • Scoped keys. Create keys per project, name each one after its purpose, and keep it in a secrets manager. A key that can reach only one project limits the damage when it leaks.
  • Members and roles. Give engineers the access they need, and remove people who leave.
  • Budgets and usage. Set budgets or alerts where the dashboard offers them, and review usage regularly, especially in the first weeks after a launch.
  • Key hygiene. Never put a key in a browser page or a mobile app. Calls should go through your server.

Choosing a model for each task

OpenAI offers model families at different levels of capability, speed and cost, and some models are aimed at particular kinds of work, such as reasoning or image input. Model names change, so check the current models page in the API documentation before you build.

Choose by your own test results rather than by the family name. The method is the same one described in the guide on choosing a language model.

  • Route simple, high-volume steps to a smaller model, and send judgment-heavy steps to a larger one.
  • Keep the model name in configuration, so you can change it without editing the logic.
  • Record which model handled each task, so cost and quality can be traced later.

Data use terms and regional options

API traffic is covered by the business terms that apply to API use, which can differ from the terms for consumer products. Read the current data controls, retention settings and privacy terms, and confirm they meet your obligations before any personal data goes into a request.

Some organisations can choose where data is stored or processed for certain features and regions. These options change, so check the current data residency documentation and confirm in writing which region applies to your account and your chosen model.

  • Send the minimum data each task needs. Remove identifiers the model does not have to see.
  • Keep your own logs, with a retention period you set and can justify.
  • Check which features and models each data option covers, because coverage is not always the same across the product.

Availability by country, rate limits and errors

Availability differs by country, and access to some models or features can depend on your account. Check OpenAI's list of supported countries before you plan a launch, and confirm the same for any staff or customers in other regions who will use what you build. Treat access as something to confirm, not something to assume.

Rate limits cap the number of requests and tokens over a period. They depend on the model and on your account tier, and they are published in the documentation.

  • Retry with increasing delays rather than in a tight loop.
  • Queue non-urgent work such as overnight summaries, and keep customer-facing requests on their own path.
  • Cap the output length for each task, so one long reply does not hold up the queue or inflate the bill.
  • Log the model, token counts and status of each call, so a retry loop appears in your logs before it appears on the invoice.

Common mistakes, and where to check current details

Most problems come from a short list of habits. Avoid these and the API is straightforward to run.

Pricing, model names, limits, regional options and terms all change, so this guide describes how the pieces fit rather than current figures. Check the API documentation, the pricing page, the supported countries list and the data controls page, and read the date on each one.

  • One project for everything, so a test script spends the production budget.
  • Keys in front-end code or in shared chat threads.
  • Sending whole records to the model when one field is enough.
  • Building on a model name without a test, then finding that behaviour changed after an update.
  • Assuming availability is the same in every country, then launching to a team that cannot reach it.

How Hundred Seas helps

Hundred Seas is a product studio in Taipei. We build AI agents and AI CRM systems on Claude and OpenAI models, and we choose the model for each task on cost, speed, quality and where the client's data has to stay. We are a registered partner in Anthropic's Claude Partner Network and an OpenAI partner.

Work begins with a scope step of about one week at a fixed price, which ends in a written plan, a clickable prototype and a firm quote. The build then ships working software weekly over two to four weeks, and a monthly run plan keeps it running and up to date.

Questions

Do I need a developer to use the OpenAI API?
Usually yes. The API is a programming interface, so code has to send the requests, handle errors and store results. Many staff use OpenAI through ready-made chat products, and a builder can design a service on top of the API for specific tasks. Whichever route you take, name one person to own the keys, budgets and logs.
Is API usage billed the same way as a ChatGPT subscription?
No. A subscription for a chat product is a fixed fee for a person using a ready-made interface. API usage is billed by the text your software sends and receives, under separate terms. The two may have different data terms, so check both before deciding which one the team uses with customer data.
Will the OpenAI API work in every country?
Not necessarily. Availability differs by country, and OpenAI publishes a list of supported countries. Check it for the country where your organisation and your users are located. Treat access as something to confirm before launch rather than an assumption you carry into the project plan.
How do I keep an API key from leaking?
Keep keys on your server or in a secrets manager, never in browser code, mobile apps or shared documents. Use a separate key per project, rotate keys when someone leaves or a leak is suspected, and watch usage for sudden changes. If a key appears somewhere it should not, revoke it first and investigate second.
What should I do when requests start failing with rate limits?
Retry with increasing delays rather than in a tight loop, and move non-urgent work into a queue. Check the rate limits page for your model and account tier. If your usage justifies higher limits, ask through the route the documentation describes. Log each failure so you can tell a genuine traffic spike from a bug.

Have a project in mind?

Tell us what you want to build. We reply with a plan, not a sales call.

AboutUsing the OpenAI API for business: projects, models and data terms