{"id":26047944,"url":"https://github.com/walterpinem/grokxai-api-streamlit","last_synced_at":"2026-04-23T09:35:01.836Z","repository":{"id":280700021,"uuid":"942870970","full_name":"walterpinem/grokxai-api-streamlit","owner":"walterpinem","description":"Testing Grok xAI Models with Streamlit","archived":false,"fork":false,"pushed_at":"2025-03-04T20:18:51.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-04T21:25:19.875Z","etag":null,"topics":["ai","ai-chatbot","ai-tools","api","grok","grok-ai","grok-api","grok3","python","python-3","python3","streamlit","streamlit-application","streamlit-webapp"],"latest_commit_sha":null,"homepage":"https://walterpinem.com/grok-xai-api/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/walterpinem.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-04T20:10:52.000Z","updated_at":"2025-03-04T20:18:54.000Z","dependencies_parsed_at":"2025-03-04T21:25:25.366Z","dependency_job_id":"10fcc2ef-81e3-462d-9140-dab2b67b6df2","html_url":"https://github.com/walterpinem/grokxai-api-streamlit","commit_stats":null,"previous_names":["walterpinem/grokxai-api-streamlit"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/walterpinem%2Fgrokxai-api-streamlit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/walterpinem%2Fgrokxai-api-streamlit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/walterpinem%2Fgrokxai-api-streamlit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/walterpinem%2Fgrokxai-api-streamlit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/walterpinem","download_url":"https://codeload.github.com/walterpinem/grokxai-api-streamlit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242473052,"owners_count":20134021,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","ai-chatbot","ai-tools","api","grok","grok-ai","grok-api","grok3","python","python-3","python3","streamlit","streamlit-application","streamlit-webapp"],"created_at":"2025-03-07T23:15:16.371Z","updated_at":"2026-04-23T09:35:01.832Z","avatar_url":"https://github.com/walterpinem.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A Simple Python Streamlit App for Testing Grok xAI Models\nTesting Grok xAI Models using Streamlit with a simple interface.\n\n![A Simple Python Streamlit App for Testing Grok xAI Models](https://walterpinem.com/wp-content/uploads/2025/03/Grok-xAI-Python-Streamlit-App-Interface.png)\n\n#### Simple usage:\n\n    streamlit run app.py\n\n---\nHere’s how you can get started:\n\n#### **1\\. Create a Python Virtual Environment**\n\nOpen your terminal (or Command Prompt on Windows) and navigate to your project directory. Then run:\n\n##### Windows \u0026 Mac\n\n    python -m venv grokxai_env\n    \n\nActivate it by running: \n\n**On Windows:**\n\n    grokxai_env\\Scripts\\activate\n    \n\n**On macOS/Linux:**\n\n    source grokxai_env/bin/activate\n    \n\nFor more detailed cover up, learn my post about [**Python virtual environment**](https://walterpinem.com/python-virtual-environment/).\n\n#### **2\\. Install Required Packages**\n\nWith your virtual environment activated, install Streamlit and [**OpenAI Python SDK**](https://github.com/openai/openai-python) as Grok xAI API is compatible with OpenAI (as well as any other dependencies you need) using `pip`:\n\n    pip install streamlit openai\n    \n\nThis will install the Streamlit framework, which we use to build our interactive web app, and the OpenAI package, which is required to interact with the Grok xAI API.\n\n#### **3\\. Prepare the Project Structure**\n\nOrganize your project directory so that you have all the necessary files in place:\n\n    grok-xai-chat-app/\n    ├── app.py\n    └── logo-white.png\n    \nYou can change the logo name or even remove it.\n\nRead the full explanation and tutorial on [**Testing Grok xAI API with Streamlit**](https://walterpinem.com/grok-xai-api/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwalterpinem%2Fgrokxai-api-streamlit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwalterpinem%2Fgrokxai-api-streamlit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwalterpinem%2Fgrokxai-api-streamlit/lists"}