[Integrations](https://spiral.ai/integrations) › [Claude](https://spiral.ai/integrations/claude-desktop) › [OpenAI](https://spiral.ai/integrations/claude-desktop/openai)

# How to Use OpenAI in Claude

Use OpenAI in Claude through Spiral to request GPT responses and generate images from a written brief. Ask for a second review of a plan, turn pasted notes into structured JSON, or create a visual for your next presentation.

|  |  |
| --- | --- |
| Tools | 51 |
| Categories | LLM, Image, Audio |
| Served by | OpenAI |
| Pricing | Pay per run, no subscription |
| Setup | About 2 minutes, no API key |

## Prompts to try with OpenAI in Claude

- Use OpenAI's GPT-5.2 through Spiral with high reasoning to review the launch plan we discussed. Include the plan and its constraints in the request. Ask for the three weakest assumptions, evidence needed to test each one, and a revised recommendation. Then compare that review with your assessment.
- Use OpenAI's GPT-5 Mini through Spiral to organize the customer feedback pasted above. Return a JSON list with the original comment, topic, sentiment, and requested change. Use null when a requested change is missing. Keep each original comment unchanged.
- Use OpenAI's GPT Image 2 through Spiral to create a landscape image, 1536 by 1024 pixels, at high quality in PNG format. Show a cut-paper illustration of a neighborhood library at dusk, with warm window light and people returning books. Leave the upper-left quarter uncluttered for a title I will add later.
- Use OpenAI's GPT-5.2 through Spiral to extract decisions from the meeting notes above as structured JSON. Include the notes in the request. Each decision should have a description, owner, deadline, and supporting quote. Use null for missing owners or deadlines, then show me which entries need clarification.
- Generate a product photo with OpenAI: a matte black water bottle on wet slate, soft morning light, 1:1. Tell me the price first.

## How to set up OpenAI in Claude

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

### Use the Claude connector

1. **Add Spiral to Claude**: Click Add Spiral in Claude above. Claude opens Add custom connector with Spiral and its URL filled in; check them and click Continue. Without the link: in Claude open Customize › Connectors › Add › Add custom connector and paste this URL:

```text
https://api.spiral.ai/mcp
```

2. **Keep the detected sign-in and click Add**: Claude finds Spiral's sign-in by itself: leave Sign in now and Use Claude's published identity selected.

3. **Click Connect**: The connector page opens. Connect takes you to Spiral in your browser.

### Use the Spiral skill

1. **Send Claude 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 OpenAI**: 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": "openai",
    "model": "gpt-image-2",
    "input": {
      "prompt": "A cute baby sea otter"
    }
  }'
