v1

latestOpenAPI 3.1.0Apache 2.02026-07-264001921002.3 KB
Containers

Create a file in a container

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.

post/v1/containers/{container_id}/files

Path parameters

container_idstring required

The ID of the container

Query parameters

provider'openai' | 'azure' | 'anthropic' | 'bedrock' | 'cohere' | 'vertex' | 'vllm' | 'mistral' | 'ollama' | 'groq' | 'sgl' | 'parasail' | 'perplexity' | 'replicate' | 'cerebras' | 'deepseek' | 'gemini' | 'openrouter' | 'elevenlabs' | 'huggingface' | 'nebius' | 'xai' | 'runway' | 'fireworks' required

AI model provider identifier

The provider of the container

Request body

file_idstring required

The ID of an existing file to copy into the container

file_pathstring

Optional path for the file within the container

Response

Successful response

idstring

The unique identifier for the created file

objectstring

The object type (always "container.file")

container_idstring

The ID of the container this file belongs to

pathstring

The path of the file within the container

bytesinteger

The size of the file in bytes

created_atinteger

Unix timestamp of when the file was created

sourcestring

The source of the file