Isang API para sa pinakamahusay na mga modelo ng larawan, video at audio
Parehong format ng kahilingan para sa bawat modelo. Eksaktong presyo bago patakbuhin. Mga file na pinananatili nang walang hanggan o 7 araw nang libre, ikaw ang pipili.
POSTapi.doitong.com/v1/run/{model_id}
Mula key hanggang sa tapos na video sa isang call
# 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
}
]
}
Tingnan kung ano ang ginagawa ng bawat modelo
Mag-browse ayon sa lab
Lahat ng lab (84)- Alibaba Mga endpoint: 142
- Black Forest Labs Mga endpoint: 135
- Lightricks Mga endpoint: 102
- MiniMax Mga endpoint: 64
- Kling Mga endpoint: 62
- ByteDance Mga endpoint: 57
- Bria AI Mga endpoint: 54
- Stability AI Mga endpoint: 48
- PixVerse Mga endpoint: 42
- Google Mga endpoint: 41
- Ideogram Mga endpoint: 36
- Tencent Mga endpoint: 33
- Microsoft Mga endpoint: 27
- NVIDIA Mga endpoint: 25
- Meta Mga endpoint: 24
- Recraft Mga endpoint: 24
- Vidu Mga endpoint: 22
- xAI Mga endpoint: 19
Alamin ang isang kahilingan. Gamitin ang bawat modelo.
Pinag-isang mga parameter
Pareho ang ibig sabihin ng image, duration at aspect_ratio sa bawat modelo. Gumagana pa rin ang mga native na pangalan ng modelo bilang mga alias.
"image": "…", "duration": 5
Isang URL ng kahilingan para sa bawat modelo
Magpalit ng modelo sa pamamagitan ng pagbabago ng path. Nananatiling pareho ang auth, body at response.
POST /run/{model_id}
Quote = singil
Ibinabalik ng POST /quote/{model_id} ang eksaktong presyo para sa iyong input. Iyan ang babayaran mo, at hindi hihigit pa.
→ { "credits": 560, "usd": "0.56" }
Mga file na itinatago hangga't kailangan mo
Kinokopya ang bawat output sa aming storage. Panatilihin ito nang walang hanggan sa halagang $0.10 bawat GB bawat buwan, o 7 araw nang libre: isang switch sa iyong account o bawat kahilingan.
?storage=permanent | temporary
Isang format ng error
Tinutukoy ng bawat failure ang parameter, dahilan at link sa dokumentasyon sa bawat modelo. Hindi kailanman sisingilin ang invalid na input.
"param": "duration", "code": "out_of_range"
Mga badyet bawat key + MCP
Magtakda ng limitasyon sa gastos bawat key, pagkatapos ay ibigay ang key na iyon sa isang agent sa pamamagitan ng MCP server.
api.doitong.com/v1/mcp
Hayaan ang iyong agent na pumili ng modelo, mag-quote ng presyo at magpatakbo nito
Ikonekta ang Claude, ChatGPT o Cursor sa Doitong MCP server gamit ang parehong key na ginagamit mo para sa REST. Ipinapadala rin ang bawat pahina ng dokumentasyon bilang Markdown, kaya eksaktong nababasa ng mga agent ang binabasa mo.
- May presyong ibinibigay bago ang bawat pagtakbo, kaya nananatili ang mga agent sa loob ng badyet
- Tinutukoy ng mga error ang parameter na kailangang ayusin ng agent
- Bersyong Markdown ng bawat pahina para sa mga context window
I-paste ito sa Claude, ChatGPT o Cursor, pagkatapos ay ilarawan kung ano ang gusto mong buuin.
Ipakita ang 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"
]
}
}
}
Patakbuhin nang isang beses sa folder ng iyong proyekto. Parehong Bearer key gaya ng REST API.
I-restart ang Cursor pagkatapos mag-save. Lalabas ang server sa ilalim ng MCP sa mga setting.
Settings → Developer → Edit config, pagkatapos ay i-restart ang Claude Desktop. Kailangan ng Node.js.