---
title: "Replace background"
method: POST
path: "/v1/image/replace-background"
tags: ["Images"]
---

# Replace background

`POST /v1/image/replace-background`

Replaces the image background using the provided text prompt and returns a photorealistic composite.

## Headers

- `accept` 'image/webp' | 'image/png' | 'image/jpeg'

## Response `200`

The image background was successfully replaced.

## Other responses

- `400` — Bad request. May be missing required inputs or may have badly formatted inputs or options.
- `500` — Internal server error. Unable to replace background.

---

[API](https://skmtc.net/jasper/apis/jasper-api.md) · [All operations](https://skmtc.net/jasper/apis/jasper-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/jasper/jasper-api/revisions/438914d9525e/schema)
