Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ad43e14f5d |
No files matched your search
@@ -1,5 +1,3 @@
|
||||
# Prompt caching (chat): unknown.
|
||||
# Docs: https://doc.302.ai/llms.txt
|
||||
name = "302.AI"
|
||||
env = ["302AI_API_KEY"]
|
||||
npm = "@ai-sdk/openai-compatible"
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
# Prompt caching (chat): RouteLLM gateway routes POST /v1/chat/completions to the selected model with prompt-cache-aware routing; cache is the routed-model automatic prefix cache.
|
||||
# To get a hit: reuse the same routed model with an identical stable prefix and matching tools/order; repeat the identical prefix and confirm via the response usage block where reported.
|
||||
# Docs: https://abacus.ai/teams/routellm-apis
|
||||
name = "Abacus"
|
||||
npm = "@ai-sdk/openai-compatible"
|
||||
# Reasoning HTTP format (accessed 2026-06-25):
|
||||
|
||||
@@ -1,8 +1,3 @@
|
||||
# Prompt caching (chat): automatic prompt-prefix cache on POST /v1/chat/completions, active by default; cache reads billed at 10% of input rate.
|
||||
# Use headers: `x-abliteration-session-id` — include the same opaque affinity value per conversation on any generation endpoint; with both key and header present the header provides the routing hint.
|
||||
# Use body: `prompt_cache_key` — top-level string (e.g. `conv_7d2a9f`) for Chat Completions/Responses; stable per-workload value improving reuse as a routing hint.
|
||||
# To get a hit: keep same project+model with identical system/developer instructions, message history/order, tools/order, and reasoning/output settings; place stable content first and let the first request begin returning before parallel calls; confirm via usage.prompt_tokens_details.cached_tokens.
|
||||
# Docs: https://docs.abliteration.ai/capabilities/prompt-caching.md
|
||||
# Reasoning controls for the whole API surface (verified 2026-07-28):
|
||||
# https://docs.abliteration.ai/capabilities/thinking
|
||||
# Both models reason by default. Effort ladder, least to most:
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
# Prompt caching (chat): gateway routes POST /v1/messages and POST /v1/chat/completions (alias delegating to messages) to the selected model; cache is the upstream provider automatic prefix cache with the full discount reflected in billing.
|
||||
# To get a hit: pin the same model with direct mode and replay a stable prefix with matching tools/order; confirm per response via `x-input-cache-hit-rate` / `x-input-cache-hit-tokens` plus `x-model-used` and `x-cost-usd`.
|
||||
# Docs: https://above.dev/docs
|
||||
name = "above.dev"
|
||||
env = ["ABOVE_API_KEY"]
|
||||
npm = "@ai-sdk/openai-compatible"
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
# Prompt caching (chat): unknown.
|
||||
# Docs: https://agentrouter.org/docs/
|
||||
name = "AgentRouter"
|
||||
env = ["AGENTROUTER_API_KEY"]
|
||||
npm = "@ai-sdk/openai-compatible"
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
# Prompt caching (chat): OpenAI-style chat API with automatic prefix cache; cached input billed at 10% of input price.
|
||||
# To get a hit: reuse the same model with an identical stable prefix, appending new content last; confirm via cached-input billing.
|
||||
# Docs: https://wiki.agnes-ai.com/en/docs/pricing.md
|
||||
name = "Agnes AI"
|
||||
env = ["AGNES_API_KEY"]
|
||||
npm = "@ai-sdk/openai-compatible"
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
# Prompt caching (chat): unknown.
|
||||
# Docs: https://ai-router.dev/openai-compatible-api-gateway/
|
||||
name = "AI-ROUTER"
|
||||
env = ["AI_ROUTER_API_KEY"]
|
||||
npm = "@ai-sdk/openai-compatible"
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
# Prompt caching (chat): automatic prefix cache on POST /v1/chat/completions; repeated prefixes reuse cached input with reduced cached-input billing on models offering a cached rate.
|
||||
# To get a hit: reuse the same model with an identical stable prefix and matching tools/order plus matching reasoning_effort, with 1024-token minimum in 128-token increments; confirm via usage.prompt_tokens_details.cached_tokens; for streams include `stream_options: { "include_usage": true }` and read the trailing usage event.
|
||||
# Docs: https://docs.aiand.com/models/pricing/
|
||||
name = "ai&"
|
||||
npm = "@ai-sdk/openai-compatible"
|
||||
env = ["AIAND_API_KEY"]
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
# Prompt caching (chat): automatic 1024-token prefix cache on POST /v1/chat/completions; GPT-5.6 series adds key-assisted matching plus explicit breakpoints with 30-minute minimum retention.
|
||||
# Use body: `prompt_cache_key` — top-level string with a stable per-workload value (≈15 req/min per key); `prompt_cache_options` — object with `mode: implicit|explicit` and `ttl: 30m` only; `prompt_cache_breakpoint` — object `{"mode": "explicit"}` inside content blocks to pin the stable-prefix boundary (max 4 new writes per request; reads use the longest match of the recent 50).
|
||||
# To get a hit: place fixed long instructions/tools first (≥1024 tokens), keep the same key/model with byte-identical prefix incl. tools order, detail, response_format, and reasoning_effort, and append new messages only; confirm via usage.prompt_tokens_details.cached_tokens; GPT-5.6 writes bill 1.25x and reads 0.1x, with 30-minute minimum retention on GPT-5.6 and 5–10 minute quiet-window retention before that (max 1 h).
|
||||
# Docs: https://docs.aihubmix.com/cn/api/GPT-Cache.md
|
||||
name = "AIHubMix"
|
||||
npm = "@aihubmix/ai-sdk-provider"
|
||||
# Raw Chat: $.reasoning_effort = "none"|"minimal"|"low"|"medium"|"high"|"xhigh"; aliases are $.reasoning.effort and integer $.reasoning.max_tokens. "none" disables models that permit it. https://docs.aihubmix.com/cn/api/unified-inference (accessed 2026-06-25)
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
# Prompt caching (chat): unknown.
|
||||
# Docs: https://docs.aixy-gateway.com/api-reference/inference/create-a-chat-completion.md
|
||||
name = "Aixy"
|
||||
env = ["AIXY_API_KEY"]
|
||||
npm = "@ai-sdk/openai-compatible"
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
# Prompt caching (chat): unknown.
|
||||
# Docs: https://aki.io/docs/compatibility/openai-api-compatibility/
|
||||
name = "AKI.IO"
|
||||
env = ["AKI_IO_API_KEY"]
|
||||
npm = "@ai-sdk/openai-compatible"
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
# Prompt caching (chat): unknown — no documented cache mechanism.
|
||||
# Docs: https://docs.zenifra.com/en/docs/ai
|
||||
name = "Zenifra"
|
||||
env = ["ZENIFRA_AI_KEY"]
|
||||
npm = "@ai-sdk/openai-compatible"
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
# Prompt caching (chat): explicit breakpoint cache via body `cache_control` markers plus automatic prefix cache across routed models.
|
||||
# Use headers: cache activity surfaces in ZenMux Logs token details as `input_cache_read` and `input_cache_write`.
|
||||
# Use body: `cache_control` with `type: ephemeral` on stable blocks; tools, system, then messages order; up to 4 breakpoints.
|
||||
# To get a hit: place stable content first with `cache_control` on each reusable segment; minima 1024 Claude Sonnet/Opus, 2048 Haiku 3.5, 256 Qwen; reuse within the 5m TTL.
|
||||
# Docs: https://docs.zenmux.ai/guide/advanced/prompt-cache.html
|
||||
# OpenAI POST /api/v1/chat/completions: `reasoning_effort`, or `reasoning`
|
||||
# with `effort`, `max_tokens`, and `enabled`.
|
||||
# Anthropic POST /api/anthropic/v1/messages: `thinking.type` enabled|disabled;
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
# Prompt caching (chat): automatic implicit prefix cache on the coding chat endpoint with Cached Input credit deduction.
|
||||
# Use headers: standard Bearer auth on POST /api/coding/paas/v4/chat/completions; Cached Input deduction visible in billing detail.
|
||||
# Use body: model with messages; stable system prompt first with chat history appended.
|
||||
# To get a hit: replay identical system prompts and stable prefixes; Cached Input deduction confirms reuse.
|
||||
# Docs: https://docs.bigmodel.cn/cn/coding-plan/overview
|
||||
# OpenAI Chat endpoint: POST https://open.bigmodel.cn/api/coding/paas/v4/chat/completions.
|
||||
# GLM-5.2 maps low|medium|high to high and xhigh|max|ultracode to max.
|
||||
# https://docs.bigmodel.cn/cn/coding-plan/latest-model (accessed 2026-06-25)
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
# Prompt caching (chat): automatic implicit context cache; repeated system prompts and conversation history reuse prior compute at a discount.
|
||||
# Use headers: standard Bearer auth on POST /api/paas/v4/chat/completions; cache outcomes surface in `usage.prompt_tokens_details.cached_tokens`.
|
||||
# Use body: model with messages; stable system prompt first with history appended.
|
||||
# To get a hit: replay identical system prompts and stable prefixes; confirm via `usage.prompt_tokens_details.cached_tokens`.
|
||||
# Docs: https://docs.bigmodel.cn/cn/guide/capabilities/cache
|
||||
# Chat reasoning: POST https://open.bigmodel.cn/api/paas/v4/chat/completions with
|
||||
# `thinking.type = "enabled" | "disabled"` (default: enabled).
|
||||
# https://docs.bigmodel.cn/cn/guide/capabilities/thinking (accessed 2026-06-25)
|
||||
|
||||
Reference in new issue
Block a user