How to Use Poly Haven asset categories in Codex
Returns Poly Haven's category hierarchy for browsing the asset library. Use it to find the right branch for materials, environments, or props before searching for individual assets.
Prompts to try with Poly Haven asset categories in Codex
Copy an example into Codex, or ask in your own words.
Use Poly Haven asset categories to retrieve the wood hierarchy, then adapt my project's material browser to display the returned categories.
Use Poly Haven asset categories to look this up and give me the result as a table. Save the result in ./assets.
Pull the latest numbers from Poly Haven asset categories and tell me what changed since last week.
Check Poly Haven asset categories and summarize what you find in three bullet points.
Pull the newest data from Poly Haven asset categories and give me the result as a table.
How to set up Poly Haven asset categories in Codex
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the hosted server
codex mcp add spiral --url https://api.spiral.ai/mcp
- Sign in
Codex opens the browser: sign in to Spiral and click Authorize. No API key. codex mcp list then shows Spiral.
codex mcp login spiral
Use the Spiral skill
- Send Codex 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 Poly Haven asset categories
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": "polyhaven-com/graphics-assets/list_categories", "input": { "type": "hdris" } }'
Then paste one of the prompts above: Codex finds Poly Haven asset categories on Spiral, shows the price and runs it.
Poly Haven asset categories providers and prices
Spiral runs Poly Haven asset categories through Alexandria. Open a card for today's price, with every fee included.
Settings you can ask for
Ask Codex for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Type | hdris, textures, or models | Asset type. | |
| Levels | 1 to 6 | Levels below the top (or below parent) to include; default 2. |
Every API field of Poly Haven · List categories is on its tool page: open its card above.
What can you do with Poly Haven asset categories in Codex?
Build a Poly Haven asset picker that turns category browsing into scene-ready file choices. A coding agent can use the taxonomy, asset metadata, and download links to add that workflow to your project.
Build an asset browser
Organize a browser around Poly Haven categories, show matching assets, and retrieve download links when an artist chooses one.
Prepare an architectural scene
Browse material and furniture categories, shortlist wood textures and props, and collect the files needed for an interior render.
Source assets for a game environment
Use categories to organize an environment's material and prop requirements, find candidates, and retrieve selected model and texture files.
Assemble a rendering research dataset
Select assets across category branches, collect their metadata, and retrieve file URLs for a dataset with documented material and object coverage.
More on Poly Haven asset categories and Codex
Overview
Poly Haven asset categories in other agents
Questions about Poly Haven asset categories in Codex
Can Codex use Poly Haven asset categories?
Yes. Add Spiral to Codex as an MCP server, and Codex can find and run Poly Haven asset categories like any built-in tool.
How much does Poly Haven asset categories cost in Codex?
$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Codex plan is separate.
Do I need an Alexandria account to use Poly Haven asset categories in Codex?
No. Spiral runs Poly Haven asset categories on its own Alexandria account. You sign in to Spiral once and never paste a key.
How long does it take to set up Poly Haven asset categories in Codex?
About two minutes: add the hosted server, then sign in.
Does Codex wait while Poly Haven asset categories runs?
Poly Haven asset categories runs in the background. Codex starts the run, checks on it and gives you the json when it's ready.
What does Poly Haven cover?
Poly Haven covers three types of 3D assets: HDRIs, textures, and models. Asset metadata includes tags, categories, authors, and dimensions.
How often does Poly Haven add assets?
Poly Haven says it publishes about one new public asset per weekday. Vault collections are released separately when their funding goals are reached.
What resolution does Poly Haven offer?
Poly Haven describes its HDRIs as 16K or higher and unclipped, and its photoscanned PBR textures as at least 8K. The downloadable files are organized by resolution and format.
Does a broad category include its subcategories?
Yes. Poly Haven's taxonomy is a tree for each asset type, and filtering by a parent category includes assets nested beneath it.
Does Poly Haven guarantee the metadata is complete?
No. Its API terms explicitly disclaim warranties about accuracy, completeness, and reliability, including the data and assets.
Start using Poly Haven asset categories in Codex
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Codex:
set up https://spiral.ai/SKILL.md


