Build with Recraft Remove Background
Make your first request
Use your Sorceress API key on your server. The playground uses your signed-in account; your application uses the same model with an API key.
curl -X POST 'https://sorceress.games/api/v1/jobs' \
-H 'Authorization: Bearer $SORCERESS_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"model": "recraft-remove-background",
"input": {
"image": "<image>"
}
}'Inputs & settings
imagestringRequiredImage to remove background from. Supported formats: PNG, JPG, WEBP. Max 5MB, max 16MP, max dimension 4096px, min dimension 256px. (Accepted types: image/jpeg, image/png, image/webp; Max size: 5.0MB)
Full input schema
{
"type": "object",
"required": [
"image"
],
"properties": {
"image": {
"type": "string",
"title": "Image",
"description": "Image to remove background from. Supported formats: PNG, JPG, WEBP. Max 5MB, max 16MP, max dimension 4096px, min dimension 256px. (Accepted types: image/jpeg, image/png, image/webp; Max size: 5.0MB)"
}
}
}Results, saved runs & billing
Media requests return a job ID. Poll GET /api/v1/jobs/:id until it succeeds or fails; keep the same ID while it is processing. Long chat requests can also return a saved job to poll. Completed outputs are stored in your account, and successful work is billed using your model's current rates.
A multi-step workflow may include separately billed successful actions. If a connection drops, check your saved run before submitting it again.



