---
title: "image-segmentation"
method: POST
path: "/models/v2/sayeed99/segformer-b3-fashion"
---

# image-segmentation

`POST /models/v2/sayeed99/segformer-b3-fashion`

## Request

- Base URL: `https://api.bytez.com`
- URL: `https://api.bytez.com/models/v2/sayeed99/segformer-b3-fashion`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/bytez/apis/closed-source-model-api/docs/models/v2/sayeed99/segformer-b3-fashion/post.ts> (a function with typed inputs; its response is checked against the schema)

Divide an image into multiple segments for applications like medical imaging, object detection, and computer vision tasks

## Request body

- object
  - `url` string, required
  - `base64` string

## Response `200`

Successful image-segmentation response.

- object
  - `error` string, nullable, required: Null on success; otherwise an error message.
  - `output` object, required: Successful response with segmentation results (URL to the result)

## Other responses

- `401`: Auth error - check your api key and how you're sending it.
- `429`: Too Many Requests – You have hit the rate limit.

---

[API](https://skmtc.dev/bytez/apis/closed-source-model-api.md) - [All operations](https://skmtc.dev/bytez/apis/closed-source-model-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bytez/apis/closed-source-model-api/revisions/d64c9c733afe?raw)
