curl --location --request POST 'https://api.allmhub.com/v1/images/edits' \
--header 'Authorization: Bearer {{key}}' \
--form 'model="gpt-image-2"' \
--form 'image=@"@body-lotion.png"' \
--form 'mask=@""' \
--form 'prompt="Generate a photorealistic image of a gift basket on a white background labeled '\''Relax & Unwind'\'' with a ribbon and handwriting-like font, containing all the items in the reference pictures."' \
--form 'n="1"' \
--form 'size="1024x1024"' \
--form 'quality="high"' \
--form 'output_format="png"' \
--form 'output_compression="80"' \
--form 'background="auto"' \
--form 'moderation="auto"'{
"created": 1713000000,
"data": [
{
"b64_json": "iVBORw0KGgoAAAANSUhEUgAA..."
}
]
}