---
title: "Predict Labels"
method: POST
path: "/predict-labels"
---

# Predict Labels

`POST /predict-labels`

## Request

- Base URL: `https://api.segly.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.segly.io/predict-labels`
- Auth: none declared

Analyze an image and predict optimal segmentation labels.

Uses Gemini AI to analyze the uploaded image and suggest the best
segmentation labels for the requested workflow.

Args:
    file: Image file to analyze
    mode: Label-prediction mode, e.g. "spine", "live2d",
        "character_simple", "character_complex", "general_simple",
        or "general_complex"

This endpoint is FREE (0 credits).

## Headers

- `authorization` string, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/segly/apis/segly-io-api.md) · [All operations](https://skmtc.dev/segly/apis/segly-io-api/llms.txt) · [OpenAPI document](https://skmtc.dev/segly/apis/segly-io-api/revisions/f831b05317d0?raw)
