> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-claude-comfy-concurrency-limits-page-s84u33.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Comfy Router で o3 を使用する

> Comfy Router 経由で openai/o3 を呼び出します: エンドポイント、リクエストの形状、Router が返すレスポンスについて説明します。

OpenAI から Comfy Router が提供する `openai/o3` の API リファレンスです。

## クイックスタート

[Comfy ワークスペース](https://platform.comfy.org/profile/api-keys?onboarding=router) でキーを作成し、`COMFY_API_KEY` としてエクスポートします。Python と TypeScript のスニペットは Comfy SDK（`pip install comfy-sdk` と `npm install @comfyorg/sdk`）を使用しています。cURL のスニペットは、生の HTTP で同じ呼び出しを行うものです。

**モデル ID:** `openai/o3`

**エンドポイント:** `POST https://api.comfy.org/v2/models/openai/o3`

<Tabs defaultTabIndex={1}>
  <Tab title="結果を待つ">
    <CodeGroup>
      ```python Python theme={null}
      from comfy_sdk import Comfy

      # 環境変数から COMFY_API_KEY を読み取ります。
      # SDK は冪等キーを自動的に作成し、自動リトライのために再利用します。
      with Comfy() as client:
          result = client.models.run(
              "openai/o3",
              {
                  "input": "Reply with the single word: ok",
                  "max_output_tokens": 1024,
              },
          )

      print(result)
      ```

      ```typescript TypeScript theme={null}
      import { comfy } from "@comfyorg/sdk";

      // 環境変数から COMFY_API_KEY を読み取ります。
      // SDK は冪等キーを自動的に作成し、自動リトライのために再利用します。
      const { data } = await comfy.models.run("openai/o3", {
        input: "Reply with the single word: ok",
        max_output_tokens: 1024,
      });

      console.log(data);
      ```

      ```bash cURL theme={null}
      curl https://api.comfy.org/v2/models/openai/o3 \
        -H "X-API-Key: $COMFY_API_KEY" \
        -H "Idempotency-Key: $(uuidgen)" \
        -H "Content-Type: application/json" \
        -d "{\"input\": \"Reply with the single word: ok\", \"max_output_tokens\": 1024}"
      ```
    </CodeGroup>
  </Tab>

  <Tab title="キューに送信して後で取得">
    同じボディを `POST https://api.comfy.org/v2/models/openai/o3/requests` に送信します。Router は実行が受け付けられ次第 `201` と `request_id` を返し、結果は準備が整った時点で、このプロセスからでも別のプロセスからでも取得できます。ステータス、キャンセル、結果の取得の詳細は [キュー配信](/ja/development/comfy-router/queue) を参照してください。

    <CodeGroup>
      ```python Python theme={null}
      import asyncio
      from comfy_sdk import AsyncComfy

      # 環境変数から COMFY_API_KEY を読み取ります。
      # submit() の呼び出しごとに独自の Idempotency-Key を発行し、自動リトライのために再利用します。
      async def main():
          async with AsyncComfy() as client:
              handle = await client.models.submit(
                  "openai/o3",
                  {
                      "input": "Reply with the single word: ok",
                      "max_output_tokens": 1024,
                  },
              )
              print("request_id:", handle.request_id)  # モデル ID と合わせれば、別のプロセスに必要な情報はこれだけです

              # リクエストが完了するまでポーリングし、サーバーが指定する Retry-After だけ待機します。
              async for update in handle.iter_events():
                  print(update.status, update.queue_position)

              # プロバイダー自身のペイロードで、models.run() が返すのと同じ値です。
              # 失敗またはキャンセル済みのリクエストは、ここで型付きの Router エラーを発生させます。
              result = await handle.get()

          print(result)

      asyncio.run(main())
      ```

      ```typescript TypeScript theme={null}
      import { comfy } from "@comfyorg/sdk";

      // 環境変数から COMFY_API_KEY を読み取ります。
      // submit() の呼び出しごとに独自の Idempotency-Key を発行し、自動リトライのために再利用します。
      const handle = await comfy.models.submit("openai/o3", {
        input: "Reply with the single word: ok",
        max_output_tokens: 1024,
      });
      console.log("requestId:", handle.requestId); // モデル ID と合わせれば、別のプロセスに必要な情報はこれだけです

      // リクエストが完了するまでポーリングし、サーバーが指定する Retry-After だけ待機します。
      for await (const update of handle.events()) {
        console.log(update.status, update.queuePosition);
      }

      // models.run() が返すのと同じ結果です。失敗またはキャンセル済みのリクエストは、ここで reject されます。
      const result = await handle.get();

      console.log(result.data);
      ```

      ```bash cURL theme={null}
      # 1. 送信。Router は request_id、status_url、response_url、cancel_url を含む 201 を返します。
      curl https://api.comfy.org/v2/models/openai/o3/requests \
        -H "X-API-Key: $COMFY_API_KEY" \
        -H "Idempotency-Key: $(uuidgen)" \
        -H "Content-Type: application/json" \
        -d "{\"input\": \"Reply with the single word: ok\", \"max_output_tokens\": 1024}"

      # 2. status が COMPLETED になるまでポーリングし、各レスポンスが示す Retry-After 秒だけ待機します。
      REQUEST_ID="<request_id from the 201 body>"
      curl -i https://api.comfy.org/v2/models/openai/o3/requests/$REQUEST_ID/status \
        -H "X-API-Key: $COMFY_API_KEY"

      # 3. 取得。完了時はモデルのネイティブ出力とともに 200、実行中はステータスボディとともに 202 を返します。
      curl https://api.comfy.org/v2/models/openai/o3/requests/$REQUEST_ID \
        -H "X-API-Key: $COMFY_API_KEY"
      ```
    </CodeGroup>
  </Tab>
</Tabs>

## スキーマ

### 入力

<ParamField body="include" type="string[]">
  モデルのレスポンスに含める追加の出力データ。
</ParamField>

<ParamField body="input" type="string | object[]" required>
  モデルへのテキスト、画像、ファイル入力。レスポンスの生成に使用される。このコントラクトのうち Router が補えない唯一のフィールドであり、下記の `required` の唯一の項目でもある。
</ParamField>

<ParamField body="instructions" type="string">
  モデルのコンテキストの最初の項目として、システム（または開発者）メッセージを挿入する。
</ParamField>

<ParamField body="max_output_tokens" type="integer">
  レスポンスのために生成されるトークン数の上限。可視出力トークンと推論トークンを含む。推論 ID ではこの上限は隠れた推論トークンと共有されるため、小さな値だと可視テキストが現れる前に予算全体を消費してしまう。これが、チャットのスモークケースが 16 を送るのに対し、推論のスモークケースが 1024 を送る理由である。

  範囲: `1` から `…`
</ParamField>

<ParamField body="model" type="string">
  OpenAI モデル識別子。Comfy Router ではこのフィールドは任意で、Router が `{model}` パスセグメントから埋める。明示的な `null` も同じように置き換えられる。パスと矛盾する値を送ると拒否される。
</ParamField>

<ParamField body="parallel_tool_calls" type="boolean">
  モデルがツール呼び出しを並列に実行できるようにするかどうか。
</ParamField>

<ParamField body="previous_response_id" type="string">
  マルチターン会話で使用する、前のレスポンスの ID。
</ParamField>

<ParamField body="reasoning" type="object">
  推論ティア専用。推論モデルの設定。例: `{"effort": "medium"}`。そのまま転送される。受け付けられるキーについては OpenAI の推論ガイドを参照。チャットティアの ID はこれを無視する。
</ParamField>

<ParamField body="store" type="boolean">
  OpenAI が生成したレスポンスを、後で取得できるように保存するかどうか。
</ParamField>

<ParamField body="stream" type="boolean">
  送信した呼び出し元が拒否されないように宣言されているが、このサーフェスでは無効である。Router はディスパッチ前にこれを `false` に確定する。Router は `text/event-stream` を中継するのではなくプロバイダーのレスポンスを取得するためであり、それはデコードできないので、ストリーミングされた生成は OpenAI に課金され誰にも計量されないことになる。Comfy のどのサーフェスもストリームを配信しない。v1 の `POST /proxy/openai/v1/responses` イングレスは `stream: true` を 400 で拒否し、リクエストを上流に転送することはない。したがって、どちらのサーフェスでもこのフィールドを省略するか `false` を送り、完了したレスポンスを 1 つの JSON ボディとして読むこと。
</ParamField>

<ParamField body="temperature" type="number">
  サンプリング温度。チャットティア専用。o シリーズの推論 ID（`o1`、`o1-pro`、`o3`、`o4-mini`）は OpenAI 側でこのパラメータを拒否する。Router はそれらに対してこれを拒否しない（2 つのティアが 1 つのスキーマを共有する理由については、このコンポーネントの注記を参照）。そのため、これを送る推論呼び出しには OpenAI 自身のエラーが返される。

  範囲: `0` から `2`
</ParamField>

<ParamField body="text" type="object">
  出力フォーマットの設定。例: Structured Outputs 用の `{"format": {"type": "json_schema", ...}}`。そのまま転送される。
</ParamField>

<ParamField body="tool_choice" type="string | object">
  モデルが使用するツールをどのように選択するか。文字列のモードか、ツールを指定するオブジェクトのいずれか。
</ParamField>

<ParamField body="tools" type="object[]">
  モデルが呼び出せるツール定義。Router はツールの分類を絞り込まない。受け付けられる形については OpenAI の Responses API リファレンスを参照。
</ParamField>

<ParamField body="top_p" type="number">
  ニュークリアスサンプリングのカットオフ。チャットティア専用で、`temperature` と同じ条件。

  範囲: `0` から `1`
</ParamField>

<ParamField body="truncation" type="string">
  コンテキストがモデルのウィンドウを超えたときの切り捨て戦略。上記の 3 つの語彙とは異なり、ここの enum は実際に適用される。この 2 つの値が OpenAI の文書化している完全な集合であり、それが増えていないためである。明示的な `null` も、上記のフィールドと同じ条件で受け付けられる。

  取り得る値: `auto`、`disabled`
</ParamField>

<ParamField body="usage" type="object">
  トークン使用量のエンベロープ。v1 オペレーションがリクエストボディでこれを宣言しているため、このコントラクトに存在する。OpenAI はこれをレスポンスで埋めるので、呼び出し元が送る理由はない。
</ParamField>

Router が `GET /v2/models/openai/o3/openapi.json` で提供するスキーマから生成されたもの。これは、リクエストがプロバイダーに到達する前に Router が呼び出しを検証する際に使うのと同じドキュメントである。

### 出力

<ResponseField name="instructions" type="string">
  システム (または developer) メッセージをモデルのコンテキストの最初の項目として挿入します。

  `previous_response_id` と併用する場合、前のレスポンスの instructions は次のレスポンスに引き継がれません。これにより、新しいレスポンスでシステム (または developer) メッセージを簡単に差し替えられます。
</ResponseField>

<ResponseField name="max_output_tokens" type="integer">
  レスポンスで生成できるトークン数の上限。可視出力トークンと [reasoning tokens](https://platform.openai.com/docs/guides/reasoning) が含まれます。
</ResponseField>

<ResponseField name="model" type="string">
  レスポンスの生成に使用されたモデル
</ResponseField>

<ResponseField name="temperature" type="number" default="1">
  レスポンスのランダム性を制御します

  範囲: `0` から `2`
</ResponseField>

<ResponseField name="top_p" type="number" default="1">
  nucleus サンプリングによるレスポンスの多様性を制御します

  範囲: `0` から `1`
</ResponseField>

<ResponseField name="truncation" type="string" default="&#x22;disabled&#x22;">
  モデルレスポンスで使用する切り詰め戦略。

  * `auto`: このレスポンスと以前のレスポンスのコンテキストが
    モデルのコンテキストウィンドウサイズを超える場合、モデルは会話の
    途中の入力項目を削除してコンテキストウィンドウに収まるように
    レスポンスを切り詰めます。
  * `disabled` (デフォルト): モデルレスポンスがモデルのコンテキストウィンドウ
    サイズを超える場合、リクエストは 400 エラーで失敗します。

    指定可能な値: `auto`, `disabled`
</ResponseField>

<ResponseField name="previous_response_id" type="string">
  モデルへの前のレスポンスの一意の ID。これを使用して
  マルチターンの会話を作成します。詳細は
  [conversation state](https://platform.openai.com/docs/guides/conversation-state) を参照してください。
</ResponseField>

<ResponseField name="reasoning" type="object">
  **o シリーズモデルのみ**

  [reasoning models](https://platform.openai.com/docs/guides/reasoning) の設定オプション。
</ResponseField>

<ResponseField name="reasoning.context" type="string">
  後続のターンでどの reasoning 項目をモデルに返すかを制御します。例: `auto`、`current_turn`、`all_turns`。
</ResponseField>

<ResponseField name="reasoning.effort" type="string" default="&#x22;medium&#x22;">
  **o シリーズモデルのみ**

  [reasoning models](https://platform.openai.com/docs/guides/reasoning) の
  推論にかける労力を制約します。
  現在サポートされている値は `low`、`medium`、`high` です。reasoning effort を下げると、
  レスポンスが速くなり、レスポンス内で reasoning に使用される
  トークン数が減る場合があります。

  指定可能な値: `low`, `medium`, `high`
</ResponseField>

<ResponseField name="reasoning.generate_summary" type="string">
  **非推奨:** 代わりに `summary` を使用してください。

  モデルが実行した reasoning の要約。これは
  デバッグやモデルの reasoning プロセスの理解に
  役立ちます。`auto`、`concise`、`detailed` のいずれかです。

  指定可能な値: `auto`, `concise`, `detailed`
</ResponseField>

<ResponseField name="reasoning.mode" type="string">
  レスポンスに使用される reasoning モード。
</ResponseField>

<ResponseField name="reasoning.summary" type="string">
  モデルが実行した reasoning の要約。これは
  デバッグやモデルの reasoning プロセスの理解に
  役立ちます。`auto`、`concise`、`detailed` のいずれかです。

  指定可能な値: `auto`, `concise`, `detailed`
</ResponseField>

<ResponseField name="text" type="object" />

<ResponseField name="text.format" type="object">
  モデルが出力しなければならないフォーマットを指定するオブジェクト。

  `{ "type": "json_schema" }` を設定すると Structured Outputs が有効になり、
  モデルが指定した JSON schema に一致することが保証されます。詳細は
  [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs) を参照してください。

  デフォルトのフォーマットは `{ "type": "text" }` で、追加オプションはありません。

  **gpt-4o 以降のモデルには推奨されません:**

  `{ "type": "json_object" }` に設定すると古い JSON mode が有効になり、
  モデルが生成するメッセージが有効な JSON であることが保証されます。サポートしている
  モデルでは `json_schema` の使用が推奨されます。
</ResponseField>

<ResponseField name="text.verbosity" type="string">
  モデルレスポンスの冗長性を制約します。`low`、`medium`、`high` のいずれかです。
</ResponseField>

<ResponseField name="tool_choice" type="`none`, `auto`, `required` | object">
  レスポンスを生成するときにモデルがどのツール (または複数のツール) を
  使用するかを選択する方法。モデルが呼び出せるツールを指定する方法は
  `tools` パラメータを参照してください。
</ResponseField>

<ResponseField name="tools" type="object[]" />

<ResponseField name="background" type="boolean">
  モデルレスポンスをバックグラウンドで実行するかどうか。
</ResponseField>

<ResponseField name="billing" type="object">
  レスポンスの課金情報。
</ResponseField>

<ResponseField name="billing.payer" type="string">
  レスポンスの支払いを担当する当事者。
</ResponseField>

<ResponseField name="completed_at" type="number">
  この Response が完了したときの Unix タイムスタンプ (秒)。ステータスが `completed` の場合にのみ存在します。
</ResponseField>

<ResponseField name="created_at" type="number">
  この Response が作成されたときの Unix タイムスタンプ (秒)。
</ResponseField>

<ResponseField name="error" type="object">
  モデルが Response の生成に失敗したときに返されるエラーオブジェクト。
</ResponseField>

<ResponseField name="error.code" type="string" required>
  レスポンスのエラーコード。

  可能な値: `server_error`、`rate_limit_exceeded`、`invalid_prompt`、`vector_store_timeout`、`invalid_image`、`invalid_image_format`、`invalid_base64_image`、`invalid_image_url`、`image_too_large`、`image_too_small`、`image_parse_error`、`image_content_policy_violation`、`invalid_image_mode`、`image_file_too_large`、`unsupported_image_media_type`、`empty_image_file`、`failed_to_download_image`、`image_file_not_found`
</ResponseField>

<ResponseField name="error.message" type="string" required>
  エラーを人間が読める形式で説明したもの。
</ResponseField>

<ResponseField name="frequency_penalty" type="number">
  これまでのテキスト内での出現頻度に基づいて、新しいトークンにペナルティを与えます。
</ResponseField>

<ResponseField name="id" type="string">
  この Response の一意の識別子。
</ResponseField>

<ResponseField name="incomplete_details" type="object">
  レスポンスが不完全である理由に関する詳細。
</ResponseField>

<ResponseField name="incomplete_details.reason" type="string">
  レスポンスが不完全である理由。

  指定可能な値: `max_output_tokens`, `content_filter`
</ResponseField>

<ResponseField name="max_tool_calls" type="integer">
  1 つのレスポンスで処理できる、組み込みツールへの呼び出し総数の上限。
</ResponseField>

<ResponseField name="metadata" type="object">
  レスポンスに付加できるキーと値のペアの集合。
</ResponseField>

<ResponseField name="moderation" type="object">
  モデレーション済みの完了が要求された場合の、レスポンスの入力と出力に対するモデレーション結果。
</ResponseField>

<ResponseField name="object" type="string">
  このリソースのオブジェクト型。常に `response` に設定されます。

  指定可能な値: `response`
</ResponseField>

<ResponseField name="output" type="object[]">
  モデルによって生成されたコンテンツ項目の配列。

  * `output` 配列内の項目の長さと順序は、モデルのレスポンスによって異なります。
  * `output` 配列の最初の項目にアクセスし、それがモデルによって生成されたコンテンツを含む `assistant` メッセージであると仮定するのではなく、SDK でサポートされている場合は `output_text` プロパティの使用を検討してください。
</ResponseField>

<ResponseField name="output_text" type="string">
  SDK 専用の便利なプロパティで、`output` 配列内のすべての `output_text` 項目からの集約されたテキスト出力を、存在する場合に含みます。
  Python SDK と JavaScript SDK でサポートされています。
</ResponseField>

<ResponseField name="parallel_tool_calls" type="boolean" default="true">
  モデルがツール呼び出しを並列で実行することを許可するかどうか。
</ResponseField>

<ResponseField name="presence_penalty" type="number">
  これまでにテキスト内に出現しているかどうかに基づいて、新しいトークンにペナルティを与えます。
</ResponseField>

<ResponseField name="prompt_cache_key" type="string">
  類似したリクエストのレスポンスをキャッシュしてキャッシュヒット率を最適化するために OpenAI が使用します。`user` フィールドを置き換えます。
</ResponseField>

<ResponseField name="prompt_cache_retention" type="string">
  プロンプトキャッシュの保持ポリシー（例: `in_memory` または `24h`）。
</ResponseField>

<ResponseField name="safety_identifier" type="string">
  OpenAI の利用ポリシーに違反している可能性のあるアプリケーションのユーザーを検出するために使用される安定した識別子。
</ResponseField>

<ResponseField name="service_tier" type="string">
  リクエストの処理に使用される処理ティア（例: `auto`、`default`、`flex`、`scale`、`priority`）。
</ResponseField>

<ResponseField name="status" type="string">
  レスポンス生成のステータス。`completed`、`failed`、`in_progress`、`cancelled`、`queued`、`incomplete` のいずれか。

  指定可能な値: `completed`, `failed`, `in_progress`, `cancelled`, `queued`, `incomplete`
</ResponseField>

<ResponseField name="store" type="boolean">
  レスポンスが後で API 経由で取得できるように保存されるかどうか。
</ResponseField>

<ResponseField name="tool_usage" type="object">
  組み込みツール別に分類されたトークンとリクエストの使用量。
</ResponseField>

<ResponseField name="tool_usage.image_gen" type="object">
  画像生成ツールのトークン使用量。
</ResponseField>

<ResponseField name="tool_usage.image_gen.input_tokens" type="integer" />

<ResponseField name="tool_usage.image_gen.input_tokens_details" type="object" />

<ResponseField name="tool_usage.image_gen.input_tokens_details.image_tokens" type="integer" />

<ResponseField name="tool_usage.image_gen.input_tokens_details.text_tokens" type="integer" />

<ResponseField name="tool_usage.image_gen.output_tokens" type="integer" />

<ResponseField name="tool_usage.image_gen.output_tokens_details" type="object" />

<ResponseField name="tool_usage.image_gen.output_tokens_details.image_tokens" type="integer" />

<ResponseField name="tool_usage.image_gen.output_tokens_details.text_tokens" type="integer" />

<ResponseField name="tool_usage.image_gen.total_tokens" type="integer" />

<ResponseField name="tool_usage.web_search" type="object">
  Google／検索ツールの使用量。
</ResponseField>

<ResponseField name="tool_usage.web_search.num_requests" type="integer" />

<ResponseField name="top_logprobs" type="integer">
  各トークン位置で返す、最も可能性の高いトークンの最大数。それぞれに対数確率が関連付けられます。
</ResponseField>

<ResponseField name="usage" type="object">
  入力トークン、出力トークン、出力トークンの内訳、使用された合計トークンを含むトークン使用量の詳細を表します。
</ResponseField>

<ResponseField name="usage.input_tokens" type="integer" required>
  入力トークンの数。
</ResponseField>

<ResponseField name="usage.input_tokens_details" type="object" required>
  入力トークンの詳細な内訳。
</ResponseField>

<ResponseField name="usage.input_tokens_details.cache_write_tokens" type="integer">
  キャッシュに書き込まれた入力トークンの数。
</ResponseField>

<ResponseField name="usage.input_tokens_details.cached_tokens" type="integer" required>
  キャッシュから取得されたトークン数です。
  [プロンプトキャッシュの詳細](https://platform.openai.com/docs/guides/prompt-caching)。
</ResponseField>

<ResponseField name="usage.output_tokens" type="integer" required>
  出力トークン数です。
</ResponseField>

<ResponseField name="usage.output_tokens_details" type="object" required>
  出力トークンの詳細な内訳です。
</ResponseField>

<ResponseField name="usage.output_tokens_details.reasoning_tokens" type="integer" required>
  推論トークン数です。
</ResponseField>

<ResponseField name="usage.total_tokens" type="integer" required>
  使用されたトークンの合計数です。
</ResponseField>

<ResponseField name="user" type="string">
  エンドユーザーを表す非推奨の識別子です。`safety_identifier` および `prompt_cache_key` に置き換えられました。
</ResponseField>

## 例

### 入力

```json theme={null}
{
  "input": "Reply with the single word: ok",
  "max_output_tokens": 1024
}
```

### 出力

```json theme={null}
{
  "completed_at": 1767225601,
  "created_at": 1767225600,
  "id": "resp_0a1b2c3d4e5f6a7b8c9d0e1f",
  "object": "response",
  "output": [
    {
      "content": [
        {
          "annotations": [],
          "text": "ok",
          "type": "output_text"
        }
      ],
      "id": "msg_0a1b2c3d4e5f6a7b8c9d0e1f",
      "role": "assistant",
      "status": "completed",
      "type": "message"
    }
  ],
  "output_text": "ok",
  "status": "completed",
  "usage": {
    "input_tokens": 14,
    "input_tokens_details": {
      "cached_tokens": 0
    },
    "output_tokens": 2,
    "output_tokens_details": {
      "reasoning_tokens": 0
    },
    "total_tokens": 16
  }
}
```

## 出荷前の確認

SDK は `Idempotency-Key` を生成し、自動リトライで再利用します。手動リトライでは元のキーを再利用してください。Router は最大 10 分間接続を保持できます。

リクエストが失敗すると、Router は理由を説明する `X-Comfy-Error-Type` レスポンスヘッダーを送信します。`422` は、プロバイダーを呼び出す前に Router が入力を拒否したことを意味し、`413` はリクエスト本文が Router の受け入れ可能なサイズを超えていたことを意味します。生成されたアセットは [結果 URL の有効期限](/ja/development/comfy-router/reference#結果アセット) があるため、早めにダウンロードしてください。

上記のフィールド説明に記載されているサイズ制限は、プロバイダーの仕様から引用した、そのフィールドに対するプロバイダー自身の上限です。Router はリクエスト本文全体に対して別の上限を適用し、base64 エンコードされたメディアもこれにカウントされます。[リクエスト本文のサイズ](/ja/development/comfy-router/limitations) を参照してください。

このページは、Comfy Router 経由で呼び出す 1 つのパートナーモデルについて説明しています。同じ `comfy-sdk` / `@comfyorg/sdk` パッケージには、Comfy Cloud 上で ComfyUI のワークフローグラフ全体を実行するための 2 つ目のクライアントも含まれています: `Comfy(api_key=...)` / `new Comfy({ apiKey })`、および `client.workflows`、`client.assets`、`client.jobs`。[Comfy SDKs](/ja/development/api-development/sdks) を参照してください。

<CardGroup cols={3}>
  <Card title="ヘッダー" icon="list" href="/ja/development/comfy-router/headers">
    認証、冪等性、リクエスト ID、エラー分類、リトライ間隔、支出上限。
  </Card>

  <Card title="Router API の利用" icon="code" href="/ja/development/comfy-router/api">
    モデルの検出、バリデーションエラー、リトライ、課金。
  </Card>

  <Card title="制限事項" icon="triangle-exclamation" href="/ja/development/comfy-router/limitations">
    Router が現在対応していないことと、代替手段。
  </Card>
</CardGroup>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.