> ## Documentation Index
> Fetch the complete documentation index at: https://visionagents.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Baseten

[Baseten](https://www.baseten.co) is an infrastructure platform for deploying and serving AI models. It provides OpenAI-compatible endpoints for popular open-source models (DeepSeek, Qwen, Nemotron, and more) with autoscaling and optimized inference.

<Info>
  Vision Agents requires a [Stream](https://getstream.io/try-for-free/) account
  for real-time transport. Most providers offer free tiers to get started.
</Info>

## Installation

Baseten uses an OpenAI-compatible API, so it works with the OpenAI plugin:

```sh theme={null}
uv add "vision-agents[openai]"
```

## Quick Start

```python theme={null}
import os
from vision_agents.core import Agent, User
from vision_agents.plugins import openai, deepgram, getstream

agent = Agent(
    edge=getstream.Edge(),
    agent_user=User(name="Assistant", id="agent"),
    instructions="You are a helpful assistant.",
    llm=openai.ChatCompletionsLLM(
        model="deepseek-ai/DeepSeek-V3.1",
        base_url="https://inference.baseten.co/v1",
        api_key=os.environ["BASETEN_API_KEY"],
    ),
    stt=deepgram.STT(),
    tts=deepgram.TTS(),
)
```

<Warning>
  Set `BASETEN_API_KEY` in your environment. Create an API key at
  [app.baseten.co/settings/api\_keys](https://app.baseten.co/settings/api_keys).
</Warning>

## Using Self-Deployed Models

If you've deployed your own model on Baseten, use the model-specific endpoint:

```python theme={null}
llm = openai.ChatCompletionsLLM(
    model="your-model-name",
    base_url="https://model-{MODEL_ID}.api.baseten.co/environments/production/sync/v1",
    api_key=os.environ["BASETEN_API_KEY"],
)
```

## Parameters

Since Baseten uses `ChatCompletionsLLM`, it accepts the same parameters:

| Name       | Type  | Default | Description                                        |
| ---------- | ----- | ------- | -------------------------------------------------- |
| `model`    | `str` | —       | Model slug (e.g., `"deepseek-ai/DeepSeek-V3.1"`)   |
| `base_url` | `str` | —       | `"https://inference.baseten.co/v1"` for Model APIs |
| `api_key`  | `str` | `None`  | API key (defaults to `BASETEN_API_KEY` env var)    |

## Available Models

Baseten's Model APIs provide pre-deployed endpoints for popular open-source models. No deployment setup required — just call the API. See the [Baseten documentation](https://docs.baseten.co/development/model-apis/overview) for the full list of available models.

## Next Steps

<CardGroup cols={2}>
  <Card title="Build a Voice Agent" icon="microphone" href="/introduction/voice-agents">
    Get started with voice
  </Card>

  <Card title="Build a Video Agent" icon="video" href="/introduction/video-agents">
    Add video processing
  </Card>
</CardGroup>
