openapi: 3.0.3 info: title: Xiaomi Galaxy FDS Access Control Chat API description: Xiaomi Galaxy File Data Storage (FDS) is a cloud object storage service providing a RESTful API for managing files and objects. It supports bucket management, object CRUD operations, access control lists, multipart uploads, and CDN prefetch/refresh operations across multiple regional data centers. version: 1.0.0 contact: name: Xiaomi FDS Support url: https://docs.api.xiaomi.com/en/fds/ servers: - url: https://cnbj0.fds.api.xiaomi.com description: China Beijing region - url: https://awsbj0.fds.api.xiaomi.com description: China Beijing region (AWS) - url: https://awssgp0.fds.api.xiaomi.com description: Singapore region security: - hmacAuth: [] tags: - name: Chat paths: /v1/chat/completions: post: operationId: createChatCompletion summary: Create Chat Completion description: Creates a chat completion response from the specified MiMo model. The API is OpenAI-compatible and supports streaming, function calling, and multi-turn conversations. Available models include mimo-v2.5-pro, mimo-v2.5, mimo-v2-pro, mimo-v2-omni, mimo-v2-flash, and TTS variants. tags: - Chat requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ChatCompletionRequest' responses: '200': description: Chat completion returned successfully. content: application/json: schema: $ref: '#/components/schemas/ChatCompletionResponse' '400': description: Bad request. Invalid parameters. '401': description: Unauthorized. Invalid API key. '429': description: Rate limit exceeded. components: schemas: ChatCompletionRequest: type: object required: - model - messages properties: model: type: string description: 'The MiMo model to use. Options include: mimo-v2.5-pro, mimo-v2.5, mimo-v2.5-tts, mimo-v2-pro, mimo-v2-omni, mimo-v2-flash.' example: mimo-v2.5-pro messages: type: array description: The conversation history as a list of messages. items: $ref: '#/components/schemas/ChatMessage' temperature: type: number minimum: 0 maximum: 2 description: Sampling temperature. Higher values increase randomness. max_tokens: type: integer description: Maximum number of tokens to generate. stream: type: boolean default: false description: If true, returns partial message deltas via server-sent events. top_p: type: number minimum: 0 maximum: 1 description: Nucleus sampling probability mass. ChatCompletionResponse: type: object properties: id: type: string description: Unique completion identifier. object: type: string example: chat.completion created: type: integer description: Unix timestamp of creation. model: type: string description: Model used for the completion. choices: type: array items: type: object properties: index: type: integer message: $ref: '#/components/schemas/ChatMessage' finish_reason: type: string enum: - stop - length - tool_calls usage: type: object properties: prompt_tokens: type: integer completion_tokens: type: integer total_tokens: type: integer ChatMessage: type: object required: - role - content properties: role: type: string enum: - system - user - assistant - tool description: The role of the message author. content: type: string description: The content of the message. securitySchemes: hmacAuth: type: http scheme: custom description: HMAC-based signature authentication. Requests must include a Date header and Authorization header with HMAC-SHA1 signature.