• Playground
  • Models
  • Rankings
  • Pricing
  • Gift a planNew
  • Support
Docs
  • About Boundless
  • Quickstart
  • API Compatibility
  • Models
  • OpenAI SDK
  • Anthropic SDK
  • Vercel AI SDK
  • LangChain
  • Streaming
  • Tool calling
  • Reasoning
  • Errors
  • MPP & Agentic Payments
  • Credits & Billing
  • Gift cards
  • Rate Limits
  • Teams
  • Team keys and Member keys
  • Privacy & ZDR
  • FAQ
  • Coding agents
    Coding Agents & Harnesses
  • Claude Code
  • Claude Desktop
  • Codex CLI
  • Codex app
  • OpenCode
  • Cursor
  • Cline
  • GitHub Copilot
  • Kilo Code
  • Qwen Code
  • Amp
  • CodeBuddy
  • Hermes
  • Hermes Desktop
  • JetBrains AI & Junie
  • Cherry Studio
  • Mastra
  • MiMo Code
  • Muse
  • omp (Oh My Pi)
  • OpenClaw
  • OpenHands
  • T3 Code
  • Advanced
    System One
All systems operational
© 2026 BoundlessTermssupport@boundless.network

Quickstart

Get a key, send a request, and stream a first token.

Sign in, create a key, and send your first request.

Setting up a coding agent? curl -fsSL https://boundless.md/install | sh signs you in, creates a key, and configures Claude Code, Codex CLI, OpenCode and others in one step. See Coding Agents & Harnesses.

1. Get an API key#

Sign up or sign in. A new account is designed to be active the moment you sign up. Your first top-up of $10 or more on Billing comes with $5 of free credits. Create an API key yourself on the API keys page. You can give it an expiry of 1, 7, 30 or 90 days, after which it stops working. You don't need a sales call. All your keys share one credit balance.

Customer keys are restricted to inference and model discovery. They cannot call account, key, team, billing, or gateway routes. The grant is published in the OpenAPI spec.

Put the key in an environment variable. Every example below reads it from there:

export BOUNDLESS_API_KEY="paste-your-key-here"

2. Make your first request#

Pick a snippet and run it. cURL prints the full JSON response. Python and TypeScript print the reply text. The response also has a usage object with exact token counts.

curl https://api.inference.boundless.network/v1/chat/completions \
  -H "Authorization: Bearer $BOUNDLESS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepseek/deepseek-v4.1-flash-1017",
    "messages": [{
      "role": "user",
      "content": "Say hello"
    }]
  }'
import os
from openai import OpenAI

client = OpenAI(
  api_key=os.environ["BOUNDLESS_API_KEY"],
  base_url="https://api.inference.boundless.network/v1",
)

response = client.chat.completions.create(
  model="deepseek/deepseek-v4.1-flash-1017",
  messages=[{
    "role": "user",
    "content": "Say hello"
  }],
)

print(response.choices[0].message.content)
import OpenAI from 'openai'

const openai = new OpenAI({
  apiKey: process.env.BOUNDLESS_API_KEY,
  baseURL: "https://api.inference.boundless.network/v1",
})

const response = await openai.chat.completions.create({
  model: "deepseek/deepseek-v4.1-flash-1017",
  messages: [{
    "role": "user",
    "content": "Say hello"
  }],
})

console.log(response.choices[0].message.content)

3. Stream the reply#

Set stream to true to get the reply as it is written. Set stream_options.include_usage to true to get exact token counts in the last chunk. Each snippet prints the text as it arrives, then the usage.

cURL

curl -N https://api.inference.boundless.network/v1/chat/completions \
  -H "Authorization: Bearer $BOUNDLESS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepseek/deepseek-v4.1-flash-1017",
    "messages": [{ "role": "user", "content": "Say hello" }],
    "stream": true,
    "stream_options": { "include_usage": true }
  }'

Python

import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["BOUNDLESS_API_KEY"],
    base_url="https://api.inference.boundless.network/v1",
)

stream = client.chat.completions.create(
    model="deepseek/deepseek-v4.1-flash-1017",
    messages=[{"role": "user", "content": "Say hello"}],
    stream=True,
    stream_options={"include_usage": True},
)

for chunk in stream:
    if chunk.choices and chunk.choices[0].delta.content:
        print(chunk.choices[0].delta.content, end="", flush=True)
    if chunk.usage:
        print(f"\n{chunk.usage}")

TypeScript

import OpenAI from 'openai'

const openai = new OpenAI({
  apiKey: process.env.BOUNDLESS_API_KEY,
  baseURL: "https://api.inference.boundless.network/v1",
})

const stream = await openai.chat.completions.create({
  model: "deepseek/deepseek-v4.1-flash-1017",
  messages: [{ role: "user", content: "Say hello" }],
  stream: true,
  stream_options: { include_usage: true },
})

for await (const chunk of stream) {
  const text = chunk.choices[0]?.delta?.content
  if (text) process.stdout.write(text)
  if (chunk.usage) console.log("\n", chunk.usage)
}

The last chunk has an empty choices array and the usage object. Streaming explains the chunk format.

4. Check your usage#

Every response includes a usage object with exact token counts. Open the usage page to see per-request costs against your credit balance. If a number looks wrong, the receipt on that row is the source of truth. Tell us if it does not match what your client logged.

Next steps#

  • Streaming: read chunks, usage and dropped streams.
  • Tool calling: let the model call your functions.
  • Reasoning: tune thinking and size max_tokens.
  • Errors: every status and code, and how to retry safely.
  • Coding Agents & Harnesses: set up Claude Code, Codex CLI, OpenCode and more.
  • API Compatibility: the endpoints we serve and the ones we don't.
NextCoding Agents & Harnesses