# POST /ai/generate-embedding

**Resource:** [AI](./ai.md)  
**MCP tool:** `ai_generate_embedding`  
**Scopes:** `ai:use`  
**Write operation:** no

Generate a vector embedding for a text string. Free.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `text` | body | string | yes |  |

## Request example

```bash
curl -X POST   "https://api.trustpager.com/functions/v1/api/v1/ai/generate-embedding"   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"text":"..."}'
```

---
Base URL: `https://api.trustpager.com/functions/v1/api/v1` — Auth: `Authorization: Bearer YOUR_API_KEY`