---
title: Grok Build x GPT guide | RunAPI
description: Use GPT with Grok Build through RunAPI. Compare current model IDs, endpoints, and prices, then follow the matching configuration workflow.
url: https://runapi.ai/grok-build-gpt.md
canonical: https://runapi.ai/grok-build-gpt
locale: en
site: RunAPI
image: https://runapi.ai/assets/opengraph-bfaaa0f0.png
alternates:
  en: https://runapi.ai/grok-build-gpt
  zh-CN: https://runapi.ai/zh-CN/grok-build-gpt
  es: https://runapi.ai/es/grok-build-gpt
  ja: https://runapi.ai/ja/grok-build-gpt
  de: https://runapi.ai/de/grok-build-gpt
  fr: https://runapi.ai/fr/grok-build-gpt
  pt-BR: https://runapi.ai/pt-BR/grok-build-gpt
  ko: https://runapi.ai/ko/grok-build-gpt
  it: https://runapi.ai/it/grok-build-gpt
  nl: https://runapi.ai/nl/grok-build-gpt
  pl: https://runapi.ai/pl/grok-build-gpt
  tr: https://runapi.ai/tr/grok-build-gpt
  zh-TW: https://runapi.ai/zh-TW/grok-build-gpt
  zh-HK: https://runapi.ai/zh-HK/grok-build-gpt
  ar: https://runapi.ai/ar/grok-build-gpt
  x-default: https://runapi.ai/grok-build-gpt
model_line: gpt
---

> HTML version: https://runapi.ai/grok-build-gpt
> Site index for agents: https://runapi.ai/llms.txt


<!-- agent-model-guide-section: breadcrumb_hero owner=API-1798 state=ready -->

