Knaph

Model API

How a program uses a language model - it sends a request over the internet (which model, the longest reply allowed, the conversation) and gets a reply back (content blocks, a stop reason and the tokens used), paying per token and proving who it is with a secret API key. Nothing else comes with it - memory, tools and the loop are the program's job.

Depth 1 · Foundation

You can make a request to a model API from your own code, keep the key out of the code, and say what the request holds, what comes back and what it costs.

Sign in to prove what you know with a short quiz, see how deep you've gone, and earn XP for it.

Sign in with Google

Depths of understanding

  1. 1

    Foundation

    You can make a request to a model API from your own code, keep the key out of the code, and say what the request holds, what comes back and what it costs.

Your path here

What's still between you and Model API, depth 1, in the order you can learn it.

  1. 1Language modelDepth 1 · Foundation · Language Models
  2. 2TokenDepth 1 · Foundation · Language Models
  3. 3Model APIDepth 1 · Foundation · Language Models

Where it fits