Capabilities

Embeddings

Convert text into dense vector representations for semantic search, retrieval-augmented generation (RAG), and clustering. 100% OpenAI SDK compatible with multi-provider failover and Zero Data Retention.

1. A first request

Point your standard OpenAI client to https://api.nicrron.ai/v1. No custom SDK required.

TypeScript / Node.js
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.nicrron.ai/v1",
  apiKey: process.env.NICRRON_API_KEY,
});

const response = await client.embeddings.create({
  model: "openai/text-embedding-3-small",
  input: ["The quick brown fox jumps over the lazy dog", "Semantic search with Nicrron"],
  dimensions: 512, // Optional: override the model's default width
});

console.log(response.data[0].embedding); // Float array
console.log(response.usage); // { prompt_tokens: 18, total_tokens: 18 }

2. Embedding models

Model IdentifierProviderDefault DimensionsMax DimensionsPricing (per 1M tokens)
openai/text-embedding-3-smallOpenAI15361536$0.02
openai/text-embedding-3-largeOpenAI30723072$0.13
mistral/mistral-embedMistral10241024$0.10
mistral/codestral-embedMistral15361536$0.15
voyage/voyage-4-liteVoyage10242048$0.02
voyage/voyage-4Voyage10242048$0.06
voyage/voyage-4-largeVoyage10242048$0.12
voyage/voyage-code-4Voyage10242048$0.12
voyage/voyage-finance-2Voyage10241024$0.12
voyage/voyage-law-2Voyage10241024$0.12

Size your vector index against the default column unless you pass dimensions explicitly. The two differ only on the Voyage -4 family, which returns 1024 by default but supports up to 2048; the -2 domain models reject anything above 1024.

3. Fallback models

Specify a fallback array with models in your request body. If the primary provider encounters a rate-limit (429) or outage (5xx), Nicrron automatically cascades to the secondary provider.

cURL — request
curl https://api.nicrron.ai/v1/embeddings \
  -H "Authorization: Bearer $NICRRON_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "models": ["openai/text-embedding-3-small", "mistral/mistral-embed"],
    "input": "High-throughput retrieval augmented generation"
  }'

4. Nothing is stored

Embedding inputs and the vectors returned are never saved to a database or disk, and embeddings are never cached. Only token counts and latency are kept, for billing. See Data privacy.