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

opencode · Industry Data

How to Use NIH 3D model search in opencode

Returns matching published biomedical models and category, license, and keyword counts. Use it to build a shortlist of organs, molecules, pathogens, or lab equipment before inspecting individual entries.

Prompts to try with NIH 3D model search in opencode

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

Use NIH 3D model search to find hemoglobin models and add a shortlist with entry links to our biology lesson planning document.

NIH 3D model searchopencode
Try asking
  • Use NIH 3D model search to find SARS-CoV-2 models and prepare an asset selection table for our educational web viewer.

  • Use NIH 3D model search to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from NIH 3D model search and tell me what changed since last week.

  • Check NIH 3D model search and summarize what you find in three bullet points.

How to set up NIH 3D model search in opencode

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

Use Spiral's MCP server

  1. Add the server

    Leave out --global to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

    opencode mcp add spiral --global --url https://api.spiral.ai/mcp
  2. Sign in

    Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, /mcps starts the same sign-in.

    opencode mcp auth spiral
  3. Check it

    Spiral shows as connected.

    opencode mcp list

Use the Spiral skill

  1. Send opencode 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 NIH 3D model search

    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": "alexandria",
        "model": "threed-nih-gov/models-3d/search",
        "input": {
          "page": 1
        }
      }'

Then paste one of the prompts above: opencode finds NIH 3D model search on Spiral, shows the price and runs it.

NIH 3D model search providers and prices

Spiral runs NIH 3D model search through Alexandria. Open a card for today's price, with every fee included.

AlexandriaIndustry Data
NIH 3D · Search
threed-nih-gov/models-3d/search

Settings you can ask for

Ask opencode for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Page1 to 2001

1-based page; pass the previous next_page.

Sortrelevance, newest, oldest, or recently_publishedrelevance

relevance needs a query and falls back to newest (highest id first) without one.

Limit1 to 5010

limit

CategoryBiomacromolecules, Small Molecules, Devices and Hardware, Anatomy, Cells and Organelles, Viruses, or Prosthetics

category

Human dataon or off

true: only models whose organism is Homo sapiens; false: exclude them.

Every API field of NIH 3D · Search is on its tool page: open its card above.

What can you do with NIH 3D model search in opencode?

Build a biomedical asset shortlist for your project's anatomy viewer or teaching app. An agent can use NIH 3D collection discovery, model results, or entry details to turn available source material into a reviewable asset plan.

Plan an anatomy lesson

Find an anatomy collection, shortlist models for the lesson, and inspect the chosen entries' files and licenses before preparing teaching materials.

Choose models for a classroom print session

Browse subject collections, find candidates, and compare available formats, polygon counts, and watertight flags before testing files in a slicer.

Source assets for a biomedical web viewer

Discover relevant collections, locate models for the viewer's subject, and inspect file sizes and download formats before selecting assets.

Prepare a science museum exhibit

Explore curated subject libraries, assemble candidate models, and check entry descriptions and reuse terms for an educational exhibit.

Maintain a course resource list

Revisit relevant collections, look for newly published teaching models, and inspect selected entries before adding them to a course reading and asset list.

Review assets before adapting teaching materials

Locate relevant collections and models, then inspect each selected entry's license and source references before proposing an adaptation.

Questions about NIH 3D model search in opencode

Can opencode use NIH 3D model search?

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run NIH 3D model search like any built-in tool.

How much does NIH 3D model search cost in opencode?

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

Do I need an Alexandria account to use NIH 3D model search in opencode?

No. Spiral runs NIH 3D model search on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up NIH 3D model search in opencode?

About two minutes: add the server, then sign in, then check it.

Does opencode wait while NIH 3D model search runs?

NIH 3D model search runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

What scientific subjects does NIH 3D cover?

NIH 3D covers biomedical structures and equipment, including proteins, DNA, cells, bacteria, viruses, anatomy, prosthetics, and laboratory hardware. Its scope extends beyond printable organs to molecular and cellular visualization.

Where do NIH 3D molecular models come from?

NIH 3D can generate models from four external databases: PDB, AlphaFold, PubChem, and EMDB. These sources cover different kinds of molecular structure data, so inspect an entry's provenance when selecting it.

Can published models change?

Yes. Replacing a published entry's files creates a major version change, such as 1.0 to 2.0, while the previous files remain available in the earlier version.

Why might a model lack a download format?

NIH 3D omits some output formats for large meshes. Its documented thresholds are 3 million polygons for 3MF and 5 million polygons for WRL/X3D.

Does every NIH 3D file have the same reuse terms?

No. Reuse depends on the license associated with each file, and NIH 3D requires users to comply with those terms before using it.

Get started

Start using NIH 3D model search in opencode

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

Paste this into opencode:

Set up opencode

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