Redeem a Grok card, create your own API key, and call Chat Completions, Responses, or Anthropic Messages. Claude Code: ANTHROPIC_BASE_URL=https://gw.apimonth.com with Grok chat models such as grok-4.7.
ApiMonth is not an official xAI website.
Endpoints on this line
POST /v1/chat/completions
POST /v1/responses
POST /v1/messages
wss://gw.apimonth.com/v1/responses
POST /v1/images/generations
POST /v1/images/edits
POST /v1/videos/generations
GET /v1/videos/{request_id}
Grok Imagine images use POST /v1/images/generations and /v1/images/edits. Video uses POST /v1/videos/generations then GET /v1/videos/{request_id}; grok-imagine-video-1.5 costs $0.05 per completed second.
Example Chat Completions identifier: grok-4.7. Query GET /v1/models for the currently admitted list.
Published rates
Chat figures are credit / 1M tokens; image models are credit / image; video is $ / second. These are live sale rates (default 70% off, Gemini and GPT Luna models 20% off, Grok chat 70% off, image models $0.01–$0.08 per image, and Grok Video 1.5 $0.05/second; the current rate is shown here), not an upstream invoice. New packs last 30 days; historical cards convert to a permanent balance. Cache writes are not part of the public billing claim.
Chat: credit / million tokens. Images: credit / image. Video: $ / second. Live billable prices; — means unavailable or unsupported.