sediman-agent/openskynet/venice-embeddings
Claude Code and agent skill by sediman-agent/openskynet
- community
Checking that the SKILL.md file is still in the repository.
Call POST /embeddings on Venice. Covers request shape (input, model, encoding_format, dimensions, user), OpenAI compatibility, response compression (gzip/br), and practical usage for retrieval, clustering, and RAG.
Install
npx vskill@latest install sediman-agent/openskynet/venice-embeddingsSKILL.md
The same SKILL.md was published earlier as sediman-agent/openskynet/venice-embeddings.
Venice Embeddings
POST /api/v1/embeddings returns vector embeddings for strings. It's OpenAI-compatible: the request and response match https://api.openai.com/v1/embeddings closely enough that the OpenAI SDK works out of the box with baseURL: "https://api.venice.ai/api/v1".
Use when
- You're building retrieval / RAG / similarity search.
- You need text clustering, classification, deduplication, or reranking.
- You want Venice's "no-training, no-retention" stance on inference inputs — embeddings are generated and returned; the API does not publish E2EE semantics on
/embeddingsthe way it does on selected chat models.
Text-only. For image/multimodal signals, either run images through a vision chat model and embed the description, or pick a multimodal-capable embedding model from GET /models?type=embedding (the catalog changes; inspect model_spec on each row).
Minimal request
Request schema
| Field | Type | Notes | ||||
|---|---|---|---|---|---|---|
model | string | Required. Model ID from GET /models?type=embedding. | ||||
input | string \ | string[] \ | number[] \ | number[][] | Required. Single string, array of strings (≤ 2048 entries), or pre-tokenized arrays. | |
encoding_format | "float" \ | "base64" | Default "float". Use "base64" for ~4× payload shrinkage; decode client-side. | |||
dimensions | integer | Optional. Truncate output dimensions. Only meaningful when the model's model_spec.supportsCustomDimensions === true — behavior on non-supporting models is model-dependent; test a small call before relying on it. | ||||
user | string | Accepted for OpenAI compat. Discarded by Venice. |
input max tokens per string is capped at the model's model_spec.maxInputTokens (typically 8192). Batch arrays are capped at 2048 items. Venice returns one embedding per element, in order, with matching index.
Response headers & compression
Request Accept-Encoding: gzip, br. The response will include Content-Encoding accordingly. For long batches this matters — vectors are large.
For x402 auth, X-Balance-Remaining reports your remaining USDC credits.
Using the OpenAI SDK
Batch-embedding pattern
- Keep batches ≤ model context limit total tokens.
- On
429, back off exponentially and halve the batch — see `venice-errors`.
Choosing a model
Query GET /models?type=embedding for the current catalog. Each entry exposes:
model_spec.embeddingDimensions— native output dimension (e.g. 1024 for BGE-M3).model_spec.maxInputTokens— max tokens per input string.model_spec.supportsCustomDimensions— whetherdimensionscan truncate the output.model_spec.pricing.input.usd/.diem— cost per million input tokens.
Built-in options include text-embedding-bge-m3, text-embedding-bge-en-icl, text-embedding-qwen3-8b, text-embedding-qwen3-0-6b, text-embedding-multilingual-e5-large-instruct, text-embedding-3-small, text-embedding-3-large, gemini-embedding-2-preview, text-embedding-nemotron-embed-vl-1b-v2.
Always pin the model ID — cosine distances are not comparable across different embedding models.
Error handling
| Code | Meaning | |
|---|---|---|
400 | Validation error. Check details in the response for the exact field. | |
401 | Auth / Pro-only model. | |
402 | Insufficient balance. Bearer → INSUFFICIENT_BALANCE. x402 → structured PAYMENT_REQUIRED. | |
415 | Wrong Content-Type — must be application/json. | |
429 | Rate limited. | |
500 | Inference failed; retry with jitter. | |
503 | Model at capacity; retry later. |
Gotchas
dimensionsis only meaningful whenmodel_spec.supportsCustomDimensions === true. Behavior on other models is model-dependent — test with a small request before relying on it.inputmust not be empty; Venice rejects empty strings with400.- Whether the returned vectors are L2-normalized depends on the model — verify with
Math.hypot(...v) ≈ 1before assuming. - For RAG, store
modelalongside the vector so you can re-embed on upgrade.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/veniceai_skills/venice-embeddings/SKILL.md
Popularity
- Repository stars
- 397
- Repository forks
- 45
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
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/sediman-agent/openskynet/venice-embeddings)