Concepts
Base URLs and Endpoints
API domains, SDK base URLs, and the main endpoint map.
TENSORAXIS uses a dedicated API domain for model calls while keeping the legacy API entry under the main site.
| Use Case | URL |
|---|---|
| API Origin | https://api.tensoraxis.ai |
OpenAI SDK base_url / baseURL | https://api.tensoraxis.ai/v1 |
| Legacy compatible origin | https://www.tensoraxis.ai/v1 |
| Docs, model plaza, and console | https://www.tensoraxis.ai |
Do not rely on 301/302 redirects for POST API requests. Production integrations should call https://api.tensoraxis.ai directly.
OpenAI SDK Example
from openai import OpenAI
client = OpenAI(
api_key="your-tensoraxis-api-key",
base_url="https://api.tensoraxis.ai/v1",
)import OpenAI from 'openai'
const client = new OpenAI({
apiKey: process.env.TENSORAXIS_API_KEY,
baseURL: 'https://api.tensoraxis.ai/v1',
})Endpoint Overview
| Method | Path | Purpose | Type |
|---|---|---|---|
GET | /v1/models | List available models | Sync |
GET | /v1/models/{model} | Retrieve model details | Sync |
POST | /v1/chat/completions | Chat Completions | Sync/streaming |
POST | /v1/completions | Legacy Completions | Sync/streaming |
POST | /v1/responses | Responses API | Sync/streaming |
POST | /v1/responses/compact | Responses context compaction | Sync |
POST | /v1/embeddings | Text embeddings | Sync |
POST | /v1/rerank | Document reranking | Sync |
POST | /v1/images/generations | Image generation | Sync/model-dependent |
POST | /v1/images/edits | Image editing | Sync/model-dependent |
POST | /v1/audio/transcriptions | Speech to text | Sync |
POST | /v1/audio/translations | Speech translation | Sync |
POST | /v1/audio/speech | Text to speech | Sync/streaming |
GET | /v1/realtime | Realtime WebSocket | WebSocket |
POST | /v1/video/generations | Submit a video generation task | Async task |
GET | /v1/video/generations/{task_id} | Fetch a video task | Async task |
POST | /v1/videos | OpenAI/Sora-style video task submit | Async task |
GET | /v1/videos/{task_id} | OpenAI/Sora-style video task fetch | Async task |
GET | /v1/videos/{task_id}/content | Proxy video content download | Sync proxy |
POST | /v1/messages | Claude-native Messages | Sync/streaming |
POST | /v1beta/models/{model}:{action} | Gemini-native call | Sync/streaming |
The first API Reference pass focuses on OpenAI-compatible APIs and asynchronous video tasks. Claude-native and Gemini-native APIs are listed here first; use their SDKs and model-specific notes for request details.