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

Grok · Image

How to Use Marigold V2 in Grok

Marigold V2 turns a single image into a depth visualization for reviewing scene structure. It also supports normal and albedo predictions, but its output is a viewable image rather than numerical geometry data.

Prompts to try with Marigold V2 in Grok

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

Use Marigold V2 to make a depth visualization of this photograph and show it beside the original.

Marigold V2Grok
Try asking
  • Use Marigold V2 to produce a normal visualization from this product photo for a surface review.

  • Use Marigold V2 to create an albedo prediction from this photograph and label the two images clearly.

  • Use Marigold V2 to compare ordinary depth and see-through depth for this image, keeping the dimensions identical.

  • Use Marigold V2 on this square image at 1024 by 1024, use seed 42, and include the settings with the result.

How to set up Marigold V2 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 Marigold V2

    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/marigold-v2",
        "input": {
          "image_url": "https://storage.googleapis.com/falserverless/example_inputs/dog.png"
        }
      }'

Then paste one of the prompts above: Grok finds Marigold V2 on Spiral, shows the price and runs it.

Marigold V2 providers and prices

Spiral runs Marigold V2 through fal. Open a card for today's price, with every fee included.

falImage
Marigold V2 Depth
fal-ai/marigold-v2

Settings you can ask for

Marigold V2 works from your image URL. Ask Grok for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Prediction typedepth, see-through-depth, normals, or albedodepth

Prediction map to generate.

Seeda whole number

Random seed. Only affects the VAE encoder's latent sampling (the forward pass itself is a single deterministic step); the same seed and image reproduce the same output.

Every API field of Marigold V2 Depth is on its tool page: open its card above.

What can you do with Marigold V2 in Grok?

Inspect image predictions alongside a photograph. A chat agent can arrange comparisons and explain the difference between a visualization and numerical data.

Compositing references

Generate a depth visualization from a photograph as a visual reference while planning foreground and background edits.

Surface prediction review

Request a normal visualization from a product photograph for inspection alongside the original.

Albedo studies

Compare an albedo prediction with its source photograph during an image analysis study.

Depth teaching materials

Pair photographs with depth visualizations for a lesson on interpreting scene structure.

Prediction comparison sheets

Place depth and see-through depth predictions beside the same source image for manual comparison.

Repeatable image reviews

Record the source image, prediction choice, dimensions, and seed with each visualization for later reproduction.

Questions about Marigold V2 in Grok

Can Grok use Marigold V2?

Yes. Add Spiral to Grok as an MCP server, and Grok can find and run Marigold V2 like any built-in tool.

How much does Marigold V2 cost in Grok?

$0.039 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 Marigold V2 in Grok?

No. Spiral runs Marigold V2 on its own fal account. You sign in to Spiral once and never paste a key.

How long does it take to set up Marigold V2 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 Marigold V2 runs?

Marigold V2 runs in the background. Grok starts the run, checks on it and gives you the image when it's ready.

What is Marigold V2 useful for?

It produces visual maps for inspecting an image's depth, normals, or albedo. Use these as review aids when planning image work.

Does Marigold V2 return numerical geometry data?

The documented output is a PNG visualization rather than a lossless numerical tensor. Check that distinction before using it in a geometry pipeline.

Can Marigold V2 process a 4K image at full resolution?

Inference is limited to 2048 pixels on either side, with dimensions divisible by 16. Choose a smaller size that preserves the composition.

How do I reproduce a Marigold V2 result?

Keep the image, prediction choice, dimensions, and seed fixed. The seed controls latent sampling in the image encoder.

Does Marigold V2 need multiple camera views?

Depth estimation starts from a single image. You can request a depth visualization without supplying a second viewpoint.

Get started

Start using Marigold V2 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