Spiral gives your agent every tool with one account. Browse the tools →

Grok · Data

How to Use Moondream 2 object coordinates in Grok

Returns point locations for matching objects in an image, plus an annotated image. Use it to place markers, count detected instances, or locate a control without outlining its boundaries.

Prompts to try with Moondream 2 object coordinates in Grok

Copy an example into Grok, or ask in your own words.

Use Moondream 2 object coordinates on the supplied photo of bicycles outside Amsterdam Centraal, then count the returned locations and show where they fall.

Moondream 2 object coordinatesGrok
Try asking
  • Use Moondream 2 object coordinates on the supplied Apple AirPods product photo to mark each detected earbud.

  • Use Moondream 2 object coordinates on the supplied screenshot of Wikipedia's home page to locate the search control and explain its position.

  • Use Moondream 2 object coordinates to look this up and give me the result as a table.

  • Pull the latest numbers from Moondream 2 object coordinates and tell me what changed since last week.

How to set up Moondream 2 object coordinates in Grok

Pick the way that suits you. Each takes about two minutes.

Use the Grok connector

  1. Add a custom connector

    In Grok open Settings › Connect Apps, then Add a custom connector. Name it Spiral, paste this URL, leave Headers empty and click Add MCP.

    https://api.spiral.ai/mcp
  2. Sign in to Spiral and approve

    Grok opens Spiral: sign in, pick the organization and click Authorize. Spiral gives the connection its own API key; Grok never sees it, and you can remove the connection under Settings › Connected apps.

  3. Check that it is connected

    Connect Apps › Custom shows Spiral as Connected. It works in every Grok chat and Grok bot.

Use the Spiral skill

  1. Send Grok this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. Install and sign in

    Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run Moondream 2 object coordinates

    One request; the result comes back by polling or a webhook.

    curl https://api.spiral.ai/v1/runs \
      -H "Authorization: Bearer $SPIRAL_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: $(uuidgen)" \
      -d '{
        "provider": "fal",
        "model": "fal-ai/moondream2/point-object-detection",
        "input": {
          "image_url": "https://llava-vl.github.io/static/images/monalisa.jpg",
          "object": "<object>"
        }
      }'

Then paste one of the prompts above: Grok finds Moondream 2 object coordinates on Spiral, shows the price and runs it.

Moondream 2 object coordinates providers and prices

Spiral runs Moondream 2 object coordinates through fal. Open a card for today's price, with every fee included.

falData
Moondream2 · Point Object Detection
fal-ai/moondream2/point-object-detection

What can you do with Moondream 2 object coordinates in Grok?

Turn a supplied photo into a visual guide showing where requested objects appear. A chat agent can explain Moondream's boxes or point locations and count the returned detections.

Annotate product photos

Locate shoes, bags, or furniture in catalog images. Use boxes to outline each detected product or points to place numbered review markers.

Prepare visual counts

Find repeated objects such as bicycles, apples, or chairs and count the returned locations. Show the annotations beside the total so a reviewer can inspect the detections.

Locate interface controls

Find a search button or cart icon in a screenshot. Use its box to highlight the control or its point location to propose a click target.

Create draft image annotations

Generate initial boxes or point labels for a collection of object photos. Present the results for review before adding them to an annotation dataset.

Compare scene snapshots

Locate the same object category in successive shelf or display photos. Compare the detected positions and annotated images to prepare a report of visible changes.

Build illustrated object guides

Mark recognizable objects in museum, landmark, or equipment photos. Use boxes for a visual index or points for numbered callouts linked to explanatory text.

Questions about Moondream 2 object coordinates in Grok

Can Grok use Moondream 2 object coordinates?

Yes. Add Spiral to Grok as an MCP server, and Grok can find and run Moondream 2 object coordinates like any built-in tool.

How much does Moondream 2 object coordinates cost in Grok?

$0.026 per image. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Grok plan is separate.

Do I need a fal account to use Moondream 2 object coordinates in Grok?

No. Spiral runs Moondream 2 object coordinates on its own fal account. You sign in to Spiral once and never paste a key.

How long does it take to set up Moondream 2 object coordinates in Grok?

About two minutes: add a custom connector, then sign in to Spiral and approve, then check that it is connected.

Does Grok wait while Moondream 2 object coordinates runs?

Moondream 2 object coordinates runs in the background. Grok starts the run, checks on it and gives you the json when it's ready.

What moment does a Moondream result describe?

It describes objects in the supplied still image. Moondream documents video detection as a frame-by-frame workflow, so use a new frame to examine a later moment.

What is the difference between boxes and points?

Moondream object detection returns rectangular boundaries around objects. Pointing returns center coordinates for matching instances, which suits markers and position-based actions.

Are point coordinates measured in pixels?

Moondream Point returns x,y coordinates normalized between 0 and 1. Multiply x by the image width and y by its height when you need pixel positions.

Can Moondream locate more than one matching object?

Yes. Detection supports multiple matching objects in one query, and pointing returns a center location for each matching instance.

Am I limited to standard object categories?

Moondream supports descriptions beyond a predefined category list. Pointing also accepts features and spatial relationships, so a request such as 'the handle on the left cup' can be more useful than 'cup.'

Get started

Start using Moondream 2 object coordinates in Grok

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into Grok:

Set up Grok

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options