Source: https://ailoot.ai/docs/api/embeddings/
Canonical: https://ailoot.ai/docs/en/api/embeddings/
Language: en

[API](https://ailoot.ai/docs/en/) 

# Embeddings

[Markdown](https://ailoot.ai/docs/en/api/embeddings/index.md)

Text embeddings for search, RAG, and clustering.

POST`https://api.ailoot.ai/v1/embeddings`

Embeddings

```bash
curl https://api.ailoot.ai/v1/embeddings \
  -H "Authorization: Bearer $AILOOT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "nvidia/nemotron-3-embed-1b", "input": ["First document", "Second document"]}' 
```

```python
emb = client.embeddings.create(
    model="nvidia/nemotron-3-embed-1b",
    input=["First document", "Second document"],
)
vectors = [d.embedding for d in emb.data]
```

200 OK

```json
{
  "object": "list",
  "data": [
    { "object": "embedding", "index": 0, "embedding": [0.0123, -0.0456, 0.0789, …] },
    { "object": "embedding", "index": 1, "embedding": [-0.0321, 0.0654, 0.0987, …] }
  ],
  "model": "nvidia/nemotron-3-embed-1b",
  "usage": { "prompt_tokens": 8, "total_tokens": 8 }
}
```

## Authentication

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `Authorization` | header | required | The key in the format `Bearer sk-…`. The following headers also work: `x-api-key` or `x-goog-api-key`. |

## Request body

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `model` | string | required | Embedding model: `nvidia/nemotron-3-embed-1b`, `nvidia/llama-nemotron-embed-vl-1b-v2`. |
| `input` | string \| array | required | A string or an array of strings. Each input is limited by the model's context window (4096 tokens for NVIDIA models). |
| `encoding_format` | string | optional | `float` (default) or `base64` — if supported by the model. |

## Response

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `data[].embedding` | array |  | A numeric vector for each input, in the same order. |
| `usage` | object |  | Number of input tokens. Embedding output is not billed. |

Still have questions? Send your Request ID and a description — we'll help you troubleshoot.[Contact support](mailto:support@ailoot.ai)

## Ailoot · The company and its project portfolio





Ailoot combines established operating experience, a large client base, stable service and ongoing KPI control.





The company and its project portfolio: millions of customers; monthly sales in the billions.





Ailoot brings that operating experience to API access for AI features in customer products, agents, applications and automations.
