Upload File from URL
Upload files to Vidgo API by providing a remote URL
Documentation Index
Fetch the complete documentation index at: https://docs.vidgo.ai/llms.txt
Use this file to discover all available pages before exploring further.
Usage Guide
- This endpoint enables uploading files to Vidgo API by providing a remote URL
- The system automatically downloads the file from the specified URL and stores it in Vidgo API storage
- Ideal for migrating files from external servers or integrating with third-party file sources
- Files are returned with a direct access URL and remain available for 72 hours
Parameter Details
-
File URL Requirement:
-
The
file_urlmust be a publicly accessible URL using HTTP or HTTPS protocol - The remote server must allow the file to be downloaded without authentication
- Supported file formats: JPEG, PNG, GIF, WebP only
- Maximum upload limit: 1 image per request
-
The
-
Storage Configuration:
-
All files are automatically stored with a
temp/prefix in the storage path -
If you specify
upload_path: "avatars", the actual path will betemp/avatars - Files will expire and be automatically deleted 72 hours after upload
-
All files are automatically stored with a
-
File Naming:
-
If
file_nameis not provided, the system generates a unique name in the format:{timestamp}_{random}_{extension} -
Example auto-generated name:
20251229130857_a8B9cD2e.png
-
If
Developer Notes
- Ensure your source URL is publicly accessible and does not require authentication or special headers
- The download process may take a few seconds depending on the file size and network conditions
- For persistent storage needs, download and save the file locally before the 72-hour expiration
-
The
file_urlanddownload_urlin the response are identical and both provide direct access to the uploaded file
Rate Limits and Quotas
- Rate Limit: 5 requests per minute per API key
-
When the rate limit is exceeded, you will receive a
429 Too Many Requestserror - Implement exponential backoff retry logic for handling rate limit errors
Common Error Scenarios
- Invalid URL: The provided URL is malformed or unreachable
- Download Failure: Network timeout or connection issues when downloading from the remote URL
- Unsupported File Type: The file at the URL is not in a supported image format (JPEG, PNG, GIF, WebP)
- Authentication Error: Missing or invalid API key in the Authorization header
Authorizations
All API endpoints require Bearer Token authentication
Get your API Key:
Visit the API Key Management Page to get your API Key
Add it to the request header:
Authorization: Bearer VIDGO_API_KEYBody
The remote file URL to upload.
Must be a publicly accessible URL using HTTP or HTTPS protocol.
Supported formats: JPEG, PNG, GIF, WebP
Note: The file will be downloaded from this URL and stored in Vidgo API storage.
"https://example.com/images/sample.jpg"
Custom storage directory path.
If not specified, the system will auto-categorize the file.
Note: All files are stored with a temp/ prefix regardless of the specified path.
"avatars"
Custom filename for the uploaded file.
If not specified, the system will generate a unique filename in the format: {timestamp}_{random}_{extension}
Example auto-generated name: 20251229130857_a8B9cD2e.png
"my-custom-image.png"