Upload and creation are separate operations
The upload needs an H3-scoped key and current H3/private-storage readiness. Photos are limited to 8 MB and supported image formats. A successful upload creates a private owned asset, not a generation or a public sharing URL. It also does not promise that the model will preserve every visual detail.
What to do next
- 01
Prepare a clear permitted image
Use a supported JPG, PNG or WebP with one intended adult character where appropriate. Verify that you may use the material and that the file actually contains valid image bytes.
- 02
Send multipart correctly
Let your HTTP library construct the multipart boundary. Read the returned ID from the 201 response and store it against your application's user and source version.
- 03
Reference and quote it
Add input_image_id to the intended minimax-h3 payload, then request a fresh quote. Keep the same owned ID in the approved creation body and its network retries.
A concrete example
Illustrative mistake: a script sends C:\\photos\\portrait.jpg as input_image_id. That path exists only on the developer's computer. Upload the bytes first and use the service-returned identifier instead of publishing the photo to make a URL work.
Before you call it ready
- The upload response supplies the identifier.
- The file belongs to the same account.
- No local path or secret sharing link is sent as an ID.
When to stop or choose another method
If the upload fails validation, correct the file rather than renaming its extension or substituting a publicly exposed customer photo URL.
