Using the OpenAI API in your own software: costs, data and EU options

By Sina Esfahani, OmniTechs · Published 30 November 2026

The OpenAI API lets your own software send text, images or audio to OpenAI's models and get an answer back. You pay per token, a small piece of text, separately from any ChatGPT subscription. In the worked example below, drafting replies to 3,000 customer emails a month costs between about 1 and 84 US dollars, depending on the model. OpenAI does not train its models on API data by default, but keeps abuse-monitoring logs for up to 30 days. Processing in Europe needs OpenAI's approval and costs 10% more for recent models.

First step, no account needed: write down how many requests your software will make per month and how long a typical input and answer are. Those numbers decide the model and the bill. Prices and terms here were read on 30 November 2026 on the providers' own pages.

Set it up in this order:

  1. Estimate requests per month and tokens per request, input and output separately.

  2. Create an account on OpenAI's API Platform and a separate project for this application.

  3. Buy prepaid credit (minimum 5 dollars) and decide on auto-reload, which is on by default.

  4. Set a hard monthly spend limit on the project.

  5. Create a project API key and keep it on your server, never in a browser or app.

  6. Switch off response storage where you do not need it, and send only the data the task needs.

  7. Before customer data goes in, settle the processing agreement, transfers and the need for a DPIA.

API or ChatGPT subscription: what is the difference?

ChatGPT is an app in which people chat. The API is a connection for software: your system calls a model for each email, form or document, without anyone typing.

ChatGPT and the OpenAI API compared

OpenAI help centre and API documentation, read 30 November 2026. The two are billed separately.
PointChatGPTOpenAI API
Who uses itPeople, in a chat appYour own software
How you payFixed price per user per monthPer token, from prepaid credit
Training on your dataFree, Plus and Pro: yes, unless you opt out; Business: not by defaultNot by default

A subscription does not pay for API use, with one exception: eligible ChatGPT Pro and Business subscriptions can claim monthly API credits. Business gets 20 dollars per paid Standard seat, capped at 500 dollars per workspace per month; Pro gets 100 to 500 dollars by tier. Unused credits expire at the end of the billing cycle.

If your team will only chat, you are choosing a chat plan instead: see ChatGPT, Claude or a European AI assistant.

How access works: account, key, credit and limits

  1. Project. On the API Platform, give each application its own project, so usage, members and limits stay separate.

  2. Credit. New accounts are prepaid. Under Billing, choose Add payment details and buy credit: minimum 5 dollars, default 10. Auto-reload is on by default; switch it off or set a threshold and monthly reload limit. Purchased credits expire after one year and are generally non-refundable.

  3. Key. Create a project API key. For a live application, OpenAI advises a service account with its own key rather than a developer's personal key.

Your total purchases set your usage tier, which caps monthly use and requests per minute.

OpenAI usage tiers

OpenAI rate limit guide, read 30 November 2026. Upgrades are automatic; see Settings > Organization > Limits.
TierWhen you reach itApproved usage per month
FreeAccount in a supported country100 dollars
Build5 dollars in total purchases500 dollars
Launch100 dollars in total purchases5,000 dollars
Grow500 dollars in total purchases200,000 dollars

Set a hard spend limit. In Project settings > Limits (or Organization limits), under Spend choose Edit spend limit, enter the Monthly spend limit, turn on Enforce a hard limit and Save. A spend alert only notifies; a hard limit stops requests.

At a limit, or with no credit left, the API returns error 429; let your software show a fallback or pass the task to a person. Neither the limit nor the balance stops traffic instantly, so spend can slightly overshoot.

What does the OpenAI API cost?

A token is a character, part of a word or a word. OpenAI's rule of thumb, for English: 1 token is about 4 characters. It gives no figure for other languages, so measure your own texts in OpenAI's Tokenizer or with the free input-token counting endpoint.

Output costs five times as much as input below, and hidden reasoning tokens are billed as output.

Standard prices per million tokens

