AI GatewayがOpenAIのResponses APIをサポート
VercelのAI GatewayがOpenAIのResponses APIをサポートし、開発者はAI SDKやChat Completions APIを介さずに直接Responses APIを利用できるようになった。
キーポイント
Responses APIの直接サポート開始
AI GatewayがOpenAIのResponses APIを直接サポートするようになり、開発者はAI SDKやChat Completions APIを介さずにResponses APIを利用できる。
主要機能の提供
テキスト生成・ストリーミング、ツール呼び出し、構造化出力、推論レベルの制御など、Responses APIの主要機能が利用可能。
簡単な導入方法
OpenAI SDKをインストールし、ベースURLをAI Gatewayに向けるだけで、TypeScriptとPythonの両方で利用可能。
Chat Completions APIの代替として位置付け
Responses APIはChat Completions APIの現代的代替として提供されており、既存の機能はAI Gateway経由ですでに利用可能だった。
影響分析・編集コメントを表示
影響分析
この発表は、AI Gatewayの機能拡張として開発者に追加の選択肢を提供するが、根本的に新しい機能ではなく、既存機能へのアクセス方法の追加に過ぎない。VercelとOpenAIの連携強化を示す一方、業界全体への大きな影響は限定的と言える。
編集コメント
VercelのAI GatewayがOpenAIのResponses APIを直接サポート開始したが、既存のAI SDK経由でも同機能は利用可能だったため、実質的には開発者向けの利便性向上に留まる。業界全体への影響は中程度。
AI GatewayがOpenAIのResponses APIをサポート
AI Gatewayを通じて、OpenAIのResponses APIが利用可能になりました。Responses APIは、Chat Completions APIの現代的代替手段です。OpenAI SDKのベースURLをAI Gatewayに向け、クリエイター/モデル名を使用してリクエストをルーティングしてください。TypeScriptとPythonの両方がサポートされています。Responses APIのすべての機能は、AI SDKとChat Completions APIを通じて既にAI Gatewayからアクセス可能でしたが、現在はResponses APIを直接使用できるようになりました。
できること
- テキスト生成とストリーミング: プロンプトを送信し、応答を取得、トークンが到着次第ストリーミング
- ツール呼び出し: モデルが呼び出せる関数を定義し、結果をフィードバック
- 構造化出力: 応答をJSONスキーマに制約
- 推論: 設定可能な努力レベルで、モデルの思考に費やす労力を制御
はじめに
OpenAI SDKをインストールし、AI Gatewayに向けます。
基本的な例: テキスト生成
プロンプトを送信し、サポートされている任意のモデルから応答を取得します。
推論を伴う構造化出力
努力レベルとJSONスキーマを組み合わせて、構造化された応答を取得します。
Responses APIについて詳しくは、ドキュメントをご覧ください。
Read more
原文を表示
OpenAI's Responses API is now available through AI Gateway. The Responses API is a modern alternative to the Chat Completions API. Point your OpenAI SDK to AI Gateway's base URL and use the creator/model names to route requests. TypeScript and Python are both supported. All of the functionality in the Responses API was already accessible through AI Gateway via the AI SDK and Chat Completions API, but you can now use the Responses API directly.
What you can do
Text generation and streaming: Send prompts, get responses, stream tokens as they arrive
Tool calling: Define functions the model can invoke, then feed results back
Structured output: Constrain responses to a JSON schema
Reasoning: Control how much effort the model spends thinking with configurable effort levels
Getting started
Install the OpenAI SDK and point it at AI Gateway.
Basic example: text generation
Send a prompt and get a response from any supported model.
Structured output with reasoning
Combine reasoning levels with a JSON schema to get structured responses.
To learn more about the Responses API, read the documentation.
Read more
関連記事
今日のまとめ
AI日報で今日の重要ニュースをまとめ読み