MINTOK
1658 CODING SCORE
LOG IN BUY PRO ($9.99)
MINTOK DEVELOPER PLATFORM // API SPECIFICATION

Documentation & API Reference

MinTok is a drop-in inference compiler for autonomous coding agents. Learn how to connect the MinTok CLI, integrate OpenAI-compatible SDKs, and eliminate up to 84.7% of avoidable frontier token spend.

STEP 01

Quickstart Installation

MinTok can be installed across all major platforms using your preferred package manager, standalone script, or dedicated desktop studio:

# 1. macOS / Linux / WSL (cURL) — Recommended STANDALONE
curl -fsSL https://mintok.adstim.net/install | bash
# 2. Node.js (npm / npx) NPM REGISTRY
npm install -g mintok
# or run without installing: npx mintok --version
# 3. Homebrew (macOS) HOMEBREW TAP
brew install mintok/tap/mintok
# or direct formula: brew install https://mintok.adstim.net/formula/mintok.rb
4. MinTok Desktop Studio (GUI)
Standalone desktop cockpit with real-time AST viewer & avoidance gauge for macOS, Windows, Linux.
DOWNLOAD APP
STEP 02

Authentication

Authenticate the CLI using your API key from the Developer Dashboard:

mintok login --key mtk_live_9f81a7b...

Keys can also be passed via the MINTOK_API_KEY environment variable.

MODELS LINEUP

Available Models & Pricing

All models are served via dedicated Serverless GPU pools with automatic scale-to-zero economics:

MODEL ID ARENA SCORE PROMPT / M COMPLETION / M AVG TASK COST
mintok-1-max (MinTok 1 Max) 1658 $0.42 $1.32 $0.00436
mintok-1-pro (MinTok 1 Pro) 1638 $0.085 $0.24 $0.000837
mintok-1-flash (MinTok 1 Flash) 1615 $0.05 $0.15 $0.000507
INTEGRATION

OpenAI-Compatible Chat Completions

Directly target MinTok endpoints from the standard OpenAI Python or TypeScript SDK:

Python OpenAI SDK Example:
from openai import OpenAI

client = OpenAI(
    base_url="https://mintok.adstim.net/v1",
    api_key="mtk_live_your_key_here"
)

response = client.chat.completions.create(
    model="mintok-1-pro",
    messages=[
        {"role": "system", "content": "You are an autonomous senior engineer."},
        {"role": "user", "content": "Refactor the database queries in auth.py to eliminate N+1 scans."}
    ],
    temperature=0.2
)

print(response.choices[0].message.content)
TELEMETRY

Streaming & Provenance Headers

Every completion response streams cryptographic metadata proving avoided spend:

x-mintok-tokens-saved: 39,560
x-mintok-avoidance-ratio: 84.7%
x-mintok-scale-mode: scale_to_zero
x-mintok-ir-version: mintok-ir/v2
ARCHITECTURE

AST Context Compiler Mechanics

MinTok compiles agent conversation history before GPU dispatch:

  • AST Slicing: Unreferenced declarations and dead code are pruned from injected context blocks.
  • Output Virtualization: Repetitive bash outputs and test traces are hashed and compressed to minimal failure summaries.
  • Deterministic Stopping: Guard checks terminate runaway retries early, saving up to 40,000 tokens on failing tasks.