Source: https://ailoot.ai/models/ja/anthropic-claude-haiku-5-5/
Canonical: https://ailoot.ai/models/ja/anthropic-claude-haiku-5-5/
Language: ja

# Anthropic: Claude Haiku 5.5

[Markdown](https://ailoot.ai/models/ja/anthropic-claude-haiku-5-5/index.md) · [JSON](https://ailoot.ai/models/ja/anthropic-claude-haiku-5-5/facts.json)

## [Anthropic: Claude Haiku 5.5](https://ailoot.ai/models/ja/anthropic-claude-haiku-5-5/)

Claude Haiku 5.5は、分類、抽出、要約、振り分け、対象を絞ったエージェントのタスクに向けたAnthropicの小型モデルです。テキストと画像の理解に適応型推論を組み合わせ、迅速な応答が必要な反復作業を想定しています。

- [**Ailoot Ultra · OpenAI チャット** `POST /v1/chat/completions` `anthropic/claude-haiku-5.5`](https://ailoot.ai/models/ja/anthropic-claude-haiku-5-5/#method-0)
- [**Ailoot Ultra · Anthropic メッセージ** `POST /v1/messages` `anthropic/claude-haiku-5.5`](https://ailoot.ai/models/ja/anthropic-claude-haiku-5-5/#method-1)
- [**Ailoot Ultra · OpenAI チャット** `POST /v1/chat/completions` `~anthropic/claude-haiku-latest`](https://ailoot.ai/models/ja/anthropic-claude-haiku-5-5/#method-2)
- [**Ailoot Ultra · Anthropic メッセージ** `POST /v1/messages` `~anthropic/claude-haiku-latest`](https://ailoot.ai/models/ja/anthropic-claude-haiku-5-5/#method-3)

モデルについて

この説明はモデルの機能を紹介するものです。Ailootで利用できる入力、出力、オプションは、選択したメソッドごとに以下に記載されています。

Claude Haiku 5.5は、大量の処理や低遅延が求められるタスクに向けたAnthropicの小型モデルの版です。主な用途には、分類、振り分け、情報抽出、要約、会話の圧縮、対象を絞ったサブエージェントの作業があります。テキストと画像を受け取り、テキストを生成します。有用な依頼では、対象を絞った問いと、カテゴリ、定義したフィールド一式、短い要約、大きなタスクの別の部分に必要な証拠など、明確な結果を指定します。アプリケーションが抽出情報を元の資料と結び付けられるよう、結果に出典の識別子を添えてください。

Anthropicは、反復的な分析に加え、リアルタイムの顧客対応、ブラウザー操作、短いコーディングのサブタスクを、この版の用途に挙げています。大きなモデルが意欲的なプロジェクトを担当し、Haikuが範囲を限定した検索や要約を担当する流れでは、Claude Sonnet 5.5やClaude Opus 5.5を補完できます。顧客対応では、質問と使用が認められた参考資料を提供し、応答の口調と返すべき内容を指定してください。コーディングのサブタスクでは、完了条件のない際限のないプロジェクトを任せず、関連するファイルや抜粋と正確な問いを示してください。

文書に記載されたコンテキストウィンドウは百万トークンで、通常の生成では最大128,000トークンを出力できます。思考トークンも生成枠に含まれるため、推論と表示するテキストの両方の余地が必要です。信頼できる知識の基準時点は2026年6月で、それ以降の情報には提供された証拠や検索ツールが必要です。Anthropicは別途、この版の出力を300,000トークンまで増やせる、バッチ専用のベータ機能を文書化しています。この大きな枠にはメーカーのextended-output機能が必要で、通常の上限とは別です。非同期バッチは各依頼を独立に処理するため、すぐではなく処理後に結果が必要な文書や記録の集合に適しています。

適応型思考は標準で有効になっており、推論の深さは主にeffortで制御します。レベルはlow、medium、high、xhigh、maxで、標準はmediumです。Anthropicは、通常の作業にはmedium、より持続的な作業や厳密な指示遵守にはhigh、簡単で短い依頼にはlowを推奨しています。思考はlow、medium、highで無効にできますが、xhighやmaxでの無効化は拒否されます。直接答えるようプロンプトで求めても、この制御の代わりにはなりません。Haiku 4.5の手動budget\_tokens設定はこの版に引き継がれず、文書化されたインターフェースではtemperature、top\_p、top\_kを省く必要があります。

Haiku 5.5は、以前のClaude世代で導入された新しいトークナイザーを使います。Anthropicは、同じテキストに使うトークンが約30%多くなると見積もっており、Haiku 4.5との差は内容によって変わります。以前のassistantターンの思考ブロックも保持するため、トークナイザーの変更による増加以上に会話が大きくなる場合があります。キャッシュ可能なプロンプト長の最小値は512トークンです。推論を保持する際は以前のターンを変更せず、新しい指示を最新のターンに置いてください。最上位のeffortを変えると会話のメッセージキャッシュが無効になります。メーカーは、適応型の会話内でeffortを変更する別のベータ機能を文書化しています。これらの機能があることは、特定の依頼でキャッシュがヒットした証拠にはなりません。

情報検索では、モデルのプロンプトガイドは、検索ツールとともに現在の日付を提供し、元のシステム定義とツール定義を維持するよう推奨しています。別の日に会話を続ける場合は、最新のターンで新しい日付を伝えてください。探すべき内容を明示し、結論を求める前に返された出典を保存してください。たとえば、指定したソフトウェアの版について文書化された動作を探し、取得した記述に基づく短い説明を求められます。検索ツールを提供し、実際の結果を返すのはアプリケーションです。モデルが検索を提案しても、検索が実施された証拠にはなりません。

構造化されたJSON出力とツールを組み合わせる場合、ガイドは特定の相互作用を記載しています。思考を無効にすると、Haikuは必要なツール呼び出しを省くことがあります。Anthropicは、このような依頼では適応型思考を使うか、最終的なJSONの要件をツールの段階と分けることを推奨しています。出力フィールドを定義し、ツールの結果を受けてから最終回答を出すことを明確にしてください。データ抽出の依頼では必要なフィールドと欠けている値の表現を指定でき、検索の依頼では、それらを埋めるための証拠を先に求められます。回答が最初のブロックとは限らず、思考テキストは標準で省かれるため、応答ブロックは種類に応じて読み取ってください。

長いエージェント向けプロンプトについて、Anthropicは、lowのeffortでは早く終了したり、検索や確認を省いたりする場合があるとしています。ガイドは、明確な完了指示と、コード変更を完了と報告する前の実際の確認を推奨しています。期待する結果と、それを示す証拠を準備してください。報告書なら選択した原文の抜粋、コード案なら変化した動作、文書なら抽出したフィールドなどです。ガイドは、タスクの途中に届くユーザーのメッセージとツール出力も区別しています。新しいユーザーの指示はuserターンに置き、ツールが返す証拠は別に保ちます。

この版には独自の保護機能があり、サイバー危害、生物学的危害、競合モデルの開発など、禁止用途に該当するカテゴリでは拒否を返すことがあります。メーカーは、Haiku 5.5のサーバー側フォールバックを文書化していません。ガイドはまた、xhighのeffortでは、複数ターンの応答が表示用の回答テキストなしで終わることが時折あり、lowのeffortや思考を無効にした場合には、推論のようなテキストが出やすくなるとしています。表示できる構造化された結果が必要な流れでは、これらの特定の挙動を考慮する必要があります。通常の抽出や要約では、対象を絞った資料、明確な出力、タスクに適したeffortレベルを使ってください。

実用タスク

### 実用タスク

英語の技術例

```
Extract a support handoff

Extract a handoff from this ticket, using only its text: T-184: 'I changed my billing email yesterday. Receipts still go to the old address. My login works. Please resend March and April receipts.' Return ticket ID, requested actions, working function and missing information. Use 'not stated' for absent details.
```

#### 期待される結果

```
Four labeled fields retaining T-184, the receipt request, the working login and explicitly missing details.
```

#### 結果の確認

```
Every extracted value must trace to the ticket; do not invent either email address.
```

**Ailoot Ultra · OpenAI チャット** `POST /v1/chat/completions` `anthropic/claude-haiku-5.5`

[`anthropic/claude-haiku-5.5`](https://ailoot.ai/models/ja/#m=anthropic%2Fclaude-haiku-5.5&route=Ultra&caller=anthropic%2Fclaude-haiku-5.5&fmt=chat)

Anthropic /`anthropic/claude-haiku-5.5`

モデルID

- `anthropic/claude-haiku-5.5`
- `~anthropic/claude-haiku-latest`

### はじめに

Claude Haiku 5.5は、分類、抽出、要約、振り分け、対象を絞ったエージェントのタスクに向けたAnthropicの小型モデルです。テキストと画像の理解に適応型推論を組み合わせ、迅速な応答が必要な反復作業を想定しています。

対応する入力

テキスト

結果

テキスト

### Ailootで利用可能 · 入力とメソッド

**Ailoot Ultra · OpenAI チャット** `POST /v1/chat/completions`

入力の種類

`text`

出力の種類

`text`

出力形式

jsonまたはSSE

| フィールド | 種類 | 要件 | 値と制限 | デフォルト |
| --- | --- | --- | --- | --- |
| フィールド`model` | 種類`string` | 要件必須 | 値と制限 anthropic/claude-haiku-5.5 | デフォルト— |
| フィールド`messages` | 種類`message[]` | 要件必須 | 値と制限 最小項目数: 1 | デフォルト— |
| フィールド`messages[].role` | 種類`string` | 要件必須 | 値と制限 例：system, user, assistant, tool, function 条件: これらのロールはソースコードの互換型で明示されています。正確なロールの集合はモデルごとに異なります。 モデルによる | デフォルト— |
| フィールド`messages[].content` | 種類`string\|content_part[]\|null` | 要件任意 | 値と制限 | デフォルト— |
| フィールド`messages[].tool_calls` | 種類`tool_call[]` | 要件任意 | 値と制限 | デフォルト— |
| フィールド`messages[].tool_call_id` | 種類`string` | 要件任意 | 値と制限 適用条件: role=tool。実際に返されたIDを使ってください | デフォルト— |
| フィールド`messages[].name` | 種類`string` | 要件任意 | 値と制限 | デフォルト— |
| フィールド`messages[].reasoning_content` | 種類`string` | 要件任意 | 値と制限 適用条件: このモデルが使用する場合は、実際に返された推論をそのまま次のリクエストへ戻してください | デフォルト— |
| フィールド`messages[].reasoning_details` | 種類`object\|array` | 要件任意 | 値と制限 モデルによる | デフォルト— |
| フィールド`max_tokens` | 種類`integer` | 要件任意 | 値と制限 最小値: 1 モデルによる | デフォルト— |
| フィールド`max_completion_tokens` | 種類`integer` | 要件任意 | 値と制限 最小値: 1 モデルによる | デフォルト— |
| フィールド`stream` | 種類`boolean` | 要件任意 | 値と制限 | デフォルトfalse |
| フィールド`stream_options.include_usage` | 種類`boolean` | 要件任意 | 値と制限 モデルによる | デフォルト— |
| フィールド`temperature` | 種類`number` | 要件任意 | 値と制限 モデルによる | デフォルト— |
| フィールド`top_p` | 種類`number` | 要件任意 | 値と制限 モデルによる | デフォルト— |
| フィールド`stop` | 種類`string\|string[]` | 要件任意 | 値と制限 モデルによる | デフォルト— |
| フィールド`tools` | 種類`function_tool[]` | 要件任意 | 値と制限 モデルによる | デフォルト— |
| フィールド`tools[].type` | 種類`string` | 要件任意 | 値と制限 function モデルによる | デフォルト— |
| フィールド`tools[].function.name` | 種類`string` | 要件必須 | 値と制限 適用条件: 関数ツールの指定あり | デフォルト— |
| フィールド`tools[].function.description` | 種類`string` | 要件任意 | 値と制限 | デフォルト— |
| フィールド`tools[].function.parameters` | 種類`JSON_schema` | 要件任意 | 値と制限 | デフォルト— |
| フィールド`tool_choice` | 種類`string\|object` | 要件任意 | 値と制限 モデルによる | デフォルト— |
| フィールド`parallel_tool_calls` | 種類`boolean` | 要件任意 | 値と制限 モデルによる | デフォルト— |
| フィールド`response_format` | 種類`object` | 要件任意 | 値と制限 モデルによる | デフォルト— |
| フィールド`reasoning_effort` | 種類`string` | 要件任意 | 値と制限 モデルによる | デフォルト— |
| フィールド`reasoning` | 種類`object` | 要件任意 | 値と制限 モデルによる | デフォルト— |
| フィールド`service_tier` | 種類`string` | 要件任意 | 値と制限 モデルによる | デフォルト— |
| フィールド`instructions` | 種類`string` | 要件任意 | 値と制限 互換性用のフィールド | デフォルト— |
| フィールド`functions` | 種類`function[]` | 要件任意 | 値と制限 モデルによる | デフォルト— |
| フィールド`function_call` | 種類`string\|object` | 要件任意 | 値と制限 モデルによる | デフォルト— |
| フィールド`prompt_cache_options` | 種類`object` | 要件任意 | 値と制限 モデルによる | デフォルト— |
| フィールド`modalities` | 種類`string[]` | 要件任意 | 値と制限 text | デフォルト— |
| フィールド`provider` | 種類`object` | 要件任意 | 値と制限 条件: このUltraテキストルートではprovider.optionsは拒否されます | デフォルト— |
| フィールド`cache_control.ttl` | 種類`string` | 要件任意 | 値と制限 条件: 実際のプロンプトキャッシュの指定箇所では1hは拒否されます | デフォルト— |

入力素材の組み合わせ

**テキスト** · UTF8テキスト

`messages[].content`

メソッドのパラメータとライフサイクル

| パラメータ | 仕様 |
| --- | --- |
| パラメータ`content_type` | 仕様application/json |
| パラメータ`required` | 仕様model, messages |
| パラメータ`material_types` | 仕様text |
| パラメータ`messages` | 仕様role/content形式のメッセージ配列 |
| パラメータ`file_material` | 仕様実際のUTF-8文書をテキストとしてそのまま挿入します。ファイルIDは推定しません |
| パラメータ`optional_controls` | 仕様stream, temperature, top\_p, stop, max\_tokens, max\_completion\_tokens, reasoning, response\_format, tools, tool\_choice |
| パラメータ`control_scope` | 仕様モデル固有。ユーザーの関数ツールとホスト側のツールは異なります |
| パラメータ`output_modalities` | 仕様text |
| パラメータ`hosted_operations` | 仕様false |
| パラメータ`multimodal_input_binding` | 仕様null |

ライフサイクル: `synchronous_or_streamed`

正確なモデルIDをmessagesとともに送ってください。

コンテキスト長は出力上限ではありません。

テキストファイルはテキストをそのまま提供できます。画像／音声／ファイルオブジェクトの入力には正確なバインディングが必要です。

### 料金

料金情報はリクエストの機能を追加しません。対応するパラメーターは選択したメソッドに記載されています。

高速モード

標準料金 高速モードが選択されている場合

Flex モード

標準料金 flex モードが選択されている場合

最大推論量

標準料金 推論量が最大で、調整に既定値（default）を使用する場合

推論量 · 高

標準料金 推論量が高い場合

推論量 · 低

標準料金 推論量が低い場合

推論量 · 最大（max）

標準料金 推論量が最大（max）の場合

推論量 · 中

標準料金 推論量が中程度の場合

推論量 · xhigh

標準料金 推論量が xhigh の場合

#### Ailootの料金

#### 設定別の価格

各料金を表示された条件と照合してください。選択肢となる設定の各組には、いずれか1つの料金を適用します。

| 設定 | 料金表 | コンテキストトークン数が次の値を超える場合 | コンテキストトークン数が次の値以下の場合 | 料金 |
| --- | --- | --- | --- | --- |
| 設定トークンの基本単価 | 料金表基本料金 | コンテキストトークン数が次の値を超える場合— | コンテキストトークン数が次の値以下の場合上限なし | 料金 入力 · 入力トークン **$0.0002** / 1K トークン 出力 · 出力トークン **$0.001** / 1K トークン 入力 · キャッシュ読み取り **$0.00002** / 1K トークン 入力 · キャッシュ書き込み **$0.00025** / 1K トークン 入力 · キャッシュ書き込み、1時間 **$0.0004** / 1K トークン |
| 設定リクエスト長に応じた料金区分 1 | 料金表— | コンテキストトークン数が次の値を超える場合0 | コンテキストトークン数が次の値以下の場合100,000 | 料金 入力 · 入力トークン **$0.0002** / 1K トークン 出力 · 出力トークン **$0.001** / 1K トークン 入力 · キャッシュ読み取り **$0.00002** / 1K トークン 入力 · キャッシュ書き込み **$0.00025** / 1K トークン 入力 · キャッシュ書き込み、1時間 **$0.0004** / 1K トークン |
| 設定リクエスト長に応じた料金区分 2 | 料金表— | コンテキストトークン数が次の値を超える場合100,000 | コンテキストトークン数が次の値以下の場合上限なし | 料金 入力 · 入力トークン **$0.0002** / 1K トークン 出力 · 出力トークン **$0.001** / 1K トークン 入力 · キャッシュ読み取り **$0.00002** / 1K トークン 入力 · キャッシュ書き込み **$0.00025** / 1K トークン 入力 · キャッシュ書き込み、1時間 **$0.002** / 1K トークン |

Ailootはリクエスト前に見積額を確保します。結果の取得後、実測使用量に基づいて最終料金を精算します。ストリーミング時の精算には最終の使用量記録を使用します。[金額の確保と精算の仕組み →](https://ailoot.ai/docs/ja/billing/reserve/)

### リクエスト例

#### Ailoot Ultra · OpenAI チャット

curlPython SDKPythonストリーミング

```bash
set -eu
: "${AILOOT_API_KEY:?Set your Ailoot API key}"
python3 - <<'PY_REQUEST'
import json,os
from pathlib import Path
p=json.loads('{"model": "anthropic/claude-haiku-5.5", "messages": [{"role": "user", "content": "Explain the difference between an observation and a hypothesis in three sentences."}]}')

Path("request.json").write_text(json.dumps(p,ensure_ascii=False))
PY_REQUEST
curl --fail-with-body --silent --show-error https://api.ailoot.ai/v1/chat/completions \
  -H "Authorization: Bearer $AILOOT_API_KEY" -H 'Content-Type: application/json' \
  --data-binary @request.json -D response-headers.txt -o result.json
python3 - <<'PY_RESULT'
import json
from pathlib import Path
r=json.loads(Path("result.json").read_text())
for x in r.get("choices",[]):
    if x.get("message",{}).get("content"): print(x["message"]["content"])
PY_RESULT
```

```python
from openai import OpenAI
import os

if not os.environ.get("AILOOT_API_KEY", "").strip(): raise SystemExit("Set AILOOT_API_KEY before making a request")
client=OpenAI(base_url="https://api.ailoot.ai/v1",api_key=os.environ["AILOOT_API_KEY"],max_retries=0)
result=client.chat.completions.create(model='anthropic/claude-haiku-5.5',messages=[{"role":"user","content":"Explain observations and hypotheses in three sentences."}])
import base64, json
from pathlib import Path

def save_result(data, stem="result"):
    # Keep every field, including usage, IDs, reasoning and tool requests.
    Path(stem + ".json").write_text(json.dumps(data, ensure_ascii=False, indent=2), encoding="utf-8")
    print(json.dumps(data, ensure_ascii=False, indent=2))
    def save_blob(encoded, suffix, label):
        raw = base64.b64decode(encoded, altchars=b"-_", validate=True)
        ext = "png" if raw.startswith(b"\x89PNG\r\n\x1a\n") else "jpg" if raw.startswith(b"\xff\xd8") else "webp" if raw[:4] == b"RIFF" and raw[8:12] == b"WEBP" else suffix
        file = Path(stem + "-" + label + "." + ext)
        file.write_bytes(raw)
        print("Saved", file)
    for index, block in enumerate(data.get("content") or []):
        print("Content", index, json.dumps(block, ensure_ascii=False))
    for choice in data.get("choices") or []:
        print("Choice", choice.get("index"), json.dumps(choice.get("message", choice.get("delta", {})), ensure_ascii=False))
    for index, item in enumerate(data.get("output") or []):
        print("Output", index, json.dumps(item, ensure_ascii=False))
        if item.get("type") == "image_generation_call" and item.get("result"):
            save_blob(item["result"], item.get("output_format") or "bin", "output-" + str(index))
    for ci, candidate in enumerate(data.get("candidates") or []):
        for pi, part in enumerate((candidate.get("content") or {}).get("parts") or []):
            print("Candidate/part", ci, pi, json.dumps(part, ensure_ascii=False))
            blob = part.get("inlineData") or part.get("inline_data")
            if blob and blob.get("data"):
                mime = blob.get("mimeType") or blob.get("mime_type")
                suffix = {"image/png":"png", "image/jpeg":"jpg", "image/webp":"webp", "audio/wav":"wav", "audio/mpeg":"mp3", "video/mp4":"mp4"}.get(mime, "bin")
                save_blob(blob["data"], suffix, "candidate-" + str(ci) + "-part-" + str(pi))

save_result(result.to_dict(mode="json"))
```

```python
from openai import OpenAI
import os
from pathlib import Path

if not os.environ.get("AILOOT_API_KEY", "").strip(): raise SystemExit("Set AILOOT_API_KEY before making a request")
client=OpenAI(base_url="https://api.ailoot.ai/v1",api_key=os.environ["AILOOT_API_KEY"],max_retries=0)
import base64, json
from pathlib import Path

def save_result(data, stem="result"):
    # Keep every field, including usage, IDs, reasoning and tool requests.
    Path(stem + ".json").write_text(json.dumps(data, ensure_ascii=False, indent=2), encoding="utf-8")
    print(json.dumps(data, ensure_ascii=False, indent=2))
    def save_blob(encoded, suffix, label):
        raw = base64.b64decode(encoded, altchars=b"-_", validate=True)
        ext = "png" if raw.startswith(b"\x89PNG\r\n\x1a\n") else "jpg" if raw.startswith(b"\xff\xd8") else "webp" if raw[:4] == b"RIFF" and raw[8:12] == b"WEBP" else suffix
        file = Path(stem + "-" + label + "." + ext)
        file.write_bytes(raw)
        print("Saved", file)
    for index, block in enumerate(data.get("content") or []):
        print("Content", index, json.dumps(block, ensure_ascii=False))
    for choice in data.get("choices") or []:
        print("Choice", choice.get("index"), json.dumps(choice.get("message", choice.get("delta", {})), ensure_ascii=False))
    for index, item in enumerate(data.get("output") or []):
        print("Output", index, json.dumps(item, ensure_ascii=False))
        if item.get("type") == "image_generation_call" and item.get("result"):
            save_blob(item["result"], item.get("output_format") or "bin", "output-" + str(index))
    for ci, candidate in enumerate(data.get("candidates") or []):
        for pi, part in enumerate((candidate.get("content") or {}).get("parts") or []):
            print("Candidate/part", ci, pi, json.dumps(part, ensure_ascii=False))
            blob = part.get("inlineData") or part.get("inline_data")
            if blob and blob.get("data"):
                mime = blob.get("mimeType") or blob.get("mime_type")
                suffix = {"image/png":"png", "image/jpeg":"jpg", "image/webp":"webp", "audio/wav":"wav", "audio/mpeg":"mp3", "video/mp4":"mp4"}.get(mime, "bin")
                save_blob(blob["data"], suffix, "candidate-" + str(ci) + "-part-" + str(pi))

with client.chat.completions.stream(model='anthropic/claude-haiku-5.5',messages=[{"role":"user","content":"Explain observations and hypotheses in three sentences."}]) as stream:
    with Path("stream-events.jsonl").open("w",encoding="utf-8") as log:
        for event in stream:
            payload=event.to_dict(mode="json")
            log.write(json.dumps(payload,ensure_ascii=False)+"\n"); log.flush()
            print(json.dumps(payload,ensure_ascii=False))
    final=stream.get_final_completion()
    save_result(final.to_dict(mode="json"),"stream-result")
```

### 結果を受け取って保存

#### Ailoot Ultra · OpenAI チャット

jsonまたはSSE

##### 完了した結果をすべて保存

返された完全なレスポンス、ファイル、コンテンツ部分をすべて保存してください。

すべての選択肢と、その内容・ツール呼び出し・推論を保持してください。SSEでは選択肢／ツールのインデックスごとに差分を組み立て、最終的な終了理由と使用量を残します。

##### 元のレスポンスを確認する場合

リクエスト／応答IDとヘッダーを保持してください。テキストジョブを取得する汎用URLは提供されません。

レスポンスのフィールド

| フィールド | 種類 |
| --- | --- |
| フィールド`choices[].index` | 種類integer |
| フィールド`choices[].message.content` | 種類string\|null |
| フィールド`choices[].message.tool_calls` | 種類tool\_call\[\] |
| フィールド`choices[].message.reasoning_content` | 種類string |
| フィールド`choices[].message.reasoning_details` | 種類object\|array |
| フィールド`choices[].finish_reason` | 種類string\|null |
| フィールド`usage` | 種類object |

エラーと次の手順

| レスポンス | 条件 | 次の手順 |
| --- | --- | --- |
| レスポンス400 · `invalid_request_error` | 条件必須フィールド、素材の表現形式、またはパラメーター値が不正です | 次の手順新しい生成リクエストを送る前に、指定されたフィールドを修正してください。 |

### エイリアス

#### モデルのエイリアス

**Ailoot Ultra** [`anthropic/claude-haiku-5.5`](https://ailoot.ai/models/ja/#m=anthropic%2Fclaude-haiku-5.5&route=Ultra&caller=anthropic%2Fclaude-haiku-5.5&fmt=chat), [`~anthropic/claude-haiku-latest`](https://ailoot.ai/models/ja/#m=anthropic%2Fclaude-haiku-5.5&route=Ultra&caller=~anthropic%2Fclaude-haiku-latest&fmt=chat)

#### メソッドパスのエイリアス

上記に表示されたメソッドパスを使用してください。

#### 関連する呼び出し用ID

[`anthropic/claude-haiku-5.5`](https://ailoot.ai/models/ja/#m=anthropic%2Fclaude-haiku-5.5&route=Ultra&caller=anthropic%2Fclaude-haiku-5.5&fmt=chat), [`~anthropic/claude-haiku-latest`](https://ailoot.ai/models/ja/#m=anthropic%2Fclaude-haiku-5.5&route=Ultra&caller=~anthropic%2Fclaude-haiku-latest&fmt=chat)

**Ailoot Ultra · Anthropic メッセージ** `POST /v1/messages` `anthropic/claude-haiku-5.5`

[`anthropic/claude-haiku-5.5`](https://ailoot.ai/models/ja/#m=anthropic%2Fclaude-haiku-5.5&route=Ultra&caller=anthropic%2Fclaude-haiku-5.5&fmt=messages)

Anthropic /`anthropic/claude-haiku-5.5`

モデルID

- `anthropic/claude-haiku-5.5`
- `~anthropic/claude-haiku-latest`

### はじめに

Claude Haiku 5.5は、分類、抽出、要約、振り分け、対象を絞ったエージェントのタスクに向けたAnthropicの小型モデルです。テキストと画像の理解に適応型推論を組み合わせ、迅速な応答が必要な反復作業を想定しています。

対応する入力

テキスト

結果

json · sse

### Ailootで利用可能 · 入力とメソッド

**Ailoot Ultra · Anthropic メッセージ** `POST /v1/messages`

入力の種類

`text`

出力の種類

`json`, `sse`

出力形式

JSONまたはSSE

| フィールド | 種類 | 要件 | 値と制限 | デフォルト |
| --- | --- | --- | --- | --- |
| フィールド`model` | 種類`string` | 要件必須 | 値と制限 anthropic/claude-haiku-5.5 | デフォルト— |
| フィールド`messages` | 種類`message[]` | 要件必須 | 値と制限 | デフォルト— |
| フィールド`messages[].role` | 種類`string` | 要件必須 | 値と制限 user, assistant | デフォルト— |
| フィールド`messages[].content` | 種類`string` | 要件必須 | 値と制限 | デフォルト— |
| フィールド`max_tokens` | 種類`integer` | 要件必須 | 値と制限 | デフォルト— |
| フィールド`stream` | 種類`boolean` | 要件任意 | 値と制限 | デフォルトfalse |

入力素材の組み合わせ

**テキスト** · UTF-8テキスト

`messages[].contentの文字列`

メソッドのパラメータとライフサイクル

| パラメータ | 仕様 |
| --- | --- |
| パラメータ`content_type` | 仕様application/json |
| パラメータ`required` | 仕様model, messages, max\_tokens |
| パラメータ`optional_controls` | 仕様stream |
| パラメータ`material_types` | 仕様text |
| パラメータ`text_file_material` | 仕様実際のUTF-8文書を読み、その本文を指定された入力またはメッセージ内容の文字列に入れてください。 |

ライフサイクル: `synchronous_or_streamed`

### 料金

料金情報はリクエストの機能を追加しません。対応するパラメーターは選択したメソッドに記載されています。

高速モード

標準料金 高速モードが選択されている場合

Flex モード

標準料金 flex モードが選択されている場合

最大推論量

標準料金 推論量が最大で、調整に既定値（default）を使用する場合

推論量 · 高

標準料金 推論量が高い場合

推論量 · 低

標準料金 推論量が低い場合

推論量 · 最大（max）

標準料金 推論量が最大（max）の場合

推論量 · 中

標準料金 推論量が中程度の場合

推論量 · xhigh

標準料金 推論量が xhigh の場合

#### Ailootの料金

#### 設定別の価格

各料金を表示された条件と照合してください。選択肢となる設定の各組には、いずれか1つの料金を適用します。

| 設定 | 料金表 | コンテキストトークン数が次の値を超える場合 | コンテキストトークン数が次の値以下の場合 | 料金 |
| --- | --- | --- | --- | --- |
| 設定トークンの基本単価 | 料金表基本料金 | コンテキストトークン数が次の値を超える場合— | コンテキストトークン数が次の値以下の場合上限なし | 料金 入力 · 入力トークン **$0.0002** / 1K トークン 出力 · 出力トークン **$0.001** / 1K トークン 入力 · キャッシュ読み取り **$0.00002** / 1K トークン 入力 · キャッシュ書き込み **$0.00025** / 1K トークン 入力 · キャッシュ書き込み、1時間 **$0.0004** / 1K トークン |
| 設定リクエスト長に応じた料金区分 1 | 料金表— | コンテキストトークン数が次の値を超える場合0 | コンテキストトークン数が次の値以下の場合100,000 | 料金 入力 · 入力トークン **$0.0002** / 1K トークン 出力 · 出力トークン **$0.001** / 1K トークン 入力 · キャッシュ読み取り **$0.00002** / 1K トークン 入力 · キャッシュ書き込み **$0.00025** / 1K トークン 入力 · キャッシュ書き込み、1時間 **$0.0004** / 1K トークン |
| 設定リクエスト長に応じた料金区分 2 | 料金表— | コンテキストトークン数が次の値を超える場合100,000 | コンテキストトークン数が次の値以下の場合上限なし | 料金 入力 · 入力トークン **$0.0002** / 1K トークン 出力 · 出力トークン **$0.001** / 1K トークン 入力 · キャッシュ読み取り **$0.00002** / 1K トークン 入力 · キャッシュ書き込み **$0.00025** / 1K トークン 入力 · キャッシュ書き込み、1時間 **$0.002** / 1K トークン |

Ailootはリクエスト前に見積額を確保します。結果の取得後、実測使用量に基づいて最終料金を精算します。ストリーミング時の精算には最終の使用量記録を使用します。[金額の確保と精算の仕組み →](https://ailoot.ai/docs/ja/billing/reserve/)

### リクエスト例

#### Ailoot Ultra · Anthropic メッセージ

必要最小限の完全な JSON ボディcurl · ご自身の UTF-8 ドキュメントを使用するPython · 結果全体を保存する

```json
{
  "model": "anthropic/claude-haiku-5.5",
  "max_tokens": 128,
  "messages": [
    {
      "role": "user",
      "content": "Summarize the incident report."
    }
  ],
  "stream": false
}
```

```bash
set -eu
: "${AILOOT_API_KEY:?Set your Ailoot API key}"
: "${AILOOT_TEXT_FILE:?Set your actual UTF-8 document}"
export AILOOT_TEXT_FILE
python3 - <<'PY_REQUEST'
import json, os
from pathlib import Path

source_file = Path(os.environ['AILOOT_TEXT_FILE'])
if not source_file.is_file():
    raise SystemExit('Set AILOOT_TEXT_FILE to your actual UTF-8 document')
text = source_file.read_text(encoding='utf-8')
if not text.strip():
    raise SystemExit('Choose a document containing text')
payload = {'model': 'anthropic/claude-haiku-5.5', 'max_tokens': 128, 'messages': [{'role': 'user', 'content': 'Summarize the incident report.'}]}
payload['messages'][0]['content'] = 'Summarize this material and quote supporting source passages.\n\n' + text
Path('request.json').write_text(json.dumps(payload, ensure_ascii=False), encoding='utf-8')
PY_REQUEST
curl --fail-with-body --silent --show-error https://api.ailoot.ai/v1/messages \
  -H "x-api-key: $AILOOT_API_KEY" -H 'anthropic-version: 2023-06-01' -H 'Content-Type: application/json' \
  --data-binary @request.json -D response-headers.txt -o result.json
python3 - <<'PY_RESULT'
import json
from pathlib import Path

result = json.loads(Path('result.json').read_text(encoding='utf-8'))
print(json.dumps(result, ensure_ascii=False, indent=2))
PY_RESULT
```

```python
import json, os
from pathlib import Path

source_file = Path(os.environ['AILOOT_TEXT_FILE'])
if not source_file.is_file():
    raise SystemExit('Set AILOOT_TEXT_FILE to your actual UTF-8 document')
text = source_file.read_text(encoding='utf-8')
if not text.strip():
    raise SystemExit('Choose a document containing text')
payload = {'model': 'anthropic/claude-haiku-5.5', 'max_tokens': 128, 'messages': [{'role': 'user', 'content': 'Summarize the incident report.'}]}
payload['messages'][0]['content'] = 'Summarize this material and quote supporting source passages.\n\n' + text
from urllib.request import Request, urlopen
from urllib.error import HTTPError

api_key = os.environ['AILOOT_API_KEY']
if not api_key.strip():
    raise SystemExit('Set AILOOT_API_KEY before making a request')
headers = {'x-api-key': 'PLACEHOLDER_KEY', 'anthropic-version': '2023-06-01', 'Content-Type': 'application/json'}
headers['x-api-key'] = api_key
request = Request('https://api.ailoot.ai/v1/messages', data=json.dumps(payload, ensure_ascii=False).encode('utf-8'), headers=headers, method='POST')
try:
    with urlopen(request, timeout=120) as response:
        raw = response.read()
        Path('response-headers.txt').write_text(str(response.headers), encoding='utf-8')
except HTTPError as error:
    Path('result.json').write_bytes(error.read())
    Path('response-headers.txt').write_text(str(error.headers), encoding='utf-8')
    raise
Path('result.json').write_bytes(raw)
import json
from pathlib import Path

result = json.loads(Path('result.json').read_text(encoding='utf-8'))
print(json.dumps(result, ensure_ascii=False, indent=2))
```

### 結果を受け取って保存

#### Ailoot Ultra · Anthropic メッセージ

JSONまたはSSE

##### 完了した結果をすべて保存

返された完全なレスポンス、ファイル、コンテンツ部分をすべて保存してください。

すべてのコンテンツブロック、思考署名、実際のツール利用IDを保持してください。SSEのすべてのブロック差分を組み立てます。最初のテキストブロックだけでは完全な出力になりません。

##### 元のレスポンスを確認する場合

リクエスト／応答IDとヘッダーを保持してください。テキストジョブを取得する汎用URLは提供されません。

レスポンスのフィールド

| フィールド | 種類 |
| --- | --- |
| フィールド`id` | 種類string |
| フィールド`model` | 種類string |
| フィールド`content[]` | 種類text\|thinking\|tool\_use\|other content block |
| フィールド`stop_reason` | 種類string\|null |
| フィールド`usage` | 種類object |

エラーと次の手順

| レスポンス | 条件 | 次の手順 |
| --- | --- | --- |
| レスポンス400 · `invalid_request_error` | 条件必須フィールド、素材の表現形式、またはパラメーター値が不正です | 次の手順新しい生成リクエストを送る前に、指定されたフィールドを修正してください。 |

### エイリアス

#### モデルのエイリアス

**Ailoot Ultra** [`anthropic/claude-haiku-5.5`](https://ailoot.ai/models/ja/#m=anthropic%2Fclaude-haiku-5.5&route=Ultra&caller=anthropic%2Fclaude-haiku-5.5&fmt=messages), [`~anthropic/claude-haiku-latest`](https://ailoot.ai/models/ja/#m=anthropic%2Fclaude-haiku-5.5&route=Ultra&caller=~anthropic%2Fclaude-haiku-latest&fmt=messages)

#### メソッドパスのエイリアス

上記に表示されたメソッドパスを使用してください。

#### 関連する呼び出し用ID

[`anthropic/claude-haiku-5.5`](https://ailoot.ai/models/ja/#m=anthropic%2Fclaude-haiku-5.5&route=Ultra&caller=anthropic%2Fclaude-haiku-5.5&fmt=messages), [`~anthropic/claude-haiku-latest`](https://ailoot.ai/models/ja/#m=anthropic%2Fclaude-haiku-5.5&route=Ultra&caller=~anthropic%2Fclaude-haiku-latest&fmt=messages)

**Ailoot Ultra · OpenAI チャット** `POST /v1/chat/completions` `~anthropic/claude-haiku-latest`

[`~anthropic/claude-haiku-latest`](https://ailoot.ai/models/ja/#m=anthropic%2Fclaude-haiku-5.5&route=Ultra&caller=~anthropic%2Fclaude-haiku-latest&fmt=chat)

Anthropic /`~anthropic/claude-haiku-latest`

モデルID

- `anthropic/claude-haiku-5.5`
- `~anthropic/claude-haiku-latest`

### はじめに

Claude Haiku 5.5は、分類、抽出、要約、振り分け、対象を絞ったエージェントのタスクに向けたAnthropicの小型モデルです。テキストと画像の理解に適応型推論を組み合わせ、迅速な応答が必要な反復作業を想定しています。

対応する入力

テキスト

結果

テキスト

### Ailootで利用可能 · 入力とメソッド

**Ailoot Ultra · OpenAI チャット** `POST /v1/chat/completions`

入力の種類

`text`

出力の種類

`text`

出力形式

jsonまたはSSE

| フィールド | 種類 | 要件 | 値と制限 | デフォルト |
| --- | --- | --- | --- | --- |
| フィールド`model` | 種類`string` | 要件必須 | 値と制限 ~anthropic/claude-haiku-latest | デフォルト— |
| フィールド`messages` | 種類`message[]` | 要件必須 | 値と制限 最小項目数: 1 | デフォルト— |
| フィールド`messages[].role` | 種類`string` | 要件必須 | 値と制限 例：system, user, assistant, tool, function 条件: これらのロールはソースコードの互換型で明示されています。正確なロールの集合はモデルごとに異なります。 モデルによる | デフォルト— |
| フィールド`messages[].content` | 種類`string\|content_part[]\|null` | 要件任意 | 値と制限 | デフォルト— |
| フィールド`messages[].tool_calls` | 種類`tool_call[]` | 要件任意 | 値と制限 | デフォルト— |
| フィールド`messages[].tool_call_id` | 種類`string` | 要件任意 | 値と制限 適用条件: role=tool。実際に返されたIDを使ってください | デフォルト— |
| フィールド`messages[].name` | 種類`string` | 要件任意 | 値と制限 | デフォルト— |
| フィールド`messages[].reasoning_content` | 種類`string` | 要件任意 | 値と制限 適用条件: このモデルが使用する場合は、実際に返された推論をそのまま次のリクエストへ戻してください | デフォルト— |
| フィールド`messages[].reasoning_details` | 種類`object\|array` | 要件任意 | 値と制限 モデルによる | デフォルト— |
| フィールド`max_tokens` | 種類`integer` | 要件任意 | 値と制限 最小値: 1 モデルによる | デフォルト— |
| フィールド`max_completion_tokens` | 種類`integer` | 要件任意 | 値と制限 最小値: 1 モデルによる | デフォルト— |
| フィールド`stream` | 種類`boolean` | 要件任意 | 値と制限 | デフォルトfalse |
| フィールド`stream_options.include_usage` | 種類`boolean` | 要件任意 | 値と制限 モデルによる | デフォルト— |
| フィールド`temperature` | 種類`number` | 要件任意 | 値と制限 モデルによる | デフォルト— |
| フィールド`top_p` | 種類`number` | 要件任意 | 値と制限 モデルによる | デフォルト— |
| フィールド`stop` | 種類`string\|string[]` | 要件任意 | 値と制限 モデルによる | デフォルト— |
| フィールド`tools` | 種類`function_tool[]` | 要件任意 | 値と制限 モデルによる | デフォルト— |
| フィールド`tools[].type` | 種類`string` | 要件任意 | 値と制限 function モデルによる | デフォルト— |
| フィールド`tools[].function.name` | 種類`string` | 要件必須 | 値と制限 適用条件: 関数ツールの指定あり | デフォルト— |
| フィールド`tools[].function.description` | 種類`string` | 要件任意 | 値と制限 | デフォルト— |
| フィールド`tools[].function.parameters` | 種類`JSON_schema` | 要件任意 | 値と制限 | デフォルト— |
| フィールド`tool_choice` | 種類`string\|object` | 要件任意 | 値と制限 モデルによる | デフォルト— |
| フィールド`parallel_tool_calls` | 種類`boolean` | 要件任意 | 値と制限 モデルによる | デフォルト— |
| フィールド`response_format` | 種類`object` | 要件任意 | 値と制限 モデルによる | デフォルト— |
| フィールド`reasoning_effort` | 種類`string` | 要件任意 | 値と制限 モデルによる | デフォルト— |
| フィールド`reasoning` | 種類`object` | 要件任意 | 値と制限 モデルによる | デフォルト— |
| フィールド`service_tier` | 種類`string` | 要件任意 | 値と制限 モデルによる | デフォルト— |
| フィールド`instructions` | 種類`string` | 要件任意 | 値と制限 互換性用のフィールド | デフォルト— |
| フィールド`functions` | 種類`function[]` | 要件任意 | 値と制限 モデルによる | デフォルト— |
| フィールド`function_call` | 種類`string\|object` | 要件任意 | 値と制限 モデルによる | デフォルト— |
| フィールド`prompt_cache_options` | 種類`object` | 要件任意 | 値と制限 モデルによる | デフォルト— |
| フィールド`modalities` | 種類`string[]` | 要件任意 | 値と制限 text | デフォルト— |
| フィールド`provider` | 種類`object` | 要件任意 | 値と制限 条件: このUltraテキストルートではprovider.optionsは拒否されます | デフォルト— |
| フィールド`cache_control.ttl` | 種類`string` | 要件任意 | 値と制限 条件: 実際のプロンプトキャッシュの指定箇所では1hは拒否されます | デフォルト— |

入力素材の組み合わせ

**テキスト** · UTF8テキスト

`messages[].content`

メソッドのパラメータとライフサイクル

| パラメータ | 仕様 |
| --- | --- |
| パラメータ`content_type` | 仕様application/json |
| パラメータ`required` | 仕様model, messages |
| パラメータ`material_types` | 仕様text |
| パラメータ`messages` | 仕様role/content形式のメッセージ配列 |
| パラメータ`file_material` | 仕様実際のUTF-8文書をテキストとしてそのまま挿入します。ファイルIDは推定しません |
| パラメータ`optional_controls` | 仕様stream, temperature, top\_p, stop, max\_tokens, max\_completion\_tokens, reasoning, response\_format, tools, tool\_choice |
| パラメータ`control_scope` | 仕様モデル固有。ユーザーの関数ツールとホスト側のツールは異なります |
| パラメータ`output_modalities` | 仕様text |
| パラメータ`hosted_operations` | 仕様false |
| パラメータ`multimodal_input_binding` | 仕様null |

ライフサイクル: `synchronous_or_streamed`

正確なモデルIDをmessagesとともに送ってください。

コンテキスト長は出力上限ではありません。

テキストファイルはテキストをそのまま提供できます。画像／音声／ファイルオブジェクトの入力には正確なバインディングが必要です。

### 料金

料金情報はリクエストの機能を追加しません。対応するパラメーターは選択したメソッドに記載されています。

高速モード

標準料金 高速モードが選択されている場合

Flex モード

標準料金 flex モードが選択されている場合

最大推論量

標準料金 推論量が最大で、調整に既定値（default）を使用する場合

推論量 · 高

標準料金 推論量が高い場合

推論量 · 低

標準料金 推論量が低い場合

推論量 · 最大（max）

標準料金 推論量が最大（max）の場合

推論量 · 中

標準料金 推論量が中程度の場合

推論量 · xhigh

標準料金 推論量が xhigh の場合

#### Ailootの料金

#### 設定別の価格

各料金を表示された条件と照合してください。選択肢となる設定の各組には、いずれか1つの料金を適用します。

| 設定 | 料金表 | コンテキストトークン数が次の値を超える場合 | コンテキストトークン数が次の値以下の場合 | 料金 |
| --- | --- | --- | --- | --- |
| 設定トークンの基本単価 | 料金表基本料金 | コンテキストトークン数が次の値を超える場合— | コンテキストトークン数が次の値以下の場合上限なし | 料金 入力 · 入力トークン **$0.0002** / 1K トークン 出力 · 出力トークン **$0.001** / 1K トークン 入力 · キャッシュ読み取り **$0.00002** / 1K トークン 入力 · キャッシュ書き込み **$0.00025** / 1K トークン 入力 · キャッシュ書き込み、1時間 **$0.0004** / 1K トークン |
| 設定リクエスト長に応じた料金区分 1 | 料金表— | コンテキストトークン数が次の値を超える場合0 | コンテキストトークン数が次の値以下の場合100,000 | 料金 入力 · 入力トークン **$0.0002** / 1K トークン 出力 · 出力トークン **$0.001** / 1K トークン 入力 · キャッシュ読み取り **$0.00002** / 1K トークン 入力 · キャッシュ書き込み **$0.00025** / 1K トークン 入力 · キャッシュ書き込み、1時間 **$0.0004** / 1K トークン |
| 設定リクエスト長に応じた料金区分 2 | 料金表— | コンテキストトークン数が次の値を超える場合100,000 | コンテキストトークン数が次の値以下の場合上限なし | 料金 入力 · 入力トークン **$0.0002** / 1K トークン 出力 · 出力トークン **$0.001** / 1K トークン 入力 · キャッシュ読み取り **$0.00002** / 1K トークン 入力 · キャッシュ書き込み **$0.00025** / 1K トークン 入力 · キャッシュ書き込み、1時間 **$0.002** / 1K トークン |

Ailootはリクエスト前に見積額を確保します。結果の取得後、実測使用量に基づいて最終料金を精算します。ストリーミング時の精算には最終の使用量記録を使用します。[金額の確保と精算の仕組み →](https://ailoot.ai/docs/ja/billing/reserve/)

### リクエスト例

#### Ailoot Ultra · OpenAI チャット

curlPython SDKPythonストリーミング

```bash
set -eu
: "${AILOOT_API_KEY:?Set your Ailoot API key}"
python3 - <<'PY_REQUEST'
import json,os
from pathlib import Path
p=json.loads('{"model": "~anthropic/claude-haiku-latest", "messages": [{"role": "user", "content": "Explain the difference between an observation and a hypothesis in three sentences."}]}')

Path("request.json").write_text(json.dumps(p,ensure_ascii=False))
PY_REQUEST
curl --fail-with-body --silent --show-error https://api.ailoot.ai/v1/chat/completions \
  -H "Authorization: Bearer $AILOOT_API_KEY" -H 'Content-Type: application/json' \
  --data-binary @request.json -D response-headers.txt -o result.json
python3 - <<'PY_RESULT'
import json
from pathlib import Path
r=json.loads(Path("result.json").read_text())
for x in r.get("choices",[]):
    if x.get("message",{}).get("content"): print(x["message"]["content"])
PY_RESULT
```

```python
from openai import OpenAI
import os

if not os.environ.get("AILOOT_API_KEY", "").strip(): raise SystemExit("Set AILOOT_API_KEY before making a request")
client=OpenAI(base_url="https://api.ailoot.ai/v1",api_key=os.environ["AILOOT_API_KEY"],max_retries=0)
result=client.chat.completions.create(model='~anthropic/claude-haiku-latest',messages=[{"role":"user","content":"Explain observations and hypotheses in three sentences."}])
import base64, json
from pathlib import Path

def save_result(data, stem="result"):
    # Keep every field, including usage, IDs, reasoning and tool requests.
    Path(stem + ".json").write_text(json.dumps(data, ensure_ascii=False, indent=2), encoding="utf-8")
    print(json.dumps(data, ensure_ascii=False, indent=2))
    def save_blob(encoded, suffix, label):
        raw = base64.b64decode(encoded, altchars=b"-_", validate=True)
        ext = "png" if raw.startswith(b"\x89PNG\r\n\x1a\n") else "jpg" if raw.startswith(b"\xff\xd8") else "webp" if raw[:4] == b"RIFF" and raw[8:12] == b"WEBP" else suffix
        file = Path(stem + "-" + label + "." + ext)
        file.write_bytes(raw)
        print("Saved", file)
    for index, block in enumerate(data.get("content") or []):
        print("Content", index, json.dumps(block, ensure_ascii=False))
    for choice in data.get("choices") or []:
        print("Choice", choice.get("index"), json.dumps(choice.get("message", choice.get("delta", {})), ensure_ascii=False))
    for index, item in enumerate(data.get("output") or []):
        print("Output", index, json.dumps(item, ensure_ascii=False))
        if item.get("type") == "image_generation_call" and item.get("result"):
            save_blob(item["result"], item.get("output_format") or "bin", "output-" + str(index))
    for ci, candidate in enumerate(data.get("candidates") or []):
        for pi, part in enumerate((candidate.get("content") or {}).get("parts") or []):
            print("Candidate/part", ci, pi, json.dumps(part, ensure_ascii=False))
            blob = part.get("inlineData") or part.get("inline_data")
            if blob and blob.get("data"):
                mime = blob.get("mimeType") or blob.get("mime_type")
                suffix = {"image/png":"png", "image/jpeg":"jpg", "image/webp":"webp", "audio/wav":"wav", "audio/mpeg":"mp3", "video/mp4":"mp4"}.get(mime, "bin")
                save_blob(blob["data"], suffix, "candidate-" + str(ci) + "-part-" + str(pi))

save_result(result.to_dict(mode="json"))
```

```python
from openai import OpenAI
import os
from pathlib import Path

if not os.environ.get("AILOOT_API_KEY", "").strip(): raise SystemExit("Set AILOOT_API_KEY before making a request")
client=OpenAI(base_url="https://api.ailoot.ai/v1",api_key=os.environ["AILOOT_API_KEY"],max_retries=0)
import base64, json
from pathlib import Path

def save_result(data, stem="result"):
    # Keep every field, including usage, IDs, reasoning and tool requests.
    Path(stem + ".json").write_text(json.dumps(data, ensure_ascii=False, indent=2), encoding="utf-8")
    print(json.dumps(data, ensure_ascii=False, indent=2))
    def save_blob(encoded, suffix, label):
        raw = base64.b64decode(encoded, altchars=b"-_", validate=True)
        ext = "png" if raw.startswith(b"\x89PNG\r\n\x1a\n") else "jpg" if raw.startswith(b"\xff\xd8") else "webp" if raw[:4] == b"RIFF" and raw[8:12] == b"WEBP" else suffix
        file = Path(stem + "-" + label + "." + ext)
        file.write_bytes(raw)
        print("Saved", file)
    for index, block in enumerate(data.get("content") or []):
        print("Content", index, json.dumps(block, ensure_ascii=False))
    for choice in data.get("choices") or []:
        print("Choice", choice.get("index"), json.dumps(choice.get("message", choice.get("delta", {})), ensure_ascii=False))
    for index, item in enumerate(data.get("output") or []):
        print("Output", index, json.dumps(item, ensure_ascii=False))
        if item.get("type") == "image_generation_call" and item.get("result"):
            save_blob(item["result"], item.get("output_format") or "bin", "output-" + str(index))
    for ci, candidate in enumerate(data.get("candidates") or []):
        for pi, part in enumerate((candidate.get("content") or {}).get("parts") or []):
            print("Candidate/part", ci, pi, json.dumps(part, ensure_ascii=False))
            blob = part.get("inlineData") or part.get("inline_data")
            if blob and blob.get("data"):
                mime = blob.get("mimeType") or blob.get("mime_type")
                suffix = {"image/png":"png", "image/jpeg":"jpg", "image/webp":"webp", "audio/wav":"wav", "audio/mpeg":"mp3", "video/mp4":"mp4"}.get(mime, "bin")
                save_blob(blob["data"], suffix, "candidate-" + str(ci) + "-part-" + str(pi))

with client.chat.completions.stream(model='~anthropic/claude-haiku-latest',messages=[{"role":"user","content":"Explain observations and hypotheses in three sentences."}]) as stream:
    with Path("stream-events.jsonl").open("w",encoding="utf-8") as log:
        for event in stream:
            payload=event.to_dict(mode="json")
            log.write(json.dumps(payload,ensure_ascii=False)+"\n"); log.flush()
            print(json.dumps(payload,ensure_ascii=False))
    final=stream.get_final_completion()
    save_result(final.to_dict(mode="json"),"stream-result")
```

### 結果を受け取って保存

#### Ailoot Ultra · OpenAI チャット

jsonまたはSSE

##### 完了した結果をすべて保存

返された完全なレスポンス、ファイル、コンテンツ部分をすべて保存してください。

すべての選択肢と、その内容・ツール呼び出し・推論を保持してください。SSEでは選択肢／ツールのインデックスごとに差分を組み立て、最終的な終了理由と使用量を残します。

##### 元のレスポンスを確認する場合

リクエスト／応答IDとヘッダーを保持してください。テキストジョブを取得する汎用URLは提供されません。

レスポンスのフィールド

| フィールド | 種類 |
| --- | --- |
| フィールド`choices[].index` | 種類integer |
| フィールド`choices[].message.content` | 種類string\|null |
| フィールド`choices[].message.tool_calls` | 種類tool\_call\[\] |
| フィールド`choices[].message.reasoning_content` | 種類string |
| フィールド`choices[].message.reasoning_details` | 種類object\|array |
| フィールド`choices[].finish_reason` | 種類string\|null |
| フィールド`usage` | 種類object |

エラーと次の手順

| レスポンス | 条件 | 次の手順 |
| --- | --- | --- |
| レスポンス400 · `invalid_request_error` | 条件必須フィールド、素材の表現形式、またはパラメーター値が不正です | 次の手順新しい生成リクエストを送る前に、指定されたフィールドを修正してください。 |

### エイリアス

#### モデルのエイリアス

**Ailoot Ultra** [`anthropic/claude-haiku-5.5`](https://ailoot.ai/models/ja/#m=anthropic%2Fclaude-haiku-5.5&route=Ultra&caller=anthropic%2Fclaude-haiku-5.5&fmt=chat), [`~anthropic/claude-haiku-latest`](https://ailoot.ai/models/ja/#m=anthropic%2Fclaude-haiku-5.5&route=Ultra&caller=~anthropic%2Fclaude-haiku-latest&fmt=chat)

#### メソッドパスのエイリアス

上記に表示されたメソッドパスを使用してください。

#### 関連する呼び出し用ID

[`anthropic/claude-haiku-5.5`](https://ailoot.ai/models/ja/#m=anthropic%2Fclaude-haiku-5.5&route=Ultra&caller=anthropic%2Fclaude-haiku-5.5&fmt=chat), [`~anthropic/claude-haiku-latest`](https://ailoot.ai/models/ja/#m=anthropic%2Fclaude-haiku-5.5&route=Ultra&caller=~anthropic%2Fclaude-haiku-latest&fmt=chat)

**Ailoot Ultra · Anthropic メッセージ** `POST /v1/messages` `~anthropic/claude-haiku-latest`

[`~anthropic/claude-haiku-latest`](https://ailoot.ai/models/ja/#m=anthropic%2Fclaude-haiku-5.5&route=Ultra&caller=~anthropic%2Fclaude-haiku-latest&fmt=messages)

Anthropic /`~anthropic/claude-haiku-latest`

モデルID

- `anthropic/claude-haiku-5.5`
- `~anthropic/claude-haiku-latest`

### はじめに

Claude Haiku 5.5は、分類、抽出、要約、振り分け、対象を絞ったエージェントのタスクに向けたAnthropicの小型モデルです。テキストと画像の理解に適応型推論を組み合わせ、迅速な応答が必要な反復作業を想定しています。

対応する入力

テキスト

結果

json · sse

### Ailootで利用可能 · 入力とメソッド

**Ailoot Ultra · Anthropic メッセージ** `POST /v1/messages`

入力の種類

`text`

出力の種類

`json`, `sse`

出力形式

JSONまたはSSE

| フィールド | 種類 | 要件 | 値と制限 | デフォルト |
| --- | --- | --- | --- | --- |
| フィールド`model` | 種類`string` | 要件必須 | 値と制限 ~anthropic/claude-haiku-latest | デフォルト— |
| フィールド`messages` | 種類`message[]` | 要件必須 | 値と制限 | デフォルト— |
| フィールド`messages[].role` | 種類`string` | 要件必須 | 値と制限 user, assistant | デフォルト— |
| フィールド`messages[].content` | 種類`string` | 要件必須 | 値と制限 | デフォルト— |
| フィールド`max_tokens` | 種類`integer` | 要件必須 | 値と制限 | デフォルト— |
| フィールド`stream` | 種類`boolean` | 要件任意 | 値と制限 | デフォルトfalse |

入力素材の組み合わせ

**テキスト** · UTF-8テキスト

`messages[].contentの文字列`

メソッドのパラメータとライフサイクル

| パラメータ | 仕様 |
| --- | --- |
| パラメータ`content_type` | 仕様application/json |
| パラメータ`required` | 仕様model, messages, max\_tokens |
| パラメータ`optional_controls` | 仕様stream |
| パラメータ`material_types` | 仕様text |
| パラメータ`text_file_material` | 仕様実際のUTF-8文書を読み、その本文を指定された入力またはメッセージ内容の文字列に入れてください。 |

ライフサイクル: `synchronous_or_streamed`

### 料金

料金情報はリクエストの機能を追加しません。対応するパラメーターは選択したメソッドに記載されています。

高速モード

標準料金 高速モードが選択されている場合

Flex モード

標準料金 flex モードが選択されている場合

最大推論量

標準料金 推論量が最大で、調整に既定値（default）を使用する場合

推論量 · 高

標準料金 推論量が高い場合

推論量 · 低

標準料金 推論量が低い場合

推論量 · 最大（max）

標準料金 推論量が最大（max）の場合

推論量 · 中

標準料金 推論量が中程度の場合

推論量 · xhigh

標準料金 推論量が xhigh の場合

#### Ailootの料金

#### 設定別の価格

各料金を表示された条件と照合してください。選択肢となる設定の各組には、いずれか1つの料金を適用します。

| 設定 | 料金表 | コンテキストトークン数が次の値を超える場合 | コンテキストトークン数が次の値以下の場合 | 料金 |
| --- | --- | --- | --- | --- |
| 設定トークンの基本単価 | 料金表基本料金 | コンテキストトークン数が次の値を超える場合— | コンテキストトークン数が次の値以下の場合上限なし | 料金 入力 · 入力トークン **$0.0002** / 1K トークン 出力 · 出力トークン **$0.001** / 1K トークン 入力 · キャッシュ読み取り **$0.00002** / 1K トークン 入力 · キャッシュ書き込み **$0.00025** / 1K トークン 入力 · キャッシュ書き込み、1時間 **$0.0004** / 1K トークン |
| 設定リクエスト長に応じた料金区分 1 | 料金表— | コンテキストトークン数が次の値を超える場合0 | コンテキストトークン数が次の値以下の場合100,000 | 料金 入力 · 入力トークン **$0.0002** / 1K トークン 出力 · 出力トークン **$0.001** / 1K トークン 入力 · キャッシュ読み取り **$0.00002** / 1K トークン 入力 · キャッシュ書き込み **$0.00025** / 1K トークン 入力 · キャッシュ書き込み、1時間 **$0.0004** / 1K トークン |
| 設定リクエスト長に応じた料金区分 2 | 料金表— | コンテキストトークン数が次の値を超える場合100,000 | コンテキストトークン数が次の値以下の場合上限なし | 料金 入力 · 入力トークン **$0.0002** / 1K トークン 出力 · 出力トークン **$0.001** / 1K トークン 入力 · キャッシュ読み取り **$0.00002** / 1K トークン 入力 · キャッシュ書き込み **$0.00025** / 1K トークン 入力 · キャッシュ書き込み、1時間 **$0.002** / 1K トークン |

Ailootはリクエスト前に見積額を確保します。結果の取得後、実測使用量に基づいて最終料金を精算します。ストリーミング時の精算には最終の使用量記録を使用します。[金額の確保と精算の仕組み →](https://ailoot.ai/docs/ja/billing/reserve/)

### リクエスト例

#### Ailoot Ultra · Anthropic メッセージ

必要最小限の完全な JSON ボディcurl · ご自身の UTF-8 ドキュメントを使用するPython · 結果全体を保存する

```json
{
  "model": "~anthropic/claude-haiku-latest",
  "max_tokens": 128,
  "messages": [
    {
      "role": "user",
      "content": "Summarize the incident report."
    }
  ],
  "stream": false
}
```

```bash
set -eu
: "${AILOOT_API_KEY:?Set your Ailoot API key}"
: "${AILOOT_TEXT_FILE:?Set your actual UTF-8 document}"
export AILOOT_TEXT_FILE
python3 - <<'PY_REQUEST'
import json, os
from pathlib import Path

source_file = Path(os.environ['AILOOT_TEXT_FILE'])
if not source_file.is_file():
    raise SystemExit('Set AILOOT_TEXT_FILE to your actual UTF-8 document')
text = source_file.read_text(encoding='utf-8')
if not text.strip():
    raise SystemExit('Choose a document containing text')
payload = {'model': '~anthropic/claude-haiku-latest', 'max_tokens': 128, 'messages': [{'role': 'user', 'content': 'Summarize the incident report.'}]}
payload['messages'][0]['content'] = 'Summarize this material and quote supporting source passages.\n\n' + text
Path('request.json').write_text(json.dumps(payload, ensure_ascii=False), encoding='utf-8')
PY_REQUEST
curl --fail-with-body --silent --show-error https://api.ailoot.ai/v1/messages \
  -H "x-api-key: $AILOOT_API_KEY" -H 'anthropic-version: 2023-06-01' -H 'Content-Type: application/json' \
  --data-binary @request.json -D response-headers.txt -o result.json
python3 - <<'PY_RESULT'
import json
from pathlib import Path

result = json.loads(Path('result.json').read_text(encoding='utf-8'))
print(json.dumps(result, ensure_ascii=False, indent=2))
PY_RESULT
```

```python
import json, os
from pathlib import Path

source_file = Path(os.environ['AILOOT_TEXT_FILE'])
if not source_file.is_file():
    raise SystemExit('Set AILOOT_TEXT_FILE to your actual UTF-8 document')
text = source_file.read_text(encoding='utf-8')
if not text.strip():
    raise SystemExit('Choose a document containing text')
payload = {'model': '~anthropic/claude-haiku-latest', 'max_tokens': 128, 'messages': [{'role': 'user', 'content': 'Summarize the incident report.'}]}
payload['messages'][0]['content'] = 'Summarize this material and quote supporting source passages.\n\n' + text
from urllib.request import Request, urlopen
from urllib.error import HTTPError

api_key = os.environ['AILOOT_API_KEY']
if not api_key.strip():
    raise SystemExit('Set AILOOT_API_KEY before making a request')
headers = {'x-api-key': 'PLACEHOLDER_KEY', 'anthropic-version': '2023-06-01', 'Content-Type': 'application/json'}
headers['x-api-key'] = api_key
request = Request('https://api.ailoot.ai/v1/messages', data=json.dumps(payload, ensure_ascii=False).encode('utf-8'), headers=headers, method='POST')
try:
    with urlopen(request, timeout=120) as response:
        raw = response.read()
        Path('response-headers.txt').write_text(str(response.headers), encoding='utf-8')
except HTTPError as error:
    Path('result.json').write_bytes(error.read())
    Path('response-headers.txt').write_text(str(error.headers), encoding='utf-8')
    raise
Path('result.json').write_bytes(raw)
import json
from pathlib import Path

result = json.loads(Path('result.json').read_text(encoding='utf-8'))
print(json.dumps(result, ensure_ascii=False, indent=2))
```

### 結果を受け取って保存

#### Ailoot Ultra · Anthropic メッセージ

JSONまたはSSE

##### 完了した結果をすべて保存

返された完全なレスポンス、ファイル、コンテンツ部分をすべて保存してください。

すべてのコンテンツブロック、思考署名、実際のツール利用IDを保持してください。SSEのすべてのブロック差分を組み立てます。最初のテキストブロックだけでは完全な出力になりません。

##### 元のレスポンスを確認する場合

リクエスト／応答IDとヘッダーを保持してください。テキストジョブを取得する汎用URLは提供されません。

レスポンスのフィールド

| フィールド | 種類 |
| --- | --- |
| フィールド`id` | 種類string |
| フィールド`model` | 種類string |
| フィールド`content[]` | 種類text\|thinking\|tool\_use\|other content block |
| フィールド`stop_reason` | 種類string\|null |
| フィールド`usage` | 種類object |

エラーと次の手順

| レスポンス | 条件 | 次の手順 |
| --- | --- | --- |
| レスポンス400 · `invalid_request_error` | 条件必須フィールド、素材の表現形式、またはパラメーター値が不正です | 次の手順新しい生成リクエストを送る前に、指定されたフィールドを修正してください。 |

### エイリアス

#### モデルのエイリアス

**Ailoot Ultra** [`anthropic/claude-haiku-5.5`](https://ailoot.ai/models/ja/#m=anthropic%2Fclaude-haiku-5.5&route=Ultra&caller=anthropic%2Fclaude-haiku-5.5&fmt=messages), [`~anthropic/claude-haiku-latest`](https://ailoot.ai/models/ja/#m=anthropic%2Fclaude-haiku-5.5&route=Ultra&caller=~anthropic%2Fclaude-haiku-latest&fmt=messages)

#### メソッドパスのエイリアス

上記に表示されたメソッドパスを使用してください。

#### 関連する呼び出し用ID

[`anthropic/claude-haiku-5.5`](https://ailoot.ai/models/ja/#m=anthropic%2Fclaude-haiku-5.5&route=Ultra&caller=anthropic%2Fclaude-haiku-5.5&fmt=messages), [`~anthropic/claude-haiku-latest`](https://ailoot.ai/models/ja/#m=anthropic%2Fclaude-haiku-5.5&route=Ultra&caller=~anthropic%2Fclaude-haiku-latest&fmt=messages)

FAQ · Anthropic: Claude Haiku 5.5

利用できる入力と結果は何ですか？

`POST /v1/chat/completions` · `anthropic/claude-haiku-5.5`: `text` → `text` `POST /v1/messages` · `anthropic/claude-haiku-5.5`: `text` → `json`, `sse` `POST /v1/chat/completions` · `~anthropic/claude-haiku-latest`: `text` → `text` `POST /v1/messages` · `~anthropic/claude-haiku-latest`: `text` → `json`, `sse`

リクエストはどの項目を使用しますか？

`POST /v1/chat/completions` · `anthropic/claude-haiku-5.5`: `model`, `messages`, `stream`, `modalities`, `provider` `POST /v1/messages` · `anthropic/claude-haiku-5.5`: `model`, `messages`, `max_tokens`, `stream` `POST /v1/chat/completions` · `~anthropic/claude-haiku-latest`: `model`, `messages`, `stream`, `modalities`, `provider` `POST /v1/messages` · `~anthropic/claude-haiku-latest`: `model`, `messages`, `max_tokens`, `stream`

どの制限が適用されますか？

`POST /v1/chat/completions` · `anthropic/claude-haiku-5.5`: `messages.min_items`: `1` `POST /v1/chat/completions` · `~anthropic/claude-haiku-latest`: `messages.min_items`: `1`

AilootをClaude Code、OpenCode、Hermes、自分のアプリに接続しましょう。

## 企業とそのプロジェクト群

企業とそのプロジェクト群：数百万の顧客、毎月数十億規模の売上。

## トークンを割引価格で購入。

継続利用にサブスクリプション割引。プロモコードでトークン購入が最大50%割引。

サブスクリプション

定期的なリクエストに合う割引プランを選びましょう。

最大50%のプロモコード

購入時にコードを入力すると、実施中のキャンペーンに沿って価格を再計算します。

支出を履歴で確認

各リクエストのモデル、トークン、金額が保存されます。

[サブスクリプションを選ぶ](https://ailoot.ai/docs/ja/billing/subscriptions/) · [モデルの価格を見る](https://ailoot.ai/models/ja/)

## 販売する製品に、 APIを組み込みましょう。

SaaS、アプリ、ボットをAilootの公式サービス提供条件とライセンス契約に基づいて接続できます。再販にはリセラーライセンスを申請できます。

商用アプリ

サービスの有料機能に、文章、画像、動画、音声の生成を組み込めます。

リセラーライセンス

プロジェクトの説明とアクセスの仕組みをお送りください。利用・再販条件の書面を申請できます。

サイトで契約文書を確認

接続前にサービス提供条件、ライセンス契約、データ処理ポリシーを読めます。

[リセラーライセンスを申請](mailto:support@ailoot.ai) · [サービス提供条件とライセンス契約](https://ailoot.ai/legal/offer?lang=ja)

## Ailoot · 企業とそのプロジェクト群





Ailootは、蓄積した運営経験、幅広い顧客基盤、安定したサービス、継続的なKPI管理を基盤としています。





企業とそのプロジェクト群：数百万の顧客、毎月数十億規模の売上。





Ailootはこの運営経験を、お客様の製品、エージェント、アプリケーション、自動化でAI機能を利用するためのAPIアクセスに活かしています。


## Ailoot APIで利用可能

`claude-haiku-5-5` · Core

入力の種類

`text`

出力の種類

`text`

コンテキスト

200,000 *トークン*

最大出力

65,536 *トークン*

入力

$0.0001 */ 1K*

出力

$0.0005 */ 1K*

キャッシュ読み取り

$0.00001 */ 1K*

キャッシュ書き込み

$0.000125 */ 1K*

キャッシュ書き込み、5分

$0.000125 */ 1K tokens*

キャッシュ書き込み、1時間

$0.0002 */ 1K tokens*

web\_search\_call

$0.01 *呼び出しあたり*

最大呼び出し回数 web\_search\_call

8

#### リクエスト長別の料金 · Anthropic Messages

| リクエストサイズ、トークン数 | 入力 | 出力 | キャッシュ読み取り | キャッシュ書き込み | 5分キャッシュ | 1時間キャッシュ |
| --- | --- | --- | --- | --- | --- | --- |
| リクエストサイズ、トークン数(0; 100,000\] | 入力$0.0001 | 出力$0.0005 | キャッシュ読み取り$0.00001 | キャッシュ書き込み$0.000125 | 5分キャッシュ$0.000125 | 1時間キャッシュ$0.0002 |
| リクエストサイズ、トークン数(100,000; ∞) | 入力$0.0005 | 出力$0.0025 | キャッシュ読み取り$0.00005 | キャッシュ書き込み$0.000625 | 5分キャッシュ$0.000625 | 1時間キャッシュ$0.001 |

料金は1KトークンあたりのUSDです。 料金が未設定の場合、このメソッドの基本料金を引き継ぎます。«—»は基本料金が未設定であることを示します。

`claude-haiku-5-5` · Core

入力の種類

`text`

出力の種類

`text`

コンテキスト

200,000 *トークン*

最大出力

65,536 *トークン*

入力

$0.0001 */ 1K*

出力

$0.0005 */ 1K*

キャッシュ読み取り

$0.00001 */ 1K*

キャッシュ書き込み

$0.000125 */ 1K*

キャッシュ書き込み、5分

$0.000125 */ 1K tokens*

キャッシュ書き込み、1時間

$0.0002 */ 1K tokens*

web\_search\_call

$0.01 *呼び出しあたり*

最大呼び出し回数 web\_search\_call

8

#### リクエスト長別の料金 · OpenAI Responses

| リクエストサイズ、トークン数 | 入力 | 出力 | キャッシュ読み取り | キャッシュ書き込み | 5分キャッシュ | 1時間キャッシュ |
| --- | --- | --- | --- | --- | --- | --- |
| リクエストサイズ、トークン数(0; 100,000\] | 入力$0.0001 | 出力$0.0005 | キャッシュ読み取り$0.00001 | キャッシュ書き込み$0.000125 | 5分キャッシュ$0.000125 | 1時間キャッシュ$0.0002 |
| リクエストサイズ、トークン数(100,000; ∞) | 入力$0.0005 | 出力$0.0025 | キャッシュ読み取り$0.00005 | キャッシュ書き込み$0.000625 | 5分キャッシュ$0.000625 | 1時間キャッシュ$0.001 |

料金は1KトークンあたりのUSDです。 料金が未設定の場合、このメソッドの基本料金を引き継ぎます。«—»は基本料金が未設定であることを示します。

`claude-haiku-5-5` · Core

入力の種類

`text`

出力の種類

`text`

コンテキスト

200,000 *トークン*

最大出力

65,536 *トークン*

入力

$0.0001 */ 1K*

出力

$0.0005 */ 1K*

キャッシュ読み取り

$0.00001 */ 1K*

キャッシュ書き込み

$0.000125 */ 1K*

キャッシュ書き込み、5分

$0.000125 */ 1K tokens*

キャッシュ書き込み、1時間

$0.0002 */ 1K tokens*

web\_search\_call

$0.01 *呼び出しあたり*

最大呼び出し回数 web\_search\_call

8

#### リクエスト長別の料金 · OpenAI Chat

| リクエストサイズ、トークン数 | 入力 | 出力 | キャッシュ読み取り | キャッシュ書き込み | 5分キャッシュ | 1時間キャッシュ |
| --- | --- | --- | --- | --- | --- | --- |
| リクエストサイズ、トークン数(0; 100,000\] | 入力$0.0001 | 出力$0.0005 | キャッシュ読み取り$0.00001 | キャッシュ書き込み$0.000125 | 5分キャッシュ$0.000125 | 1時間キャッシュ$0.0002 |
| リクエストサイズ、トークン数(100,000; ∞) | 入力$0.0005 | 出力$0.0025 | キャッシュ読み取り$0.00005 | キャッシュ書き込み$0.000625 | 5分キャッシュ$0.000625 | 1時間キャッシュ$0.001 |

料金は1KトークンあたりのUSDです。 料金が未設定の場合、このメソッドの基本料金を引き継ぎます。«—»は基本料金が未設定であることを示します。

`claude-haiku-5-5` · Core

入力の種類

`text`

出力の種類

`text`

コンテキスト

200,000 *トークン*

最大出力

65,536 *トークン*

入力

$0.0001 */ 1K*

出力

$0.0005 */ 1K*

キャッシュ読み取り

$0.00001 */ 1K*

キャッシュ書き込み

$0.000125 */ 1K*

キャッシュ書き込み、5分

$0.000125 */ 1K tokens*

キャッシュ書き込み、1時間

$0.0002 */ 1K tokens*

web\_search\_call

$0.01 *呼び出しあたり*

最大呼び出し回数 web\_search\_call

8

#### リクエスト長別の料金 · Gemini generateContent

| リクエストサイズ、トークン数 | 入力 | 出力 | キャッシュ読み取り | キャッシュ書き込み | 5分キャッシュ | 1時間キャッシュ |
| --- | --- | --- | --- | --- | --- | --- |
| リクエストサイズ、トークン数(0; 100,000\] | 入力$0.0001 | 出力$0.0005 | キャッシュ読み取り$0.00001 | キャッシュ書き込み$0.000125 | 5分キャッシュ$0.000125 | 1時間キャッシュ$0.0002 |
| リクエストサイズ、トークン数(100,000; ∞) | 入力$0.0005 | 出力$0.0025 | キャッシュ読み取り$0.00005 | キャッシュ書き込み$0.000625 | 5分キャッシュ$0.000625 | 1時間キャッシュ$0.001 |

料金は1KトークンあたりのUSDです。 料金が未設定の場合、このメソッドの基本料金を引き継ぎます。«—»は基本料金が未設定であることを示します。

[JSON](https://ailoot.ai/models/ja/anthropic-claude-haiku-5-5/method-additions-4208442cc134c2052209.json)
