[Integrations](https://spiral.ai/integrations) › [Codex](https://spiral.ai/integrations/codex) › [Bria Product Dimensions](https://spiral.ai/integrations/codex/bria-product-dimensions)

# How to Use Bria Product Dimensions in Codex

Bria Product Dimensions turns a product photo and supplied measurements into a dimension graphic for a listing or catalog. It preserves the photographed product while adding callout lines and labels.

|  |  |
| --- | --- |
| Model | Bria Product Dimensions |
| Available through | fal |
| Category | Image |
| Price | $0.052 per image. |
| Returns | image |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Bria Product Dimensions in Codex

- Use Bria Product Dimensions to create a graphic from the bottle photo and approved specifications in this project. Show height, bottom width, and capacity; flag missing measurements.
- Find the planter photo and matching product record in this project. Use Bria Product Dimensions to show its height, top width, and bottom width with the short title 'Planter dimensions'.
- Use Bria Product Dimensions to make one dimension graphic per travel mug in the project catalog. Include verified height, bottom width, and weight, and save each result under its SKU.
- Use Bria Product Dimensions on the lamp photo and specification record in this repository. Create a 2200 × 2200 image showing height and base width, then add it to the product gallery.
- Use Bria Product Dimensions to generate separate graphics for the small and large containers in this project. Use each item's own photo and verified height and width, then build a comparison page from the results.

## How to set up Bria Product Dimensions 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 Bria Product Dimensions**: 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": "fal",
    "model": "bria/product-dimensions",
    "input": {
      "image": "https://bria-datasets.s3.us-east-1.amazonaws.com/product_dimensions/water+bottle+fal/water_bottle_white_background.png",
      "dimensions": [
        {
          "name": "height",
          "unit": "cm",
          "value": 22,
          "position": "left"
        },
        {
          "name": "width_bottom",
          "unit": "cm",
          "value": 7,
          "position": "bottom"
        }
      ],
      "style": "default"
    }
  }'
```

Then paste one of the prompts above: Codex finds Bria Product Dimensions on Spiral, shows the price and runs it.

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

## Bria Product Dimensions tools and prices

- [Bria Product Dimensions](https://spiral.ai/tools/fal/bria/product-dimensions) (fal): $0.052 per image.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| title_position | top_left, top_center, top_right | top_center | Title placement along the top. |
| proportional_lines |  | true | Scale dimension line lengths by measurement. |
| sync |  | false | When true, return generated images directly as base64 instead of CDN URLs. |
| title |  | — | Optional headline above the product. |
| output_size | 256 to 2200 | 2200 | Square output edge length in pixels. |
| output_format | png, jpeg, dual | png | Controls the rendered response: png, jpeg, or dual composite plus transparent overlay. |

## What can you do with Bria Product Dimensions in Codex?

Create dimension graphics from product photos and specifications already stored in your project. Have the coding agent match each photo to its measurements and flag missing values before generating assets.

### Product listing size graphics

Turn an existing product photo and verified height and width into a graphic shoppers can consult beside the listing description.

### Tapered container measurements

Show a planter or container's height, top width, and bottom width together so buyers can distinguish its opening from its base.

### Bottle size and capacity

Pair a bottle photo with height and base-width callouts, then include its verified capacity.

### Portable product specifications

Combine a product's visible dimensions and verified weight in one graphic for items such as travel mugs or small lamps.

### Catalog dimension images

Create a dimension graphic for each catalog item using its own photo and approved measurements, with consistent titles and presentation.

### Size comparison assets

Create a separate labeled graphic for each product size, then arrange the results together in a comparison page.

## Overview

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

## Bria Product Dimensions in other agents

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

## More Codex guides

- [Bria Increase Resolution](https://spiral.ai/integrations/codex/bria-increase-resolution)
- [Bria Product Holding](https://spiral.ai/integrations/codex/bria-product-holding)
- [Bria HD](https://spiral.ai/integrations/codex/bria-hd)
- [Bria Product Shot](https://spiral.ai/integrations/codex/bria-product-shot)
- [Bria Guided Remove Background](https://spiral.ai/integrations/codex/bria-guided-remove-background)
- [Bria RMBG 2.0](https://spiral.ai/integrations/codex/bria-rmbg-2-0)

## Questions about Bria Product Dimensions in Codex

**Can Codex use Bria Product Dimensions?**

Yes. Add Spiral to Codex as an MCP server, and Codex can find and run Bria Product Dimensions like any built-in tool.

**How much does Bria Product Dimensions cost in Codex?**

$0.052 per image. 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 a fal account to use Bria Product Dimensions in Codex?**

No. Spiral runs Bria Product Dimensions on its own fal account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Bria Product Dimensions in Codex?**

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

**Does Codex wait while Bria Product Dimensions runs?**

Bria Product Dimensions runs in the background. Codex starts the run, checks on it and gives you the image when it's ready.

**What is Bria Product Dimensions useful for?**

It creates dimension graphics for product listings and catalogs using a product photo and supplied measurements. Callout lines and labels put size information beside the item.

**Does Bria Product Dimensions redraw the product?**

The documented workflow preserves the product while rendering callout lines and labels around it. Start with a photo you want to use in the finished graphic.

**Can Bria Product Dimensions show depth?**

Length and depth callouts are explicitly disabled. Use it for graphics centered on height and width.

**What resolution does Bria Product Dimensions produce?**

The output is square, with a default size of 2200 × 2200 pixels.

**What makes a good brief for Bria Product Dimensions?**

Use a clean photo with the whole product visible, and supply verified measurements. Keep any title short so it leaves room for the product and its labels.

