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

# deAPI LLM

> DeAPILLMService runs deAPI's chat models through its OpenAI-compatible API, with streaming and function calling.

> [!NOTE]
>
> **Community-maintained integration.** This service is built and
> maintained by
> [deapi-ai](https://github.com/deapi-ai)
> . Pipecat does not test or officially support it. Please report issues and
> request changes on the
> [source repository](https://github.com/deapi-ai/pipecat-deapi)
> . Learn more about
> [community integrations](https://docs.pipecat.ai/api-reference/server/services/community-integrations.md)
> .

## Overview

`DeAPILLMService` connects Pipecat to the chat models served by
[deAPI](https://deapi.ai) at `https://oai.deapi.ai/v1`. It extends Pipecat's
`OpenAILLMService`, so it supports streaming responses and function calling.
deAPI's models reason before they answer; the service turns reasoning off by
default so that the first spoken token is not delayed.

> [card] [Source Repository](https://github.com/deapi-ai/pipecat-deapi)
>
> Source code, example, and issues for the deAPI integration

> [card] [Demo](https://github.com/deapi-ai/pipecat-deapi/blob/main/demo/demo.mp4)
>
> A recorded conversation with an agent running on deAPI

> [card] [deAPI Docs](https://docs.deapi.ai/openai-compatibility)
>
> deAPI documentation for this endpoint

> [card] [API Keys](https://app.deapi.ai/settings/api-keys)
>
> Create and manage your deAPI API keys

## Installation

This is a community-maintained package distributed separately from `pipecat-ai`:

```bash theme={null}
uv add pipecat-deapi
```

## Prerequisites

1. **deAPI account**: Sign up at [deAPI](https://deapi.ai)
2. **API key**: Create a key in the [deAPI panel](https://app.deapi.ai/settings/api-keys)

### Required Environment Variables

* `DEAPI_API_KEY`: Your deAPI API key

## Configuration

**api\_key** `str` *required*

deAPI API key.

**base\_url** `str` (default: [https://oai.deapi.ai/v1](https://oai.deapi.ai/v1))

Base URL of deAPI's OpenAI-compatible API.

**settings** `DeAPILLMService.Settings` (default: None)

Runtime-configurable settings. See [Settings](#settings) below.

### Settings

`DeAPILLMService.Settings` extends the `OpenAILLMService` settings with:

| Parameter | Type | Default | Description |
| - | - | - | - |
| `model` | `str` | `"qwen3.8-flash"` | Any chat model returned by `GET https://oai.deapi.ai/v1/models`. |
| `reasoning_effort` | `str \| None` | `"none"` | How much the model reasons before answering: `none`, `minimal`, `low`, `medium`, `high`, `xhigh` or `max`. `None` uses the model's own default. |

Not every model accepts every `reasoning_effort` value. For example, `glm-5.3`
takes only `low`, `high` and `max`. The API rejects an unsupported value with
the list of values the model supports.

## Usage

```python theme={null}
import os

from pipecat_deapi import DeAPILLMService

llm = DeAPILLMService(
    api_key=os.environ["DEAPI_API_KEY"],
    settings=DeAPILLMService.Settings(
        model="qwen3.8-flash",
        system_instruction="You are a helpful assistant in a voice conversation.",
    ),
)
```

See the [source repository](https://github.com/deapi-ai/pipecat-deapi) for a complete voice agent with function
calling.

## Compatibility

Tested with Pipecat v1.17.0. Check the [source repository](https://github.com/deapi-ai/pipecat-deapi) for the
latest tested version and changelog.


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