AgentKit API
火山引擎Call the Volcano Engine AgentKit agent API and get a conversational agent with tool calling and memory running in 30 minutes.
Create managed Agents and cloud sandbox environments via API, send messages, and receive code execution and tool call results in real time via SSE.
Volcano Ark Managed Agents is an agent hosting service for developers: developers define Agents (model, system prompt, toolset) via REST API or SDK, create cloud sandbox Environments, and then establish a Session. After sending a user message, the Agent runs tool calls such as file writes and bash commands inside the sandbox, and returns messages, tool calls, and status updates in real time via an SSE event stream. The official quickstart uses curl and the Python/Go/Java SDKs to run a coding assistant example in four steps, making it suitable for teams that need to integrate automated code execution capabilities on the server side.
Execution flow: after a user event is sent, Ark first builds the sandbox according to the environment configuration, then runs the Agent loop to decide which tools to use, executes calls such as file writes and bash inside the sandbox, and pushes real-time updates through the event stream, emitting a session.status_idle event when the task ends. The Environment uses a cloud-hosted environment with config.type=cloud, where Ark starts the sandbox on demand and automatically puts it to sleep—no need to maintain hosts yourself. The name must be unique within the current project; duplicate names will cause creation to fail. SSE only pushes events generated after the connection is established and does not replay historical events, so you must establish the connection and wait for ready before sending messages. By design, it is recommended to write long-term capabilities (system prompt, Skills, Tools, MCP Server) into the Agent definition for reuse across multiple Sessions, passing single-task input via user.message events rather than writing to the system field. Model IDs used in the examples include doubao-seed-2-1-pro-260628 (curl example) and doubao-seed-2-1-pro-260915 (SDK example), with toolset type agent_toolset_20260916; the quickstart scripts depend on curl and jq.
Backend and platform developers who need to integrate AI Agents with executable code and tool calling on the server side, as well as technical teams familiar with API/SDK and command-line environments.
Create an API Key on the API Key management page in the Volcano Ark console, and configure ARK_API_KEY as an environment variable.
Visit the Managed Agents activation page to enable the service.
Visit the activation management page to enable model services.
Call the Agents API to create an Agent, defining the model (e.g., doubao-seed-2-1-pro), system prompt, and toolset agent_toolset_20260916.
Call the Environments API to create a cloud-type sandbox environment, with configurable networking and dependencies.
Call the Sessions API to create a session referencing the Agent and environment.
Establish the SSE event stream connection first and wait for : ready, then send a user.message event via SessionEvents_send.
Read events such as agent.message and agent.tool_use from the event stream; receiving session.status_idle indicates the task is complete.
Refer to the complete Python/Go/Java SDK examples in the documentation, and delete the session, environment, and agent resources when finished.
You need to register a Volcano Ark account and create an API Key, and separately enable the Managed Agents service and model services; the examples use the ark.cn-beijing.volces.com endpoint in the cn-beijing region; the cloud-hosted environment supports the unrestricted network configuration; the quickstart scripts depend on curl and jq. Billing, quotas, and regional availability should be verified on the official activation page.
费用与套餐:以官网当前说明为准,本站不提供套餐价格保证。