Skip to main content
POST
Create an Agent

Headers

kimi-api-version
enum<string>

API version for this request, in YYYY-MM-DD form. Send 2026-09-01-beta for the version documented here. Required outside /v1/files*: a missing header there is rejected with 400 invalid_request_error; on /v1/files* its absence selects the compatibility behavior. An unknown value is rejected with 400 invalid_request_error on every endpoint. API versions served by the platform. New dated versions are added as they ship; a version is removed after its announced Sunset date.

Available options:
2026-09-01-beta
Idempotency-Key
string

Optional idempotency key. Reusing the same key with the same request target, API version, and body replays the first response for 24 hours. Reusing it with a different target, API version, or body, or while the first request is still being processed, returns 409.

Body

application/json

Configuration for the new Agent, including its model and any execution settings.

Configuration used to create an Agent and its first immutable version.

name
string
required

Display name for the Agent.

Required string length: 1 - 256
Example:

"Example Agent"

model
required

Model the Agent uses.

Example:

"kimi-example"

description
string

Description of the Agent.

Maximum string length: 2048
Example:

"An Agent for data analysis tasks."

system
string

System prompt that guides the Agent.

Maximum string length: 100000
Example:

"You are a helpful coding assistant."

tools
(Agent toolset · object | Custom tool · object | MCP toolset · object)[]

Tools the Agent can use. If no agent_toolset is included, agent_toolset_20261101 is prepended to tools (counting toward the 128-item limit). At most one sandbox toolset is allowed.

Maximum array length: 128

Declaration of a built-in toolset for an Agent. If the same name appears more than once, only the first declaration is used, including its default_config and configs; later declarations are not merged.

Example:
mcp_servers
object[]

MCP servers the Agent can use. Each name must be unique.

Maximum array length: 20
Example:
skills
object[]

Skills the Agent can use.

Example:
plugins
object[]

Plugins the Agent can use.

Example:
metadata
object

Caller-defined metadata with up to 16 entries.

Example:
multiagent
object

Configuration that allows the Agent to create child Threads.

Example:

Response

The new Agent and its first immutable version.

The current immutable configuration of an Agent.

id
string
required

Agent ID.

Example:

"agent_01h455vb4pex5vsknk084sn02q"

name
string
required

Display name of the Agent.

Example:

"Example Agent"

model
required

Model used by the Agent.

Example:
version
string
required

Current immutable version of the agent.

Example:

"1"

created_at
string<date-time>
required

Creation timestamp.

Example:

"2026-01-01T00:00:00Z"

updated_at
string<date-time>
required

Time when the Agent was last updated.

Example:

"2026-01-01T00:00:00Z"

scope
enum<string>
required

Visibility scope.

Available options:
official,
org,
project,
user
Example:

"project"

description
string

Description of the Agent.

Example:

"An Agent for data analysis tasks."

system
string

System prompt that guides the Agent.

Example:

"You are a helpful coding assistant."

tools
(Agent toolset · object | Custom tool · object | MCP toolset · object)[]

Tools the Agent can use.

Declaration of a built-in toolset for an Agent. If the same name appears more than once, only the first declaration is used, including its default_config and configs; later declarations are not merged.

Example:
mcp_servers
object[]

MCP servers the Agent can use.

Example:
skills
object[]

Skill versions available to the Agent. Empty versions are frozen at write time; "latest" is kept as-is and re-resolved on every wake.

Example:
plugins
object[]

Plugins available to the Agent, fixed when this version was created.

Example:
metadata
object

Caller-defined metadata with up to 16 entries.

Example:
archived_at
string<date-time>

Time when the Agent was archived. Absent while active.

Example:

"2026-01-03T00:00:00Z"

multiagent
object

Resolved child-agent configuration. Absent for a single agent.

Example: