Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.phala.com/llms.txt

Use this file to discover all available pages before exploring further.

Endpoint

POST https://api.redpill.ai/v1/embeddings
Generate vector embeddings for retrieval, semantic search, clustering, and similarity workloads.

Request Body

model
string
required
Embedding model ID.Examples: qwen/qwen3-embedding-8b, sentence-transformers/all-minilm-l6-v2.
input
string | array
required
Input text or list of inputs to embed.
encoding_format
string
Embedding encoding format. Common values are float and base64.
dimensions
integer
Requested output dimensions, when supported by the selected model.

Examples

curl https://api.redpill.ai/v1/embeddings \
  -H "Authorization: Bearer <API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "qwen/qwen3-embedding-8b",
    "input": "Confidential AI keeps inference data private."
  }'

Response

{
  "object": "list",
  "data": [
    {
      "object": "embedding",
      "index": 0,
      "embedding": [0.0023, -0.0015, 0.0042]
    }
  ],
  "model": "qwen/qwen3-embedding-8b",
  "usage": {
    "prompt_tokens": 8,
    "total_tokens": 8
  }
}

Common Models

ModelDimensionsContextNotes
qwen/qwen3-embedding-8b409632KLarge confidential embedding model
sentence-transformers/all-minilm-l6-v2384512Low-cost compact embedding model
Use List Embedding Models for the live embedding catalog.