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

Kimi (Moonshot AI) Batch API

The Batch API from Kimi (Moonshot AI) — 3 operation(s) for batch.

Kimi (Moonshot AI) Batch API is one of 13 APIs that Kimi (Moonshot AI) publishes on the APIs.io network, described by a machine-readable OpenAPI specification and an AsyncAPI event-driven specification.

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

This API exposes 4 operations across 3 paths, and defines 5 schemas. It is described by OpenAPI 3.1.0, at version 1.0.0.

Requests are made against a single base URL, https://api.moonshot.cn.

4 operations 3 paths 5 schemas 2 GET2 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
1.0.0
Base URL
https://api.moonshot.cn/v1/chat/completions
Authentication
HTTP Bearer
Resource Areas
1

Authentication & Security 1

Kimi (Moonshot AI) Batch API declares 1 security scheme for authenticating requests. It accepts HTTP bearer tokens (bearerAuth).

  • bearerAuth — Authorization 请求头需要一个 Bearer 令牌。使用 MOONSHOTAPIKEY 作为令牌。这是一个服务端密钥,请在 [API 密钥页面](https://platform.kimi.com/console/api-keys) 生成。

Paths & Operations 4

Across 3 paths, the API surfaces 4 operations — 2 GET, 2 POST. Each is listed below with its method, path, parameters, and response codes.

Batch 4
POST
/v1/batches
创建批处理任务
body → 200400401500
GET
/v1/batches
列出批处理任务
2 params → 200401500
GET
/v1/batches/{batch_id}
获取批处理任务详情
1 param → 200401404500
POST
/v1/batches/{batch_id}/cancel
取消批处理任务
1 param → 200400401404500

Schemas 5

The contract defines 5 schemas that model the data the API accepts and returns. The most detailed are BatchObject (18 properties), BatchCreateRequest (4 properties), BatchRequestCounts (3 properties), BatchListResponse (3 properties). Each schema is shown below with its type and property counts.

BatchListResponse
object
3 properties 2 required
ErrorResponse
object
1 property 1 required
BatchObject
object
18 properties 8 required
BatchCreateRequest
object
4 properties 3 required
BatchRequestCounts
object
3 properties 3 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

kimi-moonshot-batch-api-openapi.yml Raw ↑

Other APIs Kimi (Moonshot AI) publishes across the network.

Kimi Embeddings API
Kimi Files API
Kimi Fine-Tuning API
Kimi Models API
Kimi Tokenizer API
Kimi Assistant (kimi.com)
Moonshot Open-Weights Releases
Kimi (Moonshot AI) Billing API
Kimi (Moonshot AI) Chat API
Kimi (Moonshot AI) Files API
Kimi (Moonshot AI) Models API
Kimi (Moonshot AI) Utilities API