---
title: "Create Container"
method: POST
path: "/containers"
tags: ["containers"]
---

# Create Container

`POST /containers`

Container creation endpoint for creating new containers.

Follows the OpenAI Containers API spec:
https://platform.openai.com/docs/api-reference/containers

Example:
```bash
curl -X POST "http://localhost:4000/v1/containers"         -H "Authorization: Bearer sk-1234"         -H "Content-Type: application/json"         -d '{
        "name": "My Container",
        "expires_after": {
            "anchor": "last_active_at",
            "minutes": 20
        }
    }'
```

Or specify provider via header:
```bash
curl -X POST "http://localhost:4000/v1/containers"         -H "Authorization: Bearer sk-1234"         -H "custom-llm-provider: azure"         -H "Content-Type: application/json"         -d '{
        "name": "My Container"
    }'
```

## Response `200`

Successful Response

- unknown

---

[API](https://skmtc.net/flock/apis/litellm-api.md) · [All operations](https://skmtc.net/flock/apis/litellm-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/flock/litellm-api/revisions/8fbaab4fc7c5/schema)
