[Providers](https://spiral.ai/providers) › [OpenAI](https://spiral.ai/providers/openai)

# How to Use OpenAI in Any AI Agent

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.

## Prompts that work in any agent

- 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.

## OpenAI tools and prices

- [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.

## Use OpenAI in your AI agent

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

## What can you do with OpenAI in an AI agent?

### 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.

## More OpenAI tools

- [GPT Image 2 · Text to Image](https://spiral.ai/tools/openai/gpt-image-2)
- [GPT-5 Mini](https://spiral.ai/tools/openai/openai/gpt-5-mini)

## Related

- [Mistral](https://spiral.ai/providers/mistral)
- [Vizard](https://spiral.ai/providers/vizard)
- [Hedra](https://spiral.ai/providers/hedra)
- [xAI](https://spiral.ai/providers/xai)
- [Google Vertex AI](https://spiral.ai/providers/vertex)
- [OpenRouter](https://spiral.ai/providers/openrouter)

## Common questions

**Which AI agents can use OpenAI?**

Any agent Spiral connects to: Claude, ChatGPT, Gemini, Grok and Perplexity, coding agents such as Cursor, Claude Code and Codex, and workflow tools such as Zapier and n8n. Each agent's guide below shows its setup.

**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.

**How much does OpenAI cost through Spiral?**

Each OpenAI tool is priced per run, shown before it starts, and paid from one Spiral balance. Each run is charged for its measured usage.

**Do I need a OpenAI account to use it in an AI agent?**

No. Spiral runs OpenAI on its own account and charges your Spiral balance, so your agent needs no OpenAI key.

**How do I set up OpenAI in my agent?**

Connect Spiral to your agent once (a skill, an MCP server, the CLI or the API), then ask for a OpenAI tool by name. Each agent's guide on this page has its exact steps.

**Can my agent compare OpenAI tools?**

Yes. Ask it to run the same request on two OpenAI tools and show both results with what each cost.

**What happens if a run fails in your agent?**

It is not charged. Spiral holds a run's estimated price when it starts and returns it to your balance if the run fails on Spiral's side or the provider's, and your agent gets the error to retry or try another tool.

**Is there a subscription or plan?**

No. Spiral is pay as you go from one prepaid balance, with no plans or minimums, and credits never expire. Auto top-up and balance alerts keep runs from stopping when the balance runs low.

