Glossary

SDK

A software development kit: a packaged set of libraries, types, documentation and tools that lets developers use a platform or API from their own code.

An SDK, or software development kit, is a packaged set of tools that lets developers build on a particular platform from their own code. For web services the core of an SDK is a client library: code in a specific language that wraps the service's API, so that instead of assembling HTTP requests, headers and JSON by hand, a developer calls a function such as client.files.create() and gets back a typed object. Around that library an SDK usually adds type definitions, authentication helpers, error classes, documentation and examples. Platform SDKs, such as those for mobile operating systems or game consoles, go further and include compilers, emulators and debuggers.

What an SDK contains

The contents vary with the platform, but most API SDKs share a common shape. There is a client object that holds configuration such as the base URL and the API key, so credentials are set once rather than passed on every call. There are methods grouped by resource, which mirror the API’s endpoints. There are request and response types, which let an editor autocomplete field names and catch mistakes before the code runs. And there is plumbing that most developers would rather not write: serialising requests to JSON, parsing responses, following pagination cursors, raising readable errors and often retrying failed requests.

Beyond the library, a complete SDK includes a reference for every method, getting-started guides, sample projects, a changelog and a versioning policy. Some also ship command-line tools, test helpers that fake the service locally, or plugins for popular frameworks. The aim is to cut the time from reading the documentation to a working integration down to minutes.

SDK vs API

An API is the contract a service exposes: the endpoints, methods, parameters and response formats that define what a client can ask for. An SDK is one way of consuming that contract, written for a particular language. A REST API can be called from any language that speaks HTTP, and an SDK makes calling it from one language more convenient. The two are not alternatives so much as layers, and the same distinction comes up when comparing protocols for agents in MCP vs API.

API

SDK

What it is

The interface a service exposes

A language-specific toolkit for using that interface

Language

Language-neutral, usually HTTP and JSON

Tied to one language, such as TypeScript or Go

Contents

Endpoints, parameters, response formats

Client library, types, errors, helpers, docs, examples

Authentication

Headers you set on each request

Configured once on the client

Errors

Status codes and error bodies

Typed exceptions you can catch

When to use

Any language, full control, debugging

Faster integration in a supported language

How an API SDK works

Under the hood an SDK method is a thin translation layer. A call such as client.resources.search({ text: ‘payment terms’ }) becomes a POST to the right path, with the authentication header attached, the body encoded as JSON and the content type set. When the response arrives, the SDK checks the status code. A 2xx response is parsed into a typed object and returned. A 4xx or 5xx is turned into an exception that carries the status, the error message and, if the service provides one, a trace identifier for support.

Good SDKs also handle behaviour that is easy to get wrong by hand. They follow pagination so a caller can iterate over every result without tracking cursors. They respect rate limits and retry transient failures such as HTTP 429 responses with exponential backoff. They stream large uploads and downloads instead of loading whole files into memory, often using presigned URLs or multipart uploads so files go straight to storage. For long-running jobs they may wrap the asynchronous API pattern in a helper that submits the job and polls until it completes.

Generated and hand-written SDKs

Many SDKs are generated from a machine-readable description of the API, most often an OpenAPI document. A generator reads the endpoints and schemas and writes a client library for each target language, which keeps the SDKs in step with the API and makes it cheap to support several languages. The trade-off is that generated code tends to follow the shape of the HTTP API closely, which can feel mechanical: long method names, awkward option objects and little help with multi-step flows.

Hand-written SDKs, or generated ones with a hand-written layer on top, can be more idiomatic. They can combine three HTTP calls into one helper, use the language’s own conventions for errors and async code, and hide details that only matter to the transport. The cost is maintenance: every API change has to be reflected by a person, in every language. Most mature platforms end up with a hybrid, generating the low-level client from the specification and writing convenience methods by hand.

What makes a good SDK

A good SDK feels native to its language. A TypeScript SDK should return promises, export precise types and work in the runtimes developers use. Errors should be specific enough to handle in code, so a caller can tell a validation failure from an authentication failure from a quota limit without parsing message strings. Defaults should be safe, such as sensible timeouts and retries that apply only to idempotent requests or ones protected by an idempotency key.

Stability matters as much as features. An SDK that follows semantic versioning, documents breaking changes and keeps old versions working for a reasonable period lets teams upgrade on their own schedule. Light dependencies matter too, because every package an SDK pulls in becomes part of the customer’s supply chain and bundle size. And there should always be an escape hatch: a way to set custom headers, pass request options, or drop down to raw HTTP for an endpoint the SDK does not cover yet.

When to call the API directly

