Models, GPTs and AI products

Part 2: Models and Products

GPT family, Claude, Gemini, open models, Custom GPTs, APIs, Hugging Face.

Live · updated 26 Nov 2026, 5:11 pm~21 min read
On this page (29 sections)

Like I'm 5: There are many chefs (models) and many restaurants (products). Some chefs work only in one restaurant, some you can hire for your own kitchen. This part helps you pick the right one.

2.1 The model landscape

Topics to cover, in this order:

  1. GPT family timeline in simple words (check current versions)
  2. ChatGPT vs the OpenAI API
  3. Claude, Gemini, Llama, Mistral, DeepSeek and Qwen: the landscape
  4. Open-weight vs closed models and licences
  5. Choosing a model: quality, cost, speed, context size, privacy

2.2 GPTs and assistant products

Topics to cover, in this order:

  1. Model tiers: small and fast vs large and smart vs reasoning
  2. Custom GPTs: GPT Builder, instructions, knowledge files
  3. GPT Actions and OpenAPI schemas
  4. GPT Store and sharing
  5. Claude Projects, Artifacts and Skills; Gemini Gems and NotebookLM

2.3 Using models through APIs

Topics to cover, in this order:

  1. Chat Completions vs Responses API; messages and roles (system, user, assistant)
  2. API basics: keys, rate limits, pricing, input and output tokens, streaming
  3. Hosting options: OpenAI, Anthropic, AWS Bedrock, Azure OpenAI, Vertex AI
  4. Running models locally: Ollama, LM Studio, llama.cpp
  5. Hugging Face: Hub, Transformers, datasets, Spaces

2.4 Other AI products

Topics to cover, in this order:

  1. Embedding models and rerankers (providers and choices)
  2. Speech: Whisper, text-to-speech and realtime voice
  3. Image and video generation products
  4. AI coding tools: Copilot, Cursor, Claude Code, Codex
  5. Comparing products: which tool for which job

2.1 The model landscape — detailed notes

1. GPT family timeline and model generations

LIKE I'M 5

Think of a phone series. Each generation may improve the camera, battery or speed, but the newest phone is not automatically best for every buyer.

EXPLAINED SIMPLY

  • GPT means Generative Pre-trained Transformer. It describes a family and approach, not one fixed model.
  • Model generations can differ in reasoning, speed, context handling, modalities, tool use and cost.
  • A product name and an API model identifier may differ. Models can be renamed, retired or replaced.
  • Compare current official model cards and API documentation before choosing. Record the exact model ID and date in production.
  • Evaluate on your own prompts and expected outputs. Public leaderboards do not replace task-specific testing.

INTERVIEW LENS

Explain that model selection is capability- and workload-specific, and model names/limits must be checked against current provider documentation.

TRAPS

  • Never hard-code assumptions from an old model announcement.
  • Newer does not always mean faster or cheaper.
  • Product tiers and API availability can differ.

ONE-LINE RECAP

Treat model generations as changing capabilities; verify the exact model and benchmark your task.

2. ChatGPT vs the OpenAI API

LIKE I'M 5

ChatGPT is a ready-made restaurant. The API is the kitchen connection you use to build your own restaurant.

EXPLAINED SIMPLY

  • ChatGPT is an end-user application with a user interface, account features and product-level controls.
  • The API lets developers call models from their own applications and control prompts, tools, output handling and integration.
  • ChatGPT subscriptions and API billing are separate products. A ChatGPT plan does not automatically include API credits.
  • API use requires secure credentials, server-side integration, usage monitoring and error handling.
  • Choose ChatGPT to use the product directly. Choose the API when embedding model capability into software.

TRY IT

const response = await fetch("/api/ask", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({ question: "Explain RAG" })
});
const answer = await response.json();

The browser calls your backend. Your backend should call the model provider and keep secret keys off the client.

INTERVIEW LENS

Distinguish a hosted consumer product from a developer interface for integrating model calls into an application.

TRAPS

  • Never expose API keys in frontend JavaScript.
  • ChatGPT billing and API billing are separate.
  • API responses need validation and error handling.

ONE-LINE RECAP

ChatGPT is a finished product; the API is a building block for your product.

3. Claude, Gemini, Llama, Mistral, DeepSeek and Qwen

