Image Projects
Body Swap
Changed onSwap a person into a scene image using Nano Banana 2 Lite (640px/1k) or Nano Banana 2 (2k/4k). Credits depend on resolution (from 50 credits at 640px upward).
post/v1/body-swap
Request
- Base URLhttps://api.magichour.ai
- URLhttps://api.magichour.ai/v1/body-swap
- AuthHTTP bearer
Request body
Example request
{
"name": "My Body Swap image",
"resolution": "640px",
"assets": {
"person_file_path": "api-assets/id/1234.png",
"scene_file_path": "api-assets/id/5678.png"
}
}Response
Success
Example response
{
"id": "cuid-example",
"credits_charged": 50
}Changes
- info
added the non-success response with the status
- info
removed the
Not Foundenum value from theresponse property for the response status - info
removed the
Unauthorizedenum value from theresponse property for the response status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status
- info
- info
endpoint added
- info