Sionic Opengateway
    • Default module
      • Overview
        • Getting Started With OpenGateway
        • Model Compatible
      • Apis
        • /chat/completions
        • /v1/chat/completions
    • og-onprem
      • Chat Completions
        • Create chat completion
      • Responses
        • Create a model response
      • Messages
        • Create a message (Anthropic Messages format)
      • Embeddings
        • Create embeddings
      • Images
        • Create image
        • Edit image
      • Models
        • List 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

    ChatCompletionRequest

    {
        "model": "openai/gpt-5-mini",
        "messages": [
            {
                "role": "system",
                "content": "string",
                "name": "string",
                "tool_calls": [
                    {
                        "id": "string",
                        "type": "function",
                        "function": {
                            "name": "string",
                            "arguments": "string"
                        }
                    }
                ],
                "tool_call_id": "string",
                "reasoning_content": "string",
                "reasoning_details": [
                    null
                ],
                "cache_control": {
                    "type": "ephemeral",
                    "ttl": "string"
                }
            }
        ],
        "temperature": 1,
        "top_p": 1,
        "max_tokens": 0,
        "max_completion_tokens": 0,
        "stream": false,
        "stream_options": {
            "include_usage": true
        },
        "frequency_penalty": 0,
        "presence_penalty": 0,
        "stop": "string",
        "seed": 0,
        "logprobs": false,
        "top_logprobs": 0,
        "tools": [
            {
                "type": "function",
                "function": {
                    "name": "string",
                    "description": "string",
                    "parameters": {
                        "property1": "string",
                        "property2": "string"
                    }
                }
            }
        ],
        "tool_choice": "none",
        "response_format": {
            "type": "text",
            "property1": "string",
            "property2": "string"
        },
        "reasoning_effort": "none",
        "user": "string",
        "n": 1,
        "parallel_tool_calls": true,
        "service_tier": "auto",
        "store": true,
        "metadata": {
            "property1": "string",
            "property2": "string"
        },
        "logit_bias": {
            "property1": -100,
            "property2": -100
        },
        "thinking_config": {
            "property1": "string",
            "property2": "string"
        },
        "safety_settings": [
            {
                "property1": "string",
                "property2": "string"
            }
        ],
        "extra": {
            "fallbacks": [
                "openai/gpt-5-mini"
            ],
            "normalize": true,
            "debug": [
                "normalizations"
            ]
        }
    }
    Built with