jrajasekera/claude-skills/venice-ai-api
Claude Code and agent skill by jrajasekera/claude-skills
- community
Checking that the SKILL.md file is still in the repository.
Build, migrate, and debug integrations with the Venice.ai API. Covers OpenAI-compatible chat and Responses, live model discovery and routing, multimodal and file inputs, reasoning, tools, web/X search, image generation and editing, audio, video, embeddings, augment APIs, characters, API-key administration, billing, x402/SIWX wallet authentication, and crypto RPC. Use whenever code calls api.venice.ai, a user asks which Venice model or endpoint to use, or an existing Venice integration may be stale.
Install
npx vskill@latest install jrajasekera/claude-skills/venice-ai-apiSKILL.md
Venice.ai API
Last verified against Venice's public documentation, OpenAPI-derived skills, and model-lifecycle guidance: 2026-07-24.
Venice exposes an OpenAI-compatible API plus native endpoints for images, asynchronous media, document parsing, search, account administration, wallet payments, and crypto RPC. The API surface is stable under /api/v1, but the model catalog, capabilities, constraints, pricing, rate limits, and deprecations change frequently.
Non-negotiable operating rules
- Do not guess model IDs, prices, voices, dimensions, durations, context limits, or rate limits. Query the live discovery endpoints before generating production code or making recommendations.
- Match the request to the selected model's metadata. Inspect
model_spec.capabilities,model_spec.constraints,model_spec.pricing,privacy,offline,beta,regionRestrictions, anddeprecation. - Use traits for automatic upgrades; use fixed IDs for reproducibility. Resolve traits with
/models/traits; never assume what a trait currently points to. - Use `queue_id`, not legacy `queueid`, for asynchronous audio and video requests.
- Quote asynchronous media before queueing it. For music and video:
quote -> queue -> retrieve -> complete. - Treat Alpha, Beta, Preview, and experimental endpoints as unstable. Validate the current OpenAPI schema before shipping or pinning generated types.
- Never expose credentials or wallet private keys. Do not place API keys in browser bundles, logs, prompts, screenshots, or checked-in files.
- Do not retry validation, authentication, entitlement, or media-type errors unchanged. Retry only transient failures, honoring
Retry-Afterand rate-limit headers.
Base URL and authentication
Choose one authentication mode per request:
| Mode | Header | Typical use | |
|---|---|---|---|
| Bearer API key | Authorization: Bearer $VENICE_API_KEY | Servers, scoped inference keys, account billing, usage analytics | |
| x402 / SIWX wallet | SIGN-IN-WITH-X: <base64 SIWX payload> | Accountless pay-per-request flows using prepaid USDC credit on Base or Solana |
Prefer Bearer authentication unless the product explicitly needs wallet-native billing. Current endpoint contracts prefer SIGN-IN-WITH-X; the legacy X-Sign-In-With-X name remains accepted during migration. For x402, use Venice's supported client or an x402 SDK rather than hand-rolling signatures. See references/auth-admin-billing.md.
Start every task with this decision flow
1. Choose the API surface
| Need | Endpoint or workflow | |
|---|---|---|
| General text, reasoning, tools, multimodal, files | POST /chat/completions | |
| OpenAI Responses-style typed output | POST /responses — Alpha; verify access and current schema | |
| Text embeddings | POST /embeddings | |
| Text-to-image with native controls | POST /image/generate | |
| OpenAI-compatible image generation | POST /images/generations | |
| Single-image edit | POST /image/edit | |
| Compose/edit multiple images | POST /image/multi-edit | |
| Upscale/enhance image | POST /image/upscale | |
| Remove image background | POST /image/background-remove | |
| List image styles | GET /image/styles | |
| Short text-to-speech | POST /audio/speech | |
| Create a temporary cloned-voice handle | POST /audio/voices | |
| Audio-file transcription | POST /audio/transcriptions | |
| Music or long-form async audio | /audio/quote, /audio/queue, /audio/retrieve, /audio/complete | |
| Video generation/upscale | /video/quote, /video/queue, /video/retrieve, /video/complete | |
| Public video/YouTube transcription | POST /video/transcriptions | |
| Extract text from a document | POST /augment/text-parser | |
| Scrape a public URL to Markdown | POST /augment/scrape | |
| Structured web search | POST /augment/search | |
| Browse model catalog | GET /models | |
| Resolve recommended aliases | GET /models/traits | |
| Resolve compatibility aliases | GET /models/compatibility_mapping | |
| Browse public characters | GET /characters* | |
| Manage API keys and inspect limits | /api_keys* | |
| Inspect account balance, cursor usage history, and analytics | /billing/balance, /billing/usage-history, /billing/usage-analytics | |
| Inspect/top up wallet credits | /x402/* | |
| Proxy blockchain JSON-RPC | /crypto/rpc/* |
2. Discover a current model
Valid discovery types currently include:
For coding models, query type=text and filter model_spec.capabilities.optimizedForCode, or resolve the default_code trait when present. The catalog can add types or fields; treat the OpenAPI document and live response as authoritative.
Use the included helper for a compact, filtered view:
See references/models-and-routing.md.
3. Validate the request against model_spec
For text models, check at least:
availableContextTokensandmaxCompletionTokensprivacy,offline,beta,regionRestrictions,deprecationsupportsFunctionCalling,supportsReasoning,supportsReasoningEffortsupportsResponseSchema,supportsVision,supportsMultipleImages,maxImagessupportsAudioInput,supportsVideoInput,supportsWebSearch,supportsXSearchsupportsTeeAttestation,supportsE2EE,optimizedForCode
For media models, also validate prompt limits, aspect ratios, resolutions, durations, dimensions, step ranges, voices, reference-image counts, and model-specific feature flags.
4. Pick a stable or adaptive model reference
- Use a fixed model ID when output stability, evaluations, regression tests, or reproducibility matter.
- Use a trait such as
default,fastest,default_code,default_vision,default_reasoning, ormost_intelligentwhen automatic upgrades are desirable. - Resolve the trait once at startup and cache the mapping briefly. Do not cache the entire catalog for days.
- Monitor
model_spec.deprecationand model-deprecation response headers.
OpenAI SDK quick start
Python
TypeScript
OpenAI-compatible surfaces include chat completions, embeddings, image generations, TTS, transcription, and model listing. Native Venice endpoints generally require direct HTTP calls.
Chat-specific extensions
Pass Venice-only features in venice_parameters:
| Parameter | Purpose | |
|---|---|---|
include_venice_system_prompt | Include or suppress Venice's default system prompt | |
enable_web_search | off, auto, or on | |
enable_web_scraping | Scrape public URLs found in the latest user message | |
enable_web_citations | Ask the model to mark web sources in its answer | |
include_search_results_in_stream | Emit search-result metadata in a stream | |
return_search_results_as_documents | Surface search results as a synthetic tool call | |
enable_x_search | Native web + X search on supporting xAI models | |
character_slug | Apply a published Venice character | |
strip_thinking_response | Remove legacy visible thinking blocks | |
disable_thinking | Disable reasoning on models that support doing so | |
enable_e2ee | Enable E2EE behavior when the selected model and request headers support it |
For current reasoning-capable models, prefer top-level reasoning: {"enabled": false} when reasoning must be disabled; reasoning.effort: "none" and venice_parameters.disable_thinking remain model-dependent.
When the client cannot add venice_parameters, supported options may be encoded as a model suffix:
Do not encode enable_e2ee or enable_x_search as suffixes unless the current docs explicitly add support.
See references/chat-completions.md.
Multimodal and file inputs
messages[].content can be an array of typed parts on compatible models:
textimage_urlinput_audio— inline base64, not an audio URLvideo_urlfile— public URL or base64 data URL; Venice extracts text before inference
A file block uses:
Files are request-scoped, and extracted text counts against the model context window. For reusable extraction or token counting, use /augment/text-parser instead.
Function calling and agent loops
Before sending tools, require supportsFunctionCalling. Then:
- Send
toolsandtool_choicewith the conversation. - Execute every returned
tool_call;parallel_tool_callsmay yield several at once. - Append the assistant tool-call message unchanged.
- Append one
role: "tool"message per result using the matchingtool_call_id. - Call the model again for the final response.
- On providers that return opaque
reasoning_details, round-trip that field verbatim in later turns. Never fabricate or normalize it.
For schema-constrained output, require supportsResponseSchema and prefer response_format.type = "json_schema" over legacy json_object.
Asynchronous audio and video invariant
Use the same model ID and queue_id throughout the job:
- Poll at a reasonable interval; do not busy-loop.
/retrievemay return binary media directly, or a JSONCOMPLETEDstate that requires downloading a temporarydownload_urlreturned by/queue.delete_media_on_completion: truecan combine retrieval and cleanup where supported.- Download before calling
/complete.
See references/audio-api.md and references/video-api.md.
Production error policy
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 85 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/venice-ai-api/SKILL.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 3
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 1 Apr 2026, 8 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/jrajasekera/claude-skills/venice-ai-api)