face_swap_photo_create_image
Create a face swap photo. Each photo costs 10 credits. The height/width of the output image depends on your subscription. Please refer to our pricing page for more details
MCP guidance:
This starts an async image generation job and returns
idpluscredits_chargedimmediately. If the user wants the finished result, call thewait_for_image_projecthelper with the returned id, or poll the matchingGET /v1/image-projects/{id}endpoint until status iscomplete,error, orcanceled. Completed projects includedownloadswith direct URLs. The custom wait helper also returnsexact_download_urlsseparately from expiration metadata.For
*_file_pathvalues, prefer an existing Magic Hour file path or afile_pathreturned by the upload-URL endpoint after the file bytes are uploaded. Direct public media URLs may work when they are stable, fetchable, and return raw file bytes, but hotlinked URLs can fail; when in doubt, use the presigned upload flow first and pass the returnedfile_path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Give your image a custom name for easy identification. | Face Swap - dateTime |
| assets | Yes | Provide the assets for face swap photo |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Unique ID of the image. Use it with the [Get image Project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch status and downloads. | |
| credits_charged | Yes | The amount of credits deducted from your account to generate the image. We charge credits right when the request is made. If an error occurred while generating the image(s), credits will be refunded and this field will be updated to include the refund. |