Images

Replace background

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

post/v1/image/replace-background

Request

  • Base URL
    https://api.jasper.ai
  • URL
    https://api.jasper.ai/v1/image/replace-background
  • Auth
    • API key in header X-API-Key
    • or OAuth 2
      Authorization code: https://api.jasper.ai/oauth2/authorize
      Token URL: https://api.jasper.ai/oauth2/token scopes: user

Headers

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

The Accept request HTTP header indicates the preferred returned image content type, expressed as a MIME type

Request body multipart/form-data

image_filestring binary
promptstring

Description of the desired background

Response

The image background was successfully replaced.

Changes

No recorded changes to this operation across all 2 revisions of this API.