You have a small app idea, perhaps a form that sorts incoming messages, and a provider’s model catalog listing dozens of names; every other provider has one too. You need a way to pick a model you can rely on and afford.
There is no single right model, and no ranking will choose for you. Through an API, the choice runs in five steps: write down your hard limits, use each provider’s model page to shortlist two or three models from at least two providers, build a small test set from requests your app will really send, run every candidate on it with identical settings, then pin the exact model ID you chose and set a date to check it again.
An API is the published set of rules that lets your app send input to a provider’s model and get its output back (see what an AI API is); if you came from connecting an API to a no-code tool, the same method applies to that tool’s model setting. The general questions behind any model choice, and how to design a fair test, are in how to choose the right AI model for a task.
TL;DR
- You’re choosing three things: a model, an exact model ID (a fixed version or a name that can move), and a route, either the provider’s own API or a cloud platform [1, 2, 3].
- Read the model page before testing. Input types, context window, features, rate-limit tiers and lifecycle dates can rule a model out before you spend anything [4, 5].
- Test on your own examples, not leaderboards. Give every candidate the same inputs and settings, and run each example more than once, since output can vary [6].
- Pin the ID and note its retirement date. Models retire on published schedules; after that, requests either fail or, on some services such as Google’s Gemini API, are routed to a different model [7, 8, 9].
- Re-check on a schedule. New releases, retirements and even serving changes behind a fixed ID can change results [10, 1].
What You’re Choosing When You Pick a Model Through an API
A model is the AI system that turns your app’s input into output (see what an AI model is). Through an API, though, each request names a model ID, a short text string such as gpt-5.4-mini-2026-03-17 that tells the provider which model and version should answer [11].
There are two kinds of ID. A snapshot, or pinned ID, refers to one fixed version; OpenAI says snapshots let you lock in a version so that performance and behavior remain consistent [11]. An alias is a convenience name the provider can point at a newer version later. It saves you edits at every release, but the model answering your requests can then change without you touching anything.
Pinned IDs, Aliases and Snapshots
Here is what four providers’ documentation said on Nov 22, 2026 [11, 1, 2, 8]:
| Provider | Names that can move to a newer version | Names that stay fixed |
|---|---|---|
| OpenAI | Model pages list “all available snapshots and aliases” and a default snapshot per undated ID, but don’t say when an undated ID changes [11] | Snapshots, some dated in the ID, such as gpt-5.4-mini-2026-03-17 [11] |
| Anthropic | For models before its 4.6 generation, dateless aliases point to the latest dated snapshot [1] | From the 4.6 generation, dateless IDs such as claude-sonnet-4-6 are themselves fixed snapshots [1] |
| Google (Gemini API) | “Latest” aliases such as gemini-flash-latest switch with each new release, with two weeks’ email notice [2] | Stable model names, which Google says usually don’t change; deprecated stable names can be rerouted to a newer model [2, 9] |
| Mistral | An ID in the form model-name-latest follows the newest version across generations; model-name-major follows the newest minor version [8] | Full model-name-major-minor IDs, for General Availability models; Public Preview models use the same format but allow silent updates [8] |
Providers lean toward pinning: Google says most production apps should use a specific stable model, and Mistral warns that an alias “may expose you to silent updates in model behavior and pricing” [2, 8].
Even a pinned ID doesn’t freeze every answer. Anthropic notes that changes to the serving systems around a model can occasionally cause minor behavior differences while the ID and weights stay the same [1].
Direct API or Cloud Platform
OpenAI’s GPT-6 Luna page lists a separate Amazon Bedrock ID (openai.gpt-6-luna) and a private preview on Google Cloud [4]. Anthropic publishes IDs for its models on Amazon Bedrock, Google Cloud and Microsoft Foundry [12].
The route changes more than the ID. Anthropic says its retirement dates cover platforms it operates, while Amazon Bedrock and the Google-managed version on Google Cloud set their own schedules [7]. Amazon says only the dates on Bedrock’s own model card apply there [3]. Google Cloud’s AI platform, launched in April 2026 as Gemini Enterprise Agent Platform and described by Google as the evolution of Vertex AI, lists its own retirement dates and notes that the Gemini API is a separate offering under its own terms [13, 5]. Google Cloud, for instance, lists gemini-3.5-flash as generally available until at least May 19, 2027, while Google’s Gemini API page says requests to that same name are now automatically routed to gemini-3.6-flash [5, 9].
Read the Model Page Before You Test
Major providers publish a page for each model, sometimes called a model card; OpenAI’s catalog links one for every model plus a list of deprecated ones [14]. A few minutes there can remove candidates that could never work.
What to look for, as BuildAIQ editorial guidance (an endpoint is the specific web address your app sends requests to; tool calling, also called function calling, lets a model ask your app to run a function, such as looking up an order):
| What to check | The question to answer | Go deeper |
|---|---|---|
| Input and output types | Does it accept what users send (text, images, PDFs, audio) and return what your app needs? | Choosing a model for a task |
| Context window and maximum output | Will your longest realistic request, plus instructions, fit with room to spare? | How AI Works guide on context windows |
| Structured output and tool calling | Is it supported on the exact endpoint you will call? | Structured output explained |
| Cost per request | What will a typical request cost, given tokens in and out? | How API pricing works |
| Rate limits | Will your usage tier allow the traffic you expect? | What rate limits are |
| Data terms and region | What happens to your inputs, and where can they be processed? | Section below |
| Lifecycle | How long will this ID be served, and how much notice will you get? | Section below |
| Knowledge cutoff | Does the task depend on facts newer than the model’s training? | Checking an AI answer |
Inputs, Context Window and Output Limits
A token is the unit providers use to count the text going into and out of a model; the How AI Works guide on tokens explains it. The context window is the most tokens a model can handle in one request, counting your instructions, the user’s input and the answer.
As of late November 2026, OpenAI’s GPT-6 Luna page lists text and image input, text output, a 1,050,000-token context window, a 922,000-token input limit and 128,000 maximum output tokens [4]. Google Cloud’s card for Gemini 3.5 Flash, on that platform, lists text input and output, image, audio and video as input only, a 1,048,576-token context window and 65,536 maximum output tokens [5]. Anthropic says all its current models accept text and images and return text [12].
Model pages also give a knowledge cutoff: May 18, 2026 for GPT-6 Luna, and June 2026 for Anthropic’s current models [4, 12]. For recent events, supply the information in the request.
Structured Output and Tool Support
Structured output means the model returns data your app can read reliably, usually JSON (a plain-text format of named fields and values) matching a schema (a description of the fields your app expects). A tagging app wants billing, not a paragraph about billing.
Support can depend on the model and on the endpoint. OpenAI’s GPT-6 Luna page lists structured outputs and function calling as supported, but says its Chat Completions endpoint supports function calling for that model only with reasoning effort set to none [4]. As of Nov 22, 2026, Anthropic says structured outputs work on every Claude model but can’t be combined with its citations feature or with prefilling a response [15].
Cost per Request and Speed
API use is billed by tokens, or other measures for some model types, at rates that differ by model, and conditions can change the rate; OpenAI’s page, for example, notes higher rates for very long prompts and a premium for regional processing [4]. Rates and worked estimates are in how API pricing works.
Anthropic labels its models’ latency only relative to each other and says actual latency depends on prompt length, output length and thinking effort [12]. Anthropic adds that tuning a model’s effort setting, which trades intelligence against latency and cost, is often a better lever than switching models [16]. Measure speed yourself, with settings recorded.
Rate Limits
A rate limit caps how many requests or tokens you can use in a period. OpenAI’s model pages list limits per model by usage tier (a level assigned to your account), and OpenAI says your tier rises automatically as you send more requests and spend more [4]. Google says Gemini API preview models might have more restrictive rate limits, and experimental models typically aren’t suitable for production [2]. Details are in what rate limits are.
Data Terms and Region
Data handling depends on provider, product and plan, so read the API terms for the exact service, not the consumer app’s. On the providers’ pages in late November 2026 [17, 18, 8]:
- OpenAI says data sent to its API has not been used to train its models since March 1, 2023, unless you opt in [17]. It keeps abuse-monitoring logs, which may include prompts and responses, for up to 30 days by default unless the law or protection from harm requires longer; eligible customers can apply for Zero Data Retention, which keeps their content out of those logs and needs OpenAI’s prior approval [17].
- Under Google’s Gemini API terms, in force since March 23, 2026, Google uses content sent to unpaid services to improve its products, human reviewers may read it, and users are told to keep anything sensitive, confidential or personal off those services; for users based in the UK, Switzerland or the European Economic Area, the paid-service data terms cover all services. On paid services, meaning API access through a Cloud project with an active billing account, Google says it doesn’t use prompts or responses to improve its products but logs them for a limited period to detect policy violations [18].
- Mistral says its Public Preview and Labs models support neither its data-collection opt-out nor Zero Data Retention (Mistral’s no-storage option) [8].
Region is a separate question. OpenAI offers data residency as a per-project setting for eligible organizations, arranged through its sales team, and the region can’t be changed after the project is created [19]. Mistral’s EU and US regional endpoints serve only models hosted in that region, and some features aren’t available there [20]. Google Cloud’s model cards list the regions where each model runs [5].
Lifecycle and Retirement Dates
Hosted models retire. Anthropic says requests to retired models fail, and Mistral says requests to retired IDs return a 404 error [7, 8]. Google’s Gemini API sometimes reroutes instead: on Nov 22, 2026, requests to gemini-3.5-flash and gemini-3.7-flash were already answered by newer models, with two more names following on Dec 1, while other old models, such as gemini-2.0-flash, were shut down [9]. If a retirement breaks your app, see what to do when an API stops working.
Note each candidate’s notice period:
- OpenAI gives at least six months’ notice for generally available models and at least three months for specialized variants and image models, barring safety or compliance concerns; preview models may be retired with much shorter notice, such as two weeks [21].
- Anthropic gives at least 60 days’ notice for publicly released models and lists a “not sooner than” retirement date for each current one [7, 12].
- Mistral gives six months for generally available models and one month for preview, Labs and third-party models it serves [8].
- Google Cloud sorts generally available models into two groups: some are available for at least 12 months after release, while others, including its newest Gemini 4 models on Nov 22, 2026, stay active only until a replacement arrives and a retirement date is posted, with at least 45 days to migrate. Listed retirement dates may be extended but won’t be moved earlier [22].
OpenAI’s deprecations page, as of Nov 22, 2026, lists gpt-5-mini for shutdown on December 11, 2026 [21]. Google says that from December 1, 2026, Gemini API requests to gemini-2.5-flash will be routed automatically to gemini-3.5-flash-lite and billed at that model’s rates, so an old name keeps working while a different model answers [2, 9].
A Five-Step Way to Choose
These steps are BuildAIQ editorial guidance, drawing on providers’ advice and NIST’s principle that AI performance should be shown under conditions similar to real use [23].
- Write down the hard limits in API terms. Note input type, output format, data rules, any region requirement, a cost ceiling per request, an acceptable wait and the route you’ll use (the provider’s API or a cloud platform).
- Shortlist two or three models from at least two providers. Drop anything that fails a hard limit. Vendor descriptions can point to candidates (Anthropic describes Claude Haiku 5.5 as built for high-volume tasks such as classification and extraction; OpenAI suggests GPT-6 Luna for small, repeatable tasks; Google calls Gemini 3.5 Flash-Lite its “fastest, most cost-effective 3.5 model for high-throughput execution”), but that is each vendor’s positioning, not independent evidence [12, 10, 2]. These names are examples, not recommendations.
- Build a small test set from real requests. Use inputs your app will actually send, in the form it will send them; the general guide to choosing a model for a task covers designing a fair test.
- Run every candidate on the same set with the same settings, and log what the API returns. Record the exact model ID, endpoint and effort setting, run each example more than once, since OpenAI notes models can give different output for the same input [6], and log answers, response times, token usage counts and failed requests. To send requests, start with making your first API request; to keep test runs cheap, see avoiding unexpected API charges.
- Decide, pin and re-check. Choose the model that clears your criteria at a cost you accept, pin its exact ID, and record the test date and the retirement date. OpenAI suggests revisiting your settings whenever a new model comes out, and comparing outputs, latency and cost on representative requests before moving to a replacement [10, 21].
One illustrative test case in JSON, a record of an input and the answer you expect rather than any provider’s request format:
{"ticket": "I was charged twice for my plan this month", "expected_tag": "billing"}
For each case, the model should return one tag from your list, which your app or a short script compares with expected_tag.
A Worked Method: Tagging Help-Desk Tickets
Imagine a hypothetical support team wanting each ticket tagged as billing, login, bug report or other, with one tag per ticket in a fixed format, no customer data on any service that trains on inputs, and a reply within a few seconds.
Its shortlist has three models from three different providers, each checked on its model page for structured output support, data terms on the plan the team would use, and a retirement date at least a year away. The test set is 20 past tickets with personal details removed, including a few hard ones (two issues in one message, another language, a one-word complaint), each with the correct tag written down first.
Each model gets identical instructions, pinned IDs and settings, and runs every ticket three times. The team logs matching tags, tickets that get different tags across runs, broken formats, response times and token counts, picks the model that meets the bar at the lowest acceptable cost, and keeps the 20 tickets to rerun after any model change. No results are given; they depend on the tickets and models.
What We Know and What We Don’t
What We Know
Providers document each model’s limits, features and lifecycle dates, with notice periods that vary by provider and release stage [4, 21, 7, 22, 8].
What We Don’t Know
Independent evidence on how well a small test set predicts performance with real users is thin; most guidance comes from providers and general frameworks such as NIST’s [23]. Your test describes one model version on one date, which is why the re-check step matters.
Practical Takeaways
- Write down your hard limits, then read each candidate’s model page and data terms for the exact route you’ll use.
- Test every candidate on the same small set of your own examples (the worked method above uses 20), with fixed settings and repeated runs.
- Pin the exact model ID, and record the test date and retirement date.
- Rerun your test set when a provider announces a new model, a deprecation, a reroute or an alias change.
Sources
- Model IDs and versioning. Anthropic, accessed 2026-11-22.
- Models – Gemini API. Google, accessed 2026-11-22.
- Model lifecycle – Amazon Bedrock. Amazon Web Services, accessed 2026-11-22.
- GPT-6 Luna. OpenAI, accessed 2026-11-22.
- Gemini 3.5 Flash. Google Cloud, 2026-11-20, accessed 2026-11-22.
- Evaluation best practices. OpenAI, accessed 2026-11-22.
- Model deprecations. Anthropic, accessed 2026-11-22.
- Model lifecycle policy. Mistral AI, accessed 2026-11-22.
- Gemini deprecations. Google, accessed 2026-11-22.
- Model selection. OpenAI, accessed 2026-11-22.
- GPT-5.4 mini. OpenAI, accessed 2026-11-22.
- Models overview. Anthropic, accessed 2026-11-22.
- Introducing Gemini Enterprise Agent Platform. Google Cloud, 2026-04-22, accessed 2026-11-22.
- Models. OpenAI, accessed 2026-11-22.
- Structured outputs. Anthropic, accessed 2026-11-22.
- Choosing the right model. Anthropic, accessed 2026-11-22.
- Data controls in the OpenAI platform. OpenAI, accessed 2026-11-22.
- Gemini API Additional Terms of Service. Google, 2026-03-23, accessed 2026-11-22.
- Data residency. OpenAI, accessed 2026-11-22.
- Regional inference. Mistral AI, accessed 2026-11-22.
- Deprecations. OpenAI, accessed 2026-11-22.
- Model versions and lifecycle. Google Cloud, 2026-11-20, accessed 2026-11-22.
- Artificial Intelligence Risk Management Framework (AI RMF 1.0), NIST AI 100-1. National Institute of Standards and Technology, 2023-01, accessed 2026-11-22.
