Skip to main content
POST
/
v1
/
embeddings
curl https://www.qingbo.dev/v1/embeddings \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "text-embedding-3-small",
    "input": "清波 API 是统一的 AI 模型网关"
  }'
{
  "object": "list",
  "model": "text-embedding-3-small",
  "data": [
    {
      "object": "embedding",
      "index": 0,
      "embedding": [0.0023, -0.0091, 0.0152, ...]
    }
  ],
  "usage": {
    "prompt_tokens": 8,
    "total_tokens": 8
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.qingbo.dev/llms.txt

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

Synchronous endpoint — returns the embedding vectors directly when the request completes.
curl https://www.qingbo.dev/v1/embeddings \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "text-embedding-3-small",
    "input": "清波 API 是统一的 AI 模型网关"
  }'
{
  "object": "list",
  "model": "text-embedding-3-small",
  "data": [
    {
      "object": "embedding",
      "index": 0,
      "embedding": [0.0023, -0.0091, 0.0152, ...]
    }
  ],
  "usage": {
    "prompt_tokens": 8,
    "total_tokens": 8
  }
}

Request Parameters

model
string
required
Embedding model ID, e.g., text-embedding-3-small, text-embedding-3-large.
input
string or array
required
Text to embed. Accepts a string or an array of strings (batch embedding).

Response

object
string
Always "list".
model
string
Model used.
data
array
Array of embedding results.
usage
object
Token usage.