Text model · Thinking Machines
Inkling 2 Small API
Inkling 2 Small is the larger Thinking Machines model on TokenRa. It returns its reasoning text alongside the answer, supports function calling, and answers with a single JSON body by default.
- Model ID
inkling-2-small- API formats
- Chat Completions
- Input
- Text
- Output
- Text
- Tier
- Mid-size reasoning model
- For AI agents
- llms.txt guide
Capabilities
Capabilities & endpoints
Chat generation over OpenAI Chat Completions. Called successfully on tokenra.io on 2026-12-02. Mid-size reasoning model.
POSThttps://tokenra.io/v1/chat/completionsTested
OpenAI SDK with
base_url="https://tokenra.io/v1". Auth: Authorization: Bearer.Not available for this model
- Anthropic Messages (
/v1/messages): the model is published on the HTTP gateway with theopenaiendpoint type only. - OpenAI Responses (
/v1/responses) is not exposed either.
Request
Request parameters
Fields for POST /v1/chat/completions. Everything listed was accepted by the model in testing.
| Parameter | Type | Required | Description |
|---|---|---|---|
model | string | Yes | The model ID to call, for example inkling-2-small. |
messages | array | Yes | Conversation messages in order. content can be a string or an array of parts. |
stream | boolean | No | Defaults to false: the reply is one JSON body. Send true for server-sent events. |
stream_options | object | No | With {"include_usage": true} the last chunk carries usage. |
max_tokens | integer | No | Upper limit for generated tokens, reasoning included. |
temperature | number | No | Sampling temperature. |
top_p | number | No | Nucleus sampling threshold. Tune this or temperature, not both. |
tools | array | No | Supported. A request with a tools array returns tool_calls and finish_reason: tool_calls. |
user | string | No | Your own end-user identifier for auditing. Not part of the conversation. |
Response fields this model returns
message.reasoningandmessage.reasoning_details[0].textcarry the reasoning text.message.refusalisnullunless the model declines.
Pricing
Input $0.45 · output $1.50 · cached input $0.09 per 1M tokens. Inkling 2 Small costs twice Inkling 2 Mini on both input and output tokens. Inkling 2 Small is priced twice Inkling 2 Mini and answers with a shorter reasoning trace.
Response
Response format
{
"id": "gen-1796172255-k2LmPqRt8YxWvB3nQdHs",
"model": "thinkingmachines/inkling-2-small",
"object": "chat.completion",
"created": 1796172255,
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "An API gateway acts as a single entry point for client requests, routing them to the right backend services while applying authentication, rate limiting and monitoring.",
"refusal": null,
"reasoning": "The user wants one sentence on what an API gateway does. Keep it short and accurate: entry point, routing, shared policies.",
"reasoning_details": [
{
"type": "reasoning.text",
"text": "The user wants one sentence on what an API gateway does. Keep it short and accurate: entry point, routing, shared policies."
}
]
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 26,
"completion_tokens": 115,
"total_tokens": 141,
"prompt_tokens_details": {
"cached_tokens": 0
},
"completion_tokens_details": {
"reasoning_tokens": 0
}
}
}| Field | Type | Description |
|---|---|---|
id | string | Completion ID. Include it when you contact support. |
object | string | chat.completion, or chat.completion.chunk when streaming. |
created | integer | Unix timestamp in seconds. |
choices[0].message.content | string | The answer text. |
choices[0].finish_reason | string | stop on a normal reply; tool_calls when the model calls a function. |
usage.prompt_tokens | integer | Input tokens, billed at the input rate. |
usage.completion_tokens | integer | Output tokens, billed at five times the input rate. |
usage.completion_tokens_details.reasoning_tokens | integer | How many output tokens went to reasoning. Billed at the output rate. |
Errors
Errors & limits
Common errors
| HTTP | error.code | Meaning | What to do |
|---|---|---|---|
401 | — | Missing, wrong or deleted API key. The message is Invalid token. | Check the Authorization: Bearer header and the key in the console. |
400 | — | The body is not valid JSON. | Fix the JSON and send Content-Type: application/json. |
500 | invalid_request | A required field is missing, for example messages. | Add the field named in the message. Retrying will not help. |
403 | insufficient_user_quota | Your balance or plan quota is used up. | Top up in the console, then retry. |
503 | model_not_found | Unknown model ID, or no channel serves it for your group. | Check the ID in the model list or with GET /v1/models. |
429 | — | Too many requests. | Back off exponentially and retry. |
5xx | — | The upstream provider failed or timed out. | Retry a few times; keep the request id if it persists. |
Limits and notes
- The reply is one JSON body by default; send
"stream": truefor server-sent events. - Function calling is available: a
toolsrequest returnstool_callswith emptycontent. - The reasoning text is returned in
message.reasoningandmessage.reasoning_details[0].text, and is billed as output tokens. - Pricing: input $0.45 and output $1.50 per 1M tokens; cached input $0.09.