Skip to main content
Endpoint: POST https://fal.run/fal-ai/florence-2-large/object-detection Endpoint ID: fal-ai/florence-2-large/object-detection

Try 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/florence-2-large/object-detection",
    arguments={
        "image_url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/transformers/tasks/car.jpg"
    },
    with_logs=True,
    on_queue_update=on_queue_update,
)
print(result)

Input Schema

image_url
string
required
The URL of the image to be processed.

Output Schema

results
BoundingBoxes
required
Results from the model
image
Image
Processed image

Input Example

{
  "image_url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/transformers/tasks/car.jpg"
}

Output Example

{
  "results": {
    "bboxes": [
      {
        "label": ""
      }
    ]
  }
}