grok2api

面向 Grok Build、Grok Web 与 Grok Console 的多账号 API 网关

41 articles 6k View on GitHub ↗
41 articles
How to Migrate Accounts from the Legacy Python Version of Grok to Grok2API

Migrate accounts from legacy Python Grok to Grok2API by exporting SSO tokens to a file and importing via the HTTP endpoint. Deduplicate entries and sync metadata automatically.

migration-guide
Aug 9, 2026
Grok config.yaml Configuration Options: Complete Reference for chenyme/grok2api

Explore Grok config.yaml options for server, auth, database, and more. Get a complete reference for chenyme/grok2api configuration settings to optimize your setup.

api-reference
Aug 9, 2026
Asynchronous Video Job Processing in Grok: Architecture and Implementation

Discover Grok's asynchronous video job processing architecture. Learn how clients submit requests, poll for completion, and retrieve content while background workers handle rendering.

architecture
Aug 9, 2026
How Quota and Concurrency Guards Protect Upstream Accounts in Grok

Grok uses quota and concurrency guards to protect upstream accounts. Learn how these features prevent resource exhaustion and ensure reliable service by limiting usage and simultaneous requests.

deep-dive
Aug 9, 2026
How to Debug Grok Egress Connection Failures and Transport Errors

Debug Grok egress connection failures and transport errors by inspecting API JSON, using neterror helpers, and verifying node health metrics. Resolve your Grok issues efficiently.

how-to-guide
Aug 9, 2026
How Sticky Session Routing Preserves Client Session Continuity in Grok

Learn how Grok's sticky session routing maintains client session continuity by binding clients to specific backend nodes using an affinity key for a set duration. Ensure seamless user experiences.

deep-dive
Aug 9, 2026
How the Grok Audit Service Tracks Usage and Client Billing in chenyme/grok2api

Learn how the Grok audit service tracks usage and client billing in chenyme/grok2api using SQLite audit records and fixed-point USD ticks for accurate pricing.

how-to-guide
Aug 9, 2026
How to Configure Media Storage, Archival, and Retrieval in Grok

Configure media storage, archival, and retrieval in Grok using its three-layer subsystem. Learn about YAML drivers, metadata management, and HTTP endpoints for efficient media handling.

how-to-guide
Aug 9, 2026
Grok API Endpoints for Responses, Chat, Messages, Images, and Videos: A Complete Technical Guide

Explore Grok API endpoints for text responses, chat, messages, image generation, and video jobs. This guide details OpenAI-compatible endpoints for Grok2API, enabling seamless integration with your applications.

deep-dive
Aug 9, 2026
How Bounded Failover Works in a Grok Provider: Mechanism and Implementation

Discover how bounded failover in Grok provider caps request retries, reroutes to fresh credentials, and prevents infinite loops. Learn the mechanism and implementation.

internals
Aug 9, 2026
Grok Egress Manager Architecture and Scopes: Deep Dive into chenyme/grok2api

Explore the Grok egress manager architecture and scopes in chenyme/grok2api. Understand its multi-layered design, proxy orchestration, and five scopes: Build, Web, Console, WebAsset, and ConsoleAsset.

deep-dive
Aug 9, 2026
How to Configure Egress Proxy Pools with Fallback and Balancing in Grok2API

Configure egress proxy pools with fallback and balancing in Grok2API. Optimize traffic distribution and prevent cascade failures with smart routing policies.

how-to-guide
Aug 9, 2026

Have a question about this repo?

These articles cover the highlights, but your codebase questions are specific. Give your agent direct access to the source. Share this with your agent to get started:

Share the following with your agent to get started:
curl -s "https://instagit.com/install.md"

Works with
Claude Codex Cursor VS Code OpenClaw Any MCP Client

Maintain an open-source project? Get it listed too →