SDKs

Extend provides official SDKs in TypeScript, Python, and Java to help you integrate faster and with better type safety. These SDKs are automatically generated from our API specification, ensuring they’re always up to date with our latest features.

Installing the Extend SDK

In the following getting started guide we will provide sample code using both cURL requests and our SDKs (Typescript, Python, and Java). If you wish to follow along with one of the SDKs, you should install the SDKs as follows:

Typescript:

$npm install extend-ai

Python:

$pip install extend-ai

Java:

1dependencies {
2 implementation 'ai.extend:extend-java-sdk'
3}

Official SDKs

Community SDKs

Deployments

If you’re unsure which environment you are in or should be in, reach out to us!

Extend operates multiple deployments to support different regulatory and data residency requirements:

  • Production (Default): https://api.extend.ai - Our primary production environment
  • US2: https://api.us2.extend.app - Additional US production deployment
  • EU1: https://api.eu1.extend.ai - European deployment for EU data residency requirements

By default, our SDKs connect to the production endpoint (api.extend.ai). To use a different deployment, configure your SDK with the appropriate base URL:

1import { ExtendClient } from "extend-ai";
2
3// US2
4const clientUs2 = new ExtendClient({
5 token: "YOUR_API_KEY_HERE",
6 baseUrl: "https://api.us2.extend.app"
7});
8
9// EU1
10const clientEu1 = new ExtendClient({
11 token: "YOUR_API_KEY_HERE",
12 baseUrl: "https://api.eu1.extend.ai"
13});