TokenRa
中文Get API Key

Text model · Thinking Machines

Inkling 2 Mini API

Inkling 2 Mini is a small Thinking Machines model served on TokenRa through OpenAI Chat Completions. It returns its reasoning text alongside the answer and supports function calling.

Model ID
inkling-2-mini
API formats
Chat Completions
Input
Text
Output
Text
Tier
Small 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. Small 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 the openai endpoint 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.

ParameterTypeRequiredDescription
modelstringYesThe model ID to call, for example inkling-2-mini.
messagesarrayYesConversation messages in order. content can be a string or an array of parts.
streambooleanNoDefaults to false: the reply is one JSON body. Send true for server-sent events.
stream_optionsobjectNoWith {"include_usage": true} the last chunk carries usage.
max_tokensintegerNoUpper limit for generated tokens, reasoning included.
temperaturenumberNoSampling temperature.
top_pnumberNoNucleus sampling threshold. Tune this or temperature, not both.
toolsarrayNoSupported. A request with a tools array returns tool_calls and finish_reason: tool_calls.
userstringNoYour own end-user identifier for auditing. Not part of the conversation.
Response fields this model returns
  • message.reasoning and message.reasoning_details[0].text carry the reasoning text.
  • message.refusal is null unless the model declines.
Pricing

Input $0.225 · output $0.90 · cached input $0.045 per 1M tokens. Inkling 2 Mini is half the price of Inkling 2 Small on both input and output. The cheapest model with a visible reasoning trace on TokenRa: $0.225 per 1M input tokens.

Response

Response format

Example response
{
  "id": "gen-1796172254-qY2mdEvtJA9wMHyhVMje",
  "model": "thinkingmachines/inkling-2-mini",
  "object": "chat.completion",
  "created": 1796172254,
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "An API gateway acts as a single entry point that receives, routes, secures, and sometimes transforms client requests to backend services while applying cross-cutting policies like authentication, rate limiting, and monitoring.",
        "refusal": null,
        "reasoning": "The user asks for an explanation in one sentence. Compose a concise single sentence covering routing, security and shared policies.",
        "reasoning_details": [
          {
            "type": "reasoning.text",
            "text": "The user asks for an explanation in one sentence. Compose a concise single sentence covering routing, security and shared policies."
          }
        ]
      },
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 26,
    "completion_tokens": 175,
    "total_tokens": 201,
    "prompt_tokens_details": {
      "cached_tokens": 0
    },
    "completion_tokens_details": {
      "reasoning_tokens": 0
    }
  }
}
FieldTypeDescription
idstringCompletion ID. Include it when you contact support.
objectstringchat.completion, or chat.completion.chunk when streaming.
createdintegerUnix timestamp in seconds.
choices[0].message.contentstringThe answer text.
choices[0].finish_reasonstringstop on a normal reply; tool_calls when the model calls a function.
usage.prompt_tokensintegerInput tokens, billed at the input rate.
usage.completion_tokensintegerOutput tokens, billed at five times the input rate.
usage.completion_tokens_details.reasoning_tokensintegerHow many output tokens went to reasoning. Billed at the output rate.

Errors

Errors & limits

Common errors

HTTPerror.codeMeaningWhat 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.
500invalid_requestA required field is missing, for example messages.Add the field named in the message. Retrying will not help.
403insufficient_user_quotaYour balance or plan quota is used up.Top up in the console, then retry.
503model_not_foundUnknown 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": true for server-sent events.
  • Function calling is available: a tools request returns tool_calls with empty content.
  • The reasoning text is returned in message.reasoning and message.reasoning_details[0].text, and is billed as output tokens.
  • Pricing: input $0.225 and output $0.90 per 1M tokens; cached input $0.045.