API Reference
API Reference Overview
A quick reference for public TENSORAXIS API endpoints.
All APIs use the API origin https://api.tensoraxis.com. For OpenAI SDKs, set base_url to https://api.tensoraxis.com/v1.
Endpoint support varies by model. Before sending production traffic, check Model List or the Model Library for model capabilities.
Core Endpoints
| API | Method | Path | Type |
|---|---|---|---|
| Chat Completions | POST | /v1/chat/completions | Sync, streaming optional |
| Text Completions | POST | /v1/completions | Sync, streaming optional |
| Responses | POST | /v1/responses | Sync, streaming optional |
| Embeddings | POST | /v1/embeddings | Sync |
| Images | POST | /v1/images/generations | Sync, streaming depends on model |
| Image Edits | POST | /v1/images/edits | Sync |
| Audio | POST | /v1/audio/speech | Sync, streaming depends on model |
| Audio Transcriptions | POST | /v1/audio/transcriptions | Sync |
| Audio Translations | POST | /v1/audio/translations | Sync |
| Rerank | POST | /v1/rerank | Sync |
| Video | POST | /v1/video/generations | Async task |
| Models | GET | /v1/models | Sync |
Compatible and Native APIs
| Type | Path | Notes |
|---|---|---|
| OpenAI-compatible | /v1/* | Use OpenAI SDKs with base_url=https://api.tensoraxis.com/v1 |
| Claude native | /v1/messages | Use x-api-key and anthropic-version |
| Gemini native | /v1beta/models/* | Use x-goog-api-key or ?key= |
| OpenAI/Sora video | /v1/videos | OpenAI/Sora-style video task compatibility endpoints |
For authentication, errors, rate limits and Base URL details, see Concepts.