Skip to main content
POST
/
api
/
v3
/
image-background-remover
Submit task
curl --request POST \
  --url https://gptproto.com/api/v3/image-background-remover \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "image": "<string>",
  "enable_base64_output": true,
  "enable_sync_mode": true
}'
{
  "error": {
    "message": "Invalid signature",
    "type": "401"
  }
}

Overview

This endpoint provides submit task functionality.

Authentication

This endpoint requires authentication using a Bearer token.
Authorization
string
default:"sk-***********"
required
Your API key in the format: Bearer YOUR_API_KEY

Request Body

image
string
default:"The URL of the image to generate an image from."
Image parameter
enable_base64_output
boolean
default:"false"
Enable Base64 Output parameter
enable_sync_mode
boolean
default:"false"
Enable Sync Mode parameter

Request Example

curl -X POST "https://gptproto.com/api/v3/image-background-remover" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "image": "The URL of the image to generate an image from.",
  "enable_base64_output": false,
  "enable_sync_mode": false
}'

Response

Success
200
Successful response
{
  "status": "success"
}

Error Responses

{
  "error": {
    "message": "Invalid signature",
    "type": "401"
  }
}