Image Projects
AI Image Editor
Changed onEdit images with AI.
post/v1/ai-image-editor
Request
- Base URLhttps://api.magichour.ai
- URLhttps://api.magichour.ai/v1/ai-image-editor
- AuthHTTP bearer
Request body
Example request
{
"name": "My Ai Image Editor image",
"image_count": 1,
"model": "flux-2-klein",
"aspect_ratio": "1:1",
"resolution": "640px",
"style": {
"prompt": "Give me sunglasses"
},
"assets": {
"image_file_paths": [
"api-assets/id/1234.png",
"api-assets/id/1235.png"
]
}
}Response
Success
Example response
{
"id": "cuid-example",
"credits_charged": 5
}Changes
- info
added the new
nano-banana-2.1enum value to the request property
- info
- info
added the new
qwen-image-2.1enum value to the request property
- info