Documentation

Quick Start

Token Factory serves an OpenAI-compatible API from self-hosted H100 hardware (3× H100 on a Jetstream2 ACCESS allocation through 2026-09-25; check the status page for current availability). If your tool speaks OpenAI, it already speaks Token Factory — point it at the base URL and go.

1. Get your API key

Create an account and generate a key from the dashboard. One click, no credit card during beta. During the private beta the API is served from our gateway endpoint below; the public endpoint ships with open beta.

2. First request

curl https://api.agent-next.com/v1/chat/completions \
  -H "Authorization: Bearer $TOKEN_FACTORY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "orcarouter/Qwen3.8-27B-Uncensored-FP8",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

API Basics

Claude Code

Claude Code can run against any OpenAI-compatible endpoint via the model provider configuration:

export ANTHROPIC_MODEL="orcarouter/Qwen3.8-27B-Uncensored-FP8"
export OPENAI_BASE_URL="https://api.agent-next.com/v1"
export OPENAI_API_KEY="$TOKEN_FACTORY_API_KEY"

We used this exact setup to run our own agent fleet on the factory — the dogs ate the dog food.

Coding Agents

Any OpenAI-compatible agent works by setting the base URL and key:

Python (OpenAI SDK)

from openai import OpenAI

client = OpenAI(
    base_url="https://api.agent-next.com/v1",
    api_key="$TOKEN_FACTORY_API_KEY",
)

resp = client.chat.completions.create(
    model="orcarouter/Qwen3.8-27B-Uncensored-FP8",
    messages=[{"role": "user", "content": "Write a haiku about GPUs."}],
)
print(resp.choices[0].message.content)

Available Models

Model IDContextBest atServed on
orcarouter/Qwen3.8-27B-Uncensored-FP8 131K Coding, tool calling, fast loops 2× H100 (load-balanced)
openai/gpt-oss-120b 131K Deep reasoning, analysis 1× H100 (direct endpoint)

Fleet layout above is as of the 2026-09-25 allocation end. Live health for each model is on the status page.

Limits & Fair Use

Quick reference