LIKE I'M 5

These are different toolboxes. Each company builds models with different strengths, prices and rules.

EXPLAINED SIMPLY

  • Claude is Anthropic's model family; Gemini is Google's; Llama is Meta's; Mistral is Mistral AI's; DeepSeek is DeepSeek's; Qwen is Alibaba's.
  • Families contain multiple model sizes and variants. Capabilities and availability change over time.
  • Compare coding, reasoning, multilingual quality, vision/audio support, context, latency, price, data policy and deployment options.
  • Open-weight models can be hosted by your team if licence and hardware allow. Hosted closed models reduce infrastructure work.
  • Test on a representative evaluation set. Do not select a provider based on one viral benchmark.

INTERVIEW LENS

Say you shortlist providers, run the same evaluation suite, then compare quality, total cost, latency, privacy and operational fit.

TRAPS

  • A brand is not a single model.
  • Open weights do not automatically mean unrestricted commercial use.
  • Benchmarks can be gamed or mismatched to your use case.

ONE-LINE RECAP

Compare specific model versions against your real workload, not brand names.

4. Open-weight vs closed models and licences

LIKE I'M 5

Some recipes are shared so you can cook at home. Others let you order the finished dish but not inspect the recipe.

EXPLAINED SIMPLY

  • Open-weight means model parameters are made available under stated terms. It does not necessarily include all training data or training code.
  • Closed models expose access through a provider, usually an API or product.
  • Open weights can offer local hosting, customisation and control. They also require GPUs, serving, security and maintenance.
  • Closed models simplify operations and may provide stronger managed capabilities, but create provider dependency and data-governance questions.
  • Read the actual licence for commercial use, redistribution, acceptable-use limits and attribution. “Open” has different meanings across providers.
  • Consider total cost of ownership: hardware, engineers, power, operations, API fees and reliability.

COMPARE WITH LOOKALIKES

Open-weightClosed hosted
More deployment controlLess infrastructure work
Hardware and ops requiredProvider manages serving
Licence must be checkedProvider terms must be checked
Can support local/private deploymentData sent to provider under contract

INTERVIEW LENS

Discuss control versus operational burden, then include licence, privacy, quality and total cost.

TRAPS

  • Open-weight is not always open-source.
  • Local hosting does not automatically make a system secure.
  • Licence obligations still apply.

ONE-LINE RECAP

Choose based on control, licence, privacy, performance and operational cost.

5. Choosing a model

LIKE I'M 5

Do not buy a racing car to deliver one lunchbox. Choose the smallest vehicle that safely does the job.

EXPLAINED SIMPLY

  • Start with task requirements: extraction, classification, coding, conversation, vision or complex reasoning.
  • Define quality with examples and measurable acceptance criteria.
  • Compare latency, throughput, input/output price, context window, reliability and modality support.
  • Add privacy, data residency, retention, provider uptime, rate limits and regional availability.
  • Try a small fast model first. Escalate only when evaluation shows a quality gap.
  • Use model routing for mixed workloads: simple tasks go to cheaper models; difficult tasks go to stronger models.
  • Re-evaluate after model updates or prompt changes.

TRY IT

function chooseModel(task) {
  return task.complexity === "high" ? "strong-model" : "fast-model";
}

This is a routing sketch. Real routing should use measured evaluations, not only a manually assigned label.

INTERVIEW LENS

Present a scorecard and explain how you balance quality, cost, latency, privacy and availability.

TRAPS

  • Do not pick only by leaderboard rank.
  • Context size is not the same as reliable recall.
  • Cheapest per token may be more expensive if it needs retries.

ONE-LINE RECAP

Choose the model that meets the task's quality bar at the best total operating cost.

2.2 GPTs and assistant products — detailed notes

6. Model tiers: small, large and reasoning

LIKE I'M 5

A scooter, car and truck all move people or goods. The best choice depends on the load.

EXPLAINED SIMPLY

  • Small models often suit classification, extraction, simple chat and high-volume tasks.
  • Larger models may handle more complex language, code and broader tasks, usually with higher resource cost.
  • Reasoning-oriented models may spend more inference compute on multi-step problems.
  • Model categories overlap. Check the provider's current capability descriptions and test the exact version.
  • Use a cascade: attempt a cheap model, validate the result, then escalate uncertain cases.

