Skip to content
Giminger ConsultingDE

Compare model APIs, local models and open weights

A model API transfers part of operations to a provider. Weights can enable self-hosting. Assess license permissions, quality and operations separately.

Lessons in this path
  1. State the requirements before choosing a model
  2. Compare model APIs, local models and open weights
  3. Run a fair model comparison

How to do it

  1. An existing application may be enough for a writing test. APIs can help when integrating a workflow. Check data processing terms and operating requirements for the specific product and account.
  2. Open weights mean that model weights are available. Review the model card and license for use, modification and distribution. The Open Source Initiative’s definition includes broader freedoms and access to a preferred form for modification.
  3. Compare cost per accepted result. APIs bring request costs and review work. Self-hosting also requires hardware, available capacity, maintenance and handling outages. Measure quality and response times on the same task set.

Apply the method · AI for mid-sized businesses

A mid-sized company compares its CRM’s AI feature with an integration that drafts structured order notes.

Use examples from two teams. Check required fields, review ownership and exception handling. Measure the maintenance work for each choice.

Apply this in your organization

Test handoff to ERP or CRM separately from model output. Good generation cannot make up for missing approvals or wrong fields.

Which deployment options lie between “chat window” and “own server”?

The choice is rarely binary. Between a browser chat tool and a self-operated model there are several tiers that differ in data path, effort and control.

Deployment options at a glance
TierExamples (category)Your effortControl over data
Finished toolChat assistants, AI features in office or CRM softwareLowPer contract and account settings
Vendor model APIDirect APIs of model developersIntegration and testingPer contract, data leaves your system
Model via cloud platformModel catalogues of major cloud providers in a chosen regionIntegration, cloud administrationRegion and contract of your cloud account
Rented hardware with open modelGPU server at a host, runtime such as vLLMOperations, updates, securityHigh, depending on the host
Own hardwareServers in your own data centre, local machinesHigh, including procurementFull

For solo professionals and start-ups, a model API with a clean contract is usually the best starting point. Self-hosting typically pays off only with high, steady load or strict data-path requirements.

How to calculate cost up to an accepted result

Prices per token (the text units a model splits text into) say little until you know how many attempts and corrections a usable result costs. Calculate in these steps:

  1. Measure the average input and output length per case in your test.
  2. Count how often a case had to be retried before the result was accepted.
  3. Multiply by your expected monthly volume and the vendor's current list price.
  4. Add your staff's review and correction time, valued at an internal hourly rate.
  5. For self-hosting: hardware or rent, power, maintenance, on-call and updates, divided by actual rather than theoretical utilisation.

Going deeper: lock-in, switching costs and hybrid architectures

Many runtimes and platforms offer an interface in the style of the OpenAI API. That lowers switching costs because application code stays the same and only the endpoint and model name change. Still check whether features such as structured outputs, tool calling (the model triggering defined functions) or long contexts behave the same with every provider. Differences often only show up in the test set.

In larger organisations, an intermediary layer (often called a gateway) between applications and models works well. It handles access keys, budget limits, logging and routing, for example sending confidential cases to a self-hosted model and uncritical ones to an external API. For a start-up this is often premature; a single configuration file with model name and endpoint is enough as long as it is maintained centrally. For every size: model versions change and providers retire models. Pin versions where possible and rerun the test set on every change.

On the term “open”: many models are “open weight”, meaning the weights can be downloaded, but the licence may restrict use, user numbers or purpose. Read the licence of the specific version, not the press release.

Example: a start-up compares two options

A fictional start-up summarises customer calls, around 2,000 a month. Option A is an external model API, option B an open model on a rented GPU server. In a 40-case test set the team accepts 37 summaries from A without correction and 31 from B.

For B, the calculation includes not just server rent but also a developer's time for setup, updates and incidents, plus the extra correction time for weaker cases. Result: at current volume, A is cheaper per accepted result. The team records at which volume and under which data protection requirements it will re-examine B, and notes that threshold in the decision log.

Common mistakes

  • Dividing hardware cost by maximum rather than actual utilisation. A server idle overnight still costs money.
  • Using a personal chat-tool account for business. Terms and data use often differ from business accounts.
  • Assuming local models are automatically privacy-compliant. Local systems also need access control, deletion rules and logging policies.
  • Not planning for a switch. If a provider retires a model, there is no basis for choosing a replacement without a test set.

Frequently asked questions

Is a model API hosted in the EU automatically GDPR-compliant?

No. Location is one factor, along with a data processing agreement, purpose, legal basis, data minimisation and retention periods. Review your case with your data protection adviser; this is not legal advice.

Can I start small with an API and switch later?

Yes, if you encapsulate the model call in one place in your code and maintain a test set. A switch then becomes a configuration change plus a test run rather than a rebuild.

Try it yourself

Compare your existing tool, a hosted API and a self-managed model. Record quality, data path, cost assumptions and the responsible operator for each.

Check your result

Does your choice still make sense once approval, maintenance and outages are included?

Official documentation and sources

Practical guides and references