How to Use ambientCG asset search in opencode
Find ambientCG assets and their metadata using descriptive keywords or a scene brief. Use it to discover candidates, then inspect a chosen asset's download options.
Prompts to try with ambientCG asset search in opencode
Copy an example into opencode, or ask in your own words.
Use ambientCG asset search to find metal materials, then write a shortlist of returned identifiers and titles into the project's scene manifest.
Use ambientCG asset search to find surfaces in the Kitchen collection and populate this project's scene-planning view with the returned candidates.
Use ambientCG asset search to look this up and give me the result as a table. Save the result in ./assets.
Pull the latest numbers from ambientCG asset search and tell me what changed since last week.
Check ambientCG asset search and summarize what you find in three bullet points.
How to set up ambientCG asset search in opencode
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- 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
- 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
- Check it
Spiral shows as connected.
opencode mcp list
Use the Spiral skill
- Send opencode this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- 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
- Create an API key
In the console, under API keys.
- Run ambientCG asset 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": "ambientcg-com/pbr-assets/search_assets", "input": { "q": "<q>" } }'
Then paste one of the prompts above: opencode finds ambientCG asset search on Spiral, shows the price and runs it.
ambientCG asset search providers and prices
Spiral runs ambientCG asset search through Alexandria. Open a card for today's price, with every fee included.
Settings you can ask for
Ask opencode for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Sort | popular, latest, downloads, oldest, random, or alphabet | Default popular. | |
| Limit | 1 to 50 | Assets per page, default 20, max 50. | |
| Offset | a number from 0 | Assets to skip; pass next_offset for the next page. | |
| Technique | hdri-bracketed-panorama, hdri-bracketed-panorama-horizon-clearing, hdri-panorama-procedural, hdri-bracketed-element, surface-photogrammetry, surface-fully-procedural, surface-approximated, surface-photometric-stereo and 4 more | Creation technique. |
Every API field of ambientCG CC0 materials, HDRIs and 3D models · Search assets is on its tool page: open its card above.
What can you do with ambientCG asset search in opencode?
Build a scene asset picker with ambientCG categories, collection titles, and searchable asset records. Your coding agent can turn selected assets and their download choices into a manifest used by the project.
Plan a kitchen visualization
Browse material categories and the Kitchen collection, search for surfaces that suit the scene, and inspect download options for the selected assets.
Source an industrial game environment
Start with the Industrial Manufacturing Facility collection and relevant material categories. Find surfaces for the level, then check each selected asset's download options.
Prepare assets for a rendering class
Build an exercise around a named collection, explain the available categories, and shortlist assets with download choices students can compare.
Build a scene asset manifest
Use categories and collections to organize a scene brief. Search for candidates and attach the selected asset identifiers and download options to the production manifest.
Add browsing to an asset picker
Present ambientCG category names, collection titles, and asset counts so artists can browse before searching for individual assets.
Compare texture download choices
Find candidate materials, then compare the resolutions, formats, and file sizes offered for the selected assets before downloading.
Maintain a catalog browsing index
Periodically compare category and collection counts with previous results. Search the areas that changed to identify assets worth reviewing.
Replace a scene's metal surface
Search for metal materials suited to the scene, then inspect known candidates such as Metal049A for usable download packages.
More on ambientCG asset search and opencode
Overview
ambientCG asset search in other agents
Questions about ambientCG asset search in opencode
Can opencode use ambientCG asset search?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run ambientCG asset search like any built-in tool.
How much does ambientCG asset 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 ambientCG asset search in opencode?
No. Spiral runs ambientCG asset 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 ambientCG asset search in opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while ambientCG asset search runs?
ambientCG asset search runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.
What is the difference between an ambientCG category and a collection?
Categories organize assets by subjects and asset types, such as Metal materials. Collections organize named sets such as Kitchen and Industrial Manufacturing Facility, and both return asset counts.
How much content is in an ambientCG collection?
Collection sizes differ. The retrieved catalog response listed 116 assets in Kitchen and 110 in Industrial Manufacturing Facility.
Does ambientCG provide different download resolutions?
Yes. For example, Metal049A offers 1K, 2K, 4K, and 8K downloads in JPG and PNG ZIP packages, with a size shown for each download.
Why can a descriptive ambientCG search return few results?
ambientCG combines search keywords with AND, so every added keyword narrows the match. Search for a broad material first, then add the surface detail you need.
Start using ambientCG asset search in opencode
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into opencode:
set up https://spiral.ai/SKILL.md


