Base64 File Upload
Upload temporary files via Base64 encoded data.
Documentation Index
Fetch the complete documentation index at: https://docs.veo3api.ai/llms.txt
Use this file to discover all available pages before exploring further.
Features
- Supports Base64 encoded data and data URL format
- Automatic MIME type recognition and file extension inference
- Support for custom file names or auto-generation
- Returns complete file information and download links
- API Key authentication protection
- Uploaded files are temporary and automatically deleted after 3 days
Supported Formats
- Pure Base64 String:
iVBORw0KGgoAAAANSUhEUgAA... - Data URL Format:
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA...
Usage Recommendations
- Recommended for small files like images
- For large files (>10MB), use the file stream upload API
- Base64 encoding increases data transmission by approximately 33%
Authorizations
All APIs require authentication via Bearer Token.
Get API Key:
- Visit API Key Management Page to get your API Key
Usage: Add to request header: Authorization: Bearer YOUR_API_KEY
Body
Base64 encoded file data. Supports pure Base64 strings or data URL format
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA..."
File upload path, without leading or trailing slashes
"images/base64"
Custom file name (optional). If not provided, the system will generate a random filename. If a custom filename is provided that matches an existing file, the existing file will be overwritten. Note: Due to caching mechanisms, file overwrites may not take effect immediately.
"my-image.png"
Response
File uploaded successfully
Whether the request was successful
Response status code
| Code | Description |
|---|---|
| 200 | Success - Request has been processed successfully |
| 400 | Bad Request - Request parameters are incorrect or missing required parameters |
| 401 | Unauthorized - Authentication credentials are missing or invalid |
| 405 | Method Not Allowed - Request method is not supported |
| 500 | Server Error - An unexpected error occurred while processing the request |
200, 400, 401, 405, 500 Response message
"File uploaded successfully"