[Grok Build](https://runapi.ai/grok-build.md) / [GPT](https://runapi.ai/models/gpt.md)

# Grok Build x GPT

GPT is OpenAI's frontier LLM family, spanning standard and mini variants for different cost-performance trade-offs. Through RunAPI, all GPT models share the same API shape and billing.

- [Get API Key](https://runapi.ai/login)
- [View Grok Build Docs](https://runapi.ai/docs/guides)

<!-- agent-model-guide-section: key_facts owner=API-1800 state=ready -->
18 variants · from $0.08 / 1M tokens · Commercial OK


<!-- agent-model-guide-section: prompt_terminal owner=API-1808 state=ready -->
## Prompt

Prerequisite: export RUNAPI_API_KEY and use the documented config.toml entry.

```text
You have access to RunAPI chat models for GPT.

Available GPT models:
- codex-auto-review: codex-auto-review
  chat endpoints: /v1/chat/completions, /v1/responses
- gpt-4.1: OpenAI's non-reasoning GPT-4.1; 1M context, image input and tools via OpenAI-compatible API
  chat endpoints: /v1/chat/completions
- gpt-4.1-mini: Smaller GPT-4.1 model; 1M context, image input and tools via OpenAI-compatible API
  chat endpoints: /v1/chat/completions
- gpt-4o-mini: Fast, affordable GPT-4o model for everyday text tasks
  chat endpoints: /v1/chat/completions, /v1/responses
- gpt-5-pro: GPT-5 Pro for analysis and coding through the Responses API
  chat endpoints: /v1/responses
- gpt-5.2: Professional knowledge work; Thinking mode for deep tasks
  chat endpoints: /v1/responses, /v1/chat/completions
- gpt-5.4: Best coding + agentic workflows; industry-leading code benchmark
  chat endpoints: /v1/responses, /v1/chat/completions
- gpt-5.4-mini: Cost-effective fallback for gpt-5.4; available to Free tier
  chat endpoints: /v1/chat/completions, /v1/responses
- gpt-5.4-nano: gpt-5.4-nano
  chat endpoints: /v1/responses, /v1/chat/completions
- gpt-5.5: Purpose-built for long-horizon agentic tasks; best error recovery
  chat endpoints: /v1/chat/completions, /v1/responses
- gpt-5.6-luna: Fastest, lightest GPT-5.6 tier for summaries, drafts, and everyday automation
  chat endpoints: /v1/responses, /v1/chat/completions
- gpt-5.6-sol: Flagship for the hardest tasks: complex coding, deep research, long-horizon agents
  chat endpoints: /v1/chat/completions, /v1/responses
- gpt-5.6-terra: Balanced workhorse for high-volume tasks; near-flagship quality, cost-efficient
  chat endpoints: /v1/responses, /v1/chat/completions
- gpt-6-astra: Most capable model: frontier reasoning, 1M context, code generation, and agentic tasks
  chat endpoints: /v1/chat/completions, /v1/responses
- gpt-6-luna: Fastest, lightest GPT-6 tier: 1M context for summaries, drafts, and everyday automation
  chat endpoints: /v1/chat/completions, /v1/responses
- gpt-6-sol: Cost-efficient GPT-6 tier: strong reasoning, 1M context, coding, and agentic tasks
  chat endpoints: /v1/chat/completions, /v1/responses
- gpt-6.1-sol: Cost-efficient GPT-6 tier: strong reasoning, 1M context, coding, and agentic tasks
  chat endpoints: /v1/chat/completions, /v1/responses
- gpt-6.1-terra: Balanced GPT-6.1 workhorse: near-flagship quality, 1M context, cost-efficient for high-volume tasks
  chat endpoints: /v1/chat/completions, /v1/responses

Use the model ID and chat endpoint that match the user's request.
Example request: Analyze this quarterly revenue data and produce a summary with key trends, anomalies, and three recommendations.
Verify the active model with: grok inspect;grok -p "Hello from RunAPI" -m runapi
```





<!-- agent-model-guide-section: prompt_model_tabs owner=API-1812 state=ready -->
## Prompt models

Use RunAPI with GPT through this guide.

Available GPT models:

- `codex-auto-review`: codex-auto-review
- `gpt-4.1`: OpenAI's non-reasoning GPT-4.1; 1M context, image input and tools via OpenAI-compatible API
- `gpt-4.1-mini`: Smaller GPT-4.1 model; 1M context, image input and tools via OpenAI-compatible API
- `gpt-4o-mini`: Fast, affordable GPT-4o model for everyday text tasks
- `gpt-5-pro`: GPT-5 Pro for analysis and coding through the Responses API
- `gpt-5.2`: Professional knowledge work; Thinking mode for deep tasks
- `gpt-5.4`: Best coding + agentic workflows; industry-leading code benchmark
- `gpt-5.4-mini`: Cost-effective fallback for gpt-5.4; available to Free tier
- `gpt-5.4-nano`: gpt-5.4-nano
- `gpt-5.5`: Purpose-built for long-horizon agentic tasks; best error recovery
- `gpt-5.6-luna`: Fastest, lightest GPT-5.6 tier for summaries, drafts, and everyday automation
- `gpt-5.6-sol`: Flagship for the hardest tasks: complex coding, deep research, long-horizon agents
- `gpt-5.6-terra`: Balanced workhorse for high-volume tasks; near-flagship quality, cost-efficient
- `gpt-6-astra`: Most capable model: frontier reasoning, 1M context, code generation, and agentic tasks
- `gpt-6-luna`: Fastest, lightest GPT-6 tier: 1M context for summaries, drafts, and everyday automation
- `gpt-6-sol`: Cost-efficient GPT-6 tier: strong reasoning, 1M context, coding, and agentic tasks
- `gpt-6.1-sol`: Cost-efficient GPT-6 tier: strong reasoning, 1M context, coding, and agentic tasks
- `gpt-6.1-terra`: Balanced GPT-6.1 workhorse: near-flagship quality, 1M context, cost-efficient for high-volume tasks
Use codex-auto-review when it matches the task: codex-auto-review.



<!-- agent-model-guide-section: versions_endpoints owner=API-1817 state=runtime_fallback -->

## Public Versions and Endpoints

| Model ID | Version | Endpoints | Price |
| --- | --- | --- | --- |
| `codex-auto-review` | codex-auto-review | /v1/chat/completions, /v1/responses | $0.16 / 1M tokens |
| `gpt-4.1` | OpenAI's non-reasoning GPT-4.1; 1M context, image input and tools via OpenAI-compatible API | /v1/chat/completions | $3.18 / 1M tokens |
| `gpt-4.1-mini` | Smaller GPT-4.1 model; 1M context, image input and tools via OpenAI-compatible API | /v1/chat/completions | $0.64 / 1M tokens |
| `gpt-4o-mini` | Fast, affordable GPT-4o model for everyday text tasks | /v1/chat/completions, /v1/responses | $0.15 / 1M tokens |
| `gpt-5-pro` | GPT-5 Pro for analysis and coding through the Responses API | /v1/responses | $12.00 / 1M tokens |
| `gpt-5.2` | Professional knowledge work; Thinking mode for deep tasks | /v1/responses, /v1/chat/completions | $1.40 / 1M tokens |
| `gpt-5.4` | Best coding + agentic workflows; industry-leading code benchmark | /v1/responses, /v1/chat/completions | $2.00 / 1M tokens |
| `gpt-5.4-mini` | Cost-effective fallback for gpt-5.4; available to Free tier | /v1/chat/completions, /v1/responses | $0.60 / 1M tokens |
| `gpt-5.4-nano` | gpt-5.4-nano | /v1/responses, /v1/chat/completions | $0.16 / 1M tokens |
| `gpt-5.5` | Purpose-built for long-horizon agentic tasks; best error recovery | /v1/chat/completions, /v1/responses | $4.00 / 1M tokens |
| `gpt-5.6-luna` | Fastest, lightest GPT-5.6 tier for summaries, drafts, and everyday automation | /v1/responses, /v1/chat/completions | $0.16 / 1M tokens |
| `gpt-5.6-sol` | Flagship for the hardest tasks: complex coding, deep research, long-horizon agents | /v1/chat/completions, /v1/responses | $3.20 / 1M tokens |
| `gpt-5.6-terra` | Balanced workhorse for high-volume tasks; near-flagship quality, cost-efficient | /v1/responses, /v1/chat/completions | $1.60 / 1M tokens |
| `gpt-6-astra` | Most capable model: frontier reasoning, 1M context, code generation, and agentic tasks | /v1/chat/completions, /v1/responses | $8.00 / 1M tokens |
| `gpt-6-luna` | Fastest, lightest GPT-6 tier: 1M context for summaries, drafts, and everyday automation | /v1/chat/completions, /v1/responses | $0.08 / 1M tokens |
| `gpt-6-sol` | Cost-efficient GPT-6 tier: strong reasoning, 1M context, coding, and agentic tasks | /v1/chat/completions, /v1/responses | $1.60 / 1M tokens |
| `gpt-6.1-sol` | Cost-efficient GPT-6 tier: strong reasoning, 1M context, coding, and agentic tasks | /v1/chat/completions, /v1/responses | $1.60 / 1M tokens |
| `gpt-6.1-terra` | Balanced GPT-6.1 workhorse: near-flagship quality, 1M context, cost-efficient for high-volume tasks | /v1/chat/completions, /v1/responses | $0.80 / 1M tokens |


<!-- agent-model-guide-section: verify_code_block owner=API-1824 state=runtime_fallback -->

## Verify

Run the synchronous chat check shown below; it does not create or poll a task.

```
grok inspect
grok -p "Hello from RunAPI" -m runapi
```



## Configuration

Use the documented Grok Build TOML configuration to select `<model-id>` through RunAPI. This page does not claim that a real Grok Build session or paid upstream request was executed.

`/v1/chat/completions`

```
[model.runapi]
model = "<model-id>"
name = "RunAPI <model-id>"
base_url = "https://runapi.ai/v1"
env_key = "RUNAPI_API_KEY"

[models]
default = "runapi"
```
`/v1/responses`

```
[model.runapi]
model = "<model-id>"
name = "RunAPI <model-id>"
base_url = "https://runapi.ai/v1"
env_key = "RUNAPI_API_KEY"

[models]
default = "runapi"
```


<!-- agent-model-guide-section: three_step_flow owner=API-1830 state=ready -->

## Get Started in 3 Steps

1. **Choose a model ID.** Select a public catalog model ID and review its endpoint and current starting price.
2. **Configure RunAPI.** Add the provider configuration for this agent.
3. **Verify the result.** Run the agent status and model-selection commands shown below.



<!-- agent-model-guide-section: use_case_cards owner=API-1837 state=ready -->

## What to Build with Grok Build + GPT

**Agent coding and reasoning**

Let your agent plan, write, and review code or work through multi-step problems with the model's reasoning.

**Long document analysis and extraction**

Summarize reports, contracts, or codebases and pull structured fields out of long documents.

**Tool-calling workflows**

Connect the model to functions and APIs so your agent can look up data and take actions between replies.



<!-- agent-model-guide-section: benefit_cards owner=API-1844 state=ready -->

## Why Use GPT Through RunAPI + Grok Build

**18 variants, one API key**

Use one RunAPI connection to choose among the live model variants without changing your integration.

**Clear usage pricing**

See current catalog pricing before you send a request, with no subscription or minimum spend required.

**Direct responses**

Synchronous calls return the result in the same response, so your agent can use it immediately without task polling.




<!-- agent-model-guide-section: faq owner=API-1851 state=ready -->

## Grok Build + GPT Questions

### Which GPT variant should I choose?

GPT-5.6 — the sol, terra, and luna tiers — is the current flagship generation. GPT-5.4 remains a strong choice for coding and agentic workflows, GPT-5.5 for long-horizon autonomous tasks, and GPT-5.4-mini is the cost-effective option for simpler tasks.

### Does GPT support tool use and function calling?

Yes — all GPT-5 variants support structured function calling with JSON schemas, enabling agentic tool-use workflows.

### What is Thinking mode?

Thinking mode lets GPT reason step-by-step before responding. Available on GPT-5.2 and above, it improves accuracy on complex reasoning tasks.

### What is the context window size?

Context windows vary by variant. GPT-5.4 and above support large context windows suitable for multi-file code analysis and long documents.

### Which model ID should I use?

Choose a public model ID from the version table. Each ID exposes the endpoints shown for that version.

### Does this guide configure a chat model?

Yes. This Model Line supports a client-facing LLM protocol.




<!-- agent-model-guide-section: related_guides owner=API-1859 state=ready -->



<!-- agent-model-guide-section: final_cta owner=API-1866 state=ready -->

## Start using GPT with Grok Build

- [Get API Key](https://runapi.ai/login)
- [Read Quickstart](https://runapi.ai/docs/guides)


<!-- agent-model-guide-section: team_contact_cta owner=API-1873 state=ready -->
## Building with a team?

We're here to help with enterprise setup, integrations, and technical questions.

[Contact Us](https://runapi.ai/contact.md)




<!-- agent-model-guide-section: footer owner=API-1880 state=shared -->


---

## More from RunAPI

- [Home](https://runapi.ai/.md)
### Product
- [Model Catalog](https://runapi.ai/models.md)
- [Pricing](https://runapi.ai/pricing.md)
- [Providers](https://runapi.ai/models#all-models)
### Developers
- [Documentation](https://runapi.ai/docs/guides)
- [SDKs](https://runapi.ai/sdk.md)
- [CLI](https://runapi.ai/cli.md)
- [MCP Server](https://runapi.ai/mcp.md)
- [x402](https://runapi.ai/x402.md)
### Guides
- [Claude Code vs Cursor](https://runapi.ai/claude-code-vs-cursor.md)
- [Cursor API Setup](https://runapi.ai/cursor-api-setup.md)
- [RunAPI vs OpenRouter](https://runapi.ai/openrouter-alternative.md)
### Company
- [Enterprise](https://runapi.ai/contact.md)
- [Contact](https://runapi.ai/contact.md)
### Legal
- [Terms](https://runapi.ai/terms.md)
- [Privacy](https://runapi.ai/privacy.md)
- [Site index for agents](https://runapi.ai/llms.txt)

Contact: contact@runapi.ai


## Structured data

```json
[
  {
    "@context": "https://schema.org",
    "inLanguage": "en",
    "@type": "WebSite",
    "name": "RunAPI",
    "url": "https://runapi.ai/",
    "potentialAction": {
      "@type": "SearchAction",
      "target": {
        "@type": "EntryPoint",
        "urlTemplate": "https://runapi.ai/models?q={search_term_string}"
      },
      "query-input": "required name=search_term_string"
    }
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "en",
    "@type": "Organization",
    "name": "RunAPI",
    "url": "https://runapi.ai/",
    "logo": {
      "@type": "ImageObject",
      "url": "https://runapi.ai/icon.svg"
    },
    "sameAs": [
      "https://github.com/runapi-ai"
    ]
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "en",
    "@type": "SoftwareApplication",
    "name": "Grok Build x GPT",
    "applicationCategory": "DeveloperApplication",
    "description": "Use GPT with Grok Build through RunAPI. Compare current model IDs, endpoints, and prices, then follow the matching configuration workflow.",
    "url": "https://runapi.ai/grok-build-gpt"
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "en",
    "@type": "FAQPage",
    "mainEntity": [
      {
        "@type": "Question",
        "name": "Which GPT variant should I choose?",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "GPT-5.6 — the sol, terra, and luna tiers — is the current flagship generation. GPT-5.4 remains a strong choice for coding and agentic workflows, GPT-5.5 for long-horizon autonomous tasks, and GPT-5.4-mini is the cost-effective option for simpler tasks."
        }
      },
      {
        "@type": "Question",
        "name": "Does GPT support tool use and function calling?",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "Yes — all GPT-5 variants support structured function calling with JSON schemas, enabling agentic tool-use workflows."
        }
      },
      {
        "@type": "Question",
        "name": "What is Thinking mode?",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "Thinking mode lets GPT reason step-by-step before responding. Available on GPT-5.2 and above, it improves accuracy on complex reasoning tasks."
        }
      },
      {
        "@type": "Question",
        "name": "What is the context window size?",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "Context windows vary by variant. GPT-5.4 and above support large context windows suitable for multi-file code analysis and long documents."
        }
      },
      {
        "@type": "Question",
        "name": "Which model ID should I use?",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "Choose a public model ID from the version table. Each ID exposes the endpoints shown for that version."
        }
      },
      {
        "@type": "Question",
        "name": "Does this guide configure a chat model?",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "Yes. This Model Line supports a client-facing LLM protocol."
        }
      }
    ]
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "en",
    "@type": "HowTo",
    "name": "Use GPT with Grok Build",
    "step": [
      {
        "@type": "HowToStep",
        "position": 1,
        "name": "Choose a model ID",
        "text": "Select a public catalog model ID and review its endpoint and current starting price.",
        "url": "https://runapi.ai/grok-build-gpt#how-step-1"
      },
      {
        "@type": "HowToStep",
        "position": 2,
        "name": "Configure RunAPI",
        "text": "Add the provider configuration for this agent.",
        "url": "https://runapi.ai/grok-build-gpt#how-step-2"
      },
      {
        "@type": "HowToStep",
        "position": 3,
        "name": "Verify the result",
        "text": "Run the agent status and model-selection commands shown below.",
        "url": "https://runapi.ai/grok-build-gpt#how-step-3"
      }
    ]
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "en",
    "@type": "BreadcrumbList",
    "itemListElement": [
      {
        "@type": "ListItem",
        "position": 1,
        "name": "Home",
        "item": "https://runapi.ai/"
      },
      {
        "@type": "ListItem",
        "position": 2,
        "name": "Grok Build",
        "item": "https://runapi.ai/grok-build"
      },
      {
        "@type": "ListItem",
        "position": 3,
        "name": "GPT",
        "item": "https://runapi.ai/grok-build-gpt"
      }
    ]
  }
]
```
