Documentation / API

Embeddings

POST /v1/embeddings: the OpenAI embeddings shape, served by Qwen3 Embedding as qwen3-embed. 1024-dimension vectors, €0.008 / 1M tokens.

Request & response

curl https://api.axforge.ai/v1/embeddings \
  -H "Authorization: Bearer $AXFORGE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "qwen3-embed", "input": "The invoice is due on Friday"}'
{
  "object": "list",
  "model": "qwen3-embed",
  "data": [{
    "object": "embedding",
    "index": 0,
    "embedding": [0.0132, -0.0417, ...]   // 1024 floats
  }],
  "usage": {"prompt_tokens": 7, "total_tokens": 7}
}

Batching

Pass input as an array of strings to embed many texts in one request. You get one vector per item; index matches the input position.

import os
from openai import OpenAI

client = OpenAI(base_url="https://api.axforge.ai/v1", api_key=os.environ["AXFORGE_API_KEY"])
r = client.embeddings.create(
    model="qwen3-embed",
    input=[
        "The invoice is due on Friday",
        "Payment terms are net 30",
        "The meeting moved to Tuesday",
    ],
)
for item in r.data:
    print(item.index, len(item.embedding))   # 0 1024 · 1 1024 · 2 1024

Specs

Modelqwen3-embed
Dimensions1024
Context32,768 tokens
Price€0.008 / 1M tokens

Store the vectors in any vector database; cosine similarity is the usual distance. All input is processed with zero retention, like every endpoint here.

Ask on the forum Markdown For AI Updated 2026-11-06

Anything unclear on this page?

Ask on the forum. The answer helps the next person too.

Ask about this page