├── README-CN.md ├── README.md └── images ├── 20230810113755.png ├── 20230810113811.png ├── 20230810113831.png ├── 20230811122810.png ├── 20230811123049.png └── 20230812032136.png /README-CN.md: -------------------------------------------------------------------------------- 1 | # AiAPI 2 | 3 | > 这是软件的下载和支持页面 4 | 5 | AiAPI是个跨平台客户端,它可以将 Claude 网站转化为 OpenAI 兼容的 API,这样你就可以在所有兼容 OpenAI 的软件里边使用 Claude 的 100k 上下文能力。更棒的是,这是免费的。感谢Claude。 6 | 7 | # 特色功能 8 | 9 | 1. 跨平台,Mac/Windows均可使用 10 | 1. 基于 Claude2,提供100k上下文 11 | 1. 兼容 OpenAI API,直接重用 OpenAI 的现有工具 12 | 1. 支持 CookieCloud 浏览器插件,可以自动定时刷新和同步Cookie 13 | 14 | # 下载 15 | 16 | 请移步[仓库的 Release](https://github.com/easychen/aiapi/releases) 17 | 18 | # 界面和功能 19 | 20 | ![](images/20230810113755.png) 21 | 22 | ![](images/20230810113811.png) 23 | 24 | ![](images/20230810113831.png) 25 | 26 | # 视频教程 27 | 28 | ![](images/20230812032136.png) 29 | 30 | [请移步B站](https://www.bilibili.com/video/BV1Ku4y1q75F?t=946.6) 31 | 32 | # 使用说明 33 | 34 | 1. 注册账号并登入 35 | 1. 进入 页面,F12打开DevTools → Applications → Cookies → 复制sessionKey 36 | ![](images/20230811122810.png) 37 | 1. 将 sessionKey 填入到 Settings 面板中,并保存 38 | ![](images/20230811123049.png) 39 | 1. 将原来填写OpenAI API Endpoint 的地方改为 http://127.0.0.1:3456 即可(如果原来后边有/v1/...,那么把这部分也加上) 40 | 1. API Key可以随意填写,但部分客户端可能对格式有校验,因此你也可以使用这个 `sk-1234567890ULScvLPEHbT3B3bkFJ34mOSRJSVf9fMWP8UXyw` 41 | 1. ~~本接口目前只支持 stream 模式,因此请打开`流式输出`选项~~ 已在 1.0.2 版本支持 42 | 43 | # 兼容性说明 44 | 45 | 1. 目前仅兼容 `/v1/chat/completions` 接口、`messages` 参数。模型直接使用 `claude-2`。 46 | 1. 支持连续对话,`messages` 参数会自动拼接。 47 | 48 | # 使用AiAPI的项目 49 | 50 | 1. [book-by-ai](https://github.com/easychen/book-by-ai):使用AI生成高质量的电子书 51 | 52 | # 软件使用免责声明 53 | 54 | 1. 本软件仅供用户自行安装和使用,开发者不提供任何形式的技术支持。 55 | 2. 用户在使用本软件时,应自行承担一切风险和责任,包括但不限于使用不当、数据丢失、系统崩溃等。 56 | 3. 开发者不对本软件的适用性、准确性、可靠性、完整性和及时性做出任何明示或暗示的保证。 57 | 4. 用户在使用本软件时,应自行了解并遵守相关法律法规和网站的用户协议,如因用户违反相关规定而导致的任何法律纠纷或损失,开发者概不负责。 58 | 5. 本软件可能会受到目标网站的反爬虫机制的限制,用户在使用本软件时应自行承担因此可能导致的账号封禁、IP封禁等风险。 59 | 6. 开发者不对用户使用本软件可能导致的任何直接、间接、特殊、附带或衍生的损失或损害承担责任,包括但不限于利润损失、数据损失、业务中断等。 60 | 7. 用户在使用本软件时,应自行承担因使用本软件而产生的所有责任,包括但不限于对第三方的侵权、违法行为等。 61 | 8. 开发者保留随时修改、暂停或终止本软件的权利,而无需提前通知用户,并对此不承担任何责任。 62 | 9. 用户在使用本软件时,即表示同意遵守本免责条款的所有规定,如不同意本免责条款的任何内容,请立即停止使用本软件。 63 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # AiAPI 2 | 3 | > ⚠️ 最近Claude给网页添加了防护,本应用暂时不可用了。| Recently, Claude added protection to the webpage, so this application is temporarily unavailable. 4 | 5 | > This is the download and support page for the software 6 | 7 | [简体中文](./README-CN.md) | [English](./README.md) 8 | 9 | AiAPI is a cross-platform client that converts the Claude website into an OpenAI-compatible API, allowing you to use Claude's 100k context capability in any OpenAI-compatible software. What's even better is that it's free. Thanks to Claude. 10 | 11 | # Key Features 12 | 13 | 1. Cross-platform, works on Mac and Windows 14 | 2. Based on Claude2, provides 100k context 15 | 3. Compatible with OpenAI API, allowing direct reuse of existing OpenAI tools 16 | 4. Supports the CookieCloud browser extension, which can automatically refresh and synchronize cookies 17 | 18 | # Download 19 | 20 | Please go to the [Releases section of the repository](https://github.com/easychen/aiapi/releases). 21 | 22 | # Interface and Functionality 23 | 24 | ![](images/20230810113755.png) 25 | 26 | ![](images/20230810113811.png) 27 | 28 | ![](images/20230810113831.png) 29 | 30 | 31 | # User Guide 32 | 33 | 1. Register and log in to your account at . 34 | 1. Go to the page , open DevTools by pressing F12, and navigate to Applications → Cookies. Copy the sessionKey. 35 | ![](images/20230811122810.png) 36 | 1. Paste the sessionKey into the Settings panel and save. 37 | ![](images/20230811123049.png) 38 | 1. Change the OpenAI API Endpoint to http://127.0.0.1:3456 (if there is a /v1/... at the end, include it as well). 39 | 1. You can enter any API Key, but some clients may have format validation. You can use this key: `sk-1234567890ULScvLPEHbT3B3bkFJ34mOSRJSVf9fMWP8UXyw`. 40 | 1. ~~This interface currently only supports stream mode, so please enable the "Stream Output" option.~~ added in version 1.0.2 41 | 42 | 43 | # Compatibility Notes 44 | 45 | 1. Currently, only the `/v1/chat/completions` endpoint and the `messages` parameter are supported. The model used is `claude-2`. 46 | 2. Continuous conversation is supported, and the `messages` parameter will be automatically concatenated. 47 | 48 | # Project used AiAPI 49 | 50 | 1. [book-by-ai](https://github.com/easychen/book-by-ai) : Generate high-quality books with AI 51 | 52 | # Disclaimer for Software Usage 53 | 54 | 1. This software is provided to users for self-installation and use, and the developer does not provide any form of technical support. 55 | 2. Users assume all risks and responsibilities when using this software, including but not limited to improper use, data loss, system crashes, etc. 56 | 3. The developer does not make any express or implied warranties regarding the applicability, accuracy, reliability, completeness, and timeliness of this software. 57 | 4. Users should understand and comply with relevant laws, regulations, and website user agreements when using this software. The developer shall not be liable for any legal disputes or losses caused by the user's violation of relevant provisions. 58 | 5. This software may be subject to anti-crawling mechanisms of target websites. Users should bear the risks of account suspension, IP blocking, and other consequences that may arise from using this software. 59 | 6. The developer shall not be liable for any direct, indirect, special, incidental, or consequential losses or damages that may result from the user's use of this software, including but not limited to loss of profits, data loss, business interruption, etc. 60 | 7. Users are solely responsible for any liabilities arising from their use of this software, including but not limited to infringement of third-party rights, illegal activities, etc. 61 | 8. The developer reserves the right to modify, suspend, or terminate this software at any time without prior notice, and shall not be liable for any consequences arising from it. 62 | 9. By using this software, users agree to comply with all provisions of this disclaimer. If you do not agree with any part of this disclaimer, please stop using this software immediately. 63 | -------------------------------------------------------------------------------- /images/20230810113755.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/easychen/aiapi/a163e859ff765479b5eda8c7828a87dbdf1e9453/images/20230810113755.png -------------------------------------------------------------------------------- /images/20230810113811.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/easychen/aiapi/a163e859ff765479b5eda8c7828a87dbdf1e9453/images/20230810113811.png -------------------------------------------------------------------------------- /images/20230810113831.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/easychen/aiapi/a163e859ff765479b5eda8c7828a87dbdf1e9453/images/20230810113831.png -------------------------------------------------------------------------------- /images/20230811122810.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/easychen/aiapi/a163e859ff765479b5eda8c7828a87dbdf1e9453/images/20230811122810.png -------------------------------------------------------------------------------- /images/20230811123049.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/easychen/aiapi/a163e859ff765479b5eda8c7828a87dbdf1e9453/images/20230811123049.png -------------------------------------------------------------------------------- /images/20230812032136.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/easychen/aiapi/a163e859ff765479b5eda8c7828a87dbdf1e9453/images/20230812032136.png --------------------------------------------------------------------------------