# jiujiu532/grok2api

Repository: https://github.com/jiujiu532/grok2api
Canonical: https://ross.abutalabs.com/products/jiujiu532-grok2api
Language: Python
License: MIT
License Family: permissive
Last push: 2026-07-08T18:44:53+00:00

## Health v2 (maintenance only)
Score: 55/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 91, release rhythm 35, longevity 7
- inputs: {"age_days": 108, "days_push": 56, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, young
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1878, forks 341 (observed 2026-08-28T04:05:48.410173+00:00)

## What it is
A self-hosted Python/FastAPI gateway that exposes grok.com and console.x.ai chat, image, and video capabilities through OpenAI- and Anthropic-compatible APIs. It supports multi-account pooling with load balancing, quota rotation, media generation, and anti-blocking deployment options via WARP and FlareSolverr.

## Use cases
- use grok models through an openai-compatible api
- serve claude sdk clients with grok backend
- generate images and videos via api with grok accounts
- manage a pool of grok accounts with load balancing
- self-host a free llm api gateway using console.x.ai tokens
- bypass cloudflare blocking when calling grok
- expose /v1/chat/completions backed by grok

## When to choose
- you want OpenAI/Anthropic-compatible endpoints backed by Grok accounts
- you need multi-account pooling, quota rotation, and an admin dashboard
- you want text-to-image and text-to-video through the same gateway
- you need Docker-based self-hosting with anti-blocking options

## When to avoid
- you need official, fully supported API access with guaranteed uptime
- you cannot accept the legal/ToS risk of proxying grok.com web capabilities
- you require models other than Grok
- your environment cannot run Docker or lacks required networking permissions for the anti-block setup

## Facets
- artifact type: service
- maturity: active
- function: api-gateway, llm-inference, proxy, http-server, chatbot
- domain: large-language-models, apis, self-hosted, artificial-intelligence, backend
- platform: self-hosted, python
- tags: openai-compatible, anthropic-compatible, grok, account-pooling, image-generation, video-generation, fastapi, reverse-proxy-api, docker, web-server, linux

## Member repositories
- jiujiu532/grok2api (main) score 55

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:48.410173+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:14:39.642102+00:00, confidence not recorded.
  - readme: https://github.com/jiujiu532/grok2api (fetched 2026-08-28T04:05:48.410173+00:00, sha 8d6be15daa89)
- Data as of 2026-08-30T08:39:29.467469+00:00.
