1. Apis
Sionic Opengateway
  • Default module
    • Overview
      • Getting Started With OpenGateway
      • Model Compatible
    • Apis
      • /chat/completions
        POST
      • /v1/chat/completions
        POST
  • og-onprem
    • Chat Completions
      • 채팅 완성 생성
    • Responses
      • 모델 응답 생성
    • Messages
      • 메시지 생성(Anthropic Messages 형식)
    • Embeddings
      • 임베딩 생성
    • Images
      • 이미지 생성
      • 이미지 편집
    • Models
      • 모델 목록 조회
    • Schemas
      • ModelId
      • DebugCategory
      • FallbackModels
      • DebugCategories
      • Extra
      • Debug
      • OpenAIError
      • OpenAIErrorResponse
      • AnthropicErrorResponse
      • CacheControl
      • ChatContentPart
      • ChatTextPart
      • ChatImagePart
      • ToolCall
      • ChatMessage
      • FunctionDefinition
      • ChatTool
      • ToolChoice
      • ChatCompletionRequest
      • ChatCompletionUsage
      • LogprobToken
      • ChatCompletion
      • ChatCompletionChunk
      • ResponsesInputItem
      • ResponsesMessageItem
      • ResponsesFunctionCallItem
      • ResponsesFunctionCallOutputItem
      • ResponsesTool
      • ResponsesRequest
      • ResponseObject
      • MessagesRequest
      • AnthropicMessage
      • EmbeddingsRequest
      • EmbeddingsResponse
      • ImageGenerationRequest
      • ImageEditRequest
      • ImagesResponse
      • ModelStatus
      • CatalogEndpoint
      • Model
      • ModelList
  1. Apis

/v1/chat/completions

Developing
POST
/v1/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 '/v1/chat/completions' \
--header 'x-opengateway-vllm-endpoint;' \
--header 'x-opengateway-vllm-api-key;' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
    "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

🟢200Created
text/event-stream
Bodytext/event-stream

Example
null
🟢200Created
🟠400Bad Request
Modified at 2025-11-24 17:20:14
Previous
/chat/completions
Next
채팅 완성 생성
Built with