> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mixroute.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Text Embedding 3 Small

> Text Embedding 3 Small: テキスト埋め込みモデル。MixRouteでのリクエスト例とパラメータ。

Text Embedding 3 Smallは、OpenAIのテキスト埋め込みモデルです。

以下のエンドポイントを使用し、MixRouteを通じて`text-embedding-3-small`を呼び出します。

## 主な機能

* 埋め込みベクトル - テキストを数値ベクトルに変換します
* バッチ入力 - 文字列または文字列の配列を受け付ける
* 類似性を利用するワークフロー - 検索やクラスタリングにベクトルを使用します

## 簡単な使用例

<Tabs>
  <Tab title="cURL">
    ```bash theme={null}
    curl "https://api.mixroute.ai/v1/embeddings" \
      -H "Authorization: Bearer YOUR_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
      "model": "text-embedding-3-small",
      "input": "MixRoute model API"
    }'
    ```
  </Tab>

  <Tab title="Python">
    ```python theme={null}
    import requests

    response = requests.post(
        "https://api.mixroute.ai/v1/embeddings",
        headers={"Authorization": "Bearer YOUR_API_KEY"},
        json={'model': 'text-embedding-3-small', 'input': 'MixRoute model API'},
    )

    print(response.json())
    ```
  </Tab>
</Tabs>

## パラメータ

| パラメーター | 型 | 必須 | 説明 |
| - | - | - | - |
| `model` | string | はい | `text-embedding-3-small`である必要があります。 |
| `input` | string \| array | はい | 埋め込みを生成するテキストまたはテキスト配列。 |
| `dimensions` | integer | いいえ | 対応している場合に要求する出力の次元数。 |
| `encoding_format` | string | いいえ | 埋め込みのエンコード形式。 |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.