Attach a photo to a recipe
set_recipe_imageStore a recipe photo permanently and set it as the recipe image, replacing expiring generated image URLs. Accepts an image URL or base64 with content type.
Instructions
Store a photo for a recipe permanently and set it as the recipe's image. Use for images you generated with your image tool (their URLs expire) or any photo you have as a URL or base64. Pass either image_url (we fetch and copy it) or image_base64 + content_type. Max 6 MB; JPEG, PNG, WebP or GIF.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image_url | No | ||
| recipe_id | Yes | ||
| content_type | No | e.g. image/png | |
| image_base64 | No | Raw base64 (no data: prefix) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image_url | Yes | Permanent public URL of the stored photo | |
| recipe_id | Yes |