Create a model response
OpenAI Responses API-compatible endpoint. A successful non-streaming response uses the Responses object shape; when stream=true the endpoint returns Responses SSE events. A failed Responses object can use status=failed with error={code,message} even when the HTTP request itself completed.
- inputrequired
- Type: string
- Type: stringmodelrequired
- Type: array string[]include
- Type: stringinstructions
- Type: integermax
_output _tokens min:1Integer numbers.
- Type: objectmetadata
- propertyType: anything
Name
- Type: stringprevious
_response _id - Type: objectreasoning
- propertyType: anything
Name
- Type: booleanstore
- Type: booleanstream
- Type: numbertemperaturemin:0
- Type: objecttext
- propertyType: anything
Name
- Type: anythingproperty
Name
- tool
_choice - Type: string
- Type: array object[]tools
- propertyType: anything
Name
- Type: numbertop
_p min:0max:1 - Type: anythingproperty
Name
- Type: object · ResponsesResponse200
Response object or streaming response events
- Type: stringidrequired
- objectconst:responserequired
- Type: string enumstatusrequiredvalues
- completed
- failed
- in
_progress - cancelled
- queued
- incomplete
- Type: object · ResponsesErrorerror
- codeType: stringrequired
- messageType: stringrequired
- propertyType: anything
Name
- Type: objectmetadata
- propertyType: anything
Name
- Type: stringmodel
- Type: array object[]output
- propertyType: anything
Name
- Type: stringoutput
_text - Type: object · Usageusage
Provider usage object. Fields vary by endpoint and provider.
- propertyType: anything
Name
- Type: anythingproperty
Name
- Type: object · OpenAIErrorResponse400
Invalid request, model, or provider mapping
OpenAI-compatible error envelope. The Router may include code and message without all optional upstream fields.
- Type: objecterrorrequired
- messageType: stringrequired
- codeType: string | null
- paramType: string | null
- typeType: string
OpenAI-compatible error type when supplied.
- propertyType: anything
Name
- Type: anythingproperty
Name
application/json - Type: object · OpenAIErrorResponse401
Invalid or missing Felo API key
OpenAI-compatible error envelope. The Router may include code and message without all optional upstream fields.
- Type: objecterrorrequired
- messageType: stringrequired
- codeType: string | null
- paramType: string | null
- typeType: string
OpenAI-compatible error type when supplied.
- propertyType: anything
Name
- Type: anythingproperty
Name
application/json - Type: object · OpenAIErrorResponse402
Insufficient balance
OpenAI-compatible error envelope. The Router may include code and message without all optional upstream fields.
- Type: objecterrorrequired
- messageType: stringrequired
- codeType: string | null
- paramType: string | null
- typeType: string
OpenAI-compatible error type when supplied.
- propertyType: anything
Name
- Type: anythingproperty
Name
application/json - Type: object · OpenAIErrorResponse403
Account is not permitted to use the model. Disabled models are also rejected before upstream calls. Existing accepted requests and tasks continue.
OpenAI-compatible error envelope. The Router may include code and message without all optional upstream fields.
- Type: objecterrorrequired
- messageType: stringrequired
- codeType: string | null
- paramType: string | null
- typeType: string
OpenAI-compatible error type when supplied.
- propertyType: anything
Name
- Type: anythingproperty
Name
application/json - Type: object · OpenAIErrorResponse429
Spending or request limit reached
OpenAI-compatible error envelope. The Router may include code and message without all optional upstream fields.
- Type: objecterrorrequired
- messageType: stringrequired
- codeType: string | null
- paramType: string | null
- typeType: string
OpenAI-compatible error type when supplied.
- propertyType: anything
Name
- Type: anythingproperty
Name
application/json - Type: object · OpenAIErrorResponse502
Upstream provider request failed
OpenAI-compatible error envelope. The Router may include code and message without all optional upstream fields.
- Type: objecterrorrequired
- messageType: stringrequired
- codeType: string | null
- paramType: string | null
- typeType: string
OpenAI-compatible error type when supplied.
- propertyType: anything
Name
- Type: anythingproperty
Name
application/json - Type: object · OpenAIErrorResponse503
Provider or billing service unavailable
OpenAI-compatible error envelope. The Router may include code and message without all optional upstream fields.
- Type: objecterrorrequired
- messageType: stringrequired
- codeType: string | null
- paramType: string | null
- typeType: string
OpenAI-compatible error type when supplied.
- propertyType: anything
Name
- Type: 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"
}