Image as Input
Mask Generation
Generate a mask for the given image using the skinsam
model.
POST
Authorizations
Provide your API key as Key your-key-here
in the Authorization
header.
Body
application/json
URL of the image to process.
Example:
"https://huggingface.co/datasets/huggingfacejs/tasks/resolve/main/mask-generation/mask-generation-input.png"
Base64-encoded image data.
Example:
"/9j/4AAQSkZJRgABAQAAAQABAAD..."
URL of the image to process.
Example:
"https://huggingface.co/datasets/huggingfacejs/tasks/resolve/main/mask-generation/mask-generation-input.png"
Base64-encoded image data.
Example:
"/9j/4AAQSkZJRgABAQAAAQABAAD..."
Response
200 - application/json
Successful response with the mask image.
Mask image URL.