Add Gab AI as a provider in your OpenClaw Gateway and access all generation endpoints through the OpenAI-compatible API.
In your OpenClaw Gateway configuration, add Gab AI as a provider using the OpenAI-compatible HTTP API format: Or if using the OpenClaw Go client (openclaw-go):
Requests follow the standard OpenAI chat completions format:
All requests require a Bearer token: API keys can be created and managed at gab.ai/ai/settings or via the /v1/api-keys endpoints.
All generation endpoints consume credits. Check your balance with GET /v1/credits. If credits are exhausted, the API returns a 402 status code.
Use the X-RateLimit-Remaining header and the /v1/credits endpoint to monitor your usage and avoid interruptions.
providers:
gab-ai:
type: openai
base_url: https://gab.ai/v1
api_key: YOUR_GAB_API_KEY
client := openai.NewClient(
openai.WithBaseURL("https://gab.ai/v1"),
openai.WithAPIKey("YOUR_GAB_API_KEY"),
)
curl https://gab.ai/v1/chat/completions \\
-H "Authorization: Bearer YOUR_GAB_API_KEY" \\
-H "Content-Type: application/json" \\
-d '{
"model": "arya",
"messages": [{"role": "user", "content": "Hello!"}],
"stream": true
}'
Authorization: Bearer gab-xxxxxxxxxxxx
Use the X-RateLimit-Remaining header and the /v1/credits endpoint to monitor your usage and avoid interruptions.