Getting started
Agent integration
Integration context
Give the integration instructions to a coding agent such as Claude Code, Codex, or Cursor, then describe what you want to create. Integration currently uses REST APIs and documentation.
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.Configure the key in your own environment. The agent should confirm inputs and cost before running a paid task. This is a REST integration; it does not require MCP.
Every model with its task_type, parameters and prices in plain text, so a coding agent can read it directly. Plain-text docs for agents (llms.txt)
How a request works
Create an API key in API keys, configure KUSART_API_KEY on your own server, then copy a model request. Replace sample asset URLs and style IDs before sending. Save task_id and poll until COMPLETED / FAILED / CANCELLED; do not create another task to check progress. Never embed the key in production browser code.