Claude visitors: new accounts receive $1.00 in bonus API credit within 30 days. One per person; usage credits only.

GROK BUILD + RUNAPI

Use RunAPI in Grok Build.

Grok Build supports custom model configuration through base_url and env_key. Point the documented TOML shape at RunAPI, keep the key in RUNAPI_API_KEY, and choose a catalog-backed model guide.

Public configuration reference · no runtime or paid-upstream claim
[model.runapi]
model = "gpt-5.5"
name = "RunAPI GPT 5.5"
base_url = "https://runapi.ai/v1"
env_key = "RUNAPI_API_KEY"

[models]
default = "runapi"
export RUNAPI_API_KEY="runapi_xxx"
grok --version
grok
Public configuration reference/v1
SETUP

Configure the documented custom model shape

This page separates official configuration facts from runtime evidence. The repository did not run a paid upstream request or a real Grok Build session in this work, so the example is not a claim of successful inference.

1

Set the API key in the environment

Export RUNAPI_API_KEY in the same environment that launches Grok Build. Do not put a live key in config.toml or source control.

export RUNAPI_API_KEY="runapi_xxx"
2

Add the RunAPI model entry

Use the fields documented by xAI: model, name, base_url, and env_key. Keep the default pointing at the named model entry.

[model.runapi]
3

Review locally before a session

Check the installed CLI version and inspect the generated configuration locally. A local check does not prove a RunAPI request or model response.

grok --version
MODEL GUIDES

Choose a RunAPI model for Grok Build

The guide list is projected from the RunAPI catalog. Each guide shows the current model IDs and public endpoints rather than promising that every catalog variant has been runtime-tested with Grok Build.

GROK BOT

Grok Bot is a separate Cursor-hosted product.

xAI documents Grok Bot as a Cursor-connected product whose Bots run on persistent cloud computers. The public documentation does not expose the custom base_url or model-picker configuration documented for Grok Build, so this page does not promise RunAPI routing for Grok Bot.

Read the official Grok Bot documentation
REFERENCE

Configuration fields

Field Value Purpose
model.runapi.model gpt-5.5 Selects the RunAPI catalog model for the custom entry.
model.runapi.base_url https://runapi.ai/v1 Points the documented OpenAI-compatible base URL at RunAPI.
model.runapi.env_key RUNAPI_API_KEY Reads the credential from the environment instead of hardcoding it.
models.default runapi Selects the named custom model entry as the default.
FAQ

Grok Build configuration questions

Does this page claim that Grok Build has completed a RunAPI inference?

No. The TOML shape follows xAI's public Grok Build documentation, while a real RunAPI request requires a separately authorized runtime check. This work did not make a paid request.

Where should I store the RunAPI key?

Set RUNAPI_API_KEY in the environment that starts Grok Build. The env_key field tells the local configuration which variable to read.

Can Grok Bot use this configuration as its own model selector?

No such claim is made. xAI's Grok Bot documentation describes a Cursor-managed model and does not document a customer-controlled base_url or model selector.

Use a catalog-backed model guide.

Create or sign in to a RunAPI account, review the current model catalog, and keep runtime verification separate from this public configuration reference.