Aon API airson na modailean ìomhaighean, bhidio agus fuaim as fheàrr
An aon chruth iarrtais airson gach modail. Prìs cheart mus ruith thu e. Faidhlichean air an cumail gu bràth no 7 latha an-asgaidh, do roghainn fhèin.
POSTapi.doitong.com/v1/run/{model_id}
Bhon iuchair gu bhidio chrìochnaichte ann an aon ghairm
# 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
}
]
}
Faic na nì gach modail
Brabhs a rèir lobaidh
Na lobaidhean uile (84)- Alibaba Puingean-crìche: 142
- Black Forest Labs Puingean-crìche: 135
- Lightricks Puingean-crìche: 102
- MiniMax Puingean-crìche: 64
- Kling Puingean-crìche: 62
- ByteDance Puingean-crìche: 57
- Bria AI Puingean-crìche: 54
- Stability AI Puingean-crìche: 48
- PixVerse Puingean-crìche: 42
- Google Puingean-crìche: 41
- Ideogram Puingean-crìche: 36
- Tencent Puingean-crìche: 33
- Microsoft Puingean-crìche: 27
- NVIDIA Puingean-crìche: 25
- Meta Puingean-crìche: 24
- Recraft Puingean-crìche: 24
- Vidu Puingean-crìche: 22
- xAI Puingean-crìche: 19
Ionnsaich aon iarrtas. Cleachd gach modail.
Paramadairean aonaichte
Tha image, duration agus aspect_ratio a’ ciallachadh an aon rud air gach modail. Bidh ainmean dùthchasach a’ mhodail fhathast ag obair mar ailiasan.
"image": "…", "duration": 5
Aon URL iarrtais airson gach modail
Atharraich modailean le bhith ag atharrachadh na slighe. Bidh dearbhadh, bodhaig agus freagairt co-ionann.
POST /run/{model_id}
Luachan = cosgais
Tillidh POST /quote/{model_id} a’ phrìs cheart airson an cuir-a-steach agad. Sin na phàigheas tu, agus cha bhi barrachd ann.
→ { "credits": 560, "usd": "0.56" }
Faidhlichean air an cumail cho fad ’s a dh’fheumas tu iad
Tha gach às-chur air a chopaigeadh dhan stòradh againn. Cùm e gu bràth airson $0.10 gach GB gach mìos, no 7 latha an-asgaidh: aon suidse sa chunntas agad, no gach iarrtas.
?storage=permanent | temporary
Aon chruth mearachd
Tha gach fàilligeadh ag ainmeachadh a’ pharamadair, an adhbhair agus ceangal gu sgrìobhainnean, air gach modail. Cha tèid cuir-a-steach mì-dhligheach a ghearradh.
"param": "duration", "code": "out_of_range"
Buidseatan gach iuchair + MCP
Cuir crìoch air caitheamh gach iuchrach, agus an uairsin thoir an iuchair sin do dh’àidseant tron fhrithealaiche MCP.
api.doitong.com/v1/mcp
Leig leis an àidseant agad am modail a thaghadh, a’ phrìs ainmeachadh agus a ruith
Ceangail Claude, ChatGPT no Cursor ri frithealaiche Doitong MCP leis an aon iuchair a chleachdas tu airson REST. Tha gach duilleag sgrìobhainnean ri fhaighinn mar Markdown cuideachd, gus am bi àidseantan a’ leughadh dìreach na leughas tu fhèin.
- Luachan ro gach ruith, gus am fuirich àidseantan taobh a-staigh a’ bhuidseit
- Tha mearachdan ag ainmeachadh a’ pharamadair a dh’fheumas an t-àidseant a chàradh
- Tionndadh Markdown de gach duilleag airson uinneagan co-theacsa
Cuir a-steach e ann an Claude, ChatGPT no Cursor, agus an uair sin innis dè tha thu airson a thogail.
Seall am prompt
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"
]
}
}
}
Ruith aon turas ann am pasgan a’ phròiseict agad. An aon iuchair Bearer ris an REST API.
Ath-thòisich Cursor às dèidh sàbhaladh. Nochdaidh am frithealaiche fo MCP anns na roghainnean.
Roghainnean → Leasaiche → Deasaich rèiteachadh, agus an uair sin ath-thòisich Claude Desktop. Feumach air Node.js.