---
title: "Create Segmentation"
method: POST
path: "/segment"
---

# Create Segmentation

`POST /segment`

## 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/segment`
- Auth: none declared

Create a new segmentation job.

Accepts an image file and queues it for segmentation processing.
Costs the configured per-job credit amount per segmentation.

Args:
    file: Image file to segment
    labels: Optional. Either:
        - JSON array of label strings: '["head", "torso", "arms"]'
        - Preset name: "spine", "live2d", "character_simple", "general_complex", etc.
        - None: uses the default "character_simple" preset
    preset: Optional preset name to store with the job (for export format selection)

## Headers

- `authorization` string, nullable

## Response `200`

Successful Response

- SegmentationResponse: Response when a segmentation job is created.
  - `job_id` string, required
  - `status` 'accepting' | 'pending' | 'processing' | 'completed' | 'failed' | 'cancelled', required
  - `message` string, required
  - `resolved_labels` string[], nullable

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