[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Vercel AI Gateway model details](https://spiral.ai/integrations/opencode/vercel-ai-gateway-model-details)

# How to Use Vercel AI Gateway model details in opencode

Returns the published page for one AI Gateway model, including its limits and usage guidance. Use it to examine a shortlisted model in more depth than the catalog provides.

|  |  |
| --- | --- |
| Model | Vercel AI Gateway model details |
| Available through | Alexandria |
| Category | Developer |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Vercel AI Gateway model details in opencode

- Use Vercel AI Gateway model details for openai/gpt-4o and compare its documented limits with the assumptions in our AI client.
- Use Vercel AI Gateway model details to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Vercel AI Gateway model details and tell me what changed since last week.
- Check Vercel AI Gateway model details and summarize what you find in three bullet points.
- Pull the newest data from Vercel AI Gateway model details and give me the result as a table.

## How to set up Vercel AI Gateway model details in opencode

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

### Use Spiral's MCP server

1. **Add the server**: Leave out `--global` to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

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

2. **Sign in**: Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, `/mcps` starts the same sign-in.

```bash
opencode mcp auth spiral
```

3. **Check it**: Spiral shows as connected.

```bash
opencode mcp list
```

### Use the Spiral skill

1. **Send opencode 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 Vercel AI Gateway model details**: 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": "vercel-com/developer-documentation/get_ai_gateway_model",
    "input": {
      "model": "<model>"
    }
  }'
```

Then paste one of the prompts above: opencode finds Vercel AI Gateway model details on Spiral, shows the price and runs it.

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

## Vercel AI Gateway model details tools and prices

- [Vercel · Get ai gateway model](https://spiral.ai/tools/alexandria/vercel-com/developer-documentation/get_ai_gateway_model) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| url |  | — | Alternatively a page URL like https://vercel.com/ai-gateway/models/gpt-4o. Pattern: ^https?://. |
| model |  | — | Model id like `openai/gpt-4o`, or the page slug like `gpt-4o`. |
| max_chars | 200 to 3000000 | — | Cut `content` to this many characters. |

## What can you do with Vercel AI Gateway model details in opencode?

Turn Vercel's public references into an implementation brief for the application in your repository. A coding agent can connect the published guidance, catalogs, and examples to the project's framework and requirements.

### Plan a Next.js AI application

Prepare an architecture brief with documentation, engineering articles, release announcements, model candidates, a starter template, Marketplace services, plan feature boundaries, and documented automation operations.

### Research a move to Vercel

Assess a move for an AI application: compare framework guidance and starters, identify replacement integrations and models, check plan features, and locate deployment automation references.

### Prepare a weekly platform review

Collect product announcements and engineering articles, then compare saved model, integration, starter, and plan-feature snapshots to identify items worth investigating.

### Build an internal Vercel reference library

Organize public guidance, announcements, model references, plan comparisons, integration listings, API references, and starters into a searchable engineering reference with source links.

### Prepare an AI application workshop

Choose a Next.js starter, research its supporting services, shortlist models, and assemble documentation and engineering reading material for participants.

### Create a model evaluation shortlist

Find model candidates by documented capabilities, inspect their individual guidance, and collect relevant AI Gateway documentation and announcements before running application-specific evaluations.

## Overview

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

## Vercel AI Gateway model details in other agents

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

## More opencode guides

- [Vercel AI Gateway model catalog](https://spiral.ai/integrations/opencode/vercel-ai-gateway-model-catalog)
- [Vercel Marketplace integrations](https://spiral.ai/integrations/opencode/vercel-marketplace-integrations)
- [Semantic Scholar related papers](https://spiral.ai/integrations/opencode/semantic-scholar-related-papers)
- [Vercel REST API endpoint reference](https://spiral.ai/integrations/opencode/vercel-rest-api-endpoint-reference)
- [Semantic Scholar paper title match](https://spiral.ai/integrations/opencode/semantic-scholar-paper-title-match)
- [Vercel blog posts](https://spiral.ai/integrations/opencode/vercel-blog-posts)

## Questions about Vercel AI Gateway model details in opencode

**Can opencode use Vercel AI Gateway model details?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Vercel AI Gateway model details like any built-in tool.

**How much does Vercel AI Gateway model details cost in opencode?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.

**Do I need an Alexandria account to use Vercel AI Gateway model details in opencode?**

No. Spiral runs Vercel AI Gateway model details on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Vercel AI Gateway model details in opencode?**

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

**Does opencode wait while Vercel AI Gateway model details runs?**

Vercel AI Gateway model details runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

**Does this data include my deployed application's logs or project settings?**

The coverage is limited to public Vercel pages and catalogs. Private project records and runtime logs are outside that boundary.

**Are documentation search results the full documentation?**

Vercel describes its sitemap as a high-level semantic index and explicitly says it does not replace individual docs. Read the linked page for the full explanation.

**What does the documentation's update date mean?**

Vercel's Markdown metadata defines the date as the day the source page last changed. That date describes the documentation page.

**Do Markdown documentation pages retain code examples and tables?**

Yes. Vercel says the Markdown body preserves headings, links, fenced code blocks, and tables.

**Does Vercel provide a separate index for product announcements?**

Yes. Vercel publishes a dedicated Markdown changelog sitemap, separate from its documentation sitemap.

