Primeros pasos
Integración con Agent
Contexto de integración
Entrega las instrucciones a un agente de programación como Claude Code, Codex o Cursor y describe lo que quieres crear. La integración utiliza actualmente API REST y documentación.
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.Configura la clave en tu entorno. El agente debe confirmar recursos y coste antes de una tarea de pago. La integración REST no requiere MCP.
Todos los modelos con su task_type, parámetros y precios en texto plano, para que un agente de programación los lea directamente. Documentación en texto para agentes (llms.txt)
Cómo funciona una solicitud
Crea una clave API en «Claves API», configura KUSART_API_KEY en tu servidor y copia una solicitud de modelo. Sustituye las URL de ejemplo y los ID de estilo antes de enviarla. Guarda task_id y consulta hasta COMPLETED / FAILED / CANCELLED; no crees otra tarea para consultar el progreso. Nunca incluyas la clave en el código del navegador de tu producto.