```

Then paste one of the prompts above: Claude finds OpenAI on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/claude-desktop

## OpenAI tools and prices

- [GPT Image 2 · Text to Image](https://spiral.ai/tools/openai/gpt-image-2) (OpenAI): $0.274 per 1024×1024 image at high quality ($0.00775 low, $0.0686 medium). At high: $0.214 at 1536×1024 or 1024×1536, $0.198 at 1792×1024 or 1024×1792, $0.203 at 512×512, $0.186 at 256×256. Auto quality or size: the price of the one chosen for the request. Prompt: $6.50 per 1M tokens.
- [GPT-5.2](https://spiral.ai/tools/openai/openai/gpt-5.2) (OpenAI): Up to $0.074628 per run at the default inputs. $2.275 per 1M input tokens, $0.2275 per 1M cached input tokens, $18.20 per 1M output tokens.
- [GPT-5 Mini](https://spiral.ai/tools/openai/openai/gpt-5-mini) (OpenAI): Up to $0.010662 per run at the default inputs. $0.325 per 1M input tokens, $0.0325 per 1M cached input tokens, $2.60 per 1M output tokens.

## What can you do with OpenAI in Claude?

Claude can send a focused task to an OpenAI model through Spiral and help you work with the result. Specify the model, the material to use, and the output you want, such as a critique, a JSON list, or a landscape image.

### Get another review before choosing a plan

Ask GPT-5.2 to challenge a proposal against the constraints discussed in Claude. Have Claude compare the two assessments and identify disagreements worth investigating.

### Turn conversation material into records

Give GPT-5 Mini a bounded task, such as labeling pasted feedback by topic. Define the labels and missing-value rules first, then ask Claude to review ambiguous entries.

### Create an image from an agreed brief

Develop the composition and art direction in Claude, then send the finished brief to GPT Image 2. Specify dimensions, format, and where you need room for text.

### Extract decisions in a consistent format

Request structured JSON from GPT-5.2 for meeting decisions or action items. Include supporting quotes so you can check each record against the original notes.

### Check assumptions explicitly

Ask for a review that separates stated facts, assumptions, and unanswered questions. Use the result to decide what evidence to gather next.

### Prepare a presentation visual

Describe the subject, composition, and placement of any text you plan to add. Request a landscape PNG from GPT Image 2 and assess it against the slide's purpose.

## Overview

- [OpenAI](https://spiral.ai/providers/openai)
- [All Claude guides](https://spiral.ai/integrations/claude-desktop)

## OpenAI in other agents

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

## More Claude guides

- [Mistral](https://spiral.ai/integrations/claude-desktop/mistral)
- [Vizard](https://spiral.ai/integrations/claude-desktop/vizard)
- [Hedra](https://spiral.ai/integrations/claude-desktop/hedra)
- [xAI](https://spiral.ai/integrations/claude-desktop/xai)
- [Google Vertex AI](https://spiral.ai/integrations/claude-desktop/vertex)
- [ACE-Step Audio Inpaint](https://spiral.ai/integrations/claude-desktop/ace-step-audio-inpaint)

## Questions about OpenAI in Claude

**Can Claude use OpenAI?**

Yes. Add Spiral to Claude as an MCP server, and Claude can find and run OpenAI like any built-in tool.

**How much does OpenAI cost in Claude?**

Each tool has its own price, for example GPT Image 2 Text to Image: $0.274 per 1024×1024 image at high quality ($0.00775 low, $0.0686 medium). At high: $0.214 at 1536×1024 or 1024×1536, $0.198 at 1792×1024 or 1024×1792, $0.203 at 512×512, $0.186 at 256×256. Auto quality or size: the price of the one chosen for the request. Prompt: $6.50 per 1M tokens; GPT-5.2: Up to $0.074628 per run at the default inputs. $2.275 per 1M input tokens, $0.2275 per 1M cached input tokens, $18.20 per 1M output tokens; GPT-5 Mini: Up to $0.010662 per run at the default inputs. $0.325 per 1M input tokens, $0.0325 per 1M cached input tokens, $2.60 per 1M output tokens. You pay per run from one Spiral balance, and failed runs are free.

**Do I need an OpenAI account to use OpenAI in Claude?**

No. Spiral runs OpenAI on its own OpenAI account. You sign in to Spiral once and never paste a key.

**How long does it take to set up OpenAI in Claude?**

About two minutes: add Spiral to Claude, then keep the detected sign-in and click Add, then click Connect.

**Does Claude wait while OpenAI runs?**

OpenAI runs in the background. Claude starts the run, checks on it and gives you the image when it's ready.

**Should I use GPT-5.2 or GPT-5 Mini in Claude?**

Start with GPT-5 Mini for a clearly defined task with precise instructions. Consider GPT-5.2 when you want to choose a reasoning level for a more involved review.

**Can OpenAI return structured JSON in Claude?**

GPT-5.2 supports structured outputs. Specify the information each record should contain and how missing values should appear.

**Can I generate images with OpenAI from Claude?**

Yes, request GPT Image 2 through Spiral with a written image brief. Describe the composition and specify the image dimensions and output format.

**What image formats can OpenAI return?**

OpenAI's Image API supports PNG, JPEG, and WebP. Name the format you want in your request.

**Does structured JSON guarantee that every extracted fact is correct?**

Structured Outputs constrains the response's format to a supplied schema. Check extracted values against the source material before relying on them.

