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

# Text

> OpenAI互換テキストHTTP統合。

> このセクションは、チャット、複数ターンの会話、エージェント、および構造化テキストの出力に使用します。

## エンドポイントリスト

* [/v1/chat/completions](/ja/api-reference/endpoints/openai/chat-completions)
* [/v1/responses](/ja/api-reference/endpoints/openai/responses)

## いつどれを使うか

* 従来のチャット補完クライアントには `chat.completions` を使用してください
* テキスト、構造化された出力、および将来のマルチモーダル拡張のためのより統合されたインターフェイスが必要な場合は、`responses` を使用してください。

## メモをリクエストする

* `Authorization: Bearer {API_KEY}`で認証する
* `chat.completions`は`messages`を中心にしています
* `responses`は`input`、`instructions`、`response_format`を中心にしています。

## 回答メモ

* `chat.completions` は通常、`choices[0].message.content` から読み取ります
* `responses` は通常、`output_text` または `output[]` から読み取ります。
* ストリーミング クライアントは、SSE チャンクを段階的に処理する必要があります。

## レガシーページ

* [OpenAI テキスト互換性ページ](/ja/api-reference/text/openai)
