github chenyme/grok2api v2.0.0

latest releases: v2.0.4.rc0, v2.0.3, v2.0.2...
one day ago

What's Changed

v2.0.0 is now live.

This release marks the formal transition from 2.0.0.rc0 to the stable 2.0.0 line.

Highlights

  • Added Anthropic-compatible Messages API at /v1/messages
  • Improved tool-call parsing across XML and JSON-style formats
  • Added tokenizer-backed token estimation and more consistent usage reporting
  • Reworked WebUI and Admin pages with a cleaner static asset layout
  • Improved account refresh, quota sync, proxy handling, and multi-worker scheduling
  • Added version-based cache busting for local static assets
  • Improved Docker build flow and health checks

API

  • OpenAI-compatible endpoints:
    • /v1/models
    • /v1/chat/completions
    • /v1/responses
    • /v1/images/generations
    • /v1/images/edits
    • /v1/videos
    • /v1/videos/{video_id}
    • /v1/videos/{video_id}/content
  • Anthropic-compatible endpoint:
    • /v1/messages

Frontend

  • Rebuilt Admin pages for:
    • login
    • account management
    • config management
    • cache management
  • Rebuilt WebUI pages for:
    • Web Chat
    • Masonry
    • ChatKit
  • Improved static asset versioning to reduce stale-cache issues after upgrades
  • Refined several UI details across WebUI and Admin

Runtime

  • Refactored backend structure into:
    • platform
    • control
    • dataplane
    • products
  • Improved scheduler behavior in multi-worker deployments
  • Improved account-directory sync and quota refresh flow
  • Improved proxy runtime and provider integration

Notes for Upgrading

This release is not a drop-in upgrade for older builds.

Please review before upgrading:

  • back up your data/ directory
  • back up your config files and deployment environment variables
  • rename:
    • function_enabled -> webui_enabled
    • function_key -> webui_key
  • update your service entrypoint to app.main:app
  • note that older static asset layouts and some legacy paths were removed

Full Changelog: v2.0.0.rc0...v2.0.0

Don't miss a new grok2api release

NewReleases is sending notifications on new releases.