# AI 代理程式文件

這些文件的設計同時適合 AI 助理和人類閱讀。將下列其中一個入口點交給您的代理程式，它就能在不猜測參數名稱或價格的情況下，撰寫正確的整合程式碼。

## 入口點

| URL | 說明 |
|---|---|
| [https://doitong.com/developers/llms.txt](https://doitong.com/developers/llms.txt) | [llms.txt](https://llmstxt.org) 格式的索引：每份指南和模型各附一行說明。 |
| [https://doitong.com/developers/llms-full.txt](https://doitong.com/developers/llms-full.txt) | 一個 Markdown 檔案中包含每份完整指南、完整的精選模型，以及全部 1,496 個模型的基本資訊（id、製作者、價格、完整頁面連結）。 |
| `/<lang>/developers/llms.txt` | 使用其他網站語言顯示指南的相同索引，例如 `https://doitong.com/de/developers/llms.txt`（英文為預設值）。 |
| `<any page>.md` | 頁面的 Markdown 對應版本，例如 [https://doitong.com/developers/models/flux/schnell.md](https://doitong.com/developers/models/flux/schnell.md) 或 [https://doitong.com/developers/docs/quickstart.md](https://doitong.com/developers/docs/quickstart.md)。 |
| `/developers/models/<id>/llms.txt` | 與模型的 `.md` 對應版本相同。 |
| [https://doitong.com/developers/openapi.json](https://doitong.com/developers/openapi.json) | 供程式碼產生器使用的 OpenAPI 3.1：包含每個端點及精選模型的具型別請求主體；加入 `?model=<id>`、`?category=<id>` 或 `?models=all` 可包含其他模型。 |
| `https://api.doitong.ru/v1/models` | 以 JSON 格式呈現的目錄（不需要金鑰）。 |

每個模型的 Markdown 頁面都包含其 USD 與 API 點數價格、所有允許值的每個參數、僅必要欄位的範例和完整範例、回應結構，以及適用於 curl、JavaScript、Python 和 MCP 的現成程式碼。

## 提供給 AI 的複製內容

每個模型頁面都有 **提供給 AI 的複製內容** 按鈕：將頁面複製為 Markdown，或在 ChatGPT 或 Claude 中開啟頁面，並使用指向 Markdown 版本的提示詞。

## 有效的提示詞

將以下內容貼到 Claude、ChatGPT 或 Cursor，然後描述您想要建置的內容：

```text 提示詞
I want to generate images/video/audio with the Doitong API.
Read https://doitong.com/developers/llms.txt first, then the .md page of each model you plan to use.
Facts: base URL https://api.doitong.ru/v1; auth header "Authorization: Bearer <key>" with the key from the
DOITONG_API_KEY environment variable; run with POST /run/{model_id}?wait=20 and, if the status is
still queued or running, poll GET /requests/{id}?wait=20; outputs[].url are file URLs on Doitong storage
(kept forever by default; add ?storage=temporary for throwaway runs, deleted after 7 days).
Get the price first with POST /quote/{model_id} (same body): exact, or for a model charged by usage the
most the run can cost (the unused part is refunded). Prices are in USD; 1000 API credits = 1 USD.
Use the parameter names from the model page; never invent parameters.
```

## 讓代理程式自行呼叫模型

若要讓代理程式直接生成媒體，請使用具有 API 點數預算的金鑰連線至 [MCP 伺服器](https://doitong.com/developers/docs/mcp)。代理程式接著就能使用工具搜尋模型、取得報價、執行模型並擷取結果，而且支出不會超過預算。
