Skip to main content
The AI Gateway supports Anthropic’s Files API (beta) for Claude Platform on AWS, enabling file upload, listing, retrieval, and deletion through the gateway. Uploaded files can be referenced in chat completions using file_id instead of re-uploading content each request.
The Files API is in beta and requires the files-api-2025-04-14 beta header. The AI Gateway sets this automatically for file endpoints when using the SDK. For cURL requests, include the anthropic-beta: files-api-2025-04-14 header.

Upload a file

Use uploaded files in chat completions

Once a file is uploaded, reference it by file_id in chat completions:
When using the SDK, the anthropic-beta header is set automatically for file endpoints. For chat completions with file references via cURL, include anthropic-beta: files-api-2025-04-14 in your request headers.

List files

Get file

Delete file

Supported file types

See Also

Last modified on September 15, 2026