Viena API labākajiem attēlu, video un audio modeļiem
Vienāds pieprasījuma formāts katram modelim. Precīza cena pirms darbināšanas. Faili tiek glabāti mūžīgi vai 7 dienas bez maksas — jūs izvēlaties.
POSTapi.doitong.com/v1/run/{model_id}
No atslēgas līdz gatavam video vienā izsaukumā
# 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
}
]
}
Uzziniet, ko veido katrs modelis
Pārlūkot pēc laboratorijas
Visas laboratorijas (84)- Alibaba Galaizsaukumi: 142
- Black Forest Labs Galaizsaukumi: 135
- Lightricks Galaizsaukumi: 102
- MiniMax Galaizsaukumi: 64
- Kling Galaizsaukumi: 62
- ByteDance Galaizsaukumi: 57
- Bria AI Galaizsaukumi: 54
- Stability AI Galaizsaukumi: 48
- PixVerse Galaizsaukumi: 42
- Google Galaizsaukumi: 41
- Ideogram Galaizsaukumi: 36
- Tencent Galaizsaukumi: 33
- Microsoft Galaizsaukumi: 27
- NVIDIA Galaizsaukumi: 25
- Meta Galaizsaukumi: 24
- Recraft Galaizsaukumi: 24
- Vidu Galaizsaukumi: 22
- xAI Galaizsaukumi: 19
Apgūstiet vienu pieprasījumu. Izmantojiet jebkuru modeli.
Vienoti parametri
image, duration un aspect_ratio nozīmē vienu un to pašu katrā modelī. Modeļa vietējie nosaukumi joprojām darbojas kā aizstājvārdi.
"image": "…", "duration": 5
Viens pieprasījuma URL katram modelim
Mainiet modeļus, mainot ceļu. Autentifikācija, pamatteksts un atbilde paliek identiski.
POST /run/{model_id}
Quote = maksa
POST /quote/{model_id} atgriež precīzu cenu jūsu ievadei. Tieši to jūs maksājat, nekad vairāk.
→ { "credits": 560, "usd": "0.56" }
Faili tiek glabāti tik ilgi, cik nepieciešams
Katra izvade tiek kopēta mūsu krātuvē. Glabājiet to mūžīgi par 0,10 $ par GB mēnesī vai 7 dienas bez maksas: ar vienu slēdzi savā kontā vai katram pieprasījumam.
?storage=permanent | temporary
Viens kļūdu formāts
Katra kļūme norāda parametru, iemeslu un dokumentācijas saiti katram modelim. Par nederīgu ievadi nekad netiek iekasēta maksa.
"param": "duration", "code": "out_of_range"
Budžeti katrai atslēgai + MCP
Ierobežojiet tēriņus katrai atslēgai un pēc tam nododiet šo atslēgu aģentam, izmantojot MCP serveri.
api.doitong.com/v1/mcp
Ļaujiet aģentam izvēlēties modeli, pārbaudīt cenu un to palaist
Savienojiet Claude, ChatGPT vai Cursor ar Doitong MCP serveri, izmantojot to pašu atslēgu, ko izmantojat REST. Katra dokumentācijas lapa ir pieejama arī Markdown formātā, tāpēc aģenti lasa tieši to, ko lasāt jūs.
- Cenas aprēķins pirms katras palaišanas, lai aģenti nepārsniegtu budžetu
- Kļūdas norāda parametru, kas aģentam jāizlabo
- Katras lapas Markdown versija konteksta logiem
Ielīmējiet to Claude, ChatGPT vai Cursor un pēc tam aprakstiet, ko vēlaties izveidot.
Rādīt uzvedni
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"
]
}
}
}
Palaidiet vienreiz sava projekta mapē. Tā pati Bearer atslēga kā REST API.
Pēc saglabāšanas restartējiet Cursor. Serveris iestatījumos tiek parādīts sadaļā MCP.
Iestatījumi → Izstrādātājs → Rediģēt konfigurāciju, pēc tam restartējiet Claude Desktop. Nepieciešams Node.js.