URL File Upload
curl --request POST \
--url https://files-api.evolink.ai/api/v1/files/upload/url \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"file_url": "https://example.com/image.jpg"
}
'import requests
url = "https://files-api.evolink.ai/api/v1/files/upload/url"
payload = { "file_url": "https://example.com/image.jpg" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({file_url: 'https://example.com/image.jpg'})
};
fetch('https://files-api.evolink.ai/api/v1/files/upload/url', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://files-api.evolink.ai/api/v1/files/upload/url",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'file_url' => 'https://example.com/image.jpg'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://files-api.evolink.ai/api/v1/files/upload/url"
payload := strings.NewReader("{\n \"file_url\": \"https://example.com/image.jpg\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://files-api.evolink.ai/api/v1/files/upload/url")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"file_url\": \"https://example.com/image.jpg\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://files-api.evolink.ai/api/v1/files/upload/url")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"file_url\": \"https://example.com/image.jpg\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"code": 200,
"msg": "File uploaded successfully",
"data": {
"file_id": "file_abc123",
"file_name": "downloaded.jpg",
"original_name": "downloaded.jpg",
"file_size": 2048,
"mime_type": "image/jpeg",
"upload_path": "downloads",
"file_url": "https://files.evolink.ai/downloads/downloaded.jpg",
"download_url": "https://files.evolink.ai/api/v1/files/download/file_abc123",
"upload_time": "2025-10-09T00:00:00+08:00",
"expires_at": "2025-10-12T00:00:00+08:00"
}
}File Upload
URL File Upload
- Upload by providing a remote file URL
- System will automatically download and store the remote file
- Suitable for migrating files from other servers
- Files will expire after 72 hours
- Current user quota is limited. Uploads will fail when quota is exhausted. Please save locally if persistent storage is needed
Note:
The file upload API base URL ishttps://files-api.evolink.ai
POST
/
api
/
v1
/
files
/
upload
/
url
URL File Upload
curl --request POST \
--url https://files-api.evolink.ai/api/v1/files/upload/url \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"file_url": "https://example.com/image.jpg"
}
'import requests
url = "https://files-api.evolink.ai/api/v1/files/upload/url"
payload = { "file_url": "https://example.com/image.jpg" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({file_url: 'https://example.com/image.jpg'})
};
fetch('https://files-api.evolink.ai/api/v1/files/upload/url', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://files-api.evolink.ai/api/v1/files/upload/url",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'file_url' => 'https://example.com/image.jpg'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://files-api.evolink.ai/api/v1/files/upload/url"
payload := strings.NewReader("{\n \"file_url\": \"https://example.com/image.jpg\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://files-api.evolink.ai/api/v1/files/upload/url")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"file_url\": \"https://example.com/image.jpg\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://files-api.evolink.ai/api/v1/files/upload/url")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"file_url\": \"https://example.com/image.jpg\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"code": 200,
"msg": "File uploaded successfully",
"data": {
"file_id": "file_abc123",
"file_name": "downloaded.jpg",
"original_name": "downloaded.jpg",
"file_size": 2048,
"mime_type": "image/jpeg",
"upload_path": "downloads",
"file_url": "https://files.evolink.ai/downloads/downloaded.jpg",
"download_url": "https://files.evolink.ai/api/v1/files/download/file_abc123",
"upload_time": "2025-10-09T00:00:00+08:00",
"expires_at": "2025-10-12T00:00:00+08:00"
}
}Authorizations
##All APIs require Bearer Token authentication##
Get API Key:
Visit API Key Management Page to get your API Key
Add to request header:
Authorization: Bearer YOUR_API_KEY
Body
application/json
Remote file URL
Requirements:
- Must be a publicly accessible URL
- Supports HTTP and HTTPS protocols
- System will automatically download the file content from this URL
- Maximum
1image per request - Currently supports uploading files in:
image/jpeg,image/png,image/gif,image/webpformats only
Example:
"https://example.com/image.jpg"
Custom upload path
Note:
- If not specified, system will automatically categorize based on file type
Example:
"downloads"
Custom file name
Note:
- If not specified, system will automatically generate a unique file name
Example:
"downloaded.jpg"