Background Remover API
Account and deployment availability
Requires eligible legacy billing and a configured image tool provider. Expanded USD generation excludes this tool. Look for this tool under tools in the account catalog.
Call GET /api/v1/models with your API key to see the models and options available to your account.
Request fields
- toolId
removeBackground- Provider
fal- toolExecution
dedicated-v1- mode
image-to-image- referenceAssetIds
1- outputCount
1–4
Use one JPEG, PNG, or WebP image up to 10 MiB and 16,777,216 pixels. The tool removes the background and retains the source dimensions.
If the quote includes quote.funding, preserve it in the acknowledgement. The API and website share the daily free tool quota.
Quote examples
Replace any REPLACE_WITH_* asset IDs with IDs returned by your own completed uploads. Send the draft to the quote endpoint. Upload a reference
Background Remover
curl --fail-with-body "$GAPTI_ORIGIN/api/v1/quotes" \
-H "Authorization: Bearer $GAPTI_API_KEY" \
-H "Content-Type: application/json" \
--data '{
"draft": {
"kind": "image",
"modelPreset": "gpt-image-2",
"mode": "image-to-image",
"prompt": "Remove the background from the image.",
"aspectRatio": "1:1",
"resolution": "1k",
"outputCount": 1,
"toolId": "removeBackground",
"negativePrompt": "",
"referenceAssetIds": [
"REPLACE_WITH_FIRST_IMAGE_ASSET_ID"
],
"generationQuality": null,
"seed": null,
"imageSetMode": false,
"toolExecution": "dedicated-v1"
}
}'Submit and download
Pass normalizedDraft as draft and the full quote as quoteAcknowledgement. Review the returned credits before submitting.
Submit the job