{"id":20911630,"url":"https://github.com/naruno/gpt-address-api","last_synced_at":"2025-05-13T07:32:22.114Z","repository":{"id":153101291,"uuid":"627787179","full_name":"Naruno/GPT-Address-API","owner":"Naruno","description":"Decentralized GPT API for everyone !","archived":false,"fork":false,"pushed_at":"2023-04-18T21:13:32.000Z","size":18,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2024-04-29T16:42:17.043Z","etag":null,"topics":["blockchain","chatgpt","gpt","gptaapi","naruno","openai","openai-api"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Naruno.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-04-14T07:45:21.000Z","updated_at":"2024-01-19T10:29:24.000Z","dependencies_parsed_at":"2023-06-03T17:45:11.422Z","dependency_job_id":null,"html_url":"https://github.com/Naruno/GPT-Address-API","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Naruno%2FGPT-Address-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Naruno%2FGPT-Address-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Naruno%2FGPT-Address-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Naruno%2FGPT-Address-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Naruno","download_url":"https://codeload.github.com/Naruno/GPT-Address-API/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253894912,"owners_count":21980420,"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":["blockchain","chatgpt","gpt","gptaapi","naruno","openai","openai-api"],"created_at":"2024-11-18T14:23:00.797Z","updated_at":"2025-05-13T07:32:22.107Z","avatar_url":"https://github.com/Naruno.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GPT Address API (GPTAAPI) for Naruno\nGPTAAPI is a decentralized API for OpenAI GPT. It allows you to use GPT without exposing your API key to the public. It is based on the [Naruno](https://naruno.org/) blockchain and uses the [Naruno API](https://naruno.org/api/) to communicate with the blockchain. GPTAAPI is written in Python and uses the [OpenAI GPT-3 API](https://openai.com/blog/openai-api/) to communicate with GPT.\n\n## Features\n- Decentralized system\n- Secure communication between nodes\n- Fast and easy to use\n- Secure point for GPT API's\n- Uses encryption to protect sensitive information\n\n\n## Installation\nYou can install GPTAAPI by pip3:\n\n```console\npip3 install gpt_address_api\n```\n\n## Usage\n\n*If you want to use gpt_address_api you must to use Naruno. For now please checkout the [Baklava Testnet](https://naruno.org/baklava-testnet/).\n\nGetting address of client and server:\n```console\nnarunocli -pw\n```\n\n### Server\nFor accessing your gpt api on blockchain you should create a gpt_address_api, giving trusted user addresses and api_key.\n\n```python\nfrom gpt_address_api import gptaapi\n\nmy_gptaapi_server = gptaapi(\"MyNarunoPass\")\n\nmy_gptaapi_server.set_encrypt_key(\"mystrongencrypt_key\")\n\nmy_gptaapi_server.set_api_key(\"my_open_ai_api_key\")\n\nmy_gptaapi_server.add_user(\"client_address\")\n\nmy_gptaapi_server.run()\n```\n\nalso you can use in command line:\n```console\t\ngptaapi --password MyNarunoPass --encrypt_key \"mystrongencrypt_key\" --trusted_users [\"client_address\"] --api_key my_open_ai_api_key run\n```\n\n### Client\nTo use gptaapi, you can call the gptaapi.ask function with your blockchain address, message and encryption key as the parameter:\n\n```python\nfrom gpt_address_api import gptaapi\n\nmy_gptaapi_client = gptaapi(\"MyNarunoPass\")\n\nresponse = my_gptaapi_client.ask(\"server_address\", \"Hello gpt, how are you\", \"mystrongencrypt_key\")\n\nprint(response)\n\nmy_gptaapi_client.close()\n```\n\nalso you can use in command line:\n```console\t\ngptaapi --password \"MyNarunoPass\" ask \"server_address\" \"Hello gpt, how are you\" \"mystrongencrypt_key\"\n```\n\n\nThis will return the response of gpt result.\n\n## Contributing\nContributions to gptaapi are welcome! If you have any suggestions or find a bug, please open an issue on the GitHub repository. If you want to contribute code, please fork the repository and create a pull request.\n\n## License\ngptaapi is released under the MPL-2.0 License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaruno%2Fgpt-address-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnaruno%2Fgpt-address-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaruno%2Fgpt-address-api/lists"}