U

text-embedding-3-small

4k ContextEmbeddingPopular

Unknown が提供する text-embedding-3-small モデル。4K のコンテキストをサポートし、Embedding タスクに最適です。

クイックスタート

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();

text-embedding-3-small の使い方は簡単です。OkRouterはOpenAI SDKと完全な互換性があるため、既存のライブラリを使ってすぐにアクセスできます。 text-embedding-3-small はOpenAI Chat Completions APIと完全に互換性があり、特徴として 標準コンテキスト処理 および Embedding のサポートがあります。

よくある質問

?text-embedding-3-small の料金はいくらですか?

入力は $0.02、出力は $0.02 です。為替レートの変動があるため、リアルタイムの料金表をご確認ください。

?text-embedding-3-small をどうやって呼び出しますか?

標準のOpenAI SDKを使用できます。baseURLを https://api.okrouter.com/v1 に設定し、APIキーを使用するだけです。

?text-embedding-3-small はどれくらいのコンテキストをサポートしていますか?

このモデルは 4K のコンテキストウィンドウをサポートしています。