grok2api
面向 Grok Build、Grok Web 与 Grok Console 的多账号 API 网关
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.
Grok config.yaml Configuration Options: Complete Reference for chenyme/grok2apiExplore Grok config.yaml options for server, auth, database, and more. Get a complete reference for chenyme/grok2api configuration settings to optimize your setup.
Asynchronous Video Job Processing in Grok: Architecture and ImplementationDiscover Grok's asynchronous video job processing architecture. Learn how clients submit requests, poll for completion, and retrieve content while background workers handle rendering.
How Quota and Concurrency Guards Protect Upstream Accounts in GrokGrok 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.
How to Debug Grok Egress Connection Failures and Transport ErrorsDebug 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 Sticky Session Routing Preserves Client Session Continuity in GrokLearn 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.
How the Grok Audit Service Tracks Usage and Client Billing in chenyme/grok2apiLearn 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 Configure Media Storage, Archival, and Retrieval in GrokConfigure 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.
Grok API Endpoints for Responses, Chat, Messages, Images, and Videos: A Complete Technical GuideExplore 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.
How Bounded Failover Works in a Grok Provider: Mechanism and ImplementationDiscover how bounded failover in Grok provider caps request retries, reroutes to fresh credentials, and prevents infinite loops. Learn the mechanism and implementation.
Grok Egress Manager Architecture and Scopes: Deep Dive into chenyme/grok2apiExplore 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.
How to Configure Egress Proxy Pools with Fallback and Balancing in Grok2APIConfigure egress proxy pools with fallback and balancing in Grok2API. Optimize traffic distribution and prevent cascade failures with smart routing policies.
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:
curl -s "https://instagit.com/install.md" Maintain an open-source project? Get it listed too →