Replace background

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

📘

Get Started with Image API

To use Jasper's Image endpoints, you'll need an API key. Image API access is available for customers on the Jasper Business plan with an API subscription.

Already a Business customer? Generate your API key in Settings → API Tokens.

New to Jasper? Request API access →

LLM friendly version

Body Params

Image file upload and prompt
Size of an image uploaded must not exceed 20MB and resolution must not exceed 4 mega-pixels (2048*2048)
Prompt must not exceed 5000 characters

file
string
length ≤ 5000

Description of the desired background

Responses
200

The image background was successfully replaced.

400

Bad request. May be missing required inputs or may have badly formatted inputs or options.

500

Internal server error. Unable to replace background.

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here!