Discover and explore top open-source AI tools and projects—updated daily.
TQZHRGrok API wrapper for multimodal AI services
New!
Top 81.1% on SourcePulse
This project provides a self-hostable API for Grok, enhancing the original chenyme/grok2api with features like automatic D1+KV provisioning for Cloudflare Workers and a comprehensive management panel. It targets developers and power users seeking a flexible, feature-rich solution for accessing Grok models, offering streamlined deployment via Docker or Cloudflare Workers and integrated tools for managing tokens and API keys.
How It Works
The core architecture utilizes FastAPI for the backend, with a separate TypeScript implementation for Cloudflare Workers leveraging D1 and KV storage. It supports streaming/non-streaming conversations, image generation/editing, and deep thinking capabilities. Key design choices include unified management semantics across local, Docker, and Cloudflare deployments, advanced token filtering and status checks, and an automated registration process that integrates a local Turnstile Solver.
Quick Start & Requirements
docker compose up -duv sync, uv run main.py.github/workflows/cloudflare-workers.yml (requires CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID secrets).uv package manager..github/workflows/cloudflare-workers.yml.Highlighted Details
/login) offers comprehensive control over tokens, API keys, data centers, configuration, and cache, with full mobile adaptation.grok models for chat, image generation, and video generation, with detailed usage counts and account type requirements.Maintenance & Community
No specific details regarding maintainers, community channels (like Discord/Slack), or roadmap are provided in the README.
Licensing & Compatibility
The project includes a disclaimer stating it is "for learning and research purposes only" and users must comply with Grok's terms and legal regulations, implying potential restrictions on commercial use. No explicit open-source license is listed.
Limitations & Caveats
Anonymous pulls from GHCR may be denied, requiring Docker login or building from source. The "一键刷新 NSFW" button is not available on the Cloudflare Workers deployment. The "learning and research" disclaimer suggests potential limitations for commercial applications. The imagine_ws_experimental image generation method is noted as experimental. Default admin credentials (admin/admin) require immediate change for production environments.
5 days ago
Inactive
xtekky