Image models
Recraft Remove Background
On this page
Recraft Remove Background — fast, high-fidelity AI image generation & editing.
| modelId | recraft-remove-background |
| Modality | image |
| Pricing | See this model on the Pricing page for the current per-call price (with your markup). |
Operations
| Operation | modelId | Endpoint | Required input |
|---|---|---|---|
| Default | recraft-remove-background | POST /api/v1/generate | image |
| Poll task | — | GET /api/v1/task/{id}?model=recraft-remove-background | — |
Input parameters
| Field | Type | Required | Values / example |
|---|---|---|---|
| image | string | Yes | Image to remove background from. Supported formats: PNG, JPG, WEBP. Max 5MB, max 16MP, max dimension 4096px, min dimension 256px. (image URL) |
| nsfw_checker | boolean | No | A configurable parameter. Defaults to true in the Playground. (true/false) (default: true) |
Example request
bash
curl -X POST https://you.bot/api/v1/generate \
-H "Authorization: Bearer $YOUBOT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"modelId":"recraft-remove-background","input":{"image":"https://example.com/input.jpg","nsfw_checker":true}}'