This API endpoint allows you to perform inpainting, where a masked region of an image is filled in based on a text prompt and other parameters. The response will contain the edited image with the inpainted section.
Request
Header Params
Body Params multipart/form-data
Request Code Samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request POST 'https://api.vyro.ai/v2/image/edits/generative-fill' \
--header'Authorization: Bearer vk-ad08a8e86d1a84404e5837be47d39ab44474f982671c0a' \
--form'prompt="A peaceful autumn scene with vibrant orange, red, and gold leaves scattered across the ground"' \
--form'image=@"cmMtdXBsb2FkLTE3MzI3OTQ1ODg4NzktNQ==/camera.jpg"' \
--form'mask=@"cmMtdXBsb2FkLTE3MzI3OTQ1ODg4NzktNw==/camerasmallmask.png"'
Responses
🟢200Success
application/octet-stream
If the request is successful, the API will return the generated image file.