---
title: "Predict Layers"
method: POST
path: "/v1/layer-predictions"
---

# Predict Layers

`POST /v1/layer-predictions`

## 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/v1/layer-predictions`
- Auth: HTTP bearer

## Request body

- LayerPredictionRequest
  - `upload_id` string, required
  - `workflow` 'character-simple' | 'character-complex' | 'general-simple' | 'general-complex' | 'background' | 'spine-psd' | 'live2d-psd', required

## Response `200`

Successful Response

- LayerPredictionResponse
  - `workflow` 'character-simple' | 'character-complex' | 'general-simple' | 'general-complex' | 'background' | 'spine-psd' | 'live2d-psd', required
  - `layers` string[], required
  - `source` 'model' | 'fallback', required
  - `credits` 0

## 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)
