Downloading results: when it is present in an API response, actionResultsDownloadURLs contains the authenticated URLs for downloading each generated result file.

MXPROCESS

API : Animate one consented portrait from a natural-language instruction and deliver a GIF or MP4 video.

    This API is simple to use. You just have to follow these steps

  • Create a free account
  • Click on the link you receive by email to confirm your address
  • Generate a token with credentials

You can use any language to make this CURL call. (Python, PHP, Java, JavaScript...) Need help ?



If your credentials are correct, our server will provide you with a token as a response :
YOUR_TOKEN is valid for one hour, its duration can be extended using YOUR_REFRESH_TOKEN

  • Use the token to start the process
  • Action parameters

    Send parameters as a JSON object. Required fields are marked with required.

    • instruction — string; required; maximum 1200 characters.
    • consentConfirmed — boolean; required.
    • duration — number; minimum 2; maximum 10.
    • fps — integer; minimum 8; maximum 24.
    • width — enum:320,480,512,640,720.
    • loop — boolean.
    • loopMode — enum:standard,ping_pong,seamless.
    • motionIntensity — enum:subtle,medium,strong.
    • preserveBackground — boolean.
    • preserveIdentity — boolean; required.
    • outputFormat — enum:gif,mp4.
    • outputVideo — boolean.
    • transparentBackground — boolean.
    If your file is accessible by URL, you can ignore the "file=@.." field and directly use the URL of your file in the "fileUrl" field

    The API sends a JSON response to confirm that the process is finished. Download the generated files with the authenticated URLs in actionResultsDownloadURLs.

    This documentation is not clear? (Python, PHP, Java, JavaScript...) Need help ?



    Contact us This API is also available in asynchronous mode : Developer API : PhotoMotionGif