跳到正文

正在自动登录…

← 返回项目列表

7API/uncensored-ai-api

模型接口服务模型切换用量统计

7API 是一个提供多种前沿 AI 模型(如 Claude、GPT、Gemini 等)的 API 网关,通过一个密钥和兼容 OpenAI 与 Anthropic 的接口,让开发者能够调用包括无审查变体在内的模型,按 token 付费。

AI 中文解读 · 根据仓库描述与 README 生成 · 2026/10/23 02:57:20 · 查看原文

未标注语言应用与服务
累计 Stars
127
当前热度
1 天内 · 小火
仓库创建时间
打开 GitHub ↗项目网站 ↗

选用指南

AI 根据 README 整理 · 2026/10/23 02:57:20

使用方式

通过 OpenAI 或 Anthropic 兼容的 API 使用,支持 Python SDK 和 cURL。

查看 README 依据
export SEVEN_API_BASE_URL="https://.../v1" # copy from the dashboard ``` ### 2. OpenAI-compatible request ```python import os from openai import OpenAI client = OpenAI( api_key=os.environ["SEVEN_API_KEY"], base_url=os.environ["SEVEN_API_BASE_URL"], ) response = client.chat.completions.create( model="MODEL_ID", # choose any model ID from the dashboard messages=[ {"role": "system", "content": "You are a precise, helpful assistant."}, {"role": "user", "content": "Explain the trade-offs of model routing in two paragraphs."}, ], )
print(response.choices[0].message.content) ``` ### 3. Anthropic-compatible request ```python import os from anthropic import Anthropic client = Anthropic( api_key=os.environ["SEVEN_API_KEY"], base_url=os.environ["SEVEN_API_BASE_URL"], # use the Anthropic base URL from the dashboard ) message = client.messages.create( model="MODEL_ID", max_tokens=1024, messages=[{"role": "user", "content": "Write a concise release note for a developer tool."}], ) print(message.content[0].text) ``` ### 4. cURL ```bash curl "$SEVEN_API_BASE_URL/chat/completions" \
-H "Authorization: Bearer $SEVEN_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "MODEL_ID", "messages": [{"role": "user", "content": "Hello from the 7API quickstart."}] }' ``` Full setup guides: [OpenAI-compatible](./docs/05-openai-compatible-api.md) · [Anthropic-compatible](./docs/06-anthropic-compatible-api.md) · [cURL](./docs/04-quickstart.md#5-test-with-curl). ## Works with your stack | Client / SDK | Setup | |---|---| | **OpenAI SDK** | Set `base_url` to the 7API base URL | | **Anthropic SDK** | Set `base_url` to the Anthropic-compatible endpoint |
部署要求

需要注册 7API 账户获取 API 密钥,并设置 base URL。

查看 README 依据
Model IDs, context limits and live availability are shown in the [7API dashboard](https://7api.st/?utm_source=github&utm_medium=readme&utm_campaign=uncensored-ai-api). Availability changes as providers release new versions — always confirm the current model ID before deploying. ## Quickstart ### 1. Get your key and base URL Create an account at **[7api.st](https://7api.st/?utm_source=github&utm_medium=readme&utm_campaign=uncensored-ai-api)**. Your API key starts with `sk-`; the exact **Base URL** is shown on the dashboard overview. ```bash export SEVEN_API_KEY="sk-..."
已知限制

无审查模型不保证永不拒绝,行为因模型、版本、提示和提供商政策而异;模型 ID 和可用性可能变化。

查看 README 依据
- **No provider can guarantee that a model will never refuse.** Uncensored and abliterated variants reduce refusal behavior; they do not remove the need for evaluation, guardrails or human review. - **Model behavior is version-dependent.** A prompt that works on one release may behave differently after an upstream update. - **Provider terms still apply.** You are responsible for complying with the terms of the model providers and the laws that apply to you.
- **Availability changes.** Model IDs and uncensored variants rotate as providers ship updates; check the dashboard before relying on a specific ID. ## FAQ **What is an uncensored AI API?** An uncensored AI API gives developers programmatic access to model variants with fewer refusal behaviors than standard hosted models. 7API exposes those variants next to mainstream model families through one OpenAI- and Anthropic-compatible endpoint. [Read the full guide →](./docs/01-what-is-uncensored-ai-api.md) **What is an uncensored AI model?**

README

正在加载 README…

收录信息

仓库创建时间
2026/10/23 00:07:12
首次达标收录
2026/10/23 02:51:18
统计更新时间
2026/10/23 03:51:00

按创建时长与累计 Stars 判断等级。首次达标收录后,即使未达当前门槛仍保留;累计 Stars 和仓库状态会定期更新。确认只有 README 及辅助文件的仓库会停止公开。

仓库信息

最近推送
2026/10/23 00:32:01
许可证标识
MIT
Fork 数
34
当前状态
未归档

收录记录

按创建时长与累计 Stars 首次收录:小火
首次发现项目