---
title: "Create Sandbox"
method: POST
path: "/v1/sandboxes"
tags: ["Sandboxes"]
---

# Create Sandbox

`POST /v1/sandboxes`

Create a new sandbox instance with the given plan, image, and settings. The sandbox starts in CREATING state and transitions to RUNNING asynchronously.

## Headers

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

## Request body

- SandboxCreateIn
  - `plan` string
  - `image` string
  - `tags` object
  - `timeout_seconds` integer

## Response `200`

Successful Response

- SandboxCreateOut
  - `sandbox_id` string, required

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found
- `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)
