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

> ## Agent Instructions
> The Venice API is OpenAI-compatible: use any OpenAI SDK with the base URL `https://api.venice.ai/api/v1` and a Venice API key, or pay per request from a USDC wallet through x402 with no account.
> Read model IDs from `GET /models` or `GET /models/traits` at runtime instead of hardcoding them from memory or from these pages. Models are added and retired often.
> Every model's price is in https://docs.venice.ai/pricing.md. Quote video and audio jobs with `POST /video/quote` or `POST /audio/quote` before you queue them.
> Search these docs from an MCP client at https://docs.venice.ai/mcp. The full agent guide is https://docs.venice.ai/agents.md.

# Characters

> Discover public Venice characters and chat with their personas via chat completions.

Characters are public personas that you can apply to a chat completion. Each character has a `slug` and an associated text model.

> [!WARNING]
>
> The Characters API is in preview and may change.

## Discover a Character

Use the [List Characters endpoint](https://docs.venice.ai/api-reference/endpoint/characters/list.md) to search and filter the public catalog:

```bash cURL theme={"system"}
curl "https://api.venice.ai/api/v1/characters?search=philosophy&limit=5" \
  -H "Authorization: Bearer $VENICE_API_KEY"
```

The response contains the values needed for chat completions:

```json theme={"system"}
{
  "data": [
    {
      "name": "Alan Watts",
      "slug": "alan-watts",
      "modelId": "venice-uncensored-1-2",
      "description": "A philosophical entertainer...",
      "webEnabled": true
    }
  ],
  "object": "list"
}
```

You can also retrieve one character by slug with the [Get Character endpoint](https://docs.venice.ai/api-reference/endpoint/characters/get.md):

```bash cURL theme={"system"}
curl "https://api.venice.ai/api/v1/characters/alan-watts" \
  -H "Authorization: Bearer $VENICE_API_KEY"
```

Use the returned `slug` as `venice_parameters.character_slug`. Use its `modelId` as the chat completion model, or choose a compatible model from the [Text Models page](https://docs.venice.ai/models/text.md).

## Chat with the Character

Pass `character_slug` in `venice_parameters` when calling the OpenAI-compatible Chat Completions API:

```python Python theme={"system"}
import os
import requests
from openai import OpenAI

headers = {"Authorization": f"Bearer {os.environ['VENICE_API_KEY']}"}
character = requests.get(
    "https://api.venice.ai/api/v1/characters/alan-watts",
    headers=headers,
    timeout=30,
).json()["data"]

client = OpenAI(
    api_key=os.environ["VENICE_API_KEY"],
    base_url="https://api.venice.ai/api/v1",
)

response = client.chat.completions.create(
    model=character["modelId"],
    messages=[
        {"role": "user", "content": "How can I worry less about the future?"}
    ],
    extra_body={
        "venice_parameters": {
            "character_slug": character["slug"],
        }
    },
)

print(response.choices[0].message.content)
```

```javascript Node.js theme={"system"}
import OpenAI from "openai";

const characterResponse = await fetch(
  "https://api.venice.ai/api/v1/characters/alan-watts",
  {
    headers: {
      Authorization: `Bearer ${process.env.VENICE_API_KEY}`,
    },
  },
);
const { data: character } = await characterResponse.json();

const client = new OpenAI({
  apiKey: process.env.VENICE_API_KEY,
  baseURL: "https://api.venice.ai/api/v1",
});

const response = await client.chat.completions.create({
  model: character.modelId,
  messages: [
    { role: "user", content: "How can I worry less about the future?" },
  ],
  venice_parameters: {
    character_slug: character.slug,
  },
});

console.log(response.choices[0].message.content);
```

```bash cURL theme={"system"}
curl "https://api.venice.ai/api/v1/chat/completions" \
  -H "Authorization: Bearer $VENICE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "venice-uncensored-1-2",
    "messages": [
      {
        "role": "user",
        "content": "How can I worry less about the future?"
      }
    ],
    "venice_parameters": {
      "character_slug": "alan-watts"
    }
  }'
```

> [!NOTE]
>
> Character slugs apply only to public Venice characters. A missing or invalid slug returns an API error.

## Related Resources

* [Text Models](https://docs.venice.ai/models/text.md)
* [List Characters API](https://docs.venice.ai/api-reference/endpoint/characters/list.md)
* [Get Character API](https://docs.venice.ai/api-reference/endpoint/characters/get.md)
* [Character Reviews API](https://docs.venice.ai/api-reference/endpoint/characters/reviews.md)
* [Chat Completions API](https://docs.venice.ai/api-reference/endpoint/chat/completions.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.