Network route / beta

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 toHow you sign inWhat you copy
Add a machine to the networkRun the node installer, then approve in the browserNothing
Call the API from your own toolAPI key from the dashboardThe key
Install many Linux machinesEnroll token from the dashboardOne command

tessovix-node is the program of a machine that you add to the network.

Base URL: https://relay.tessovix.com/v1

Network API

Quickstart

  1. 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.
  2. Set the base URL to https://relay.tessovix.com/v1 and the API key to your key.
  3. 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>.

EndpointWhat it does
POST /v1/chat/completionsChat completion. Set "stream": true to receive server-sent events, as with OpenAI.
GET /v1/modelsLists the models your key can use.
GET /v1/tessovix/usageNetwork hours used this week, your weekly limit and bonus hours, plus today's request counts and contribution points.

Models

ModelNotes
qwen2.5-coder-1.5b-instructSmall 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

PlanStateMachines that serve you
Free (Community)Open.Your own, community, partner and data-center machines.
StudentComing soon. It opens when we can check a school email.Your own, partner and data-center machines.
Starter, Plus, ProComing 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.

PlanNetwork hours per weekRequests per minute, per key
Free (Community), beta160600

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"}}
StatusTypeMeaning
400invalid_request_errorThe request body is not valid.
401authentication_errorMissing, revoked or unknown API key.
403permission_errorNot allowed. On the dashboard: your email address is not verified, or the plan is not open yet.
409limit_errorA limit was reached, for example 20 active keys per account.
429rate_limit_errorToo many requests per minute, or too many requests that wait. Wait the number of seconds in the Retry-After header.
429insufficient_quotaYour weekly network hours are used up.
502bad_gateway_errorThe machine that served the request failed. Retry.
503server_errorAll machines are busy. Wait the number of seconds in the Retry-After header.
503service_unavailable_errorNo machine can serve the request now. The network is best effort. Retry later, or route to your own provider key.
504timeout_errorThe 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.

Get an API key