Aller au contenu principal
Velqa

Embeddings with Velqa.dev

Velqa offers two multilingual embedding models (strong in French and Arabic), ideal for semantic search, RAG and document comparison. They are available on the OpenAI-compatible API https://api.velqa.dev/v1/embeddings and included in every plan (Starter, Dev, Pro, Recharge Boost).

  • bge-m3 — fast and cheap, 1024 dimensions, 8k context. A solid default.
  • qwen3-embedding-8b — higher quality (top multilingual MTEB), up to 4096 dimensions, 32k context. Prefer it for demanding RAG.

Pricing

Embeddings produce no output tokens: you only pay for the input tokens sent to the model.

ModelTypeIndicative price (MAD/M input tokens)
bge-m3Embeddings~0.12 MAD
qwen3-embedding-8bEmbeddings~0.12 MAD

The exact price is shown in your dashboard and depends on the current USD/MAD exchange rate.

Example with curl

curl https://api.velqa.dev/v1/embeddings \
  -H "Authorization: Bearer $VELQA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "bge-m3", "input": ["First document", "ثاني وثيقة"]}'

Example with Python

from openai import OpenAI

client = OpenAI(base_url="https://api.velqa.dev/v1", api_key="VELQA_API_KEY")
resp = client.embeddings.create(
    model="bge-m3",
    input=["First document", "ثاني وثيقة"]
)
print(len(resp.data[0].embedding))

The response contains one float vector per input item, plus usage.prompt_tokens telling you how many tokens were billed.