[Integrations](https://spiral.ai/integrations) › [Codex](https://spiral.ai/integrations/codex) › [ambientCG asset categories](https://spiral.ai/integrations/codex/ambientcg-asset-categories)

# How to Use ambientCG asset categories in Codex

Browse ambientCG categories with their names, asset types, and asset counts. Use it to find a material or lighting category before searching for individual assets.

|  |  |
| --- | --- |
| Model | ambientCG asset categories |
| Available through | Alexandria |
| Category | News & Media |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with ambientCG asset categories in Codex

- Use ambientCG asset categories to retrieve material category names and counts, then add them to the category selector in this project's asset picker.
- Use ambientCG asset categories to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from ambientCG asset categories and tell me what changed since last week.
- Check ambientCG asset categories and summarize what you find in three bullet points.
- Pull the newest data from ambientCG asset categories and give me the result as a table.

## How to set up ambientCG asset categories in Codex

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

### Use Spiral's MCP server

1. **Add the hosted server**

```bash
codex mcp add spiral --url https://api.spiral.ai/mcp
```

2. **Sign in**: Codex opens the browser: sign in to Spiral and click Authorize. No API key. `codex mcp list` then shows Spiral.

```bash
codex mcp login spiral
```

### Use the Spiral skill

1. **Send Codex 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.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run ambientCG asset categories**: One request; the result comes back by polling or a webhook.

```bash
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/list_categories",
    "input": {
      "type": "material"
    }
  }'
```

Then paste one of the prompts above: Codex finds ambientCG asset categories on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/codex

## ambientCG asset categories tools and prices

- [ambientCG CC0 materials, HDRIs and 3D models · List categories](https://spiral.ai/tools/alexandria/ambientcg-com/pbr-assets/list_categories) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| type | material, hdri, 3d-model, terrain, substance, decal, atlas, plain-image, brush, hdri-element | — | Only categories of this asset type. |

## What can you do with ambientCG asset categories in Codex?

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.

### Maintain a catalog browsing index

Periodically compare category and collection counts with previous results. Search the areas that changed to identify assets worth reviewing.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All Codex guides](https://spiral.ai/integrations/codex)

## ambientCG asset categories in other agents

- [Amp](https://spiral.ai/integrations/amp/ambientcg-asset-categories)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/ambientcg-asset-categories)
- [Claude](https://spiral.ai/integrations/claude-desktop/ambientcg-asset-categories)
- [Claude Code](https://spiral.ai/integrations/claude-code/ambientcg-asset-categories)
- [Cline](https://spiral.ai/integrations/cline/ambientcg-asset-categories)
- [Cursor](https://spiral.ai/integrations/cursor/ambientcg-asset-categories)
- [Devin](https://spiral.ai/integrations/devin/ambientcg-asset-categories)
- [dots](https://spiral.ai/integrations/dots/ambientcg-asset-categories)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/ambientcg-asset-categories)
- [Gemini](https://spiral.ai/integrations/gemini/ambientcg-asset-categories)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/ambientcg-asset-categories)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/ambientcg-asset-categories)
- [goose](https://spiral.ai/integrations/goose/ambientcg-asset-categories)
- [Grok](https://spiral.ai/integrations/grok/ambientcg-asset-categories)
- [Grok Build](https://spiral.ai/integrations/grok-build/ambientcg-asset-categories)
- [Hermes](https://spiral.ai/integrations/hermes/ambientcg-asset-categories)
- [Instinct](https://spiral.ai/integrations/instinct/ambientcg-asset-categories)
- [Manus](https://spiral.ai/integrations/manus/ambientcg-asset-categories)
- [Muse](https://spiral.ai/integrations/muse/ambientcg-asset-categories)
- [Muse Code](https://spiral.ai/integrations/muse-code/ambientcg-asset-categories)
- [n8n](https://spiral.ai/integrations/n8n/ambientcg-asset-categories)
- [Notion](https://spiral.ai/integrations/notion/ambientcg-asset-categories)
- [OpenClaw](https://spiral.ai/integrations/openclaw/ambientcg-asset-categories)
- [opencode](https://spiral.ai/integrations/opencode/ambientcg-asset-categories)
- [Perplexity](https://spiral.ai/integrations/perplexity/ambientcg-asset-categories)
- [Raycast](https://spiral.ai/integrations/raycast/ambientcg-asset-categories)
- [VS Code](https://spiral.ai/integrations/vscode/ambientcg-asset-categories)
- [Windsurf](https://spiral.ai/integrations/windsurf/ambientcg-asset-categories)
- [Zapier](https://spiral.ai/integrations/zapier/ambientcg-asset-categories)

## More Codex guides

- [Zockify WoW Forever talent trees](https://spiral.ai/integrations/codex/zockify-wow-forever-talent-trees)
- [ambientCG asset collections](https://spiral.ai/integrations/codex/ambientcg-asset-collections)
- [Zockify WoW Forever stat weights](https://spiral.ai/integrations/codex/zockify-wow-forever-stat-weights)
- [ambientCG asset details](https://spiral.ai/integrations/codex/ambientcg-asset-details)
- [Zockify WoW Forever gear rankings](https://spiral.ai/integrations/codex/zockify-wow-forever-gear-rankings)
- [ambientCG asset search](https://spiral.ai/integrations/codex/ambientcg-asset-search)

## Questions about ambientCG asset categories in Codex

**Can Codex use ambientCG asset categories?**

Yes. Add Spiral to Codex as an MCP server, and Codex can find and run ambientCG asset categories like any built-in tool.

**How much does ambientCG 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 ambientCG asset categories in Codex?**

No. Spiral runs ambientCG 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 ambientCG asset categories in Codex?**

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

**Does Codex wait while ambientCG asset categories runs?**

ambientCG asset categories runs in the background. Codex 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.

