file content block. The file can be provided as a direct HTTPS URL (publicly accessible) or as base64-encoded data.
How to Send Files
Using File URLs
This is the most efficient way for publicly accessible files.Using Base64-Encoded Files
For local or private files, encode the file as base64 and use a data URL:Supported File Types
application/pdf(PDF only)
Notes
- For URLs, files must be publicly accessible via HTTPS.
- Large PDFs will count towards token usage after provider-side parsing.
- For models without native file support, we may enable this via external tools in the future (e.g., OCR).