> ## 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.

# Characters

> Discover public Venice characters and use their personas with text models through the OpenAI-compatible chat completions API.

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.
</Warning>

## Discover a Character

Use the [List Characters endpoint](/api-reference/endpoint/characters/list) 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](/api-reference/endpoint/characters/get):

```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](/models/text).

## Chat with the Character

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

<CodeGroup>
  ```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",
      "messages": [
        {
          "role": "user",
          "content": "How can I worry less about the future?"
        }
      ],
      "venice_parameters": {
        "character_slug": "alan-watts"
      }
    }'
  ```
</CodeGroup>

<Note>
  Character slugs apply only to public Venice characters. A missing or invalid slug returns an API error.
</Note>

## Related Resources

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