An SDK is not always the right choice. If there is no SDK for your language, the REST API is the way in, and a small wrapper of your own around the handful of endpoints you need is often enough. Calling the API directly also makes sense in constrained environments such as edge functions with strict bundle limits, in shell scripts and one-off jobs where curl is simplest, and when debugging, because seeing the raw request and response removes a layer of guesswork. Some teams prefer to own their HTTP layer for consistency across many vendors, adding retries, logging and distributed tracing in one place.

SDKs in AI and agent development

AI development has produced several kinds of SDK. Model provider SDKs wrap inference APIs and handle streaming responses, structured output and function calling. An agent SDK goes further, providing the loop, tool definitions, handoffs and tracing needed to build an agent, and overlaps with what an agent framework offers. Infrastructure SDKs give agents access to storage, search and memory. And protocols such as MCP have their own SDKs for building servers and clients.

For agents, the shape of an SDK matters in a specific way: its methods often become the agent’s tools. A method with a clear name, a small number of well-described parameters and a predictable result is easy to expose through tool use, and easy for a model to call correctly. An SDK designed around a sprawling set of options produces tools a model misuses. This is one reason infrastructure built for agents tends to favour a small, consistent surface over exhaustive configurability, a theme we cover in designing an API for agents, not humans.

A worked example

Uploading a PDF and making it searchable shows what an SDK saves. Over raw HTTP the steps are: request a signed upload URL with the file name and size, PUT the file bytes to that URL with the returned headers, then POST to the files endpoint with the upload path, the file name, the parent folder and the MIME type, checking the status of each response and handling failures along the way. Each step needs the API key header, correct JSON and error handling.

With the SDK the same flow is three short calls: api.uploads.getSignedUrl(), a fetch to the URL it returns, and api.files.create() with the attachment path. The types say exactly which fields each call needs, the client already holds the key, and a failure arrives as a typed error. A search afterwards is one more call, api.resources.search({ text: ‘quarterly revenue’ }), returning hits with chunk text and page numbers. The HTTP requests underneath are identical; the SDK removes the bookkeeping.

Where Exabase fits

Exabase provides a TypeScript SDK, installed with npm install @exabase/sdk, and a REST API at api.exabase.io that can be called from any language. The SDK covers the whole platform: Memory, Bases, Resources, Deep Search, Extract and Workers. You create one client with your API key, and you can set a baseId on that client so every call is scoped to one tenant’s Base, which is how the multi-tenant solution keeps customers separate without per-call configuration. The SDK throws a ResponseError you can catch, or you can handle errors centrally with middleware passed to the client, and for Extract it handles file streaming, job polling and chunk retrieval.

For other languages, an OpenAPI document is available from the API reference, so you can call the endpoints directly or generate a client of your own. The SDK overview, the TypeScript SDK guide and the getting started guide cover setup. We wrote about the thinking behind the client in the design principles behind our TypeScript SDK. If you are choosing between agent toolkits, LangGraph vs OpenAI Agents SDK and Exabase vs LangChain explain where infrastructure SDKs sit next to frameworks, and the coding assistants use case shows the SDK in a full build.

FAQs

What does SDK stand for?

SDK stands for software development kit. It is a bundle of libraries, documentation and tools that helps developers build on a specific platform or service.

What is the difference between an SDK and an API?

An API is the interface a service exposes; an SDK is a language-specific toolkit for calling it. You can use an API without an SDK, but an SDK always relies on an underlying API.

Do I need an SDK to use an API?

No. Any REST API can be called with plain HTTP requests from any language. An SDK saves time on authentication, types, pagination, errors and retries, but it is optional.

Are SDKs generated automatically?

Often, at least in part. Many platforms generate client libraries from an OpenAPI specification and add hand-written convenience methods on top for common multi-step tasks.

What is an agent SDK?

An agent SDK is a toolkit for building AI agents. It typically provides the agent loop, tool definitions, handoffs between agents and tracing, and it usually sits on top of a model provider’s API.

Does Exabase have a Python SDK?

Exabase provides a TypeScript SDK. From Python or any other language you can call the REST API directly, using the OpenAPI document in the API reference to generate a client if you want one.

How do I install the Exabase SDK?

Run npm install @exabase/sdk, create a client with your API key from an environment variable, and call methods such as api.memories.create() or api.resources.search(). Keep the key server-side.

Related pages: REST API, OpenAPI, API key, Agent SDK, Asynchronous API, MCP vs API, Rate limiting, TypeScript SDK guide, Multi-tenant solution

Cut your token spend and give your agent precise context.

Get started in minutes.

Cut your token spend and give your agent precise context.

Get started in minutes.