venice-errors

venice-errors is a skill for Claude Code, Codex from 0xatd/cheaptokens-skills. It costs 105 tokens per session (2,692 once invoked), scanned A, a copy of venice-errors, MIT.

A Venice AI error-handling guide that explains common response formats, status codes, content-policy errors, payment errors, and when retries are appropriate.

In plain words
What is it for?
Use it to handle Venice API failures such as invalid input, authentication problems, rate limits, content-policy responses, payment requirements, and temporary server or timeout errors.
Why use it?
It helps applications show useful error details and avoid retrying requests that are malformed, unauthorized, blocked, or otherwise unsuitable for retry.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to handle Venice API failures such as invalid input, authentication problems, rate limits, content-policy responses, payment requirements, and temporary server or timeout errors.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/0xatd/cheaptokens-skills/venice-errors
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add 0xatd/cheaptokens-skills --skill venice-errors
Clone the repo
git clone --depth 1 https://github.com/0xatd/cheaptokens-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for venice-errors

README.md
[![agentmods](https://agentmods.dev/badge/skills/0xatd/cheaptokens-skills/venice-errors/github.svg)](https://agentmods.dev/skills/0xatd/cheaptokens-skills/venice-errors)
Your own site
<a href="https://agentmods.dev/skills/0xatd/cheaptokens-skills/venice-errors"><img src="https://agentmods.dev/badge/skills/0xatd/cheaptokens-skills/venice-errors/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for venice-errors

Your own site · 80×15
<a href="https://agentmods.dev/skills/0xatd/cheaptokens-skills/venice-errors"><img src="https://agentmods.dev/badge/skills/0xatd/cheaptokens-skills/venice-errors.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 105 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,692 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 91% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00105 $0.02692
Opus 5 $0.00053 $0.01346
Sonnet 5 $0.00021 $0.00538
Haiku 4.5 $0.00011 $0.00269

Measured 9d ago against content hash dae6a45f7a0b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

venice-errors scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

91% identical to venice-errors — 13 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/venice-errors/SKILL.md · 210 lines

How it starts

The opening of the file, as written. The whole thing — 210 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Venice errors & retries

Every Venice endpoint returns one of four error shapes. Knowing which shape you got tells you how to react.

Error body shapes

1. StandardError — simple message

The default shape for 4xx/5xx. Emitted when there's nothing structured to surface.

{ "error": "Unauthorized" }

2. DetailedError — Zod validation failure

Used for some 400 responses on malformed request bodies. When present, details is a Zod format() tree (_errors recursively keyed by field) alongside a flat issues array. Many 400s are plain StandardError without details — always handle both.

{
  "error": "Invalid request",
  "details": {
    "_errors": [],
    "messages": { "_errors": ["Field is required"] }
  },
  "issues": [
    { "code": "invalid_type", "path": ["messages"], "message": "Field is required" }
  ]
}

Render details / issues to the user so they can fix the input; don't retry — the request shape is wrong.

3. ContentViolationError — 422 content policy

Returned when a prompt trips content policy. suggested_prompt (a model-provided safe alternative) is currently emitted by the audio generation pipeline (/audio/queue, /audio/retrieve); image and video endpoints return { error: "Content policy violation" } without suggested_prompt.

{
  "error": "Content policy violation",
  "suggested_prompt": "A cinematic instrumental track inspired by stormy weather and dramatic tension."
}

Pattern — when suggested_prompt is present, retry once with prompt = suggested_prompt if the user consents.

4. X402InferencePaymentRequired — 402 on x402 inference calls

Returned only when the caller authenticated with SIWE and has insufficient credit. Discriminated by code: "PAYMENT_REQUIRED".

{
  "error": "Payment required",
  "code": "PAYMENT_REQUIRED",
  "message": "Insufficient x402 balance",
  "suggestedTopUpUsd": 10,
  "minimumTopUpUsd": 5,
  "supportedTokens": ["USDC"],
  "supportedChains": ["base"],
  "topUpInstructions": {
    "step1": "POST /api/v1/x402/top-up with no payment header to get payment requirements",
    "step2": "Sign a USDC transfer authorization using the x402 SDK (createPaymentHeader)",
    "step3": "POST /api/v1/x402/top-up with the signed X-402-Payment header",
    "receiverWallet": "<RECEIVER_WALLET_ADDRESS>",
    "tokenAddress": "<USDC_TOKEN_ADDRESS>",
    "tokenDecimals": 6,
    "network": "eip155:8453",
    "minimumAmountUsd": 5
  },
  "siwxChallenge": { ... SIWE template ... }
}

Read the full file on GitHub · 210 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 210 lines · 105 tokens per session scan A dae6a45f7a0b

Subscribe to this mod's changes

venice-errors is a skill published in the GitHub repository 0xatd/cheaptokens-skills (2 stars, last pushed 1mo ago), licensed MIT. It adds 105 tokens to every session and 2,692 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. It is 91% identical to venice-errors, differing in 13 lines, and is treated as a copy.

Related

Other skills, from other repositories

groq-inference

Ultra-fast LLM inference on custom LPU hardware. OpenAI-compatible API at api.groq.com. Lowest latency in the industry (500-1000+ tok/s). Supports chat completions, vision, audio (Whisper STT + TTS), tool calling, JSON mode, and streaming. Free tier available. Inference only — no training.

synthetic-sciences/openscience · 77 tokens

phone

Use when the user wants phone-number intelligence (lookup, carrier, line type, SIM-swap / call-forwarding fraud signals), US/CA number provisioning (rent a phone number), or outbound AI voice calls (Bland.ai under the hood — schedule, confirm, follow-up). Pay per call in USDC.

BlockRunAI/blockrun-mcp · 66 tokens

t2000-env-gate

The cross-app env-validation contract — every app with ≥1 required env var validates at boot via a Zod schema and exposes values through a typed env proxy; raw process.env.X reads are banned outside the env module. Use when adding or renaming an environment variable, wiring up a new app in apps/, writing or reviewing…

mission69b/t2000 · 120 tokens

t2000-sui-platform

Sui platform patterns for throughput and gas — Address Balances (SIP-58) accumulators that let ONE address run concurrent txs, and gasless stablecoin transfers that remove the "you need SUI to send USDC" wall. Includes the eligibility gotchas that cause misleading failures (0.01 minimum, the dust-remainder floor…

mission69b/t2000 · 151 tokens

openrouter

OpenRouter unified AI API - Access 200+ LLMs through single interface with intelligent routing, streaming, cost optimization, and model fallbacks.

bobmatnyc/claude-mpm-skills · 32 tokens

instagram-api

Instagram data on demand: profile lookup by @handle, posts, reels, stories, tagged posts, followers and followings, hashtag and location feeds, audio/music feeds, and post comments — one plain HTTP GET per call, paid as you go. No login, no session cookies, no headless browser, no Graph API business verification.

sutchan/Agent-Skills-Hub · 127 tokens