モデルレスポンスを作成
OpenAI Responses API 互換のエンドポイントです。非ストリーミングで成功したレスポンスは Responses オブジェクトの形式を使用します。stream=true の場合、エンドポイントは Responses の SSE イベントを返します。失敗した Responses オブジェクトは、HTTP リクエスト自体が完了した場合でも status=failed と error={code,message} を使用できます。
- 型: stringX
- Felo - Channel カンマ区切りの公開チャンネルコード(順序どおり)。このヘッダーを省略すると default が使われ、default は単独でのみ使用できます。ウォレットモードでは、default はモデルの有効な公開チャンネル順を逆から走査し、未公開または利用不可のチャンネルをスキップして、最初に利用可能なチャンネルのプロバイダーを選択します。そのプロバイダーから、同じ上流モデル ID とサービスティアを持つ利用可能なエンドポイントを含めます。明示的なチャンネルはクライアントが指定した順序で検証され、最初のチャンネルのプロバイダーグループのみが送信されます。他のプロバイダーへの自動フォールバックはありません。従来のプロバイダーヘッダーでチャンネルルーティングを上書きすることはできません。
- input必須
Reference a Felo PDF with input_file.file_id or an uploaded image with input_image.file_id in a message content array. The model must be enabled for the attachment type. The combined limit for Felo file references is 50 MB per request. PDF file_url/file_data and image_url (HTTPS or a data URL) use the native format.
- 型: string
Reference a Felo PDF with input_file.file_id or an uploaded image with input_image.file_id in a message content array. The model must be enabled for the attachment type. The combined limit for Felo file references is 50 MB per request. PDF file_url/file_data and image_url (HTTPS or a data URL) use the native format.
- 型: stringmodel必須
- 型: array string[]include
- 型: stringinstructions
- 型: integermax
_output _tokens 最小値:1Integer numbers.
- 型: objectmetadata
- property型: anything
Name
- 型: stringprevious
_response _id - 型: objectreasoning
- property型: anything
Name
- 型: string | nullservice
_tier 現在は default(standard)のみをサポートしています。省略、null、エイリアス、未対応の文字列は default にフォールバックし、それ以外のタイプは HTTP 400 を返します。設定済みのチャンネルと料金は変わりません。テキスト API はプロバイダーの標準値を使用し、Decisions と生成 API は上流のフィールドを省略します。
- 型: booleanstore
- 型: booleanstream
- 型: numbertemperature最小値:0
- 型: anythingproperty
Name
- 型: objecttext
- property型: anything
Name
- tool
_choice - 型: string
- 型: array object[]tools
- property型: anything
Name
- 型: numbertop
_p 最小値:0最大値:1 - 型: anythingproperty
Name
- 型: object · ResponsesResponse200
レスポンスオブジェクト、またはストリーミングレスポンスイベント
- 型: stringid必須
- object定数:response必須
- 型: string 列挙値status必須値
- completed
- failed
- in
_progress - cancelled
- queued
- incomplete
- 型: object · ResponsesErrorerror
- code型: string必須
- message型: string必須
- property型: anything
Name
- 型: objectmetadata
- property型: anything
Name
- 型: stringmodel
- 型: array object[]output
- property型: anything
Name
- 型: stringoutput
_text - 型: object · Usageusage
プロバイダーの usage オブジェクト。フィールドはエンドポイントとプロバイダーによって異なります。
- property型: anything
Name
- 型: anythingproperty
Name
- 型: object · OpenAIErrorResponse400
無効なリクエスト、モデル、またはプロバイダーマッピング
OpenAI 互換のエラーエンベロープ。Router は、上流の任意フィールドをすべて含めずに code と message を返す場合があります。
- 型: objecterror必須
- message型: string必須
- code型: string | null
- param型: string | null
- type型: string
指定された場合の OpenAI 互換のエラータイプ。
- property型: anything
Name
- 型: anythingproperty
Name
application/json - 型: object · OpenAIErrorResponse401
Felo APIキーが無効または未指定です
OpenAI 互換のエラーエンベロープ。Router は、上流の任意フィールドをすべて含めずに code と message を返す場合があります。
- 型: objecterror必須
- message型: string必須
- code型: string | null
- param型: string | null
- type型: string
指定された場合の OpenAI 互換のエラータイプ。
- property型: anything
Name
- 型: anythingproperty
Name
application/json - 型: object · OpenAIErrorResponse402
残高不足
OpenAI 互換のエラーエンベロープ。Router は、上流の任意フィールドをすべて含めずに code と message を返す場合があります。
- 型: objecterror必須
- message型: string必須
- code型: string | null
- param型: string | null
- type型: string
指定された場合の OpenAI 互換のエラータイプ。
- property型: anything
Name
- 型: anythingproperty
Name
application/json - 型: object · OpenAIErrorResponse403
アカウントにこのモデルの使用権限がありません。無効化されたモデルも上流呼び出しの前に拒否されます。既に受け付けたリクエストとタスクは継続します。
OpenAI 互換のエラーエンベロープ。Router は、上流の任意フィールドをすべて含めずに code と message を返す場合があります。
- 型: objecterror必須
- message型: string必須
- code型: string | null
- param型: string | null
- type型: string
指定された場合の OpenAI 互換のエラータイプ。
- property型: anything
Name
- 型: anythingproperty
Name
application/json - 型: object · OpenAIErrorResponse429
支出上限またはリクエスト上限に達しました
OpenAI 互換のエラーエンベロープ。Router は、上流の任意フィールドをすべて含めずに code と message を返す場合があります。
- 型: objecterror必須
- message型: string必須
- code型: string | null
- param型: string | null
- type型: string
指定された場合の OpenAI 互換のエラータイプ。
- property型: anything
Name
- 型: anythingproperty
Name
application/json - 型: object · OpenAIErrorResponse502
上流プロバイダーへのリクエストに失敗しました
OpenAI 互換のエラーエンベロープ。Router は、上流の任意フィールドをすべて含めずに code と message を返す場合があります。
- 型: objecterror必須
- message型: string必須
- code型: string | null
- param型: string | null
- type型: string
指定された場合の OpenAI 互換のエラータイプ。
- property型: anything
Name
- 型: anythingproperty
Name
application/json - 型: object · OpenAIErrorResponse503
プロバイダーまたは請求サービスが利用できません
OpenAI 互換のエラーエンベロープ。Router は、上流の任意フィールドをすべて含めずに code と message を返す場合があります。
- 型: objecterror必須
- message型: string必須
- code型: string | null
- param型: string | null
- type型: string
指定された場合の OpenAI 互換のエラータイプ。
- property型: anything
Name
- 型: anythingproperty
Name
application/json
curl https://openapi.felo.ai/api/v1/responses \
--request POST \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--data '{
"model": "gpt-5.5",
"input": "Explain why the sky is blue in one sentence.",
"stream": false
}'
{
"id": "string",
"object": "response",
"status": "completed",
"output": [
{
"additionalProperty": "anything"
}
],
"output_text": "string",
"error": {
"code": "string",
"message": "string",
"additionalProperty": "anything"
},
"usage": {
"additionalProperty": "anything"
},
"model": "string",
"metadata": {
"additionalProperty": "anything"
},
"additionalProperty": "anything"
}