Back to Models
N

NV-EmbedCode 7B

NVIDIA
by NVIDIA

The NV-EmbedCode model is a 7B Mistral-based embedding model optimized for code retrieval, supporting text, code, and hybrid queries.

Free EndpointDownloadableMay 29, 2025open license

Specifications

Context Length
8K
8,192 tokens
Input Price
Free
per 1M tokens
Output Price
Free
per 1M tokens
Modalities
2
text→text, code→text

Capabilities

embeddingscode

Tags

nemo-retrievercode-embeddingsretrieval

API Usage

1Router is fully OpenAI-compatible. Just set the base URL and use this model ID:

nvidia/nv-embedcode-7b-v1
cURL
curl https://your-site.example/api/v1/chat/completions \
  -H "Authorization: Bearer $ROUTER_USER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "nvidia/nv-embedcode-7b-v1",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'