INTERVIEW LENS

Explain model routing and escalation based on task complexity and measured confidence or validation outcomes.

TRAPS

  • Bigger is not always better.
  • Reasoning mode is not needed for every request.
  • A model's self-reported confidence is not a reliable validator.

ONE-LINE RECAP

Match model capability to task difficulty and escalate only when needed.

7. Custom GPTs: builder, instructions and knowledge

LIKE I'M 5

A Custom GPT is like a helper with a job description, a folder of reference books and selected tools.

EXPLAINED SIMPLY

  • A Custom GPT packages instructions, optional knowledge files, capabilities and possibly actions for a specialised ChatGPT experience.
  • Instructions describe role, goals, boundaries, response style and workflow.
  • Knowledge files provide reference material. They are not guaranteed to be retrieved perfectly every time.
  • Capabilities may include tools such as browsing or data analysis, depending on product settings.
  • Test with normal, edge, ambiguous and adversarial prompts. Keep secrets out of instructions and uploaded files.
  • Product features and availability can change; check current builder documentation.

INTERVIEW LENS

Separate instructions (behaviour), knowledge (reference content) and actions/tools (external operations).

TRAPS

  • A Custom GPT is not automatically a separately trained model.
  • Uploaded files do not guarantee perfect factual recall.
  • Do not place credentials in knowledge files.

ONE-LINE RECAP

Custom GPTs configure a specialised assistant experience using instructions, knowledge and capabilities.

8. GPT Actions and OpenAPI schemas

LIKE I'M 5

The helper needs a menu showing which buttons exist, what information each button needs and what comes back.

EXPLAINED SIMPLY

  • An Action connects a GPT to an external API.
  • An OpenAPI schema describes endpoints, HTTP methods, parameters, request bodies and responses.
  • The model uses the schema to decide when an action may help and what arguments to provide.
  • Your API must authenticate callers, validate every field, enforce permissions and return predictable errors.
  • Treat model-supplied arguments as untrusted input. Require confirmation for sensitive or irreversible actions.
  • Keep schemas narrow and descriptions precise. Avoid giving a model broad administrative endpoints.

TRY IT

paths:
  /orders/{id}:
    get:
      summary: Get an order by ID
      parameters:
        - name: id
          in: path
          required: true
          schema: { type: string }

This is a tiny illustrative OpenAPI fragment, not a complete deployable specification.

INTERVIEW LENS

Explain schema-driven tool discovery, argument generation, server-side validation and permission enforcement.

TRAPS

  • Schema validation is not authorisation.
  • Never trust tool arguments simply because the model generated them.
  • Confirm destructive actions.

ONE-LINE RECAP

Actions let a GPT call APIs through a documented and secured contract.

9. GPT Store and sharing

LIKE I'M 5

A shop shelf lets other people find a helper you made.

EXPLAINED SIMPLY

  • Sharing options can include private use, link-based access or broader publication, depending on account and workspace settings.
  • A GPT's visibility does not make its files, actions or connected services safe by default.
  • Review instructions, knowledge files, action permissions, branding and privacy before sharing.
  • Test from the perspective of a new user with no creator context.
  • Store policies, eligibility and publication controls change; verify current product documentation before publishing.

INTERVIEW LENS

Discuss discoverability separately from security, permissions and data handling.

TRAPS

  • Public visibility does not mean public ownership of uploaded source material.
  • Never expose internal data through a shared GPT.
  • Review actions and authentication carefully.

ONE-LINE RECAP

Sharing controls distribution; security and data permissions must be designed separately.

10. Claude Projects, Artifacts and Skills; Gemini Gems and NotebookLM

LIKE I'M 5

Different apps offer different work desks: one keeps project files, one makes a live canvas, and one studies your sources.

EXPLAINED SIMPLY

  • Project features organise instructions and reference material around a recurring task.
  • Artifacts provide a separate workspace for viewing or iterating on generated content, such as code or documents.
  • Skills package reusable instructions or procedures in supported environments.
  • Gems provide configured assistants within Google's Gemini experience.
  • NotebookLM focuses on working with supplied sources and generating source-grounded study outputs.
  • Product names, limits and feature availability change. Check official documentation and account access.
  • Choose based on workflow, source grounding, collaboration, integrations and export needs.

