9router-embeddings
Skill13 starsChanged 5 months agoMITView on GitHub
Generate vector embeddings via 9Router /v1/embeddings using OpenAI / Gemini / Mistral / Voyage / Nvidia / GitHub embedding models for RAG, semantic search, similarity. Use when the user wants embeddings, vectors, RAG, semantic search, or to embed text.
- Reads credentials
- Sends data out
3 other projects use a version of this.
Adopted by
Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data
Most recently taken up by
- decolua/9routerword for word, first seen Sep 21, 2026
- OTheMandaloriano/XRouterword for word, first seen Aug 14, 2026
- Vincent-A-Yang/OninOneProxyword for word, first seen Aug 4, 2026
Other versions3 projects use a version of this.
Word for word · 3
- decolua/9router★ 30k100% same
- Vincent-A-Yang/OninOneProxy★ 4100% same
- OTheMandaloriano/XRouter★ 1100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository10 other files it gives its agents.
- .agents/AGENTS.mdAGENTS.md
- 9router-chatSkill
- 9router-imageSkill
- 9routerSkill
- 9router-sttSkill
- 9router-ttsSkill
- 9router-web-fetchSkill
- 9router-web-searchSkill
- multi-brainSkill
- using-superpowersSkill
The file
Files
9Router — Embeddings
Requires NINEROUTER_URL (and NINEROUTER_KEY if auth enabled). See https://raw.githubusercontent.com/decolua/9router/refs/heads/master/skills/9router/SKILL.md for setup.
Discover
curl $NINEROUTER_URL/v1/models/embedding | jq '.data[].id'
# Per-model dimensions
curl "$NINEROUTER_URL/v1/models/info?id=openai/text-embedding-3-small"Endpoint
POST $NINEROUTER_URL/v1/embeddings
| Field | Required | Notes |
model | yes | from /v1/models/embedding |
input | yes | string OR array of strings |
encoding_format | no | float (default) / base64 |
dimensions | no | OpenAI v3 only |
Examples
curl -X POST $NINEROUTER_URL/v1/embeddings \
-H "Authorization: Bearer $NINEROUTER_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"openai/text-embedding-3-small","input":["hello","world"]}'JS:
const r = await fetch(`${process.env.NINEROUTER_URL}/v1/embeddings`, {
method: "POST",
headers: { "Authorization": `Bearer ${process.env.NINEROUTER_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({ model: "gemini/text-embedding-004", input: "RAG chunk text" }),
});
const { data } = await r.json();
console.log(data[0].embedding.length); // dimensionResponse shape
{ "object": "list", "model": "openai/text-embedding-3-small",
"data": [
{ "object": "embedding", "index": 0, "embedding": [0.0123, -0.045, ...] },
{ "object": "embedding", "index": 1, "embedding": [...] }
],
"usage": { "prompt_tokens": 5, "total_tokens": 5 } }Provider quirks
| Provider | Notes |
openai, openrouter, mistral, voyage-ai, fireworks, together, nebius, github, nvidia, jina-ai | Native OpenAI shape — dimensions works only on OpenAI v3 (text-embedding-3-*) |
gemini, google_ai_studio | Server auto-converts to embedContent/batchEmbedContents — send OpenAI shape |
openai-compatible-*, custom-embedding-* | Custom baseUrl from credentials |
Batch (input as array) is faster; some providers cap batch size.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

