# Moondream3 Preview [Point]

> Moondream 3 is a vision language model that brings frontier-level visual reasoning with native object detection, pointing, and OCR capabilities to real-world applications requiring fast, inexpensive inference at scale.


## Overview

- **Endpoint**: `https://fal.run/fal-ai/moondream3-preview/point`
- **Model ID**: `fal-ai/moondream3-preview/point`
- **Category**: vision
- **Kind**: inference
**Tags**: Vision



## Pricing

Your request will cost $0.4 per million input tokens, and $3.5 per million output tokens.

For more details, see [fal.ai pricing](https://fal.ai/pricing).

## API Information

This model can be used via our HTTP API or more conveniently via our client libraries.
See the input and output schema below, as well as the usage examples.


### Input Schema

The API accepts the following input parameters:


- **`image_url`** (`string`, _required_):
  URL of the image to be processed
  - Examples: "https://storage.googleapis.com/falserverless/example_inputs/moondream-3-preview/point_in.jpg"

- **`prompt`** (`string`, _required_):
  Object to be located in the image
  - Examples: "bottle caps"

- **`preview`** (`boolean`, _optional_):
  Whether to preview the output
  - Default: `false`
  - Examples: true



**Required Parameters Example**:

```json
{
  "image_url": "https://storage.googleapis.com/falserverless/example_inputs/moondream-3-preview/point_in.jpg",
  "prompt": "bottle caps"
}
```

**Full Example**:

```json
{
  "image_url": "https://storage.googleapis.com/falserverless/example_inputs/moondream-3-preview/point_in.jpg",
  "prompt": "bottle caps",
  "preview": true
}
```


### Output Schema

The API returns the following output format:

- **`finish_reason`** (`string`, _required_):
  Reason for finishing the output generation
  - Examples: "stop"

- **`usage_info`** (`UsageInfo`, _required_):
  Usage information for the request
  - Examples: {"output_tokens":23,"decode_time_ms":811.5944429300725,"prefill_time_ms":54.45315001998097,"input_tokens":737,"ttft_ms":91.87838807702065}

- **`points`** (`list<Point>`, _required_):
  List of points marking the detected objects
  - Array of Point
  - Examples: [{"x":0.11827956989247312,"y":0.8660801564027371},{"x":0.3118279569892473,"y":0.8660801564027371},{"x":0.5953079178885631,"y":0.8660801564027371},{"x":0.7888563049853372,"y":0.8758553274682307},{"x":0.9423264907135875,"y":0.5796676441837733},{"x":0.6324535679374389,"y":0.5796676441837733},{"x":0.44281524926686217,"y":0.6021505376344086},{"x":0.3010752688172043,"y":0.5982404692082112},{"x":0.20332355816226785,"y":0.4701857282502444},{"x":0.053763440860215055,"y":0.4506353861192571},{"x":0.053763440860215055,"y":0.6021505376344086}]

- **`image`** (`ImageFile`, _optional_):
  Image with points drawn on detected objects
  - Examples: {"url":"https://storage.googleapis.com/falserverless/example_outputs/moondream-3-preview/point_out.png"}



**Example Response**:

```json
{
  "finish_reason": "stop",
  "usage_info": {
    "output_tokens": 23,
    "decode_time_ms": 811.5944429300725,
    "prefill_time_ms": 54.45315001998097,
    "input_tokens": 737,
    "ttft_ms": 91.87838807702065
  },
  "points": [
    {
      "x": 0.11827956989247312,
      "y": 0.8660801564027371
    },
    {
      "x": 0.3118279569892473,
      "y": 0.8660801564027371
    },
    {
      "x": 0.5953079178885631,
      "y": 0.8660801564027371
    },
    {
      "x": 0.7888563049853372,
      "y": 0.8758553274682307
    },
    {
      "x": 0.9423264907135875,
      "y": 0.5796676441837733
    },
    {
      "x": 0.6324535679374389,
      "y": 0.5796676441837733
    },
    {
      "x": 0.44281524926686217,
      "y": 0.6021505376344086
    },
    {
      "x": 0.3010752688172043,
      "y": 0.5982404692082112
    },
    {
      "x": 0.20332355816226785,
      "y": 0.4701857282502444
    },
    {
      "x": 0.053763440860215055,
      "y": 0.4506353861192571
    },
    {
      "x": 0.053763440860215055,
      "y": 0.6021505376344086
    }
  ],
  "image": {
    "url": "https://storage.googleapis.com/falserverless/example_outputs/moondream-3-preview/point_out.png"
  }
}
```


## Usage Examples

### cURL

```bash
curl --request POST \
  --url https://fal.run/fal-ai/moondream3-preview/point \
  --header "Authorization: Key $FAL_KEY" \
  --header "Content-Type: application/json" \
  --data '{
     "image_url": "https://storage.googleapis.com/falserverless/example_inputs/moondream-3-preview/point_in.jpg",
     "prompt": "bottle caps"
   }'
```

### Python

Ensure you have the Python client installed:

```bash
pip install fal-client
```

Then use the API client to make requests:

```python
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/moondream3-preview/point",
    arguments={
        "image_url": "https://storage.googleapis.com/falserverless/example_inputs/moondream-3-preview/point_in.jpg",
        "prompt": "bottle caps"
    },
    with_logs=True,
    on_queue_update=on_queue_update,
)
print(result)
```

### JavaScript

Ensure you have the JavaScript client installed:

```bash
npm install --save @fal-ai/client
```

Then use the API client to make requests:

```javascript
import { fal } from "@fal-ai/client";

const result = await fal.subscribe("fal-ai/moondream3-preview/point", {
  input: {
    image_url: "https://storage.googleapis.com/falserverless/example_inputs/moondream-3-preview/point_in.jpg",
    prompt: "bottle caps"
  },
  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);
```


## Additional Resources

### Documentation

- [Model Playground](https://fal.ai/models/fal-ai/moondream3-preview/point)
- [API Documentation](https://fal.ai/models/fal-ai/moondream3-preview/point/api)
- [OpenAPI Schema](https://fal.ai/api/openapi/queue/openapi.json?endpoint_id=fal-ai/moondream3-preview/point)

### fal.ai Platform

- [Platform Documentation](https://docs.fal.ai)
- [Python Client](https://docs.fal.ai/clients/python)
- [JavaScript Client](https://docs.fal.ai/clients/javascript)
