Embeddings API
POST /v1/embeddings is used to convert text into vector representations.
Requestâ
curl https://real200.com/v1/embeddings \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $REAL200_API_KEY" \
-d '{
"model": "text-embedding-3-small",
"input": "Real200 is an AI Token gateway platform.",
"encoding_format": "float"
}'
Parametersâ
| Parameter | Type | Required | Description |
|---|---|---|---|
model | string | Yes | Embedding model name |
input | string/array | Yes | Text to embed (batching supported) |
encoding_format | string | No | float (default) or base64 |
dimensions | integer | No | Specify output dimensions |
Supported Modelsâ
| Model | Dimensions | Description |
|---|---|---|
text-embedding-3-small | 1536 | OpenAI small model |
text-embedding-3-large | 3072 | OpenAI large model |
text-embedding-ada-002 | 1536 | Legacy compatible |