> ## Documentation Index
> Fetch the complete documentation index at: https://aisa.one/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# DeepSeek API - 通过 AIsa 访问 DeepSeek 模型

> DeepSeek 模型 ID 和端点指南，包括 deepseek-v4.1-flash、deepseek-v4-pro 和 deepseek-v4-flash-vision-exp。

AIsa 通过一个 API Key 为当前 DeepSeek 模型家族提供 OpenAI 兼容访问，并统一计费、用量日志和网关路由。

下表列出每个模型可用的端点。

## 支持的 DeepSeek 模型

| 模型 ID | 类型 | 端点 | 适合 |
| - | - | - | - |
| `deepseek-v4-flash-vision-exp` | 文本 | `/v1/chat/completions`、`/v1/messages`、`/v1/responses` | V4 Flash 的实验性视觉版本 |
| `deepseek-v4-pro` | 文本 | `/v1/chat/completions`、`/v1/messages`、`/v1/responses` | 支持多种端点风格的更强 DeepSeek 路由 |
| `deepseek-v4-pro-0813` | 文本 | `/v1/chat/completions`、`/v1/messages`、`/v1/responses` | `deepseek-v4-pro` 的固定快照版本 |
| `deepseek-v4.1-flash` | 文本 | `/v1/chat/completions`、`/v1/messages`、`/v1/responses` | 最低成本、高吞吐的 DeepSeek 路由（V4.1） |

这些模型的当前价格见 [aisa.one/models](https://aisa.one/models)。

## 快速开始

```python theme={null}
import os
from openai import OpenAI

client = OpenAI(api_key=os.environ["AISA_API_KEY"], base_url="https://api.aisa.one/v1")

response = client.chat.completions.create(
    model="deepseek-v4.1-flash",
    messages=[{"role": "user", "content": "Review this pull request for security and correctness."}]
)
print(response.choices[0].message.content)
```

## 常用选择

| 需求 | 使用 |
| - | - |
| 最便宜的 DeepSeek 文本/编程 | `deepseek-v4.1-flash` |
| 更强的 DeepSeek 路由 | `deepseek-v4-pro` |
| 固定版本的生产路由 | `deepseek-v4-pro-0813` |

## 数据隐私

AIsa 通过企业级聚合路径路由 DeepSeek 请求。根据 AIsa 的企业协议，客户数据不会用于模型训练。如需合规细节，请[联系我们](mailto:developer@aisa.one)。

## 下一步

* [模型目录](https://aisa.one/docs/zh/guides/models.md)
* [Qwen 模型](https://aisa.one/docs/zh/models/qwen.md)
* [AI 模型价格](https://aisa.one/docs/zh/guides/pricing.md#模型)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.