COMPARE WITH LOOKALIKES

Product conceptMain purpose
ProjectPersistent task context and files
ArtifactSeparate generated-content workspace
SkillReusable procedure/instructions
GemConfigured Gemini assistant
NotebookLMSource-centred research and study

INTERVIEW LENS

Compare product capabilities by the job they solve rather than treating them as interchangeable models.

TRAPS

  • These products are not all model architectures.
  • Features and names can change.
  • Source-grounded output still needs citation checking.

ONE-LINE RECAP

Assistant products package models into different workflows and user experiences.

2.3 Using models through APIs — detailed notes

11. Chat Completions vs Responses API; roles and messages

LIKE I'M 5

A conversation is a stack of notes with labels showing who said each thing. The API defines how those notes are sent and how the answer comes back.

EXPLAINED SIMPLY

  • A message role identifies the source or purpose of content, such as system/developer instructions, user input or assistant output.
  • Tool calls and tool results add structured steps to the interaction.
  • Chat Completions is an established chat-oriented API shape. Responses is a newer unified interface for model output and tool workflows.
  • API features, supported models and migration guidance vary. Check current official documentation before selecting an endpoint.
  • Keep provider-specific API calls behind your own service layer so your application can change providers more easily.
  • Validate structured outputs and handle incomplete, refused, failed or tool-directed responses.

INTERVIEW LENS

Explain roles, message sequencing, tool handoffs and why a backend abstraction prevents provider details leaking across the application.

TRAPS

  • Do not assume every endpoint supports every model feature.
  • A tool call is not the tool result.
  • Do not treat raw model text as validated application data.

ONE-LINE RECAP

API roles structure the conversation; endpoint choice determines the interaction contract.

12. API keys, rate limits, pricing, tokens and streaming

LIKE I'M 5

An API key is a house key, a rate limit is a queue limit, and tokens are the units on the bill.

EXPLAINED SIMPLY

  • Store API keys in server-side environment variables or a secret manager. Rotate and restrict them.
  • Rate limits restrict request or token usage over time. Handle 429 responses with bounded exponential backoff and jitter.
  • Pricing may depend on input tokens, output tokens, cached tokens, tools or other units. Check current provider pricing.
  • Streaming sends output in chunks so users see progress before completion.
  • Track request IDs, token counts, latency, failures and spend per feature or tenant.
  • Set timeouts, maximum output lengths and budget limits.

TRY IT

for (let attempt = 0; attempt < 3; attempt++) {
  const result = await callModel();
  if (result.ok) break;
  await new Promise(resolve => setTimeout(resolve, 500 * 2 ** attempt));
}

This shows bounded backoff conceptually; production code should retry only retryable failures and add jitter.

INTERVIEW LENS

Cover secret management, usage accounting, rate-limit handling, streaming and observability.

TRAPS

  • Never put keys in browser bundles or Git.
  • Retrying every error can amplify outages and cost.
  • Streaming partial JSON requires careful parsing.

ONE-LINE RECAP

Secure credentials, budget tokens, respect rate limits and stream safely.

13. Hosting options: OpenAI, Anthropic, Bedrock, Azure OpenAI, Vertex AI

LIKE I'M 5

You can buy food from a restaurant directly or through a trusted food court in your building.

EXPLAINED SIMPLY

  • Direct provider APIs give access to that provider's model features and release cadence.
  • AWS Bedrock, Azure OpenAI and Google Vertex AI offer model access through their cloud ecosystems, with cloud identity, networking, governance and billing integration.
  • Model catalogues, regions, quotas, feature parity and pricing differ.
  • Cloud hosting may simplify enterprise controls, but does not remove the need to review data policies and permissions.
  • Choose based on model quality, cloud alignment, region, compliance, operational tooling and portability.
  • Keep a provider adapter so application logic does not depend on one provider's response format.

INTERVIEW LENS

Compare direct APIs and cloud platforms across model choice, identity, network controls, governance, regions and portability.

TRAPS

  • A model may not be available in every region.
  • API compatibility is not always identical.
  • Cloud provider billing and provider billing may differ.

