איין API פֿאַר די בעסטע בילדער-, ווידעא- און אַודיאָמאָדעלן
דער זעלבער בקשה־פֿאָרמאַט פֿאַר יעדן מאָדעל. גענויע פּרײַז איידער איר לויפט. פֿײַלן ווערן געהאַלטן אויף אייביק אָדער 7 טעג אומזיסט — אײַער ברירה.
POSTapi.doitong.com/v1/run/{model_id}
פֿון שליסל ביז אַ פאַרטיקער ווידעא אין איין רוף
# 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
}
]
}
זעט וואָס יעדער מאָדעל שאַפֿט
דורכזוכן לויט לאַבאָראַטאָריע
אַלע לאַבאָראַטאָריעס (84)- Alibaba ענדפּוינטן: 142
- Black Forest Labs ענדפּוינטן: 135
- Lightricks ענדפּוינטן: 102
- MiniMax ענדפּוינטן: 64
- Kling ענדפּוינטן: 62
- ByteDance ענדפּוינטן: 57
- Bria AI ענדפּוינטן: 54
- Stability AI ענדפּוינטן: 48
- PixVerse ענדפּוינטן: 42
- Google ענדפּוינטן: 41
- Ideogram ענדפּוינטן: 36
- Tencent ענדפּוינטן: 33
- Microsoft ענדפּוינטן: 27
- NVIDIA ענדפּוינטן: 25
- Meta ענדפּוינטן: 24
- Recraft ענדפּוינטן: 24
- Vidu ענדפּוינטן: 22
- xAI ענדפּוינטן: 19
לערנט איין בעטן. ניצט יעדן מאָדעל.
איינהייטלעכע פּאַראַמעטערס
image, duration און aspect_ratio מיינען דאָס זעלבע אויף יעדן מאָדעל. נעמען געבוירענע צום מאָדעל אַרבעטן ווײַטער ווי אַליאַסן.
"image": "…", "duration": 5
איין בעטן־URL פֿאַר יעדן מאָדעל
בײַט מאָדעלן דורך ענדערן דעם פּאַט. אַוטענטיפֿיקאַציע, גוף און ענטפֿער בלײַבן די זעלבע.
POST /run/{model_id}
Quote = אָפּצאָל
POST /quote/{model_id} גיט צוריק דעם פּינקטלעכן פּרײַז פֿאַר אײַער אַרײַנשרײַב. דאָס איז וואָס איר צאָלט, קיינמאָל מער.
→ { "credits": 560, "usd": "0.56" }
טעקעס געהאַלטן אַזוי לאַנג ווי איר דאַרפט
יעדער רעזולטאַט ווערט קאַפּירט צו אונדזער סטאָרידזש. האַלט עס אויף אייביק פֿאַר $ 0.10 פּער GB אַ חודש, אָדער 7 טעג אומזיסט: איין באַשטימען אין אײַער חשבון אָדער פּער בקשה.
?storage=permanent | temporary
איין טעות־פֿאָרמאַט
יעדער דורכפֿאַל דערמאָנט דעם פּאַראַמעטער, די סיבה און אַ דאָקומענטאַציע־לינק אויף יעדן מאָדעל. אַן אומגילטיקער אַרײַנשרײַב קאָסט קיינמאָל נישט.
"param": "duration", "code": "out_of_range"
בודזשעטן לויט שליסל + MCP
באַגרענעצט אויסגאַבע לויט שליסל, און גיט דערנאָך דעם שליסל צו אַן אַגענט דורך דעם MCP סערווער.
api.doitong.com/v1/mcp
לאָזט אײַער אַגענט אויסקלײַבן דעם מאָדעל, באַשטימען דעם פּרײַז און אים לויפֿן
פֿאַרבינדט Claude, ChatGPT אָדער Cursor מיט דעם Doitong MCP סערווער מיט דעם זעלבן שליסל וואָס איר ניצט פֿאַר REST. יעדער דאָקומענטאַציע־בלאַט קומט אויך ווי Markdown, אַזוי אַגענטן לייענען פּונקט דאָס וואָס איר לייענט.
- פּרײַז־באַשטימונגען איידער יעדער לויפֿן, אַזוי אַגענטן בלײַבן אינעווייניק אינעם בודזשעט
- טעותן דערמאָנען דעם פּאַראַמעטער וואָס דער אַגענט מוז פֿאַרריכטן
- א Markdown ווערסיע פֿון יעדן בלאַט פֿאַר קאָנטעקסט־פֿענצטער
פּעיסט עס אַרײַן אין Claude, ChatGPT אָדער Cursor, און באַשרײַבט דערנאָך וואָס איר ווילט בויען.
ווײַזן דעם פּראָמפּט
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"
]
}
}
}
לויפֿט איינמאָל אין אײַער פּראָיעקט־פֿאָלדער. דער זעלבער Bearer שליסל ווי בײַ REST API.
ריסטאַרט Cursor נאָךן שפּײַכערן. דער סערווער ערשײַנט אונטער MCP אין די באַשטעטיקונגען.
Settings → Developer → Edit config, און ריסטאַרט דערנאָך Claude Desktop. Node.js איז נייטיק.