For the complete documentation index, see llms.txt. This page is also available as Markdown.

Overview

Complete API documentation for integrating TensorX into your applications.


Introduction

The TensorX API provides OpenAI-compatible endpoints for accessing leading open-source and proprietary AI models. Our REST API supports both streaming and non-streaming responses, making it easy to integrate with existing applications.


Base URL

https://api.tensorx.ai/v1

Authentication

The TensorX API uses API keys for authentication. Get your API key from your TensorX dashboard.

Authorization: Bearer YOUR_API_KEY

Available Endpoints

Endpoint
Method
Description

/v1/chat/completions

POST

Create chat completions

/v1/models

GET

List available models


Quick Example


Response Format

All API responses are returned in JSON format:


Error Handling

The API uses standard HTTP status codes:

Status Code
Description

200

Success

400

Bad Request - Invalid parameters

401

Unauthorized - Invalid or missing API key

402

Payment Required - Insufficient credits

429

Rate Limited - Too many requests

500

Server Error - Try again later

Error responses include a message:


Rate Limits

Current Limits

Resource
Limit

Requests per minute (RPM)

60

Tokens per minute (TPM)

2,000,000

These limits apply per API key. Each key you create has its own independent rate limit.

Checking Your Usage

Every API response includes headers showing your current rate limit status:

Header
Description

x-ratelimit-api_key-remaining-requests

Requests remaining this minute

x-ratelimit-api_key-remaining-tokens

Tokens remaining this minute

Need Higher Limits?

For enterprise workloads requiring higher limits:

📧 Contact us: support@tensorx.ai

Enterprise clients can receive custom rate limits tailored to their workload.


SDKs & Libraries

Use any OpenAI-compatible SDK with TensorX:

Python (OpenAI SDK)

JavaScript/Node.js


Next Steps

  • Chat Completions - Create chat completions

  • Models - View available models

  • API Examples - Code examples in multiple languages

Last updated

Was this helpful?