Documentation Index
Fetch the complete documentation index at: https://docs.tokenfactory.nebius.com/llms.txt
Use this file to discover all available pages before exploring further.
For the following example to work, save your API key to the NEBIUS_API_KEY environment variable.
Request:
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.tokenfactory.nebius.com/v1/",
api_key=os.environ.get("NEBIUS_API_KEY"),
)
client.embeddings.create(
model="BAAI/bge-en-icl",
input="Wake up, Neo...",
encoding_format="float"
)
{
"object": "list",
"data": [
{
"object": "embedding",
"embedding": [
0.0023064255,
-0.009327292,
.... (1536 floats total for BAAI/bge-en-icl)
-0.0028842222,
],
"index": 0
}
],
"model": "BAAI/bge-en-icl",
"usage": {
"prompt_tokens": 8,
"total_tokens": 8
}
}
For detailed field descriptions, see the API reference.