LLM API
OpenAIEmbeddingsReleased January 25, 2024

Text Embedding 3 Small

Text Embedding 3 Small costs $0.02 per 1M input tokens on LLM API and returns 1536-dimension vectors, with an 8K-token input limit.

Pricing

Served by OpenAI, the only provider.

Text Embedding 3 Small prices on LLM API
Input$0.02per 1M tokens

Specifications

  • Dimensions1536
  • Max input8K tokens

Call Text Embedding 3 Small

POST /v1/embeddingsSet LLMAPI_KEY to your LLM API key.Embeddings docs

import os

from openai import OpenAI

client = OpenAI(
    base_url="https://api.llmapi.ai/v1",
    api_key=os.environ["LLMAPI_KEY"],
)

result = client.embeddings.create(model="text-embedding-3-small", input="Hello")
print(len(result.data[0].embedding))

Prices synced .

You've been invited to LLM API

Top up $50 or more and the friend who invited you gets $20 in credits. We pay the $20; your credits stay yours. Referral terms

Sign up