Skip to main content
Upload local files to the AceDataCloud platform CDN to obtain a publicly accessible URL (in the style of https://cdn.acedata.cloud/xxxxxx.png), which can be immediately referenced in parameters such as image_url, reference_url, etc. of other business APIs (such as Midjourney, Suno, Flux). Applicable scenarios:
  • Upload a reference image to the CDN to obtain a URL before calling Midjourney /midjourney/imagine.
  • Cache the video generated in the previous step for use as input in the next step.
  • Temporarily host materials uploaded by users, avoiding the need to build your own S3.
ℹ️ This API is an AceDataCloud platform management API, with the unified prefix https://platform.acedata.cloud/api/v1/.

API Overview

Authentication Instructions (How to Obtain an Account Token)

Request header:
How to obtain it: Log in to the AceDataCloud Platform → Account Token Console → click the “Create” button. See Manage AceDataCloud Platform Account Tokens for details.

Request Body (multipart/form-data)

Request Examples

cURL

Python

Node.js

Response Example (HTTP 200)

Simply use the file_url field in other business APIs—the CDN URL is currently publicly accessible and does not require authentication; do not treat it as a permanent archival guarantee.

Response Field Description

Error Handling

Practical Tips

  • Upload images as reference images: Midjourney image_urls, Flux image_url, and Veo reference_url all accept CDN URLs, and do not accept base64. Obtaining a URL through this API first is standard practice.
  • Do not upload sensitive data: The returned URL is publicly accessible; the retention period is subject to the platform’s current storage policy. For long-term archiving, use your own object storage.
  • Bulk uploads: Control concurrency and set a timeout for each upload; throughput depends on file size and network environment.