主力 embedding (1536 dim)
Model ID: text-embedding-3-small · Type: embedding · Provider: OpenAI
Endpoints: /v1/embeddings
| Input (per 1M tokens) | $0.0143 USD |
from openai import OpenAI
client = OpenAI(api_key="sk-...", base_url="https://api.router.ai/v1")
resp = client.embeddings.create(model="text-embedding-3-small", input="hello world")
print(len(resp.data[0].embedding))Text Embedding 3 Small (`text-embedding-3-small`) is billed per usage at $0.022 / 1M tokens in · None / 1M tokens out, in USD. Current pricing is always listed at https://openbat.ai/models/text-embedding-3-small.
Send a request to https://api.router.ai/v1/v1/embeddings with the header `Authorization: Bearer <your API key>` and `"model": "text-embedding-3-small"`. The API is OpenAI-compatible, so any OpenAI SDK works by changing base_url to https://api.router.ai/v1 — no other code change.
Text Embedding 3 Small accepts up to 8,192 input tokens. Requests exceeding the input limit are rejected before reaching the model.
Text Embedding 3 Small is a embedding model from OpenAI, available through the openbat.ai gateway with the same API key as every other model.
Call it through the openbat.ai OpenAI-compatible endpoint (API base: https://api.router.ai/v1). AI agents can discover and call every model on this gateway through MCP (https://mcp.router.ai/mcp) with no manual integration.