<svg viewBox="0 0 1540 646" xmlns="http://www.w3.org/2000/svg" font-family="-apple-system, 'Segoe UI', Helvetica, Arial, sans-serif">
<rect width="1540" height="646" fill="#ffffff"/>
<text x="60" y="64" font-size="30" font-weight="700" fill="#0f172a">同一請求，六種速率限制計量方式</text>
<text x="60" y="96" font-size="15" fill="#475569">請求範例：2,000 個輸入詞元（其中 1,500 個為快取讀取），max_tokens 4,000，實際回答 300 個詞元，包含 200 個推理詞元。長條按詞元比例繪製</text>
<rect x="984" y="118" width="496" height="30" rx="8" fill="#f8fafc" stroke="#e2e8f0" stroke-width="1.5"/>
<rect x="998" y="127" width="22" height="12" fill="#dc2626"/><text x="1026" y="138" font-size="13" fill="#0f172a">max_tokens 估算值</text>
<rect x="1161" y="127" width="22" height="12" fill="#2563eb"/><text x="1189" y="138" font-size="13" fill="#0f172a">輸入詞元</text>
<rect x="1257" y="127" width="22" height="12" fill="#7c3aed"/><text x="1285" y="138" font-size="13" fill="#0f172a">輸出詞元（Bedrock：扣減後）</text>
<rect x="380" y="190" width="234" height="32" fill="#2563eb"/>
<text x="497" y="211" font-size="13" fill="#ffffff" text-anchor="middle">提示估算值</text>
<rect x="614" y="190" width="468" height="32" fill="#dc2626"/>
<text x="848" y="211" font-size="13" fill="#ffffff" text-anchor="middle">max_tokens</text>
<text x="364" y="211" font-size="15" font-weight="600" fill="#0f172a" text-anchor="end">Azure OpenAI TPM</text>
<text x="1091" y="211" font-size="11.0" font-weight="700" fill="#0f172a"><tspan x="1091" dy="0">6,000：收到請求時，提示估算值加上</tspan><tspan x="1091" dy="13.8">max_tokens</tspan></text>
<rect x="380" y="256" width="468" height="32" fill="#dc2626"/>
<text x="614" y="277" font-size="13" fill="#ffffff" text-anchor="middle">max_tokens，預先扣除</text>
<text x="364" y="277" font-size="15" font-weight="600" fill="#0f172a" text-anchor="end">OpenAI TPM</text>
<text x="857" y="277" font-size="14" font-weight="700" fill="#0f172a">4,000：max_tokens，在模型執行前扣除</text>
<rect x="380" y="322" width="58" height="32" fill="#2563eb"/>
<rect x="438" y="322" width="351" height="32" fill="#7c3aed"/>
<text x="614" y="343" font-size="13" fill="#ffffff" text-anchor="middle">300 個輸出詞元 x 10 扣減</text>
<text x="364" y="343" font-size="15" font-weight="600" fill="#0f172a" text-anchor="end">Bedrock TPM（Claude 5）</text>
<text x="799" y="343" font-size="14" font-weight="700" fill="#0f172a">3,500：快取讀取免計，輸出按 10x 扣減</text>
<rect x="380" y="388" width="234" height="32" fill="#2563eb"/>
<text x="497" y="409" font-size="13" fill="#ffffff" text-anchor="middle">輸入，含 1,500 個快取詞元</text>
<rect x="614" y="388" width="35" height="32" fill="#7c3aed"/>
<text x="364" y="409" font-size="15" font-weight="600" fill="#0f172a" text-anchor="end">xAI TPM</text>
<text x="658" y="409" font-size="14" font-weight="700" fill="#0f172a">2,300：每個詞元，包含快取與推理詞元</text>
<rect x="380" y="454" width="234" height="32" fill="#2563eb"/>
<text x="497" y="475" font-size="13" fill="#ffffff" text-anchor="middle">輸入</text>
<text x="364" y="475" font-size="15" font-weight="600" fill="#0f172a" text-anchor="end">Gemini TPM</text>
<text x="623" y="475" font-size="14" font-weight="700" fill="#0f172a">2,000：僅計輸入</text>
<rect x="380" y="520" width="58" height="32" fill="#2563eb"/>
<rect x="438" y="520" width="35" height="32" fill="#7c3aed"/>
<text x="364" y="541" font-size="15" font-weight="600" fill="#0f172a" text-anchor="end">Anthropic ITPM + OTPM</text>
<text x="483" y="541" font-size="14" font-weight="700" fill="#0f172a">800：快取讀取免計，輸出按實際產生量計算</text>
<text x="60" y="616" font-size="14" fill="#475569">來源：Azure OpenAI 配額指南、OpenAI 範例指南、Bedrock 詞元計數頁面（Claude 5 扣減 10x）、xAI、Gemini 與 Anthropic 速率限制頁面，擷取於 2026-09-03 與 2026-09-04</text>
</svg>
