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

# Graphiti

> Verwenden Sie TokenLab als OpenAI-kompatiblen Graphiti LLM-Provider

## Übersicht

Graphiti unterstützt OpenAI-kompatible `/v1` Endpunkte durch den `OpenAIGenericClient`. Richten Sie diesen Client auf TokenLab aus und wählen Sie ein TokenLab-Modell.

<Note>
  **Typ**: Knowledge Graph Memory Framework

  **Primärer Pfad**: OpenAI-kompatible Chat Completions

  **Support-Status**: Unterstützter OpenAI-kompatibler Pfad
</Note>

## Umgebung

```bash theme={null}
export TOKENLAB_API_KEY="sk-your-tokenlab-key"
```

## LLM Client

```python theme={null}
import os

from graphiti_core.llm_client.config import LLMConfig
from graphiti_core.llm_client.openai_generic_client import OpenAIGenericClient

llm_config = LLMConfig(
    api_key=os.environ["TOKENLAB_API_KEY"],
    model="claude-sonnet-5",
    small_model="gpt-5.4-mini",
    base_url="https://api.tokenlab.sh/v1",
)

llm_client = OpenAIGenericClient(config=llm_config)
```

Übergeben Sie `llm_client` zusammen mit Ihrer Graph-Datenbank und der Embedder-Konfiguration an Ihre `Graphiti(...)` Instanz.

## Hinweise zu Endpunkten

Der OpenAI-kompatible Pfad von Graphiti ist auf Chat-Completions ausgerichtet. Verwenden Sie Modelle, die für Extraktions- und Deduplizierungsaufgaben zuverlässig strukturiertes JSON zurückgeben.
