Sionic Opengateway
  1. Apis
Sionic Opengateway
  • Overview
    • Getting Started With OpenGateway
    • Model Compatible
  • Apis
    • /chat/completions
      POST
  1. Apis

/chat/completions

POST
/chat/completions

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Header Params

Body Params application/json

Example
{
    "model": "string",
    "messages": [
        {
            "role": "system",
            "content": "string",
            "name": "string",
            "tool_calls": "string",
            "tool_call_id": "string"
        }
    ],
    "frequency_penalty": -2,
    "max_tokens": 0,
    "n": 0,
    "presence_penalty": -2,
    "response_format": "string",
    "seed": 0,
    "stop": [
        "string"
    ],
    "stream": false,
    "temperature": 0,
    "top_p": 0,
    "tools": [
        {
            "type": "string",
            "function": {
                "description": "string",
                "name": "string",
                "parameters": {
                    "type": "string",
                    "properties": {},
                    "required": [
                        "string"
                    ],
                    "additionalProperties": true
                },
                "strict": false
            }
        }
    ]
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/chat/completions' \
--header 'x-opengateway-failover-sequence;' \
--header 'x-opengateway-vllm-endpoint;' \
--header 'x-opengateway-vllm-api-key;' \
--header 'x-opengateway-timeout;' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "model": "string",
    "messages": [
        {
            "role": "system",
            "content": "string",
            "name": "string",
            "tool_calls": "string",
            "tool_call_id": "string"
        }
    ],
    "frequency_penalty": -2,
    "max_tokens": 0,
    "n": 0,
    "presence_penalty": -2,
    "response_format": "string",
    "seed": 0,
    "stop": [
        "string"
    ],
    "stream": false,
    "temperature": 0,
    "top_p": 0,
    "tools": [
        {
            "type": "string",
            "function": {
                "description": "string",
                "name": "string",
                "parameters": {
                    "type": "string",
                    "properties": {},
                    "required": [
                        "string"
                    ],
                    "additionalProperties": true
                },
                "strict": false
            }
        }
    ]
}'

Responses

๐ŸŸข201Created
application/json
201
Body

Example
{}
๐ŸŸข201Created
๐ŸŸ 400Bad Request
Modified atย 2025-08-05 08:15:03
Previous
Model Compatible
Built with