Create container

Changed on

Create Container

post/containers

Request

  • Base URL
    https://api.openai.com/v1
  • URL
    https://api.openai.com/v1/containers
  • Auth
    HTTP bearer

Request body

namestring required

Name of the container to create.

file_idsstring[]

IDs of files to copy to the container.

memory_limit'1g' | '4g' | '16g' | '64g'

Optional memory limit for the container. Defaults to "1g".

Response

Success

idstring required

Unique identifier for the container.

objectstring required

The type of this object.

namestring required

Name of the container.

created_atinteger required

Unix timestamp (in seconds) when the container was created.

statusstring required

Status of the container (e.g., active, deleted).

last_active_atinteger

Unix timestamp (in seconds) when the container was last active.

memory_limit'1g' | '4g' | '16g' | '64g'

The memory limit configured for the container.

Changes

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the non-success response with the status