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"
Claude visitors: new accounts receive $1.00 in bonus API credit within 30 days. One per person; usage credits only.
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.
[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
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.
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"
Use the fields documented by xAI: model, name, base_url, and env_key. Keep the default pointing at the named model entry.
[model.runapi]
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
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.
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| 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. |
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.
Set RUNAPI_API_KEY in the environment that starts Grok Build. The env_key field tells the local configuration which variable to read.
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.
Create or sign in to a RunAPI account, review the current model catalog, and keep runtime verification separate from this public configuration reference.