https://thapi.cloud/v1

← All applications · Connect apps section on /docs

OpenAIconfigure grok-build

Grok Build

Grok Build: configure the API key, model and provider in your terminal.

Published instructions · App version: unverified

Chat, ping, invoke and content-generation examples may send real billable requests. Check the model, balance, rate and minimum before running them. GET /v1/models checks authentication and the catalogue only. Set up environment variables safely

Base URL to paste

OpenAI SDKs generally use a URL ending in /v1; Anthropic SDKs use the root URL. Avoid adding /v1 twice. Protocol compatibility does not guarantee every provider feature.

https://thapi.cloud/v1

Prerequisites

  1. Install grok build CLI
  2. API keys

Recommended model: grok-4.6

Quick way — command / config

api-cli configure grok-build

Where to place file / fill Settings

Filemacos
~/.grok/config.toml
Point to the ThAPI /v1 endpoint.
Filelinux
~/.grok/config.toml
Same as macOS.
Filewindows
%USERPROFILE%\.grok\config.toml
Create the TOML file.

Verify connection

  1. grok build chat
  2. api-cli doctor

Troubleshooting

SymptomReasonHow to handle
model unavailableThe model ID is not available on ThAPI.Use GET /v1/models to select an available grok ID.

Related

API CLI

Zalo group