latestOpenAPI 3.1.02026-08-226994571.1 MB

1e929292ddd5

containers

Create Container

Container creation endpoint for creating new containers.

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

Example:

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:

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"
    }'
post/containers

Response

Successful Response

{"stackTrail":"paths:/containers:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}