ONE-LINE RECAP

Choose a hosting route that fits your model, cloud, governance and regional requirements.

14. Running models locally: Ollama, LM Studio and llama.cpp

LIKE I'M 5

Instead of calling a restaurant, you cook in your own kitchen. You control the kitchen, but you also buy the ingredients and clean up.

EXPLAINED SIMPLY

  • Local inference runs model weights on your own computer or server.
  • Ollama offers a convenient local model workflow and API. LM Studio provides a desktop interface for local models. llama.cpp is a lightweight inference runtime focused on efficient execution across hardware.
  • Local models can improve data control and offline access, subject to model licence and machine security.
  • Performance depends on RAM/VRAM, quantisation, context length, batch size and hardware acceleration.
  • Local does not automatically mean private: logs, plugins, network exposure and shared machines still matter.
  • Benchmark tokens per second and memory on the target machine.

INTERVIEW LENS

Explain model weights, inference runtime, hardware constraints, quantisation and local data boundaries.

TRAPS

  • Downloading weights does not guarantee a compatible runtime.
  • CPU inference may be slow for large models.
  • Check licence and model provenance.

ONE-LINE RECAP

Local inference trades provider dependence for hardware and operational responsibility.

15. Hugging Face: Hub, Transformers, datasets and Spaces

LIKE I'M 5

Think of a public library with model shelves, data collections and small demo rooms.

EXPLAINED SIMPLY

  • The Hugging Face Hub hosts model repositories, datasets and related assets.
  • Transformers is a library for loading and using many pretrained model architectures.
  • Datasets provides tools to load and process datasets.
  • Spaces hosts interactive demos and applications.
  • A model card should explain intended use, limitations, training details and evaluation where provided.
  • Check licence, source, file formats, code and security before loading a repository.
  • Pin versions and revisions in reproducible applications.

INTERVIEW LENS

Explain the Hub as a model/data distribution platform and Transformers as a library for model workflows.

TRAPS

  • A popular repository is not automatically safe or high quality.
  • Model cards may be incomplete.
  • Avoid executing untrusted repository code without review.

ONE-LINE RECAP

Hugging Face provides a large ecosystem for discovering, using and sharing models and datasets.

2.4 Other AI products — detailed notes

16. Embedding models and rerankers

LIKE I'M 5

An embedding model finds books that look related. A reranker reads the shortlist carefully and puts the best book first.

EXPLAINED SIMPLY

  • Embedding models turn text into vectors for semantic retrieval.
  • A bi-encoder embeds query and documents separately, enabling fast vector search.
  • A reranker scores query-document pairs together, often improving relevance but costing more per candidate.
  • Retrieval finds candidates; reranking orders them. They solve different stages.
  • Compare dimensions, language coverage, domain performance, latency, cost and licence.
  • Evaluate Recall@k and ranking metrics on real queries.

INTERVIEW LENS

Describe a two-stage pipeline: fast embedding retrieval followed by a more precise cross-encoder reranking stage.

TRAPS

  • Rerankers do not replace candidate retrieval.
  • Similarity scores from different models are not directly comparable.
  • More candidates increase reranking cost.

ONE-LINE RECAP

Embeddings retrieve broadly; rerankers improve the ordering of a shortlist.

17. Speech: Whisper, text-to-speech and realtime voice

LIKE I'M 5

One tool listens and writes down words. Another reads words aloud. A realtime system does both while talking with you.

EXPLAINED SIMPLY

  • Speech-to-text converts audio into text. Whisper is a well-known speech recognition model family.
  • Text-to-speech converts text into generated audio.
  • Realtime voice systems combine audio input, turn detection, model reasoning and audio output.
  • Streaming, voice activity detection, interruption handling and latency shape the user experience.
  • Evaluate accents, names, background noise, diarisation, language support and consent.
  • Protect voice recordings and transcripts. Define retention and access policies.

INTERVIEW LENS

Explain the pipeline: audio capture → recognition or audio understanding → response generation → speech synthesis, with streaming and turn-taking.

TRAPS

  • Transcription can be wrong even when fluent.
  • TTS can mispronounce names and technical terms.
  • Voice data can be sensitive personal data.

ONE-LINE RECAP

