{"id":22938140,"url":"https://github.com/zeeshanahmad4/flaskgpt-api","last_synced_at":"2026-05-04T21:37:16.070Z","repository":{"id":173217337,"uuid":"649970828","full_name":"Zeeshanahmad4/FlaskGPT-API","owner":"Zeeshanahmad4","description":"FlaskGPT-API is a powerful RESTful API for utilizing ChatGPT models using Flask and Python, effortlessly integrate ChatGPT into your applications.","archived":false,"fork":false,"pushed_at":"2023-06-16T08:22:43.000Z","size":26,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-07T12:39:55.353Z","etag":null,"topics":["apis","artificial-intelligence","chatbot","chatgpt","chatgpt-api","flask","gpt-4","openai","python","restful-api"],"latest_commit_sha":null,"homepage":"","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/Zeeshanahmad4.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":"2023-06-06T03:40:02.000Z","updated_at":"2023-11-15T23:13:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"fa24966b-6892-4d9e-81bf-4865b58871f8","html_url":"https://github.com/Zeeshanahmad4/FlaskGPT-API","commit_stats":null,"previous_names":["zeeshanahmad4/flaskgpt-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zeeshanahmad4%2FFlaskGPT-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zeeshanahmad4%2FFlaskGPT-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zeeshanahmad4%2FFlaskGPT-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zeeshanahmad4%2FFlaskGPT-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Zeeshanahmad4","download_url":"https://codeload.github.com/Zeeshanahmad4/FlaskGPT-API/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246700707,"owners_count":20819923,"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":["apis","artificial-intelligence","chatbot","chatgpt","chatgpt-api","flask","gpt-4","openai","python","restful-api"],"created_at":"2024-12-14T12:16:11.638Z","updated_at":"2026-05-04T21:37:16.044Z","avatar_url":"https://github.com/Zeeshanahmad4.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FlaskGPT-API\n\nFlaskGPT-API is a Python microservice built using the Flask framework that empowers developers to smoothly integrate ChatGPT services into their applications for end-users. It not only manages the authentication token but also modifies the incoming requests before routing them to the ChatGPT API. By leveraging this microservice, developers can avoid exposing their API keys to users, thereby offering a secure means to introduce ChatGPT functionalities into their apps.\n\n## Key Features\n\n- User authentication.\n- Secured handling of ChatGPT API requests with OpenAI.\n- SQLite database to store user data, conversation logs, and authentication details.\n- Usage of Celery tasks to asynchronously manage resource-demanding tasks.\n- Comprehensive logging for future analysis and improvement.\n- Supports both free and premium subscription tiers, each with its own usage restrictions.\n\n## Installation\n\nTo install FlaskGPT-API, follow these steps:\n\n1. Clone the repository:\n\nbashCopy code\n\n`git clone https://github.com/yourusername/flaskgpt-api.git` \n\n2. Navigate into the cloned directory:\n\nbashCopy code\n\n`cd flaskgpt-api` \n\n3. Install the necessary dependencies:\n\nbashCopy code\n\n`pip install -r requirements.txt` \n\n4. Make sure to insert your OpenAI API key into the settings.py file:\n\npythonCopy code\n\n`OPENAI_API_KEY = \"your-openai-api-key\"` \n\n5. Run the application:\n\nbashCopy code\n\n`python app.py` \n\n## API Endpoints\n\nFlaskGPT-API can be interacted with via the following API endpoints:\n\n1. Authenticate user: POST /authenticate/\u003cemail\u003e/\u003cpassword\u003e\n    \n2. Process ChatGPT query: POST /query/\u003cuserid\u003e/\u003cchatid\u003e/\u003caccount\u003e/\u003cdeviceid\u003e/\u003cquery\u003e\n    \n3. Retrieve user chat: GET /chats/\u003cuserid\u003e/\u003cchatid\u003e\n    \n4. Create a new user: POST /users/create\n    \n\nPlease refer to the API documentation for more details on request and response structures.\n\n## Requirements\n\n- Flask\n- Celery\n- SQLite\n- OpenAI\n\n## Contributions\n\nYour contributions are always welcome! Feel free to submit a pull request or raise an issue.\n\n## License\n\nThis project is licensed under the terms of the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeeshanahmad4%2Fflaskgpt-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzeeshanahmad4%2Fflaskgpt-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeeshanahmad4%2Fflaskgpt-api/lists"}