{"id":18061210,"url":"https://github.com/hocgin/vercel-chatgpt","last_synced_at":"2025-04-11T13:53:49.860Z","repository":{"id":104377516,"uuid":"575654641","full_name":"hocgin/vercel-chatgpt","owner":"hocgin","description":"one step, chatgpt api in serverless","archived":false,"fork":false,"pushed_at":"2023-03-05T14:09:58.000Z","size":104,"stargazers_count":19,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-25T10:11:42.465Z","etag":null,"topics":["chatgpt","chatgpt-api","vercel"],"latest_commit_sha":null,"homepage":"https://vercel-chatgpt.vercel.app/api?ask=%E4%BB%80%E4%B9%88%E6%98%AFJava","language":"TypeScript","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/hocgin.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":"2022-12-08T02:07:35.000Z","updated_at":"2023-11-07T13:01:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"42fa07c2-39f3-48e5-84d1-29807cc6c229","html_url":"https://github.com/hocgin/vercel-chatgpt","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hocgin%2Fvercel-chatgpt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hocgin%2Fvercel-chatgpt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hocgin%2Fvercel-chatgpt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hocgin%2Fvercel-chatgpt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hocgin","download_url":"https://codeload.github.com/hocgin/vercel-chatgpt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248412088,"owners_count":21099047,"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":["chatgpt","chatgpt-api","vercel"],"created_at":"2024-10-31T04:42:12.818Z","updated_at":"2025-04-11T13:53:49.840Z","avatar_url":"https://github.com/hocgin.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Chatgpt on Vercel\n\n![vercel-chatgpt](https://vercelbadge.vercel.app/api/hocgin/vercel-chatgpt)\n\n\u003cimg src=\"http://cdn.hocgin.top/icons/vercel-chatgpt.qrcode.jpg\" width=\"120\"/\u003e\n\n\u003e Easily chatgpt/openai api as a\n\n## Usage\n\nservice. [![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/hocgin/vercel-chatgpt)\n\n```bash\ncurl https://${your_vercel_chatgpt}.vercel.app/api?ask=${your_ask}\n```\n\n## Example\n\n### Input\n\n```bash\n# chatgpt\ncurl https://vercel-chatgpt.vercel.app/api?ask=什么是Java\n\n# or openai\ncurl https://vercel-chatgpt.vercel.app/api/openai?ask=什么是Java\n\n# or chatgpt3.5-turbo\ncurl https://vercel-chatgpt.vercel.app/api/chatgpt?ask=什么是Java\n\n```\n\n### Output\n\n```json\n{\n  \"status\": 200,\n  \"success\": true,\n  \"message\": \"ok\",\n  \"data\": \"Java 是一种广泛使用的编程语言，它可以用于开发各种各样的应用程序，包括移动应用、企业级应用和 Web 应用程序。Java 是一种面向对象的语言，它拥有丰富的类库和工具，可以帮助开发人员更快速地开发应用程序。Java 是跨平台的，这意味着可以在多种操作系统上运行，包括 Windows、macOS 和 Linux 等。Java 程序通常使用一个独立的 Java 虚拟机来执行，这样就可以保证程序在不同平台上的一致性\"\n}\n```\n\n## Deploy your own instance\n\n[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/hocgin/vercel-chatgpt)\n\nVercel ENV:\n\n```env\nSESSION_TOKEN=${your_session_token}\n\n// or openai\nOPENAI_TOKEN=${your_openai_token}\n```\n\n## License\n\nMIT ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhocgin%2Fvercel-chatgpt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhocgin%2Fvercel-chatgpt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhocgin%2Fvercel-chatgpt/lists"}