Quickstart
Make your first request in two minutes.
Texhub Proxy gives you one API key and one base URL for models from OpenAI, Anthropic, Google and more. It speaks the OpenAI, Anthropic and Gemini wire formats, so you can keep using the official SDKs and tools: change the base URL and the key, and you are done.
1. Create an account and a key
- Sign up and verify your email (keys do not work until your email is verified).
- Add balance on the Billing page. Usage is deducted from your prepaid balance.
- Create a key on the API Keys page. The full key is shown once; copy it somewhere safe.
2. Base URLs
| API | Base URL |
|---|---|
| OpenAI-compatible | https://provider.texhub.ai/v1 |
| Anthropic-compatible | https://provider.texhub.ai |
| Gemini-compatible | https://provider.texhub.ai/v1beta |
The Anthropic SDK appends /v1/messages itself, so give it the origin (https://provider.texhub.ai) as its base URL.
3. Make a request
OpenAI-compatible (Chat Completions)
bash
curl https://provider.texhub.ai/v1/chat/completions \
-H "Authorization: Bearer sk-pp-YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-6-astra",
"messages": [{"role": "user", "content": "Say hello in five words."}]
}'Anthropic-compatible (Messages)
bash
curl https://provider.texhub.ai/v1/messages \
-H "x-api-key: sk-pp-YOUR_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "Content-Type: application/json" \
-d '{
"model": "claude-fable-5-1",
"max_tokens": 1024,
"messages": [{"role": "user", "content": "Say hello in five words."}]
}'Gemini-compatible (generateContent)
bash
curl "https://provider.texhub.ai/v1beta/models/gemini-3.1-pro:generateContent" \
-H "x-goog-api-key: sk-pp-YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"contents": [{"role": "user", "parts": [{"text": "Say hello in five words."}]}]
}'Which model should I use?
Browse Pricing for the live catalog, or call
GET /v1/models with your key to see the models available to it.