Creates a new file in a container. You can either upload file content directly via multipart/form-data or reference an existing file by its ID.
Note: This endpoint also works without the /v1 prefix (e.g., /openai/containers/{container_id}/files).
Container ID
Provider for the container (defaults to openai)
Successful response
Response from creating a file in a container
The unique identifier for the created file
The object type (always "container.file")
The ID of the container this file belongs to
The path of the file within the container
The size of the file in bytes
Unix timestamp of when the file was created
The source of the file
Additional fields included in responses