OpenAI pricing and models pages, read 30 November 2026. Standard rates for up to 272,000 input tokens per request; longer inputs cost more.
ModelInputOutputOpenAI's description
GPT-6.2 Astra8.00 dollars40.00 dollarsMost capable, for the hardest projects
GPT-6.2 Sol2.00 dollars10.00 dollarsGo-to model for everyday work
GPT-6.1 Terra1.00 dollars5.00 dollarsFast and efficient, clear natural writing
GPT-6 Luna0.10 dollars0.50 dollarsMost efficient, for high-volume tasks

What moves the price:

  • Batch. Requests that may take up to 24 hours cost 50% less.

  • Caching. A repeated opening of at least 1,024 identical tokens can be cached. Reads cost a twentieth of the input price (a tenth on GPT-6 Luna); writing costs 1.25 times it for a 30-minute cache.

  • Europe. Regional endpoints cost 10% more for models released on or after 5 March 2026.

  • Price changes take effect 14 days after OpenAI posts them, under its services agreement.

Worked example: replies to 3,000 customer emails a month

Hypothetical example: a webshop's software reads each email with the order details and drafts a reply for staff to check. Per email: 1,500 input tokens (500 of fixed instructions, 1,000 of email and order) and 400 output tokens. Per month that makes 4.5 million input and 1.2 million output tokens.

Monthly cost of the example per model

Hypothetical, at list prices of 30 November 2026. Excludes VAT, exchange rate and reasoning tokens; the 500-token instruction is below the caching minimum. Replace volume and tokens with your own.
ModelInputOutputPer month
GPT-6.2 Astra4.5 × 8.00 = 36.001.2 × 40.00 = 48.0084.00 dollars
GPT-6.2 Sol4.5 × 2.00 = 9.001.2 × 10.00 = 12.0021.00 dollars
GPT-6.1 Terra4.5 × 1.00 = 4.501.2 × 5.00 = 6.0010.50 dollars
GPT-6 Luna4.5 × 0.10 = 0.451.2 × 0.50 = 0.601.05 dollars
Mistral Large 44.5 × 0.70 = 3.151.2 × 2.10 = 2.525.67 dollars

What changes the outcome:

  • More output. If 20 test calls average 800 output tokens, GPT-6.2 Sol costs 9.00 + 24.00 = 33.00 dollars.

  • Overnight batch. If drafts may wait until morning, GPT-6.2 Sol costs 21.00 × 0.5 = 10.50 dollars.

  • Processing in Europe. GPT-6.2 Sol costs 21.00 × 1.10 = 23.10 dollars. This is an inference: OpenAI states the uplift for Terra and Luna, and Sol has a 1 June 2026 knowledge cut-off, so it was released after 5 March.

  • Chats with history. Every earlier turn is billed again as input with each new answer, so a ten-turn chat costs far more than ten single questions.

A wrong reply costs more than the gap between 1 and 21 dollars. Run 20 to 50 real emails through two or three models and pick the cheapest whose drafts staff would send with few edits.

What happens to your data, and can it stay in Europe?

  • Training. OpenAI has not trained its models on API data since 1 March 2023, unless you opt in. It may use some self-serve API content to train safety classifiers.

  • Abuse-monitoring logs. Prompts and responses can be kept for up to 30 days, longer if the law requires.

  • Stored responses. The Responses API keeps responses for at least 30 days by default; set the store parameter to false if you will not retrieve them. Uploaded files stay until you delete them.

  • Zero Data Retention, which keeps your content out of those logs, needs approval from OpenAI's sales team.

OpenAI's Europe region (EEA and Switzerland, via eu.api.openai.com) keeps storage and processing in the region for supported models, including the GPT-6 family. You pick it when creating a project, under Data and inference residency, and cannot change it later. Sales must first make your organisation eligible. Account, billing and usage metadata fall outside it.

EEA customers contract with OpenAI Ireland Ltd; transfers outside the EEA rely on standard contractual clauses (SCCs) or an adequacy decision, under OpenAI's data processing addendum.

