Tessovix network API
The Tessovix network is on hold. There is no promise of capacity or uptime.
The Tessovix network API speaks the OpenAI API: point any OpenAI client at one base URL and use your key.
Sign in or use a key
| You want to | How you sign in | What you copy |
|---|---|---|
| Add a machine to the network | Run the node installer, then approve in the browser | Nothing |
| Call the API from your own tool | API key from the dashboard | The key |
| Install many Linux machines | Enroll token from the dashboard | One command |
tessovix-node is the program of a machine that you add to the network.
Network API
Quickstart
- Get a key. Sign in on the dashboard and create an API key. It is shown once; a new key can take up to 60 seconds to start working.
- Set the base URL to
https://relay.tessovix.com/v1and the API key to your key. - Call the API. Examples below.
curl
curl https://relay.tessovix.com/v1/chat/completions \
-H "Authorization: Bearer $TESSOVIX_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"qwen2.5-coder-1.5b-instruct","messages":[{"role":"user","content":"Say hello"}]}'
Python
import os
from openai import OpenAI
client = OpenAI(
base_url="https://relay.tessovix.com/v1",
api_key=os.environ["TESSOVIX_API_KEY"],
)
reply = client.chat.completions.create(
model="qwen2.5-coder-1.5b-instruct",
messages=[{"role": "user", "content": "Say hello"}],
)
print(reply.choices[0].message.content)
Node
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://relay.tessovix.com/v1",
apiKey: process.env.TESSOVIX_API_KEY,
});
const reply = await client.chat.completions.create({
model: "qwen2.5-coder-1.5b-instruct",
messages: [{ role: "user", content: "Say hello" }],
});
console.log(reply.choices[0].message.content);
Endpoints
Every request needs Authorization: Bearer <your key>.
| Endpoint | What it does |
|---|---|
POST /v1/chat/completions | Chat completion. Set "stream": true to receive server-sent events, as with OpenAI. |
GET /v1/models | Lists the models your key can use. |
GET /v1/tessovix/usage | Network hours used this week, your weekly limit and bonus hours, plus today's request counts and contribution points. |
Models
| Model | Notes |
|---|---|
qwen2.5-coder-1.5b-instruct | Small coding model (Qwen2.5-Coder 1.5B Instruct, Q4_K_M). Requests to it do not use your weekly network hours. |
One reply has at most 4,096 output tokens. A larger max_tokens is lowered to that value. The context size depends on the machine that serves the request; today it is 12,800 tokens.
Call GET /v1/models with your key for the current list.
Plans
| Plan | State | Machines that serve you |
|---|---|---|
| Free (Community) | Open. | Your own, community, partner and data-center machines. |
| Student | Coming soon. It opens when we can check a school email. | Your own, partner and data-center machines. |
| Starter, Plus, Pro | Coming soon. | Your own, partner and data-center machines. |
During early access the network has community machines only. An account on a Student or paid plan gets no reply from other owners' machines.
Rate limits
These are the current beta's limits, not the final plans.
| Plan | Network hours per week | Requests per minute, per key |
|---|---|---|
| Free (Community), beta | 160 | 600 |
A network hour is a 60-minute window that opens with a request served by another owner's machine. Running a node adds bonus hours; see contribution points. These are relaxed beta limits and may be lowered later with notice. A new or revoked key can take up to 60 seconds to take effect.
Errors
Errors use the OpenAI format with the matching HTTP status:
{"error": {"message": "missing or invalid API key", "type": "authentication_error"}}
| Status | Type | Meaning |
|---|---|---|
| 400 | invalid_request_error | The request body is not valid. |
| 401 | authentication_error | Missing, revoked or unknown API key. |
| 403 | permission_error | Not allowed. On the dashboard: your email address is not verified, or the plan is not open yet. |
| 409 | limit_error | A limit was reached, for example 20 active keys per account. |
| 429 | rate_limit_error | Too many requests per minute, or too many requests that wait. Wait the number of seconds in the Retry-After header. |
| 429 | insufficient_quota | Your weekly network hours are used up. |
| 502 | bad_gateway_error | The machine that served the request failed. Retry. |
| 503 | server_error | All machines are busy. Wait the number of seconds in the Retry-After header. |
| 503 | service_unavailable_error | No machine can serve the request now. The network is best effort. Retry later, or route to your own provider key. |
| 504 | timeout_error | The machine did not reply in time. Retry. |
If the relay is offline, Cloudflare returns an HTML error page with a 5xx status. Sign-in and API keys still work.