---
title: "Create Instance"
method: POST
path: "/v1/agents"
tags: ["Agents"]
---

# Create Instance

`POST /v1/agents`

## Headers

- `xi-api-key` string, nullable
- `x-api-key` string, nullable

## Request body

- AgentCreateIn
  - `name` string, required — Instance name
  - `agent_type_id` string — Agent type identifier
  - `plan_id` string — Plan identifier

## Response `200`

Successful Response

- AgentCreateOut
  - `instance_id` string, required — Instance ID

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `402` — Payment Required
- `422` — Validation Error
- `429` — Too Many Requests
- `503` — Service Unavailable

---

[API](https://skmtc.net/deepinfra/apis/deepinfra-api.md) · [All operations](https://skmtc.net/deepinfra/apis/deepinfra-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/deepinfra/deepinfra-api/versions/51b817b3f80f/schema)
