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

    ChatCompletion

    {
        "id": "string",
        "object": "chat.completion",
        "created": 0,
        "model": "openai/gpt-5-mini",
        "system_fingerprint": "string",
        "service_tier": "string",
        "choices": [
            {
                "index": 0,
                "message": {
                    "role": "assistant",
                    "content": "string",
                    "tool_calls": [
                        {
                            "id": "string",
                            "type": "function",
                            "function": {
                                "name": "string",
                                "arguments": "string"
                            }
                        }
                    ],
                    "reasoning_content": "string",
                    "reasoning_details": [
                        null
                    ],
                    "function_call": {}
                },
                "finish_reason": "stop",
                "logprobs": {
                    "content": [
                        {
                            "top_logprobs": [
                                {
                                    "token": "string",
                                    "logprob": 0,
                                    "bytes": [
                                        0
                                    ]
                                }
                            ],
                            "token": "string",
                            "logprob": 0,
                            "bytes": [
                                0
                            ]
                        }
                    ],
                    "refusal": null
                }
            }
        ],
        "usage": {
            "prompt_tokens": 0,
            "completion_tokens": 0,
            "total_tokens": 0,
            "prompt_tokens_details": {
                "cached_tokens": 0
            },
            "completion_tokens_details": {
                "reasoning_tokens": 0
            }
        },
        "debug": {
            "normalizations": [
                {
                    "param": "string",
                    "action": "add",
                    "before": null,
                    "after": null
                }
            ],
            "deprecations": [
                {
                    "param": "string",
                    "message": "string"
                }
            ],
            "routing": [
                {
                    "provider": "string",
                    "region": "string",
                    "status": "failed",
                    "target": "string"
                }
            ]
        }
    }
    Built with