OpenAI · Text

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.

18 variants from $0.08 / 1M tokens Commercial OK

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

Prompt

Prompt models

Use codex-auto-review when it matches the task: codex-auto-review.

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

Public Versions and Endpoints

Model ID Endpoints Price Catalog
codex-auto-review
/v1/chat/completions /v1/responses
$0.16 / 1M tokens Model detail
gpt-4.1
/v1/chat/completions
$3.18 / 1M tokens Model detail
gpt-4.1-mini
/v1/chat/completions
$0.64 / 1M tokens Model detail
gpt-4o-mini
/v1/chat/completions /v1/responses
$0.15 / 1M tokens Model detail
gpt-5-pro
/v1/responses
$12.00 / 1M tokens Model detail
gpt-5.2
/v1/responses /v1/chat/completions
$1.40 / 1M tokens Model detail
gpt-5.4
/v1/responses /v1/chat/completions
$2.00 / 1M tokens Model detail
gpt-5.4-mini
/v1/chat/completions /v1/responses
$0.60 / 1M tokens Model detail
gpt-5.4-nano
/v1/responses /v1/chat/completions
$0.16 / 1M tokens Model detail
gpt-5.5
/v1/chat/completions /v1/responses
$4.00 / 1M tokens Model detail
gpt-5.6-luna
/v1/responses /v1/chat/completions
$0.16 / 1M tokens Model detail
gpt-5.6-sol
/v1/chat/completions /v1/responses
$3.20 / 1M tokens Model detail
gpt-5.6-terra
/v1/responses /v1/chat/completions
$1.60 / 1M tokens Model detail
gpt-6-astra
/v1/chat/completions /v1/responses
$8.00 / 1M tokens Model detail
gpt-6-luna
/v1/chat/completions /v1/responses
$0.08 / 1M tokens Model detail
gpt-6-sol
/v1/chat/completions /v1/responses
$1.60 / 1M tokens Model detail
gpt-6.1-sol
/v1/chat/completions /v1/responses
$1.60 / 1M tokens Model detail
gpt-6.1-terra
/v1/chat/completions /v1/responses
$0.80 / 1M tokens Model detail

Verify

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

Select <model-id> to generate verification commands.

Configuration

Guide endpoint: <endpoint>

Select <model-id> to generate a request with the endpoint's public input contract.
How it works

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.

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.

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.

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.

Start using GPT with Grok Build

Building with a team?

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

Contact Us