| foundry_image_edit | R Documentation |
Use the v1 preview image edits endpoint to edit one or more input images with a text prompt.
foundry_image_edit(
image,
prompt,
model = NULL,
mask = NULL,
n = 1L,
size = "1024x1024",
quality = NULL,
output_format = NULL,
background = NULL,
api_key = NULL,
token = NULL,
api_version = "preview"
)
image |
Character vector of local image paths. |
prompt |
Character. Edit instruction. |
model |
Character. Image model deployment name. |
mask |
Character. Optional local mask image path. |
n |
Integer. Number of images to generate. |
size |
Character. Output image size. |
quality |
Character. Optional quality value. |
output_format |
Character. Optional output format, such as |
background |
Character. Optional background mode. |
api_key |
Character. Optional API key override. |
token |
Character. Optional bearer token override. |
api_version |
Character. Optional API version. Defaults to |
A tibble with edited image data and metadata.
## Not run:
# Requires a configured Azure image endpoint and credentials,
# an image deployment, and your own local input.png image.
foundry_image_edit("input.png", "Make the sky more dramatic", model = "gpt-image-1")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.