Thinking Machinesのロゴ

OpenCodeでThinking Machines: Inkling 2 Smallをどうやって使いますか?

thinking-machines/inkling-2-small

OpenCodeは、MartLLMのOpenAI互換チャットアドレスを介してThinking Machines: Inkling 2 Smallにアクセスします。~/.config/opencode/opencode.jsonで、baseURLをhttps://api.martllm.com/v1に設定した@ai-sdk/openai-compatibleパッケージを使用するuberllmという名前のプロバイダーを追加し、そのモデルの下にthinking-machines/inkling-2-smallをリストし、あなたのMartLLMキーをUBERLLM_API_KEY環境変数に入れ、その後/modelsでuberllm/thinking-machines/inkling-2-smallを選択します。 limitの数値は、Thinking Machines: Inkling 2 Smallのコンテキストサイズと最大応答です。OpenCodeは、長いセッションをいつ圧縮するかを知るためにそれらを使用します。

json
{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "uberllm": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "MartLLM",
      "options": {
        "baseURL": "https://api.martllm.com/v1",
        "apiKey": "{env:UBERLLM_API_KEY}"
      },
      "models": {
        "thinking-machines/inkling-2-small": {
          "name": "Thinking Machines: Inkling 2 Small",
          "limit": {
            "context": 1048576,
            "output": 524288
          }
        }
      }
    }
  },
  "model": "uberllm/thinking-machines/inkling-2-small"
}

OpenCodeコール:OpenAIチャット補完 https://api.martllm.com/v1/chat/completions · 完全なOpenCodeガイド

ull_your_keyをご自身のMartLLM APIキーに置き換えてください。1つのキーで、すべてのツール・すべてのモデルを利用できます。

API経由で、Thinking Machines: Inkling 2 Smallは同じMartLLMキーとモデルID thinking-machines/inkling-2-smallを使って、3つのアドレスで応答します:https://api.martllm.com/v1/chat/completionsのOpenAIチャット補完、https://api.martllm.com/v1/responsesのOpenAI Responses API、およびhttps://api.martllm.com/v1/messagesのAnthropic Messages API。

Thinking Machines: Inkling 2 Small APIの料金はいくらですか?

2026年11月28日時点で、MartLLMにおけるThinking Machines: Inkling 2 Smallの最安出品は入力100万トークンあたり$0.21、出力100万トークンあたり$0.70で、公式価格の$0.30および$1.00より30%安くなっています。マーケット内の4の販売者が提供可能です。最大1,048,576トークンのコンテキストを読み込めます。すべてのリクエストは費用とともにアクティビティログに記録されます。MartLLMがこれらの価格に手数料を上乗せすることはなく、失敗したリクエストには課金されません。

17:10(UTC)時点の価格。

他のツールでThinking Machines: Inkling 2 Smallを使う

OpenCodeで使える他のモデル