> ## Documentation Index
> Fetch the complete documentation index at: https://docs.generalrobotics.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# locate_anything

> Localize objects in an image with LocateAnything-3B

Localize objects in an image with LocateAnything-3B.

## Parameters

<ParamField body="image_input" type="Union[str, Image.Image, np.ndarray]" required>
  RGB image.
</ParamField>

<ParamField body="task" type="str" required>
  "detect" (open-vocabulary detection over comma-separated categories), "ground" (locate a referring phrase), or "point".
</ParamField>

<ParamField body="prompt" type="str" default="''">
  Categories (detect) or referring phrase (ground/point).
</ParamField>

<ParamField body="timeout" type="float | None">
  Optional HTTP timeout.
</ParamField>

## Returns

```text theme={null}
Dict[str, Any]: Backend response.
- detect/ground: {"output": {"boxes": [[x1,y1,x2,y2], ...],
                  "labels": [...], "scores": [...]}}
- point: {"output": {"points": [[x, y], ...]}}
```

## Example

```python theme={null}
from grid_cortex_client import CortexClient, ModelType
client = CortexClient()
result = client.run(ModelType.LOCATE_ANYTHING, image_input=image,
                    task="detect", prompt="person, car")
print(result["output"]["boxes"])
```


## Related topics

- [da3metric](/models/cortex/da3metric.md)
- [Your first session](/get-started/first-session.md)
