We design systems to be model-agnostic. The model call sits behind one internal interface, prompts live in version control, and the evaluation set decides which model wins. That lets you move between providers when prices or quality change without rewriting the application. Expect some prompt tuning for the new model, and a full re-index of your documents if you change the embedding model. Production calls are pinned to a dated model version, and providers retire versions on published schedules, so each upgrade is a planned change tested against the evaluation set, not a surprise.
Hosted models from providers such as OpenAI, Anthropic, Google and Mistral can be used, as can open-weight models run in your own cloud. The same models are also offered through cloud platforms such as Amazon Bedrock, Microsoft Azure and Google Cloud Vertex AI, which can matter when you need a specific hosting region. Check that the exact model you want is available in the region you need. Agents reach your systems through direct function calls or the Model Context Protocol (MCP), an open standard for connecting models to tools. Either way, each tool gets its own permissions and tests, and third-party MCP servers are reviewed like any other dependency. Orchestration and retrieval libraries such as LangChain and LlamaIndex can be used where they save time, and skipped where plain code is clearer. The right choice depends on your data rules, latency needs and run-cost target, and it should be made with evaluation scores, not brand preference.
Hosted API or self-hosted model: which fits
A hosted API is the faster start: no servers to run, the strongest models, and you pay per token. A self-hosted open-weight model fits when data must stay inside your own cloud, when volume is high and steady enough that fixed hosting beats per-token billing, or when latency must be tightly controlled. It also adds work: GPUs, upgrades, monitoring and security patching land on someone. Open-weight models may trail the best hosted models on hard reasoning tasks. Test both on your evaluation set before deciding.
Where your data goes
Your prompts and documents are processed by whichever model provider the system calls, in the regions that provider offers. Terms differ by provider and by plan. For example, OpenAI states that it does not use business data, including API data, for training by default, and that, except for certain endpoints, API inputs and outputs may be retained for up to 30 days to provide the services and identify abuse, with zero data retention available on request for eligible endpoints and qualifying use cases (OpenAI, 2026). Consumer chat apps are covered by different terms.
For each project we check the chosen provider's training, retention and region terms and write the settings into the project documents. If your data includes personal data under GDPR or UK GDPR, or must stay in the UAE or Saudi Arabia, settle the provider and hosting region with your counsel during discovery. For EU use, the European Commission states that the AI Act became applicable on 2 August 2026, with Annex III high-risk rules from 2 December 2027 (European Commission, 2026); your counsel decides which category applies. The repositories that hold the code and the cloud accounts it runs in are created under your name from the first commit. We recommend that the model provider account and its API keys are opened in your name too, so keys, usage and logs sit under your control. Our security and code ownership terms explain the rest.
In-house, outsourced or hybrid
Hiring in-house gives you control and domain memory, but AI engineers are slow to recruit and one person rarely covers evaluation, data pipelines and backend work. Outsourcing, including to an offshore team, gets a full team running sooner. The cost is that you must manage who owns evaluation, data access and run cost. A hybrid works well: an outside team builds, your people own the success target and the evaluation set. Whichever you pick, require that you keep the code, prompts, evaluation data and cloud accounts if the vendor leaves. Our comparison of agencies, freelancers and in-house teams covers the wider trade-offs. Role titles matter when you compare quotes: an AI engineer builds the application around models. An ML engineer trains and tunes models, and a data scientist analyzes data and builds predictive models.
How to judge whether an AI project will pay back
Pick a workflow with a countable volume, measure the minutes each task takes today, and compare that with the run cost per task from the formula above. Agree the discovery and prototype as a fixed scope, then consider time and materials for tuning; see fixed price versus time and materials.