U

text-embedding-3-small

4k ContextEmbeddingPopular

text-embedding-3-small with extremely cost-effective pricing. focused AI solutions.

Technical Specifications

Context Window
4K
Max Output
4,096 tokens
Knowledge Domain
Embedding, Embedding
Provider
Unknown

Quick Start Guide

example.tsTypeScript
import OpenAI from "openai";

const openai = new OpenAI({
  baseURL: "https://api.okrouter.com/v1",
  apiKey: "<YOUR_OKROUTER_KEY>",
});

async function main() {
  const completion = await openai.chat.completions.create({
    model: "text-embedding-3-small",
    messages: [
      { role: "user", content: "Hello! What can you do?" }
    ],
  });

  console.log(completion.choices[0].message);
}

main();

Getting started with text-embedding-3-small is easy. Since OkRouter is fully compatible with the OpenAI SDK, you can use existing libraries to access this model immediately. text-embedding-3-small is fully compatible with the OpenAI Chat Completions API. distinctive features include Standard context handling and Embedding support.