Skip to content

Text Embeddings

Embeddings

Turn text into vectors for search and clustering. OpenAI's exact shape. Needs credits (no free model).

POST /v1/embeddings

Price
Priced per model: the model's price per 1M input tokens, listed on the Models page; embeddings are not covered by the free calls, so this needs a balance.
Freshness
Computed fresh on every call.
Answer
OpenAI’s own shape for this endpoint, so existing clients work unchanged. No envelope.

Parameters

NameTypeRequiredWhat it isExample
modelbodystringyesAn embedding model id from the Models page.baai/bge-m3
inputbodystringyesThe text, or a list of texts.crypto2api sells APIs for crypto

Try it

A real call. Your first 100 priced calls a day are free; after that it costs the price above. Edit anything and run it.

Response

Example answer, in OpenAI’s shape

{
  "id": "gen-emb-1795914643-yEsZLV8RkBsfvpgwr46H",
  "object": "list",
  "data": [
    {
      "object": "embedding",
      "embedding": [
        -0.042899709194898605,
        -0.00031643835245631635,
        -0.03447824716567993,
        0.06328075379133224
      ],
      "index": 0,
      "note": "shown: 4 of the 1,024 numbers"
    }
  ],
  "model": "baai/bge-m3",
  "usage": {
    "prompt_tokens": 11,
    "total_tokens": 11,
    "cost": 0.000001
  }
}

What the example answered when this page was built, shortened. Run it for a live answer.

Copy it

Runs as-is with your key in place of c2a_your_key. The MCP block gives an agent every endpoint in one server.

curl https://api.crypto2api.com/v1/embeddings \
  -H "Authorization: Bearer c2a_your_key" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "baai/bge-m3",
  "input": "crypto2api sells APIs for crypto"
}'