Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Xiaomi Chat API

The Chat API from Xiaomi — 1 operation(s) for chat.

Xiaomi Chat API is one of 8 APIs that Xiaomi publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Chat. The published artifact set on APIs.io includes an OpenAPI specification and API documentation.

This API exposes 1 operation across 1 path, and defines 3 schemas. It is described by OpenAPI 3.0.3, at version 1.0.0.

Requests are made against 3 base URLs: https://cnbj0.fds.api.xiaomi.com, https://awsbj0.fds.api.xiaomi.com, https://awssgp0.fds.api.xiaomi.com.

1 operations 1 paths 3 schemas 1 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.3
API Version
1.0.0
Base URL
https://open.account.xiaomi.com
Authentication
HTTP Custom
Resource Areas
1

Authentication & Security 1

Xiaomi Chat API declares 1 security scheme for authenticating requests. It uses HTTP custom authentication (hmacAuth). By default, every request must be authenticated.

  • hmacAuth — HMAC-based signature authentication. Requests must include a Date header and Authorization header with HMAC-SHA1 signature.

Paths & Operations 1

Across 1 path, the API surfaces 1 operation — 1 POST. Each is listed below with its method, path, parameters, and response codes.

Chat 1
POST
/v1/chat/completions
Create Chat Completion
createChatCompletion body → 200400401429

Schemas 3

The contract defines 3 schemas that model the data the API accepts and returns. The most detailed are ChatCompletionResponse (6 properties), ChatCompletionRequest (6 properties), ChatMessage (2 properties). Each schema is shown below with its type and property counts.

ChatCompletionRequest
object
6 properties 2 required
ChatCompletionResponse
object
6 properties
ChatMessage
object
2 properties 2 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

xiaomi-chat-api-openapi.yml Raw ↑

Other APIs Xiaomi publishes across the network.

Xiaomi Access Control API
Xiaomi Authentication API
Xiaomi CDN API
Xiaomi Models API
Xiaomi Multipart Upload API
Xiaomi Objects API
Xiaomi User API