Skip to content

Lesson 5 ยท Getting Started

The GPT and Claude Model Families

Meet the GPT models behind OpenAI's API and the Claude model family: tiers, context windows, API prices as of December 2026 and how to pick a starting model.

The previous lesson explained families and model sizes in general. Here you apply those ideas to the models behind two well-known assistants: OpenAI's GPT models, used in ChatGPT and the OpenAI API, and Anthropic's Claude models.

The models in this lesson are hosted services with closed weights: you send requests to them and do not download the model files. This tutorial is independent of both vendors.

What a family is

A family is a set of related models offered at different points of capability, speed and price. You usually pick a tier, then check quality on your own task.

As of December 2026, the vendors' API documentation gives the following. Prices are US dollars per million tokens, shown as input / output.

OpenAI model API ID Price Context window Max output
GPT-6.2 Astra gpt-6.2-astra 8 / 40 1.05M 128K
GPT-6.2 Sol gpt-6.2-sol 2 / 10 1.05M 128K
GPT-6.1 Terra gpt-6.1-terra 1 / 5 1.05M 128K
GPT-6 Luna gpt-6-luna 0.10 / 0.50 1.05M 128K
Claude model API ID Price Context window
Claude Fable 5.2 claude-fable-5-2 8 / 40 1M
Claude Opus 5.5 claude-opus-5-5 4 / 20 1M
Claude Sonnet 5.5 claude-sonnet-5-5 2 / 10 1M
Claude Haiku 5.5 claude-haiku-5-5 0.10 / 0.50 up to 100K prompt tokens; 0.50 / 2.50 beyond 1M

These are headline figures. Caching, batch processing, prompt length, regions, service tiers and tools can change a bill. Both vendors offer other models that are not in these tables, so read the current model and pricing pages.

OpenAI presents Astra as its most capable option among these and Luna as an efficient one for high volume. Anthropic calls Fable 5.2 its most capable widely released model. Those are each vendor's descriptions of its own lineup. They are not a comparison between the two companies.

Do not match rows across the two tables as if they were equals. Two models with the same price can differ in quality, speed and token use on your task.

What you should not assume

You can read prices, limits and documented features. For closed models, do not assume that you know the parameter count, the full training data or the exact architecture unless the developer has published it. Lessons in this tutorial explain general transformer techniques. They are not claims about how a particular GPT or Claude model is built. Rumored specifications are not facts.

IDs, aliases and retirement

In code, you name a model by its ID. Some providers also offer aliases that can point to newer versions over time, which is convenient but means behavior can change without a code change. The Claude IDs in the table are used as written, without a date suffix. For any provider:

  • Keep the model ID in configuration, not scattered through code.
  • Log the model name that each response reports.
  • Watch deprecation notices, because models are retired.
  • Rerun your evaluation harness before changing an ID.

The apps are a separate matter. ChatGPT and Claude offer their own pickers and modes, which depend on plan and may not match these API lists.

Compare cost with token counts

Price per token is only part of the calculation. You also need to know how many tokens each model uses, and whether the answer is good enough. Tokenizers differ, so the same text can count differently.

Python List price for a monthly workload

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Some rows come out equal only because their list prices and the assumed token counts are equal. Measured counts will differ. Output tokens can include reasoning that you do not see but still pay for, so use the usage numbers from real responses.

Picking a starting model

  1. Write down the task, a quality bar, a delay limit and a budget.
  2. Rule out models that lack something you need, such as an input type or a region.
  3. Start with a mid-priced model, or the one the vendor suggests for your kind of task.
  4. If it passes easily, try a cheaper tier. If it fails, try more reasoning effort or a stronger tier.
  5. Compare cost per accepted result, not only cost per request.
Python Cost per accepted result with invented scores

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

In this invented case the cheapest call is not the cheapest accepted result. This sum assumes you can detect failures and retry them. It also ignores the cost of review and the harm a wrong answer might do, which can matter more than tokens. A tier that fails 60 percent of the time may be unusable at any price.

One application, several tiers

You do not have to use one model for everything. A system can send easy, high-volume steps to a smaller tier and hard steps to a larger one. This is often called routing. It adds a new thing to test: the rule that decides which request goes where. Measure the whole system, including mistakes made by the router.

Check your understanding

Quick check ยท 3 questions

of 3 answered You scored / 3 ยท perfect!

  1. 1. Two models from different vendors have the same list price. What does that tell you?

    Price says nothing about performance on your task.
  2. 2. Where should a model ID live in an application?

    Configuration makes upgrades and retirements manageable.
  3. 3. Which statement about closed models is justified?

    Only documented facts should be treated as known.

Summary

  • Each vendor offers a tiered family; check IDs, limits and prices on official pages.
  • The figures here are a December 2026 snapshot.
  • Do not treat similarly priced models as equals, or guess at undisclosed internals.
  • Choose by measured cost per accepted result and the risk of failures.

Next: Tokenization Basics

Your progress is saved in this browser. No account needed.