Inkling 2 API: Providers, Pricing & Quickstart

Every verified way to call Inkling 2 over an API — providers, real entry pricing, and copy-paste code.

Inkling 2 is available through hosted APIs, so you can use either model without owning any GPU. This page lists the verified providers, real entry pricing, and working request code. Prices checked November 27, 2026 — providers change pricing often, so confirm on their pages before budgeting.

Where to get an Inkling 2 API key

Provider Models Notes
Tinker (Thinking Machines) Small + Mini The lab's own platform; also fine-tuning. Playground for quick tests
OpenRouter Small + Mini One key, many backends; Mini from $0.02625/M input tokens. Free Small endpoint for agentic harnesses (prompts logged)
NVIDIA, Fireworks, Together, Baseten, Nebius, Modal, Cloudflare Small (+Mini on several) Listed as inference providers on the model card

The free Small endpoint, honestly: OpenRouter's free Inkling 2 Small route is restricted to agentic harnesses, and Thinking Machines logs your prompts and outputs to improve its models. Never send confidential or personal data through it. Paid tiers have their own data terms — read them.

Quickstart (OpenRouter, OpenAI-compatible)

from openai import OpenAI

client = OpenAI(
    base_url="https://openrouter.ai/api/v1",
    api_key="YOUR_OPENROUTER_KEY",
)

resp = client.chat.completions.create(
    model="thinkingmachines/inkling-2-mini",
    messages=[{"role": "user", "content": "Explain looped transformers in one paragraph."}],
)
print(resp.choices[0].message.content)

Swap the model slug to thinkingmachines/inkling-2-small for the flagship. Streaming, JSON mode and tool calling follow each provider's OpenAI-compatible conventions.

What Inkling 2 API usage costs

OpenRouter's listed Mini pricing starts at $0.02625 per million input tokens and $0.105 per million output tokens, with faster or flex tiers priced differently per provider. At those entry rates:

Small costs more per token than Mini on every provider. Route simple agent steps to Mini and escalate only when its knowledge limits show — that two-model pattern is how the heaviest OpenRouter users (coding agents like OpenHands, which the provider leaderboard shows driving billions of Mini tokens) keep costs sane.

Local vs API: the honest trade-off

Many teams do both: local Mini for private repos, API Small for hard problems.

Frequently asked questions

Does Inkling 2 have an API?
Yes. Thinking Machines serves it through Tinker, the model card lists NVIDIA, Fireworks, Together, Baseten, Nebius, Modal and Cloudflare as inference providers, and OpenRouter routes to several backends with one API key.
How much does the Inkling 2 API cost?
Inkling 2 Mini starts at $0.02625 per million input tokens and $0.105 per million output tokens on OpenRouter (checked November 27, 2026). Small is priced higher per token. A free, logged Small endpoint exists for agentic harnesses.
Is there a free Inkling 2 API?
OpenRouter lists a free Inkling 2 Small endpoint restricted to agentic harnesses. Prompts and outputs are logged and used to improve Thinking Machines' models — fine for experiments, never for confidential data.
Is the Inkling 2 API OpenAI-compatible?
On OpenRouter, yes — point the OpenAI SDK at https://openrouter.ai/api/v1 and use the model slug thinkingmachines/inkling-2-mini or thinkingmachines/inkling-2-small. Other providers follow their own OpenAI-compatible conventions.