---
title: NextChat | RunAPI
description: Verbind NextChat met RunAPI via een aangepast eindpunt en model.
url: https://runapi.ai/nl/docs/resources/application-practices/nextchat.md
canonical: https://runapi.ai/nl/docs/resources/application-practices/nextchat
locale: nl
---

> HTML-versie: https://runapi.ai/nl/docs/resources/application-practices/nextchat
> Site-index voor agents: https://runapi.ai/llms.txt

# NextChat

Verbind NextChat met RunAPI via het aangepaste OpenAI-eindpunt. NextChat stelt het bewerkingspad anders samen dan de andere clients in deze groep; gebruik daarom de exacte eindpuntwaarde hieronder. Maak een standaard RunAPI API-sleutel aan in de [Authenticatiehandleiding](https://runapi.ai/nl/docs/guides/authentication.md) voordat u verdergaat.

## NextChat installeren of implementeren

Kies een desktoprelease of implementatiemethode uit de [officiële NextChat-repository][1] en open vervolgens **Instellingen**.



[1]: https://github.com/ChatGPTNextWeb/NextChat

## Het aangepaste eindpunt configureren

1.  Schakel in de webapplicatie **Aangepast eindpunt** in en selecteer
    **OpenAI**. De desktopapplicatie gebruikt altijd aangepaste
    configuratie.
2.  Stel het eindpuntadres in op `https://runapi.ai` zonder `/v1`.
3.  Voer uw RunAPI API-sleutel in.
4.  Voeg onder **Aangepaste modelnaam** een exacte identificator toe uit de [Modelcatalogus](https://runapi.ai/nl/models) en selecteer deze voor het huidige gesprek.

Deze instelling is het eindpuntroot van NextChat, niet de OpenAI-compatibele basis-URL die wordt gebruikt door een OpenAI SDK. NextChat voegt zelf `v1/chat/completions` toe, wat resulteert in `https://runapi.ai/v1/chat/completions`. De OpenAI-client haalt de RunAPI-modellijst niet op, dus voeg de identifier handmatig toe in plaats van te wachten op detectie.

## Een zelfgehoste implementatie configureren

Voor een zelfgehoste installatie stelt u deze omgevingsvariabelen in en
herplaatst of herstart u de applicatie:

```shell
BASE_URL=https://runapi.ai
OPENAI_API_KEY=YOUR_RUNAPI_API_TOKEN
CUSTOM_MODELS=+YOUR_RUNAPI_MODEL_ID
```

Het voorvoegsel `+` voegt het model toe zonder de bestaande modelitems van de applicatie te vervangen.

## De verbinding verifiëren

Start een nieuwe chat, selecteer het aangepaste RunAPI-model en stuur `Reply with
the word connected.` Een normale volledige of gestreamde respons bevestigt dat het aangepaste eindpunt actief is.

## Probleemoplossing

* **De verzoek-URL bevat `/v1/v1/chat/completions`:** verwijder `/v1` uit het
  eindpuntadres en gebruik `https://runapi.ai`.
* **NextChat gebruikt nog steeds een ingebouwd model:** voeg de exacte identificator
  toe onder **Custom Model Name** en selecteer het vervolgens opnieuw in de huidige chat.
* **Webinstellingen hebben geen effect:** controleer of **Custom Endpoint** is
  ingeschakeld; de desktop- en webapplicaties verwerken deze schakelaar anders.
* **Wijzigingen in een zelfgehoste omgeving hebben geen effect:** herstart of
  herdeployeer na het wijzigen van `BASE_URL`, `OPENAI_API_KEY` of `CUSTOM_MODELS`.

Gebruik de [LLM API-snelstart](https://runapi.ai/nl/docs/guides/llm-api/quickstart.md) voor gedeeld protocolgedrag. Gebruik de [Chat Completions API-referentie](https://runapi.ai/nl/docs/api/openai/chat-completions.md) voor aanvraag- en antwoordvelden.

---

## Meer van RunAPI

- [Home](https://runapi.ai/nl/.md)
- [Modelcatalogus](https://runapi.ai/nl/models.md)
- [Prijzen](https://runapi.ai/nl/pricing.md)
- [Providers](https://runapi.ai/nl/models)
- [Documentatie](https://runapi.ai/nl/docs/guides)
- [SDK's](https://runapi.ai/nl/sdk.md)
- [CLI](https://runapi.ai/nl/cli.md)
- [MCP Server](https://runapi.ai/nl/mcp.md)
- [Claude Code vs Cursor](https://runapi.ai/nl/claude-code-vs-cursor.md)
- [Cursor API instellen](https://runapi.ai/nl/cursor-api-setup.md)
- [RunAPI vs OpenRouter](https://runapi.ai/nl/openrouter-alternative.md)
- [Enterprise](https://runapi.ai/nl/contact.md)
- [Contact](https://runapi.ai/nl/contact.md)
- [Voorwaarden](https://runapi.ai/nl/terms.md)
- [Privacy](https://runapi.ai/nl/privacy.md)
- [Site-index voor agents](https://runapi.ai/llms.txt)

Contact: contact@runapi.ai

## Gestructureerde gegevens

```json
[
  {
    "@context": "https://schema.org",
    "inLanguage": "nl",
    "@type": "WebSite",
    "name": "RunAPI",
    "url": "https://runapi.ai/nl",
    "potentialAction": {
      "@type": "SearchAction",
      "target": {
        "@type": "EntryPoint",
        "urlTemplate": "https://runapi.ai/nl/models?q={search_term_string}"
      },
      "query-input": "required name=search_term_string"
    }
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "nl",
    "@type": "Organization",
    "name": "RunAPI",
    "url": "https://runapi.ai/nl",
    "logo": {
      "@type": "ImageObject",
      "url": "https://runapi.ai/nlicon.svg"
    },
    "sameAs": [
      "https://github.com/runapi-ai"
    ]
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "nl",
    "@type": "TechArticle",
    "headline": "NextChat",
    "description": "Verbind NextChat met RunAPI via een aangepast eindpunt en model.",
    "url": "https://runapi.ai/nl/docs/resources/application-practices/nextchat",
    "mainEntityOfPage": "https://runapi.ai/nl/docs/resources/application-practices/nextchat"
  }
]
```
