- Rembg
- Depth
- Marigold Depth
Endpoint:
POST https://fal.run/fal-ai/imageutils/rembg
Endpoint ID: fal-ai/imageutils/rembgTry it in the Playground
Run this model interactively with your own prompts.
Quick Start
import fal_client
def on_queue_update(update):
if isinstance(update, fal_client.InProgress):
for log in update.logs:
print(log["message"])
result = fal_client.subscribe(
"fal-ai/imageutils/rembg",
arguments={
"image_url": "https://storage.googleapis.com/falserverless/model_tests/remove_background/elephant.jpg"
},
with_logs=True,
on_queue_update=on_queue_update,
)
print(result)
import { fal } from "@fal-ai/client";
const result = await fal.subscribe("fal-ai/imageutils/rembg", {
input: {
image_url: "https://storage.googleapis.com/falserverless/model_tests/remove_background/elephant.jpg"
},
logs: true,
onQueueUpdate: (update) => {
if (update.status === "IN_PROGRESS") {
update.logs.map((log) => log.message).forEach(console.log);
}
},
});
console.log(result.data);
console.log(result.requestId);
curl --request POST \
--url https://fal.run/fal-ai/imageutils/rembg \
--header "Authorization: Key $FAL_KEY" \
--header "Content-Type: application/json" \
--data '{
"image_url": "https://storage.googleapis.com/falserverless/model_tests/remove_background/elephant.jpg"
}'
Input Schema
string
required
Input image url.
boolean
default:"false"
If
True, the media will be returned as a data URI and the output data won’t be available in the request history.boolean
default:"false"
If set to true, the resulting image be cropped to a bounding box around the subject
Output Schema
Image
required
Background removed image.
Input Example
{
"image_url": "https://storage.googleapis.com/falserverless/model_tests/remove_background/elephant.jpg",
"sync_mode": false,
"crop_to_bbox": false
}
Output Example
{
"image": {
"url": "",
"content_type": "image/png",
"file_name": "z9RV14K95DvU.png",
"file_size": 4404019,
"width": 1024,
"height": 1024
}
}
Endpoint:
POST https://fal.run/fal-ai/imageutils/depth
Endpoint ID: fal-ai/imageutils/depthTry it in the Playground
Run this model interactively with your own prompts.
Quick Start
import fal_client
def on_queue_update(update):
if isinstance(update, fal_client.InProgress):
for log in update.logs:
print(log["message"])
result = fal_client.subscribe(
"fal-ai/imageutils/depth",
arguments={
"image_url": "https://storage.googleapis.com/falserverless/model_tests/remove_background/elephant.jpg"
},
with_logs=True,
on_queue_update=on_queue_update,
)
print(result)
import { fal } from "@fal-ai/client";
const result = await fal.subscribe("fal-ai/imageutils/depth", {
input: {
image_url: "https://storage.googleapis.com/falserverless/model_tests/remove_background/elephant.jpg"
},
logs: true,
onQueueUpdate: (update) => {
if (update.status === "IN_PROGRESS") {
update.logs.map((log) => log.message).forEach(console.log);
}
},
});
console.log(result.data);
console.log(result.requestId);
curl --request POST \
--url https://fal.run/fal-ai/imageutils/depth \
--header "Authorization: Key $FAL_KEY" \
--header "Content-Type: application/json" \
--data '{
"image_url": "https://storage.googleapis.com/falserverless/model_tests/remove_background/elephant.jpg"
}'
Input Schema
string
required
Input image url.
float
default:"6.283185307179586"
a Default value:
6.283185307179586float
default:"0.1"
bg_th Default value:
0.1boolean
default:"false"
depth_and_normal
Output Schema
Image
required
The depth map.
Input Example
{
"image_url": "https://storage.googleapis.com/falserverless/model_tests/remove_background/elephant.jpg",
"a": 6.283185307179586,
"bg_th": 0.1,
"depth_and_normal": false
}
Output Example
{
"image": {
"url": "",
"content_type": "image/png",
"file_name": "z9RV14K95DvU.png",
"file_size": 4404019,
"width": 1024,
"height": 1024
}
}
Endpoint: 
POST https://fal.run/fal-ai/imageutils/marigold-depth
Endpoint ID: fal-ai/imageutils/marigold-depthTry it in the Playground
Run this model interactively with your own prompts.
Quick Start
import fal_client
def on_queue_update(update):
if isinstance(update, fal_client.InProgress):
for log in update.logs:
print(log["message"])
result = fal_client.subscribe(
"fal-ai/imageutils/marigold-depth",
arguments={
"image_url": "https://storage.googleapis.com/falserverless/model_tests/remove_background/elephant.jpg"
},
with_logs=True,
on_queue_update=on_queue_update,
)
print(result)
import { fal } from "@fal-ai/client";
const result = await fal.subscribe("fal-ai/imageutils/marigold-depth", {
input: {
image_url: "https://storage.googleapis.com/falserverless/model_tests/remove_background/elephant.jpg"
},
logs: true,
onQueueUpdate: (update) => {
if (update.status === "IN_PROGRESS") {
update.logs.map((log) => log.message).forEach(console.log);
}
},
});
console.log(result.data);
console.log(result.requestId);
curl --request POST \
--url https://fal.run/fal-ai/imageutils/marigold-depth \
--header "Authorization: Key $FAL_KEY" \
--header "Content-Type: application/json" \
--data '{
"image_url": "https://storage.googleapis.com/falserverless/model_tests/remove_background/elephant.jpg"
}'
Examples

Input Schema
string
required
Input image url.
integer
default:"10"
Number of denoising steps. Defaults to
10. The higher the number, the more accurate the result, but the slower the inference. Default value: 10Range: 2 to 50integer
default:"10"
Number of predictions to average over. Defaults to
10. The higher the number, the more accurate the result, but the slower the inference. Default value: 10Range: 2 to 50integer
default:"0"
Maximum processing resolution. Defaults
0 which means it uses the size of the input image.Range: 0 to 2048Output Schema
Image
required
The depth map.
Input Example
{
"image_url": "https://storage.googleapis.com/falserverless/model_tests/remove_background/elephant.jpg",
"num_inference_steps": 10,
"ensemble_size": 10,
"processing_res": 0
}
Output Example
{
"image": {
"url": "",
"content_type": "image/png",
"file_name": "z9RV14K95DvU.png",
"file_size": 4404019,
"width": 1024,
"height": 1024
}
}
Limitations
num_inference_stepsrange: 2 to 50ensemble_sizerange: 2 to 50processing_resrange: 0 to 2048