Skip to content

How do I upload a photo for an H3 image-to-video API request?

Upload the photo to POST /api/v1/files as multipart form data with file and kind=photo. Save the returned owned file ID and use it as input_image_id in the H3 JSON request. The customer endpoint does not accept an arbitrary image URL, a local path or a base64 string in that field.

BUILD WITH MINIMAX H3AISwapLab team · Editorial methodPublished 2 min read
Open API documentationExplore 67 Image SkillsPrivate keys · Explicit credit approval
Article workflow: Prepare a clear permitted image; Send multipart correctly; Reference and quote it.
Workflow diagram: Prepare a clear permitted image → Send multipart correctly → Reference and quote it. Read the article for evidence and limits.

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

  1. 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.

  2. 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.

  3. 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.

Sources

One task. A recoverable workflow.

Check the contract, approve the quote and retain the job.

Open API documentation