FIBO Edit [Erase by Text]
Image editing
Starting price $0.07 / run
Object Removal erases an object from a photo, along with traces such as its shadow, and fills the gap to match the scene.
object-removal/maskThis model has other modes with their own ids: object-removal, object-removal/bbox.
Quote the input, start the generation with the quote, then poll the job. Set RAYWAKE_API_KEY first; see Authentication.
# 1. Price the exact input (quotes are valid for up to 10 minutes)
curl -s https://api.raywake.com/v1/quotes \
-H "Authorization: Bearer $RAYWAKE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "object-removal/mask",
"input": {
"image_url": "https://example.com/input.png",
"mask_url": "https://example.com/input.png"
}
}'
# 2. Start the generation with the quote_id from step 1
curl -s https://api.raywake.com/v1/generate \
-H "Authorization: Bearer $RAYWAKE_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"model": "object-removal/mask", "quote_id": "QUOTE_ID", "input": {"image_url":"https://example.com/input.png","mask_url":"https://example.com/input.png"}}'
# 3. Poll until the status is terminal
curl -s https://api.raywake.com/v1/jobs/JOB_ID \
-H "Authorization: Bearer $RAYWAKE_API_KEY"| Name | Type | Description |
|---|---|---|
image_urlrequired | string (image URL) | The URL of the image to remove objects from. |
mask_urlrequired | string (image URL) | The URL of the mask image. White pixels (255) indicate areas to remove. |
model | string (enum) | Model |
mask_expansion | integer | Amount of pixels to expand the mask by. Range: 0-50 |
A succeeded job lists its results under outputs, stored on our side. See Jobs for every field.
"outputs": [
{ "type": "image", "url": "https://…", "mime_type": "image/png", "thumbnail_url": "https://…" }
]The exact charge for your input comes from a quote. How charges settle
Fields marked * are required. Review the price before generating.
Choose how to point at the object: describe it in words, draw one box around it, or upload a mask where white marks the area to remove. The space is then filled in with what would plausibly be behind it.
There are four quality levels to choose from, and a mask expansion of 0 to 50 pixels widens the removed area so edges and shadows go with the object.
Inspect replacement texture and shadows, particularly where the erased item overlapped another subject.