SnowLuma
Extended

下载文件 · download_file

把 URL 或 base64 下载到本地临时目录,返回绝对路径。

POST
/download_file

把 URL 或 base64 下载到本地临时目录,返回绝对路径。

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/download_file" \  -H "Content-Type: application/json" \  -d '{    "url": "string",    "base64": "string"  }'
{
  "status": "ok",
  "retcode": 0,
  "data": null,
  "wording": "string",
  "echo": null
}