NextChat API: Use FreeTheAI as a Custom Endpoint
NextChat uses FreeTheAI through its custom OpenAI endpoint. Add the model IDs to Custom Models so they appear in the picker.
Steps
Turn on the custom endpoint
Open Settings and turn on Custom Endpoint. Set Model Provider to OpenAI.
Enter the endpoint and key
Set OpenAI Endpoint to https://api.freetheai.org (NextChat adds /v1/chat/completions) and paste your key.
Add your models
In Custom Models, list the models you want, separated by commas, then pick one in a chat.
How this guide was checked: Checked against NextChat's source (custom endpoint settings and request paths) on 2026-09-29.
Troubleshooting
Why does NextChat call the wrong URL?
Enter the root address https://api.freetheai.org without /v1. NextChat appends v1/chat/completions itself.
Common errors
- 401: the key is wrong or incomplete. Paste the whole key.
- 403: follow a provider of the model, or confirm your email.
- 404: the model ID or URL is wrong.
- 429: daily limit reached, or too many requests at once.