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

    AnthropicMessage

    Anthropic Message shape. id is rewritten to the gateway request ID and model to the public catalog ID; other fields follow the provider response.

    {
        "id": "string",
        "type": "message",
        "role": "assistant",
        "model": "openai/gpt-5-mini",
        "content": [
            {
                "type": "string",
                "property1": "string",
                "property2": "string"
            }
        ],
        "stop_reason": "string",
        "stop_sequence": "string",
        "usage": {
            "input_tokens": 0,
            "output_tokens": 0,
            "property1": "string",
            "property2": "string"
        },
        "property1": "string",
        "property2": "string"
    }
    Built with