curl --request POST \
--url https://api.omniall.ai/v1/responses \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "gpt-5",
"input": "Explain Kubernetes in one paragraph"
}
'{
"id": "<string>",
"object": "response",
"created_at": 123,
"status": "completed",
"model": "<string>",
"output": [
{
"type": "<string>",
"id": "<string>",
"status": "<string>",
"role": "<string>",
"content": [
{
"type": "<string>",
"text": "<string>"
}
]
}
],
"usage": {
"input_tokens": 123,
"output_tokens": 123,
"total_tokens": 123
}
}{
"error": {
"message": "<string>",
"type": "new_api_error",
"code": "<string>"
}
}{
"error": {
"message": "无效的令牌 (request id: ...)",
"type": "new_api_error",
"code": ""
}
}{
"error": {
"message": "<string>",
"type": "new_api_error",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "new_api_error",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "new_api_error",
"code": "<string>"
}
}Responses
Responses API
OpenAI Responses API relayed by Omniall AI.
Base path: POST https://api.omniall.ai/v1/responses
Prefer this format for newer OpenAI models, built-in tools (web search), and multi-turn previous_response_id flows.
Scenarios
- Vision / files:
inputitemsinput_image/input_file - Web search: built-in tool
{ "type": "web_search_preview" } - Agent: function tools in
tools - Reasoning:
reasoning.effort
Official reference: https://platform.openai.com/docs/api-reference/responses
POST
/
v1
/
responses
curl --request POST \
--url https://api.omniall.ai/v1/responses \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "gpt-5",
"input": "Explain Kubernetes in one paragraph"
}
'{
"id": "<string>",
"object": "response",
"created_at": 123,
"status": "completed",
"model": "<string>",
"output": [
{
"type": "<string>",
"id": "<string>",
"status": "<string>",
"role": "<string>",
"content": [
{
"type": "<string>",
"text": "<string>"
}
]
}
],
"usage": {
"input_tokens": 123,
"output_tokens": 123,
"total_tokens": 123
}
}{
"error": {
"message": "<string>",
"type": "new_api_error",
"code": "<string>"
}
}{
"error": {
"message": "无效的令牌 (request id: ...)",
"type": "new_api_error",
"code": ""
}
}{
"error": {
"message": "<string>",
"type": "new_api_error",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "new_api_error",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "new_api_error",
"code": "<string>"
}
}Authorizations
Use Authorization: Bearer sk-... from https://omniall.ai/dashboard
Body
application/json
OpenAI Responses API request (POST /v1/responses). Prefer this for newer OpenAI models and built-in tools.
Text format configuration (including structured output / json_schema when supported).
Response
Response object (or SSE events when streaming).
Responses API result object.