Skip to content
AI Skills Central

Type to search Agent Skills, workflows, tutorials, tools and the glossary.

Building with LLMs

Choosing AI models

Picking the right model for a task by testing quality, cost, speed and data terms.

Intermediate
Bookmark

Bookmarks are kept in your free account, so you can find this page again on any device.

Sign in to bookmark
On this page

Overview

Choosing a model means matching a task to a model that does it well enough, at a cost, speed and set of data terms you can accept. Providers release and retire models often, context windows and prices differ widely, and open-weight models now handle many jobs that once needed a frontier API, so last year's choice is often no longer the right one.

Practitioners start from their own task, not a leaderboard. They collect a few dozen real inputs with agreed pass criteria, run several candidate models on them, and compare quality alongside cost per task, latency and the ways each model fails. They read model cards and provider terms for context limits, data retention and licences, keep the model name in configuration so switching is cheap, and route easy requests to smaller models when the evals show it is safe.

What you will practise

  • Write down your requirements: quality bar, budget per task, latency and data rules
  • Run three candidate models on the same set of real inputs and score them
  • Compare cost per task and latency, not only the price per token
  • Read a model card and the provider's data terms before sending real data
  • Re-run your comparison when a provider releases or retires a model

Workflow recipes

  • Move an app to a new model without regressions

    LLM model migration without surprises: freeze a golden set, run old and new models side by side, fix the prompts, compare cost, then roll out behind a flag.

    Intermediate5 h7 steps

Articles

Tools for this skill

  • Amazon Bedrock

    AWS service for foundation models, RAG and agents.

    Models and local inferenceUsage-basedAmazon Web Services

  • DeepSeek

    Chat app and API for DeepSeek's open-weight models.

    Models and local inferenceUsage-basedDeepSeek

  • Groq

    Fast inference API on Groq's own LPU chips.

    Models and local inferenceFreemiumGroq

  • Kilo

    Open-source coding agent for IDEs, the terminal and the cloud.

    Coding agentsOpen sourceKilo

  • LiteLLM

    Open-source SDK and AI gateway that calls 100+ providers through one OpenAI-style API.

    Models and local inferenceOpen sourceBerriAI

  • LLM

    CLI and Python library for prompting many models.

    Models and local inferenceOpen sourceSimon Willison

  • OpenRouter

    One API and bill for models from many providers, with routing and fallbacks.

    Models and local inferenceUsage-basedOpenRouter

  • Replicate

    Cloud API for running open and proprietary models.

    Models and local inferenceUsage-basedReplicate

Key terms

Words you will meet while learning this, defined in the glossary.

Full glossary
  • Model parameters

    The numbers learned in training that determine what a model outputs; a model's size is usually quoted as how many of them it has.