Voice AI combines recognition, language processing, synthesis and realtime interaction.

18. Image and video generation products

LIKE I'M 5

Different studios can turn a written idea into a picture or moving scene, but each has different controls.

EXPLAINED SIMPLY

  • Image generation tools create images from text, reference images or edits.
  • Video generation tools create short moving sequences, often with limits on duration, consistency and control.
  • Workflows may support text-to-image, image-to-image, inpainting, outpainting, image-to-video and video editing.
  • Compare prompt adherence, identity consistency, motion, resolution, duration, editing controls, rights and price.
  • For commercial use, review provider terms, input rights, output rights and content restrictions.
  • Use reference frames, shot planning and post-production when consistency matters.

INTERVIEW LENS

Compare generation modes and discuss consistency, controllability, compute cost, rights and production workflow.

TRAPS

  • A generated frame may contain visual errors.
  • Character consistency across clips is difficult.
  • Product terms change; verify current usage rights.

ONE-LINE RECAP

Choose creative tools by control, consistency, output needs and rights—not only visual quality.

19. AI coding tools: Copilot, Cursor, Claude Code and Codex

LIKE I'M 5

A coding assistant is a junior pair programmer. It can suggest work, but you still review every change.

EXPLAINED SIMPLY

  • IDE assistants provide inline completion, chat, code explanation and repository-aware help.
  • Agentic coding tools can inspect files, edit code, run commands and iterate on test failures with permissions.
  • Copilot, Cursor, Claude Code and Codex differ in workflow, integrations, models, autonomy and pricing.
  • Give tools a clear task, relevant files, acceptance criteria and test commands.
  • Review diffs, run tests, inspect dependencies and check security before merging.
  • Restrict filesystem, shell, network and secrets access. Use branches and small commits.

INTERVIEW LENS

Explain that AI coding tools accelerate development but require sandboxing, code review, tests and least-privilege access.

TRAPS

  • Generated code can compile and still be insecure.
  • Do not run unknown commands blindly.
  • Large autonomous edits are harder to review.

ONE-LINE RECAP

Treat coding agents as powerful assistants, not replacements for engineering judgement.

20. Comparing products: which tool for which job

LIKE I'M 5

A screwdriver, hammer and spanner all help build things, but each has a different job.

EXPLAINED SIMPLY

  • Start with the job: chat, coding, research, source-grounded study, speech, image, video, embeddings or local inference.
  • Identify required inputs, outputs, integrations, privacy and collaboration.
  • Create a small bake-off using identical tasks and a scoring rubric.
  • Measure quality, time saved, error rate, latency, total cost and user experience.
  • Check export options, lock-in, API access, support and data retention.
  • Reassess when provider features or pricing change.

INTERVIEW LENS

Describe a requirements matrix and a repeatable evaluation rather than claiming one product is universally best.

TRAPS

  • Do not compare a consumer app with an API as if they are the same product.
  • Avoid choosing based on one demo.
  • Include operational and human-review costs.

ONE-LINE RECAP

The right AI product is the one that fits the workflow and passes a fair evaluation.

Part 2 cheat sheet — interview answers

  1. ChatGPT vs API → Product for direct use; API for integrating models into software.
  2. Open-weight vs closed → Deployment control versus managed operations; check licence and privacy.
  3. Model choice → Evaluate quality, latency, cost, context, privacy and reliability.
  4. Custom GPT → Instructions, knowledge and capabilities packaged into a specialised assistant.
  5. GPT Action → A documented API operation called through a schema.
  6. OpenAPI → Contract describing endpoints, parameters, requests and responses.
  7. Roles → Labels that define who supplied each message and its purpose.
  8. Streaming → Sends partial output as it is generated.
  9. Rate limits → Bound request/token use; handle with backoff and budgets.
  10. Bedrock/Vertex/Azure → Managed cloud access with region, identity and governance considerations.
  11. Ollama/LM Studio/llama.cpp → Local model execution tools with hardware constraints.
  12. Hugging Face Hub → Repository ecosystem for models, datasets and demos.
  13. Embeddings → Fast semantic candidate retrieval.
  14. Reranker → More precise ordering of retrieved candidates.
  15. Speech pipeline → Recognition, model processing, synthesis and turn management.