> ## Documentation Index
> Fetch the complete documentation index at: https://vastai-80aa3a82-cln-2792-remove-disable-bundling.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# The SDK

> Learn about the Serverless SDK, the primary method of interacting with Vast Serverless.

<script
  type="application/ld+json"
  dangerouslySetInnerHTML={{
__html: JSON.stringify({
"@context": "https://schema.org",
"@type": "TechArticle",
"headline": "Vast.ai Serverless SDK Overview",
"description": "An overview of the Vast.ai Serverless SDK, the primary and recommended way to interact with serverless endpoints and workers.",
"author": {
  "@type": "Organization",
  "name": "Vast.ai"
},
"articleSection": "Serverless Documentation",
"keywords": ["sdk", "python", "serverless", "vast.ai", "endpoints", "workers"]
})
}}
/>

The Vast Serverless SDK is a Python `pip` package that provides tools for both **creating serverless endpoints** and **sending and managing requests** to those endpoints. It abstracts much of the complexity of interacting with the serverless engine and individual workers.

## What the SDK Handles

The SDK manages the following core functions for the client:

* **Authentication**
* **All communication** between the client, endpoints, and individual workers
* **Request queuing**
* **Error handling and retries**
* **Creating and managing asynchronous sessions**
* **Providing worker status and lifecycle information**

## Why Use the SDK

While there are other ways to interact with serverless endpoint—such as the CLI and the REST API—the SDK is the **most powerful and easiest** method to use. It is the recommended approach for most applications due to its higher-level abstractions, reliability, and ease of integration into Python-based workflows.

If the Python SDK is not usable for your application, please contact support to request further assistance. We're happy to help.
