Start here / Assets
Assets and reference images
Media requests accept URLs that the gateway can fetch. Keep the asset contract simple and observable.
Recommended
preferredPublic HTTPS object URL; put it in images (and mask on models that support masks).
Data URIs and base64
rejectedNot accepted: reference fields take https:// URLs only.
Local files
upload APIUpload one JPEG, PNG or WebP (up to 15 MB) to POST /v1/uploads/images with your API key (multipart field file) and pass the returned url; uploads are kept 72 hours. Your own object storage works too.
- Use anonymous, directly downloadable HTTPS URLs; private dashboard pages and local paths cannot be fetched.
- Do not put API keys or signed dashboard URLs inside reference fields.
- Download completed outputs promptly: result links are kept for 24 hours.
- The result URL of a completed task (the data[].url returned by GET /v1/tasks/{id}) is a public HTTPS link and can be passed as a reference image within those 24 hours.