Text Generator Brain Text Generator
Open source · OpenAI compatible

One API.
The right model, every time.

Route chat, reasoning, code, and vision across 14 leading AI providers. Auto picks the model, fails over when providers wobble, and keeps spend visible in one credit balance.

check_circle One OpenAI SDK check_circle Pay-as-you-go credits check_circle Self-hostable
POST /v1/chat/completions200 OK
model: "text-generator/auto"
prompt: "Review this auth middleware for vulnerabilities"
01
UNDERSTANDsecurity · code review · high context
check
02
ROUTEAuto Code · semantic match 0.94
check
03
CLAUDE SONNETAnthropic · fallback ready
32ms
Built for production

Routing without surrendering control.

Pick an exact model when you need determinism. Choose an Auto profile when you want the router to balance quality, latency, and price.

Read the API docs arrow_forward
swap_horiz

Provider failover

Retry transient upstream failures through model-aware fallback chains.

account_balance_wallet

One credit balance

Fund once, use every routed model, and keep usage in one account.

key

Your keys or ours

Use the managed gateway now and retain a clean path to provider keys.

visibility_off

Privacy first

Local task classification keeps routing fast and avoids an extra AI call.

PythonJavaScriptOpenAI SDK
from openai import OpenAI

client = OpenAI(
    base_url="https://api.text-generator.io/v1",
    api_key="YOUR_API_KEY",
)

response = client.chat.completions.create(
    model="text-generator/auto",
    messages=[{"role": "user",
               "content": "Ship something great"}],
)
A two-line migration

Keep the SDK.
Change the destination.

Point the OpenAI client at Text Generator and unlock the provider network without rewriting your application.

  • checkChat completions and streaming-compatible responses
  • checkAliases, Auto profiles, and exact model IDs
  • checkRouting metadata and provider response headers
Create a free API key
{}
Built in the open

Open source all the way down.

The gateway, auto-router, tokenizer, embeddings, and search index are inspectable. Fork it, self-host it, or help us make routing better.

Explore the source north_east
Start with free credits

One endpoint. More ways through.

Build against the model network today and keep your options open tomorrow.