Eine API für die besten Bild-, Video- und Audiomodelle
Dasselbe Anfrageformat für jedes Modell. Exakter Preis vor der Ausführung. Dateien dauerhaft oder 7 Tage kostenlos aufbewahren – du entscheidest.
POSTapi.doitong.com/v1/run/{model_id}
Vom Schlüssel zum fertigen Video mit einem Aufruf
# Keys start with doitong_
export DOITONG_API_KEY="doitong_..."
# Check it works: returns your API credit balance
curl https://api.doitong.com/v1/account \
-H "Authorization: Bearer $DOITONG_API_KEY"
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/kling-video/v3/pro/image-to-video?wait=20" \
-H "Authorization: Bearer $DOITONG_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "The banana manager turns to the camera, smiles and waves while coworkers keep typing, gentle handheld camera",
"image": "https://content.doitong.com/images/gp/image_20260610003801_541d9719_316882.png",
"duration": 5
}'
# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
-H "Authorization: Bearer $DOITONG_API_KEY"
{
"id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
"model": "kling-video/v3/pro/image-to-video",
"status": "succeeded",
"cost": {
"credits": 840,
"usd": "0.84",
"charged": 840,
"refunded": 0
},
"outputs": [
{
"type": "video",
"url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
"content_type": "video/mp4",
"file_size": 1843200,
"width": 1280,
"height": 720,
"duration": 5,
"stored": true
}
]
}
Sieh, was jedes Modell erzeugt
Nach Labor durchsuchen
Alle Labore (84)- Alibaba Endpunkte: 142
- Black Forest Labs Endpunkte: 135
- Lightricks Endpunkte: 102
- MiniMax Endpunkte: 64
- Kling Endpunkte: 62
- ByteDance Endpunkte: 57
- Bria AI Endpunkte: 54
- Stability AI Endpunkte: 48
- PixVerse Endpunkte: 42
- Google Endpunkte: 41
- Ideogram Endpunkte: 36
- Tencent Endpunkte: 33
- Microsoft Endpunkte: 27
- NVIDIA Endpunkte: 25
- Meta Endpunkte: 24
- Recraft Endpunkte: 24
- Vidu Endpunkte: 22
- xAI Endpunkte: 19
Lerne eine Anfrage. Nutze jedes Modell.
Einheitliche Parameter
image, duration und aspect_ratio bedeuten bei jedem Modell dasselbe. Modellspezifische Namen funktionieren weiterhin als Aliase.
"image": "…", "duration": 5
Eine Anfrage-URL für jedes Modell
Wechsle das Modell, indem du den Pfad änderst. Authentifizierung, Body und Antwort bleiben identisch.
POST /run/{model_id}
Angebot = Abbuchung
POST /quote/{model_id} gibt den genauen Preis für deine Eingabe zurück. Das ist der Betrag, den du bezahlst, niemals mehr.
→ { "credits": 560, "usd": "0.56" }
Dateien so lange speichern, wie du sie brauchst
Jede Ausgabe wird in unseren Speicher kopiert. Dauerhafte Aufbewahrung kostet 0,10 $ pro GB und Monat, oder 7 Tage kostenlos: mit einem Schalter in deinem Konto oder pro Anfrage.
?storage=permanent | temporary
Ein Fehlerformat
Jeder Fehler nennt den Parameter, den Grund und einen Dokumentationslink – bei jedem Modell. Ungültige Eingaben werden niemals berechnet.
"param": "duration", "code": "out_of_range"
Budgets pro Schlüssel + MCP
Begrenze die Ausgaben pro Schlüssel und übergib diesen Schlüssel anschließend über den MCP-Server an einen Agenten.
api.doitong.com/v1/mcp
Lass deinen Agenten das Modell auswählen, den Preis ermitteln und es ausführen
Verbinde Claude, ChatGPT oder Cursor mit dem Doitong MCP-Server über denselben Schlüssel, den du für REST verwendest. Jede Dokumentationsseite ist außerdem als Markdown verfügbar, damit Agenten genau das lesen, was du liest.
- Vor jeder Ausführung wird der Preis ermittelt, damit Agenten innerhalb des Budgets bleiben
- Fehler nennen den Parameter, den der Agent korrigieren muss
- Eine Markdown-Version jeder Seite für Kontextfenster
Füge ihn in Claude, ChatGPT oder Cursor ein und beschreibe anschließend, was du erstellen möchtest.
Prompt anzeigen
You can generate images, video, audio and 3D with the Doitong API.
Read https://doitong.com/developers/llms.txt first, then the .md page of each model you plan to use.
Base URL: https://api.doitong.com/v1. Authenticate with the header "Authorization: Bearer $DOITONG_API_KEY".
List models with GET /models and read one model's schema with GET /models/{model_id}.
Always call POST /quote/{model_id} with the input first and tell me the price (1000 API credits = 1 USD).
Then call POST /run/{model_id}?wait=20 with the same JSON body and an Idempotency-Key header.
If the status is still queued or running, poll GET /requests/{id}?wait=20.
Use outputs[].url from the response; files are kept forever unless the account keeps them 7 days
(pass ?storage=temporary for throwaway runs). Use only parameters from the model schema.
claude mcp add --transport http doitong-models https://api.doitong.com/v1/mcp \
--header "Authorization: Bearer YOUR_API_KEY"
// .cursor/mcp.json
{
"mcpServers": {
"doitong-models": {
"url": "https://api.doitong.com/v1/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}
// claude_desktop_config.json
{
"mcpServers": {
"doitong-models": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://api.doitong.com/v1/mcp",
"--header",
"Authorization: Bearer YOUR_API_KEY"
]
}
}
}
Einmal im Projektordner ausführen. Derselbe Bearer-Schlüssel wie für die REST API.
Cursor nach dem Speichern neu starten. Der Server erscheint in den Einstellungen unter MCP.
Einstellungen → Entwickler → Konfiguration bearbeiten und anschließend Claude Desktop neu starten. Node.js erforderlich.