開始使用
讓 Agent 接入
接入上下文
將接入指令交給 Claude Code、Codex、Cursor 等程式設計 Agent,再描述你的創作需求。目前通過 REST API 和文件接入。
Agent
Use the KusArt REST API for anime image and video generation.
Read https://kusart.com/llms.txt first. It lists every model with its exact task_type, version parameters, starting price and a link to its full parameter reference. Do not guess task_type values.
Kusa-Anima and Kusa-XL work best with English prompts; prompts in other languages are translated into English automatically. To control the wording, translate a non-English request into English yourself first (see "Prompt language" in llms.txt). With no translation model available, translate it yourself by the rules in that section. For Kusa-Anima images with several characters, follow "Multiple characters" in its reference file.
Send requests server-side with X-API-Key from KUSART_API_KEY in the environment. Keep the key out of chat and browser UI code.
Set a descriptive User-Agent header. Requests that use some default library user agents, such as Python urllib, are rejected with HTTP 403.
Every create request spends credits. Estimate the cost from the listed price before submitting. If the user has approved a budget that covers it, run it; otherwise confirm the output, inputs and cost with the user first. Never create a second task just to check progress.金鑰配置在你自己的環境中。Agent 應先確認素材與費用,再執行付費任務。通過 REST 接入,無需 MCP。
所有模型的 task_type、參數和價格整理成純文字,程式設計 Agent 可以直接讀取。 給 Agent 的純文字版(llms.txt)
一次請求如何完成
在「API 金鑰」建立 API Key,在自己的服務端配置 KUSART_API_KEY,再複製模型請求。傳送前替換示例素材 URL 和畫風 ID;儲存 task_id,輪詢至 COMPLETED / FAILED / CANCELLED,查進度不要重複建立任務。正式產品不要把金鑰寫進瀏覽器程式碼。