Jekh API vaš e maj lačhe pikturakre, videokre thaj audiokre modelura
Sa jekh mangipen format sa modelurenθar. Precizno molipen angl-o trubuj te phires. Fajlo vično vaj 7 dives bilačhes, tu odlučinǰares.
POSTapi.doitong.com/v1/run/{model_id}
Katar o klidino dži ko pherdo video jekhe phučipnasa
# 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
}
]
}
Dikh so kerel sako modelo
Dikhen palal laboratorija
Sa laboratorije (84)- Alibaba Endpointura: 142
- Black Forest Labs Endpointura: 135
- Lightricks Endpointura: 102
- MiniMax Endpointura: 64
- Kling Endpointura: 62
- ByteDance Endpointura: 57
- Bria AI Endpointura: 54
- Stability AI Endpointura: 48
- PixVerse Endpointura: 42
- Google Endpointura: 41
- Ideogram Endpointura: 36
- Tencent Endpointura: 33
- Microsoft Endpointura: 27
- NVIDIA Endpointura: 25
- Meta Endpointura: 24
- Recraft Endpointura: 24
- Vidu Endpointura: 22
- xAI Endpointura: 19
Sikľuv jekh mangipen. Istiv sako modelo.
Jekhutne parametra
image, duration thaj aspect_ratio si jekhajekh sako modeloθar. E modeloskere navia džan vi sar aliasura.
"image": "…", "duration": 5
Jekh mangipenoski URL sa modelurenθar
Paruv e modelos te paruves o drom. Auth, body thaj përgjov ačhen jekhso.
POST /run/{model_id}
Quote = pokin
POST /quote/{model_id} sikavel o sikado mol vaš tiro inputo. Odova pokines, na buter.
→ { "credits": 560, "usd": "0.56" }
Fajlura astarde kadja lungo sar trubun tut
Sako rezultato si kopirime amare arakhipneste. Muk les vično vaš $0.10 per GB mase, vaj 7 dives bilačhes: jekh preklučipen andro tiro konto, vaj per mangipen.
?storage=permanent | temporary
Jekh forma vaš e greške
Sako greška phenel o parametro, o razlogo thaj jekh linko katar i dokumentacija, ko sako modelo. Bilacho inputo ni pokinel pe.
"param": "duration", "code": "out_of_range"
Budžetura palal klidino + MCP
Limitisar o pokin palal sako klidino, pa de odova klidino jekhe agentoske anda o MCP server.
api.doitong.com/v1/mcp
Muk tlo agento te alosarel o modelo, te phenel o molo thaj te kerel le.
Phand Claude, ChatGPT vaj Cursor ko Doitong MCP server sar jekhe klidinesa so istives vaš REST. Sako dokumentaciakri pajina si vi Markdown, te e agentura ginaven so tu ginaves.
- Quote anglal sako keripen, te ačhen ande o budžeto
- E greške phenel o parametro so o agentoske trubul te lačharel
- Markdown-versia vaš sako pajina vaš e kontekstakre okna
Čhin les andre Claude, ChatGPT vaj Cursor, pa phen so kames te keres.
Sikav o prompto
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"
]
}
}
}
Ker jekhvar ande tiro projektoski folder. Sako Bearer klidino sar ko REST API.
Restartisar Cursor palal o save. O server sikavel pes telal MCP ande e settings.
Settings → Developer → Edit config, pa restartisar Claude Desktop. Trubul Node.js.