POST
/
models
/
v2
/
ahishamm
/
skinsam
curl --request POST \
  --url https://api.bytez.com/models/v2/ahishamm/skinsam \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "url": "https://huggingface.co/datasets/huggingfacejs/tasks/resolve/main/mask-generation/mask-generation-input.png",
  "base64": "/9j/4AAQSkZJRgABAQAAAQABAAD..."
}'
{
  "output": "https://api.bytez.com/mask-result.png"
}

Authorizations

Authorization
string
header
required

Provide your API key as Key your-key-here in the Authorization header.

Body

application/json
url
string
required

URL of the image to process.

Example:

"https://huggingface.co/datasets/huggingfacejs/tasks/resolve/main/mask-generation/mask-generation-input.png"

base64
string

Base64-encoded image data.

Example:

"/9j/4AAQSkZJRgABAQAAAQABAAD..."

Response

200 - application/json
Successful response with the mask image.
output
string

Mask image URL.