European alternatives: Mistral and Azure OpenAI

Three routes with processing in Europe

OpenAI, Mistral and Microsoft documentation, read 30 November 2026.
RouteProcessingTraining on your dataStricter retentionBilling
OpenAI API, Europe regionEEA and SwitzerlandNot by defaultZero Data Retention after approvalPrepaid credit, plus 10%
Mistral APIEEA by defaultFree mode: allowed; opt-out availableZero Data Retention on requestPay-as-you-go
Azure OpenAI, EU Data ZoneEU member statesNot used to trainModified abuse monitoring on applicationAzure subscription

Mistral offers its own models through Mistral Studio. Data is hosted in the EEA by default; some features send it temporarily to subprocessors outside the EU under SCCs. In Free mode Mistral may train on your data: in the Admin panel, open Privacy and turn off the toggle under Data usage for improving our services. Zero Data Retention covers only stateless pay-as-you-go API calls, on a reasoned request. Mistral Large 4, its suggestion for most tasks, costs 0.70 dollars input and 2.10 output per million tokens on its model page; the lower example on the pricing page matches Large 3.

Azure OpenAI runs OpenAI models in Microsoft's cloud. Microsoft states that your prompts and outputs are not available to OpenAI and not used for training. A Data Zone deployment in an EU resource keeps processing within EU member states; a Global one can process anywhere. Microsoft calls Global Standard the cheapest start, so compare the EU price. Flagged requests may be reviewed by people; Microsoft is phasing out the opt-out from that for models released from 1 November 2026.

GDPR: what the Dutch regulator asks

General information, not legal advice. It follows EU law and the Dutch Data Protection Authority (AP); outside the Netherlands, check your own regulator.

  • Processing agreement. The API provider processes personal data for you, so a written processing agreement is mandatory and you stay responsible (AP). OpenAI's addendum is part of its services agreement; Mistral's is online; Azure falls under Microsoft's Products and Services Data Protection Addendum.

  • Transfers. The EU adequacy decision for the United States covers only organisations in the EU-US Data Privacy Framework; otherwise safeguards such as SCCs are needed (EDPB). Ask your provider which basis applies.

  • DPIA. An impact assessment is mandatory when the processing is likely to pose a high privacy risk. The AP's rule of thumb: when two or more of the nine EDPB criteria apply.

  • What may go in. The AP received breach reports after staff entered patient and customer data into AI chatbots. Record which data may be sent, and send no more than needed.

  • Customer chatbots. On 30 November 2026 the Dutch consumer authority ACM and the AP published a draft guideline with five principles: say from the first contact that it is a chatbot, make it accessible, make it give correct information, offer a person when it cannot help, and keep testing for errors, data breaches and discrimination. Comments are open until 11 January 2027.

Keep your API key safe

Anyone with your key can spend your credit. OpenAI advises:

  1. One key per person; sharing keys breaks OpenAI's terms.

  2. Never put the key in a website, browser code or mobile app; route requests through your server.

  3. Never commit it to a code repository. Use an environment variable named OPENAI_API_KEY or a key management service.

  4. Give keys an expiry date. To rotate: create the new key, update the application, test, revoke the old one.

  5. Allow only your server's IP addresses, where possible.

  6. Suspect a leak? Rotate the key at once on the API keys page.

How APIs check who is calling is explained in what is a REST API.

When you are done, and where to go next

You are ready when the project has a hard spend limit, the key lives only on your server, storage is off where not needed, the GDPR checks are done and 20 or more real test cases pass within budget. Then stop comparing models and review usage after the first month.

For health data or large-scale processing, take your data list, the provider's agreement and your DPIA to a privacy lawyer or data protection officer. Ask OpenAI's sales team about Zero Data Retention or EU processing before you build on it.

Want it built into your own system? OmniTechs builds custom software and integrations from Groningen: integrations from 1,500 euros excluding VAT, first conversation free.