venice-text-routing-d3ep
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "venice-text-routing-d3ep" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-11760617e94a447ef1641bcacafc6117a8267f8306a995fea85e7afb6c254826. Verify the upstream source and version against https://skillhub.cn/skills/user_3c6cb52e/venice-text-routing-d3ep before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
VeniceTextRouting specialized skill: intended to help an AI Agent efficiently perform tasks related to VeniceTextRouting (triggered as needed to support related workflows).
Introduction source: third_party · user_3c6cb52e · 1.0.0 Reference
SkillPi interpretation
- Tasks
- This skill encodes the *decision logic* for "which Venice text model do I call?" — the routing layer that sits above `venice-chat` (the call surface) and consumes `venice-models` (the discovery API).
- Audience
- Not specified in the source documentation.
- Inputs and outputs
- Not specified in the source documentation.
- Software, accounts and paid services
- Not specified in the source documentation.
- Limits and differences
- Not specified in the source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: Venicetextrouting
slug: venice-text-routing
version: 1.0.0
displayName: Venicetextrouting
description: >
VeniceTextRouting专用技能,帮助AI Agent高效完成相关任务。
summary: "VeniceTextRouting专用技能,帮助AI Agent高效完成相关任务。"
license: MIT
category: 开发者工具
framework:
- Claude Code
- Codex
- Hermes Agent
- OpenClaw
- QClaw
- WorkBuddy
platform: multi-platform
homepage: "https://github.com/1991513ccie-png"
repository: "https://github.com/1991513ccie-png"Venice Text-Model Routing
This skill encodes the decision logic for "which Venice text model do I call?" — the routing layer that sits above venice-chat (the call surface) and consumes venice-models (the discovery API).
Primary use case: a local agent receives a prompt, decides whether the local model can handle it, and — if not — picks the cheapest Venice model that satisfies the privacy / modality / capability requirements.
Snapshot freshness
Before applying the matrix below, read
snapshots/text-routing.json. If the file is missing, orsnapshot_dateis older than 30 days, runpython scripts/refresh_routing.pyto regenerate it fromGET /models?type=text+GET /models/traits?type=text. Otherwise trust the cached file — do not hit/modelson every routing decision.
refresh_routing.py requires VENICE_API_KEY in the environment and rewrites both snapshots/text-routing.json and routing-matrix.md. Run it once on first install, then ~monthly (CI nightly is also fine).
When to load this skill
- Picking a Venice text model from a prompt at runtime.
- Building a local-first agent that escalates to Venice for hard prompts.
- Deciding privacy tier (anonymized vs private vs TEE vs E2EE).
- Choosing between a trait shortcut (
default_reasoning,most_intelligent, …) and a hand-filtered candidate.
For the chat call surface itself, see venice-chat. For raw discovery of every model field, see venice-models.
Privacy tier ladder
Pick the least restrictive tier that satisfies the request — restricting tier shrinks the candidate pool and often raises cost.
| Tier | Selector | Guarantee | Use when |
|---|---|---|---|
| Anonymized | model_spec.privacy: "anonymized" (no tee- / e2ee- prefix) |
Venice strips IPs / metadata; the underlying provider (Anthropic, xAI, OpenAI, …) sees the prompt under their privacy policy | Default for non-sensitive workloads; only path to certain frontier closed-weights models. |
| Private | model_spec.privacy: "private" (no prefix) |
Open-weights model self-hosted by Venice; zero data retention; no third party sees the prompt | Default for any user data, business logic, or anything you wouldn't paste into ChatGPT. |
| TEE | model id starts with tee- |
Runs inside Intel TDX / NVIDIA confidential-compute enclave; Venice infrastructure cannot read the prompt; verifiable via GET /api/v1/tee/attestation |
Regulated data, signed responses required, "Venice itself can't see this." |
| E2EE | model id starts with e2ee- |
TEE + client-side ECDH (secp256k1) / HKDF-SHA256 / AES-256-GCM; prompt encrypted before leaving the device | Strongest. Healthcare, legal, secrets, anything where the wire payload must be opaque. Requires E2EE handshake — see venice-chat. |
Sources: docs.venice.ai/overview/privacy, docs.venice.ai/guides/features/tee-e2ee-models.
E2EE is not supported on /responses — route encrypted requests to /chat/completions.
Capability filters
Map prompt requirement → model_spec.capabilities flag (full list in venice-models).
| Requirement | Filter | Notes |
|---|---|---|
| Vision (single image) | supportsVision: true |
Single-image vision models drop older images on each turn — chain images into the last user message. |
| Vision (multiple images) | supportsVision && supportsMultipleImages |
Honor maxImages per request. |
| Audio input | supportsAudioInput: true |
Audio must be base64; URLs are not accepted. |
| Video input | supportsVideoInput: true |
Accepts public URLs (incl. YouTube on some providers) or base64. |
| Reasoning / chain-of-thought | supportsReasoning: true |
If you need to dial effort, additionally require supportsReasoningEffort so reasoning.effort is honored. |
| Tools / function calling | supportsFunctionCalling: true |
Required for any agent loop. |
| Code-heavy task | optimizedForCode: true |
?type=code filter on /models returns only this subset. |
| Web search (Venice / Brave) | supportsWebSearch: true |
Toggle with venice_parameters.enable_web_search. |
| X / Twitter search | supportsXSearch: true |
xAI native (Grok models). Adds ~$0.01/search. |
| Structured JSON output | supportsResponseSchema: true |
Use response_format: {type: "json_schema", ...}. |
| Large context (≥ 100K tokens) | availableContextTokens >= 100000 |
Pair with prompt_cache_key + cache_input pricing. |
| Logprobs | supportsLogProbs: true |
Niche — eval / sampling debug. |
Cost tiers
The Venice text catalog clusters by per-1M-token price. Buckets below match the size labels documented at docs.venice.ai/models/text. Pick the smallest bucket that hosts a model satisfying your capability filters.
| Tier | Rough $/1M in | Rough $/1M out | Use when |
|---|---|---|---|
| XS | < $0.20 | < $0.40 | Classification, intent extraction, simple summarization. |
| S | $0.20 – $1 | $0.40 – $2 | General chat, basic agents, light vision. |
| M | $1 – $4 | $2 – $10 | Reasoning at moderate depth, strong code, multi-image vision. |
| L | $4 – $10 | $10 – $30 | Long context (≥ 200K), heavy reasoning, complex tool use. |
| Frontier | ≥ $10 | ≥ $30 | Best-available — Claude Opus, GPT-5.x Pro, GLM 5.1 thinking, Grok-4 Heavy. Resolve via trait most_intelligent. |
Authoritative per-model pricing lives on model_spec.pricing in snapshots/text-routing.json — never hard-code dollar figures from this prose.
Routing decision tree
Walk top-down. Stop at the first rule that applies.
1. Local-first check
- Prompt is ≤ ~500 tokens, no special-capability requirement,
no privacy escalation, no tool calls expected
→ handle on the local model. Do not call Venice.
2. Privacy gate
- User flagged "private" OR prompt contains regulated data (PHI, secrets, legal):
require model_spec.privacy === "private"
OR model id startsWith "tee-" / "e2ee-".
- User flagged "E2EE" / "must be encrypted in transit":
require model id startsWith "e2ee-". Skip /responses.
- User flagged "TEE" / "verifiable inference":
require model id startsWith "tee-".
- Otherwise: any tier acceptable (still prefer privacy: "private" when otherwise tied).
3. Modality gate
- Image input present → require supportsVision (+ supportsMultipleImages if > 1).
- Audio input present → require supportsAudioInput.
- Video input present → require supportsVideoInput.
4. Capability gate
- Tool calls expected → require supportsFunctionCalling.
- Code-heavy task → prefer optimizedForCode (or call /models?type=code).
- Chain-of-thought / planning / hard math
→ require supportsReasoning;
prefer supportsReasoningEffort to dial reasoning.effort.
- Structured JSON output required → require supportsResponseSchema.
- Web search needed → require supportsWebSearch
(or supportsXSearch for X/Twitter content).
5. Context size gate
- Estimated (prompt + expected output) > availableContextTokens of the candidate
→ bump up to a model with sufficient context. Prefer ones with cache_input pricing.
6. Frontier override
- User asked for "best", "frontier", "most intelligent", "smartest"
→ resolve trait `most_intelligent` from the snapshot. Skip cost-min step.
7. Cost minimization
- From surviving candidates, pick the smallest cost tier (XS → S → M → L → frontier).
Tie-break by lower output $/1M, then lower input $/1M.
8. Sanity filters (apply throughout)
- Drop model_spec.beta === true unless your key has beta access.
- Drop model_spec.offline === true.
- Drop candidates whose model_spec.regionRestrictions exclude the caller.
Trait shortcuts
When the prompt maps cleanly to a named trait, skip the matrix and resolve the trait from the snapshot's traits block (sourced from GET /models/traits?type=text):
| Trait | Use for |
|---|---|
default |
Generic chat / catch-all. |
fastest |
Latency-critical, low-stakes. |
default_reasoning |
"Think step by step" without specifying a model. |
default_code |
Code generation / refactor / review. |
default_vision |
Vision input, no other special needs. |
function_calling_default |
Agent loops, tool use. |
most_intelligent |
"Best available", frontier override. |
most_uncensored |
Refusal-free / red-team / creative writing without content filtering. |
Cache the resolved trait → ID map at session start (one HTTP call) and reuse.
Local-first pattern
For a local agent driving Venice as an "escalation backend":
-
Score the prompt cheaply (locally):
- Token count of prompt + expected output.
- Modality signals (any image / audio / video parts).
- Keyword signals: "code", "reason", "step by step", "private", "secret", "encrypt", "best", "frontier".
- User-provided overrides (e.g.
--model frontier,--privacy e2ee).
-
Decide local vs Venice:
- If estimated tokens ≤ local model's comfort window AND no capability or privacy escalation → stay local.
- Otherwise → continue to step 3.
-
Run the decision tree above to pick a Venice model.
-
Call via
venice-chat:curl https://api.venice.ai/api/v1/chat/completions \ -H "Authorization: Bearer $VENICE_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "<chosen id>", "messages": [...], "venice_parameters": {"include_venice_system_prompt": false} }' -
Cap blast radius: log the chosen model + estimated cost before sending; refuse to escalate beyond the user's
--max-costceiling.
Examples
Example 1 — local-first wins
Prompt: "Summarize this email in one sentence: …" (~200 tokens)
- Step 1 → local handles it. Do not call Venice.
Example 2 — privacy + reasoning
Prompt: "Here's our customer churn dataset (PII). Reason about which factors drive churn."
- Step 2 → privacy gate requires
privacy: "private"ortee-/e2ee-prefix. - Step 4 → reasoning required →
supportsReasoning: true. - Step 7 → among private/TEE candidates with reasoning, pick the cheapest.
- → typically a
tee-*reasoning model, ortraits.default_reasoningfiltered toprivacy: "private".
Example 3 — multi-image vision
Prompt: 3 product photos + "Compare these for build quality."
- Step 3 →
supportsVision && supportsMultipleImages && maxImages >= 3. - Step 7 → cheapest survivor → typically
traits.default_vision.
Example 4 — frontier intelligence on a long doc
Prompt: "Give me your absolute best take on this 50-page legal brief."
- Step 5 → context size gate triggers (> 100K tokens).
- Step 6 → frontier override fires (
most_intelligent). - → resolve
traits.most_intelligent(a Claude Opus / GPT-5.x Pro / GLM 5.1 family ID, depending on the snapshot).
Example 5 — code agent with tools
Prompt: "Refactor this repo. You have shell + edit tools."
- Step 4 →
supportsFunctionCalling && optimizedForCode. - Step 7 → cheapest survivor →
traits.default_codeif it also supports tools, elsetraits.function_calling_defaultfiltered byoptimizedForCode.
Future extensions
A scripts/route.py CLI may be added later for runtimes that prefer structured output (route.py --prompt '...' --max-cost 0.001 --need-vision → {"model_id": "...", "estimated_cost": ..., "tier": "..."}). The prose decision tree above remains the source of truth.
Sibling routing skills (venice-image-routing, venice-audio-routing, venice-video-routing) can mirror this layout when needed.
Gotchas
- Don't hard-code model IDs. Venice rolls models monthly — resolve via traits or filters against the snapshot.
- Stale snapshot lies silently. The 30-day rule is the floor; refresh sooner if you hit a 404 on a model ID.
- Privacy ≠ uncensored.
most_uncensoredandprivacy: "private"are independent axes. enable_e2eedefaults totrueon E2EE-capable models when the right headers are present — seevenice-chat. The routing decision selects the model; the chat skill drives the handshake.- Beta / offline models in the snapshot. Filter out
model_spec.beta === true(unless your key has beta access) andmodel_spec.offline === truebefore scoring. - Region restrictions.
model_spec.regionRestrictions[]returns403outside the listed countries — drop those candidates if your caller is outside. - Trait keys differ by
type. Always pass?type=text. Don't reuse image traits.
See also
venice-models—/models,/models/traits,/models/compatibility_mapping(the discovery API this skill consumes).venice-chat—/chat/completions(the call surface this skill picks a model for).venice-auth— Bearer vs x402 wallet auth.venice-billing— confirming actual spend matched the routing estimate.venice-errors— 402 / 422 / 429 handling on routed requests.- Per-model snapshot:
snapshots/text-routing.json. - Per-model human-readable matrix:
routing-matrix.md.
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- Skill 提供了 Venice AI 平台文本模型路由的完整决策逻辑,适用于本地代理与 Venice 模型之间的智能调度
- 覆盖了隐私层级、能力过滤、成本优化等关键维度,具备高实用价值
- 适用于构建本地优先的智能代理系统,提升任务处理效率
Areas to improve
-
description 内容截断 Reported severity: Minor
顶层 frontmatter 中的 description 字段内容被截断,仅显示 'VeniceTextRouting专用技能,帮助AI Agent高效完成相关任务。',而 skill_body 中有更完整的描述
Recommendation: 建议将完整的描述内容补充到顶层 frontmatter 的 description 字段中,确保触发信息完整
Highlights
- skill_body 中的 description 提供了详细的触发场景说明,包括模型选择、隐私层级判断等
Areas to improve
-
引用文件缺失 Reported severity: Minor
SKILL.md 中引用了多个外部文件如 snapshots/text-routing.json、routing-matrix.md、scripts/refresh_routing.py 等,但未在传入内容中提供
Recommendation: 建议补充这些被引用的文件,或明确说明这些文件将在运行时生成/获取
Highlights
- 文档结构清晰,包含完整的决策树、隐私层级、能力过滤等章节
- 提供了多个实际示例,便于理解和使用
- frontmatter 信息完整,包含版本、许可证、分类等必要信息
Areas to improve
-
外部依赖未明确说明 Reported severity: Minor
Skill 依赖 VENICE_API_KEY 环境变量和外部 API 调用,但未在文档中明确说明如何获取和配置
Recommendation: 建议补充环境变量配置说明和 API 访问权限要求
Highlights
- 提供了完整的路由决策逻辑和异常处理建议
- 包含了快照更新机制和缓存策略,确保数据时效性
- 明确了各种边界条件和限制因素
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- api.venice.ai
- docs.venice.ai
- github.com
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Not specified in the source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.