Skip to main content
Except for GPT Image Route 3 (which accepts data:image/png;base64,... directly in image_urls), do not pass raw base64 media in video or image generation requests. Upload the file first, then pass the returned data.url verbatim into the target model’s reference field.

Public media upload endpoints

All upload endpoints accept multipart/form-data with a file field and your API key. Use the returned data.url verbatim in subsequent generation calls.
  • Choosing between ruyi6.cn and 1788.love (identical paths, fields, and API key):
    • Default (recommended for mainland & general callers): use https://ruyi6.cn (Shanghai relay, fastest for domestic uploads; when calling overseas model routes, the gateway automatically resolves overseas storage links for upstream fetching—no need to switch domains per model).
    • If your own server is hosted overseas: use https://1788.love/v1/uploads/images for faster uploads via Hong Kong (returns https://1788.love/v1/uploads/media_.../content.png). For GPT Image Route 3, you can also pass a Base64 data URL directly.
  • /v1/uploads/images-2 is an equivalent alias of /v1/uploads/images; existing integrations do not need to change. The legacy domain tu.baoliu.love remains for backward compatibility only—migrate to ruyi6.cn (or 1788.love for overseas servers).
  • Uploaded URLs are temporary: images and videos expire after ~71 hours, audio after 72 hours. Use them within the validity window or re-upload if expired.
  • When sending multipart/form-data, pass the original or simple ASCII filename (e.g. ref.png). Do not URL-encode the filename (e.g. via encodeURIComponent).

Image upload

  • Default: POST https://ruyi6.cn/v1/uploads/images
  • Overseas models / overseas servers: POST https://1788.love/v1/uploads/images
string
required
Bearer YOUR_1788_API_KEY
file
required
Image file. Supports JPEG, PNG, WebP, GIF; max 20 MB.

Image upload response

string
Public HTTPS image URL (valid ~71 hours). Pass verbatim to reference image fields such as image_urls or image_with_roles. Do not parse or rewrite it.
string
Platform media ID. Always use data.url instead of constructing URLs manually.
string
Detected MIME type, e.g. image/png.
integer
File size in bytes.

Video channel 1

POST https://ruyi6.cn/v1/uploads/videos
Use this endpoint to upload reference videos for generation tasks. It returns a temporary HTTPS URL (~71 hours) and is not long-term file storage.
string
required
Bearer YOUR_1788_API_KEY (must be an active, enabled platform API key).
file
required
Video file. Supports MP4, WebM, MOV; max 50 MB.

Video upload response

Audio channel 1

POST https://ruyi6.cn/v1/uploads/audio Used for reference audio and voice-cloning flows that require a public audio URL. Files expire after 72 hours.
string
required
Bearer YOUR_1788_API_KEY
file
required
Audio file. Supports MP3, WAV, M4A; max 10 MB. Field names audio and audio_file are also accepted.