Text Generator Brain Text Generator
One API for the best AI models

Build once.
Use the best of AI.

Reach the leading models for chat, code, reasoning, and vision through one familiar API. Choose a model yourself, or let Auto choose for every request.

check_circle OpenAI compatible check_circle One credit balance check_circle Fully open source
Smart routeReady
Request
“Review this authentication code for security issues.”
01
Task understoodSecurity · code review · complex
check
02
Best fit selectedStrong coding and security reasoning
check
03
GPT-5.6 SolOpenAI · fallback ready
Selected
Unlimited subscription

Unlimited chat, UI tools, and provider APIs.

One subscription unlocks unlimited use across Text Generator: chat in the UI, create with the playground and built-in tools, or call the full provider network through our OpenAI-compatible API.

forum
Unlimited chat and UI useUse chat, the playground, and built-in creation tools without counting credits.
hub
Every API providerReach the supported provider network from one endpoint with unlimited API access.
toll
Credits are still optionalPrefer pay as you go? Buy API credits with no subscription required.
Built for production

Your model layer, under control.

Use an exact model when consistency matters. Choose Auto when you want quality, speed, and price balanced for you.

Read the API docs arrow_forward
swap_horiz

Built-in fallbacks

Keep requests moving when a provider is rate-limited or unavailable.

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

Private by design

Model selection happens without sending your prompt through another AI call.

OpenAI 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, from API to router.

Inspect the code, run it yourself, or help shape what comes next. The complete platform is available on GitHub.

Explore the source north_east
Unlimited or pay as you go

Use every surface your way.

Subscribe for unlimited chat, UI tools, and provider APIs, or start free and add API credits when you need them.