Please rotate your device

To continue exploring this website, please rotate your device to a vertical orientation

Zembed 1

ZeroEntropy/Zembed 1

ZeroEntropy’s flagship, state-of-the-art, open-weight, multilingual embedding model.

embedding

Input

python
import os
from openai import OpenAI

model_id = "" #Add Model ID from Baseten dashboard

client = OpenAI(
    api_key=os.environ["BASETEN_API_KEY"],
    base_url=f"https://model-{model_id}.api.baseten.co/environments/production/sync"
)

response = client.embeddings.create(
    model="zembed-1",
    input=[
        "query: What is the capital of France?",
        "passage: Paris is the capital of France.",
    ],
    dimensions=2048,
)

Output

json
{
  "data": [
    {
      "embedding": [
        "<EMBEDDING VECTOR>"
      ],
      "index": 0,
      "object": "embedding"
    },
    {
      "embedding": [
        "<EMBEDDING VECTOR>"
      ],
      "index": 1,
      "object": "embedding"
    }
  ],
  "model": "zembed-1",
  "object": "list",
  "usage": {
    "prompt_tokens": 37,
    "total_tokens": 37
  }
}