Public media upload endpoints
All upload endpoints acceptmultipart/form-data with a file field and your API key. Use the returned data.url verbatim in subsequent generation calls.
- Choosing between
ruyi6.cnand1788.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/imagesfor faster uploads via Hong Kong (returnshttps://1788.love/v1/uploads/media_.../content.png). For GPT Image Route 3, you can also pass a Base64 data URL directly.
- Default (recommended for mainland & general callers): use
/v1/uploads/images-2is an equivalent alias of/v1/uploads/images; existing integrations do not need to change. The legacy domaintu.baoliu.loveremains for backward compatibility only—migrate toruyi6.cn(or1788.lovefor overseas servers).
Image upload
- Default:
POST https://ruyi6.cn/v1/uploads/images - Overseas models / overseas servers:
POST https://1788.love/v1/uploads/images
Image upload response
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.Video channel 1
POST https://ruyi6.cn/v1/uploads/videos
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.
Audio file. Supports MP3, WAV, M4A; max 10 MB. Field names
audio and audio_file are also accepted.