> ## 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.

<Note>
  Input images up to **1280 x 1280** (width x height). Larger images are rejected with HTTP 413, not downscaled — resize first.
</Note>

## 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

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"])
```
