LLM API vs Client SDK
People think the SDK and the API are the same thing, because both carry the model maker's name. The API is the service on the model maker's servers. It takes web requests and sends back replies. The client SDK is a code library on your side. It builds those web requests for you, so you call a function instead.
LLM API
A web service your code calls to get text back from a big AI model.
An LLM API is a web service that lets your code send text to a large language model and get its reply. Your app sends a request with a secret key, the model's name, the messages and limits such as the most tokens to write. The provider runs the model on its own computers and sends back the answer. Each call is charged by the tokens it uses. Most apps that use AI talk to a model this way rather than running one themselves.
Client SDK
A kit of code that calls an AI model's API for you, in your own language.
A client SDK is a code library that calls a model's web API for you. You call a plain function in your own language, such as Python. The library builds the request, adds your key and sends it. It tries again when a call fails, and it can stream the reply as it comes. You still decide what happens next, one call at a time.
In one line
- LLM API
- A web service your code calls to get text back from a big AI model.
- Client SDK
- A kit of code that calls an AI model's API for you, in your own language.