git
ask
hub
Privacy
Terms
Sign in with GitHub
jiujiu532/grok2api
↗
Stars ·
1,772
Language ·
Python
License ·
MIT
Simplify and Visualize This Repo
Scan the safety of this repo
Self Host this repo
Check out more work of Developer: jiujiu532
Ask anything about this repo to start.
I have an app that calls the OpenAI API. Write a code snippet showing how to point it at my Grok2api server instead, using the same chat completions endpoint format.
Set up a docker-compose file to run Grok2api with environment variables for my Grok account tokens and an admin password.
Write a Python script that sends a chat completion request to my local Grok2api endpoint and prints the response, using the openai Python library.
Show me how to add multiple Grok accounts to Grok2api through the admin dashboard so requests rotate between them automatically.
Full explanation on explaingit →
📎
Send
By chatting or signing in you agree to the
Terms
and chat-message logging (revocable in
History
).