Core Concepts
OpenAI Compatibility
TARX is a drop-in replacement for OpenAI's API. Every endpoint, parameter, and response shape is identical. Migrate any OpenAI, Groq, or Anthropic client in one line.
Migration examples
From OpenAI
# Before
client = OpenAI(base_url="https://api.openai.com/v1", api_key="sk-...")
# After
client = OpenAI(base_url="http://localhost:11435/v1", api_key="none")From Groq
# Before
client = OpenAI(base_url="https://api.groq.com/openai/v1", api_key="gsk_...")
# After
client = OpenAI(base_url="http://localhost:11435/v1", api_key="none")From Azure OpenAI
# Before
client = OpenAI(base_url="https://your-resource.openai.azure.com", api_key="...")
# After (enterprise fleet)
client = OpenAI(base_url="https://tarx.your-company.com/v1", api_key="tarx_...")Supported endpoints
| Endpoint | Status |
|---|---|
POST /v1/chat/completions | Full support |
POST /v1/embeddings | Full support |
GET /v1/models | Full support |
GET /v1/models/:id | Full support |
POST /v1/completions | Full support |
POST /v1/images/generations | Coming V1.1 |
POST /v1/audio/transcriptions | Coming V1.1 |