Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c336daf73f | ||
|
|
1cf9056989 |
No files matched your search
@@ -1,3 +1,8 @@
|
||||
# Cache key (chat): body `prompt_cache_key` — stable conversation/session/workflow id scoping reuse to an identical prefix on the same model; hits report usage.prompt_tokens_details.cached_tokens at 10% input price
|
||||
# Use headers: repeat the stable prefix with identical model and prompt_cache_key
|
||||
# Use body: `prompt_cache_key` with a stable conversation/session/workflow id
|
||||
# Cache policy: stable prefix + same model and key; reuse one stable key per conversation and preserve the shared prompt prefix across turns; 64-token blocks with longer shared prefixes reusing more cached tokens
|
||||
# Docs: https://docs.mistral.ai/studio/conversations/advanced/prompt-caching
|
||||
name = "Mistral"
|
||||
env = ["MISTRAL_API_KEY"]
|
||||
npm = "@ai-sdk/mistral"
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
# Cache key (chat): automatic prefix cache with usage.prompt_tokens_details.cached_tokens reporting
|
||||
# Use headers: repeat the stable prefix with identical model and params
|
||||
# Use body: repeat the stable prefix with identical model and params
|
||||
# Cache policy: stable prefix + same model; keep the shared prefix stable across requests to earn cached-input billing
|
||||
# Docs: https://docs.mixlayer.com/api-reference/inference-ap-is/chat-completions/chat-completions
|
||||
# POST /v1/chat/completions uses $.thinking = true|false. The accepted alias
|
||||
# $.reasoning_effort = "low"|"medium"|"high" maps only to binary enablement;
|
||||
# the level is currently ignored/reserved, so it is not an effort control.
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
# Cache key (chat): automatic prefix cache guided by position with static content first
|
||||
# Use headers: repeat the stable prefix with identical model and params
|
||||
# Use body: repeat the stable prefix with identical model and params
|
||||
# Cache policy: stable prefix + same model; put reusable fixed content (system instructions) first with dynamic input last
|
||||
# Docs: https://moark.ai/docs/products/apis/texts/text-generation
|
||||
# POST /v1/chat/completions is exposed by Moark's raw OpenAPI reference; its
|
||||
# request schema documents no toggle, effort, or reasoning-token-budget field.
|
||||
# https://moark.com/docs/openapi/v1 (accessed 2026-06-25)
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
# Cache key (chat): unknown — endpoints + shared-endpoint guides document model/messages chat only; no cache key field found after 3 sources.
|
||||
# Docs: https://modal.com/docs/guide/endpoints
|
||||
# Modal serves the OpenAI Chat Completions API through its inference gateway.
|
||||
# Proxy tokens can be combined as `wk-....ws-...` for bearer authentication.
|
||||
# https://modal.com/docs/guide/endpoints
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
# Cache key (chat): unknown — setup guide shows model/messages/reasoning_effort only; cache-aware routing preserves upstream locality with no documented key field after 3 sources.
|
||||
# Docs: https://modeloracle.com/setup/
|
||||
# OpenAI-compatible endpoint and public model aliases:
|
||||
# https://modeloracle.com/setup/ (accessed 2026-07-07)
|
||||
# API contract and routing behavior:
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
# Cache key (chat): unknown — pricing + gateway docs define model/messages chat with flat per-call billing; no cache key field found after 3 sources.
|
||||
# Docs: https://modelishub.com/pricing
|
||||
name = "Modelis"
|
||||
npm = "@ai-sdk/openai-compatible"
|
||||
env = ["MODELIS_API_KEY"]
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
# Cache key (chat): unknown — API-Inference intro + gateway integrations document model/messages chat only; no cache key field found after 3 sources.
|
||||
# Docs: https://modelscope.cn/docs/model-service/API-Inference/intro
|
||||
name = "ModelScope"
|
||||
env = ["MODELSCOPE_API_KEY"]
|
||||
npm = "@ai-sdk/openai-compatible"
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
# Cache key (chat): body `prompt_cache_key` — stable session/task id scoping reuse to an identical prefix on the same model; required for Kimi Code Plan, recommended for multi-turn agents; hits report usage.cached_tokens
|
||||
# Use headers: repeat the stable prefix with identical model and prompt_cache_key
|
||||
# Use body: `prompt_cache_key` with a stable session/task id per conversation
|
||||
# Cache policy: stable prefix + same model and key; one stable session/task id per conversation with the same value on resume; fixed large context first in messages
|
||||
# Docs: https://platform.moonshot.cn/docs/api/chat
|
||||
name = "Moonshot AI (China)"
|
||||
env = ["MOONSHOT_API_KEY"]
|
||||
npm = "@ai-sdk/openai-compatible"
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
# Cache key (chat): body `prompt_cache_key` — stable session/task id scoping reuse to an identical prefix on the same model; required for Kimi Code Plan, recommended for multi-turn agents; hits report usage.cached_tokens
|
||||
# Use headers: repeat the stable prefix with identical model and prompt_cache_key
|
||||
# Use body: `prompt_cache_key` with a stable session/task id per conversation
|
||||
# Cache policy: stable prefix + same model and key; one stable session/task id per conversation with the same value on resume; fixed large context first in messages
|
||||
# Docs: https://platform.moonshot.ai/docs/api/chat
|
||||
name = "Moonshot AI"
|
||||
env = ["MOONSHOT_API_KEY"]
|
||||
npm = "@ai-sdk/openai-compatible"
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
# Cache key (chat): body `prompt_cache_key` per-conversation id with sticky worker routing; header `x-session-id` carries the same id; hits report usage.prompt_tokens_details.cached_tokens
|
||||
# Use headers: `x-session-id` with the per-conversation id; header applies when both carriers are present
|
||||
# Use body: `prompt_cache_key` with the per-conversation id; optional cache_ttl 5m/30m/1h/6h/24h with sliding refresh on hit
|
||||
# Cache policy: stable prefix + same model and key; one key per conversation including retries; stable content first with byte-identical prefix for exact-prefix block-aligned matching
|
||||
# Docs: https://docs.morphllm.com/sdk/components/caching
|
||||
name = "Morph"
|
||||
env = ["MORPH_API_KEY"]
|
||||
npm = "@ai-sdk/openai-compatible"
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
# Cache key (chat): unknown — getting-started + models docs define model/messages chat with monthly quota metering; no cache key field found after 3 sources.
|
||||
# Docs: https://nan.builders/docs/getting-started
|
||||
# NaN is a builders community that shares dedicated GPUs to serve open-weight models.
|
||||
# Access is via LiteLLM with an OpenAI-compatible API at https://api.nan.builders/v1.
|
||||
# Membership based (70 EUR/month, plus a GLM 5.3 premium tier), so
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
# 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,8 +1,3 @@
|
||||
# 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,8 +1,3 @@
|
||||
# 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,8 +1,3 @@
|
||||
# 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