Remove Background

Remove Background API for image generation at $0.00705 per image. Cut out the subject as a transparent PNG. Call it on /v1/images/generations and pay as you go in USD.

Price
$0.00705
Unit
per image
Type
Image generation
Endpoint
/v1/images/generations

Pricing

$0.00705 per image

Estimated $0.0282

USD, charged from your prepaid balance at the listed price. List price; a few keys on special plans may differ. How billing works

What it does

Cut out the subject as a transparent PNG

Model ID
image-remove-background
Modes
Image edit

API

POST /v1/images/generations

Returns the result in the response. Set BIGMODEL_API_KEY to your API key first.

cURL
curl https://bigmodel.io/v1/images/generations \
  -H "Authorization: Bearer $BIGMODEL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "image-remove-background",
    "prompt": "A paper lantern floating over a misty lake at dawn",
    "n": 1
  }'

Python, Node.js, every input field and error handling are in the guide. Guide →

Related models

All models of this type →