Erste Schritte
Agent-Integration
Integrationskontext
Gib die Anleitung an einen Coding-Agenten wie Claude Code, Codex oder Cursor weiter und beschreibe dein Vorhaben. Die Anbindung erfolgt derzeit über REST-APIs und Dokumentation.
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.Konfiguriere den Schlüssel in deiner Umgebung. Der Agent soll Eingaben und Kosten vor einem bezahlten Auftrag bestätigen. Die REST-Integration benötigt kein MCP.
Alle Modelle mit task_type, Parametern und Preisen als reiner Text, damit Coding-Agenten sie direkt lesen können. Klartext-Doku für Agenten (llms.txt)
Ablauf einer Anfrage
Erstelle unter „API-Schlüssel“ einen API-Schlüssel, setze KUSART_API_KEY auf deinem Server und kopiere eine Modellanfrage. Ersetze vor dem Senden die Beispiel-URLs und Stil-IDs. Speichere task_id und frage bis COMPLETED / FAILED / CANCELLED ab; erstelle keine neue Aufgabe, um den Fortschritt zu prüfen. Bette den Schlüssel niemals in den Browsercode deines Produkts ein.