Satu API untuk model gambar, video, dan audio terbaik
Format permintaan yang sama untuk setiap model. Harga pasti sebelum dijalankan. File disimpan selamanya atau 7 hari gratis, sesuai pilihan Anda.
POSTapi.doitong.com/v1/run/{model_id}
Dari kunci ke video selesai dalam satu panggilan
# 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
}
]
}
Lihat hasil dari setiap model
Jelajahi berdasarkan lab
Semua lab (84)- Alibaba Endpoint: 142
- Black Forest Labs Endpoint: 135
- Lightricks Endpoint: 102
- MiniMax Endpoint: 64
- Kling Endpoint: 62
- ByteDance Endpoint: 57
- Bria AI Endpoint: 54
- Stability AI Endpoint: 48
- PixVerse Endpoint: 42
- Google Endpoint: 41
- Ideogram Endpoint: 36
- Tencent Endpoint: 33
- Microsoft Endpoint: 27
- NVIDIA Endpoint: 25
- Meta Endpoint: 24
- Recraft Endpoint: 24
- Vidu Endpoint: 22
- xAI Endpoint: 19
Pelajari satu permintaan. Gunakan setiap model.
Parameter terpadu
image, duration, dan aspect_ratio memiliki arti yang sama pada setiap model. Nama bawaan model tetap berfungsi sebagai alias.
"image": "…", "duration": 5
Satu URL permintaan untuk setiap model
Ganti model dengan mengubah path. Auth, body, dan response tetap identik.
POST /run/{model_id}
Quote = biaya
POST /quote/{model_id} mengembalikan harga pasti untuk input Anda. Itulah yang Anda bayar, tidak lebih.
→ { "credits": 560, "usd": "0.56" }
File disimpan selama yang Anda perlukan
Setiap output disalin ke penyimpanan kami. Simpan selamanya dengan biaya $0,10 per GB per bulan, atau 7 hari gratis: satu sakelar di akun Anda atau per permintaan.
?storage=permanent | temporary
Satu format error
Setiap kegagalan menyebutkan parameter, alasan, dan link dokumentasi pada setiap model. Input tidak valid tidak pernah dikenai biaya.
"param": "duration", "code": "out_of_range"
Anggaran per kunci + MCP
Batasi pengeluaran per kunci, lalu berikan kunci tersebut kepada agen melalui server MCP.
api.doitong.com/v1/mcp
Biarkan agen Anda memilih model, mengutip harga, dan menjalankannya
Hubungkan Claude, ChatGPT, atau Cursor ke server Doitong MCP dengan kunci yang sama seperti yang Anda gunakan untuk REST. Setiap halaman dokumentasi juga tersedia dalam Markdown, sehingga agen membaca persis seperti yang Anda baca.
- Quote sebelum setiap proses, agar agen tetap dalam batas anggaran
- Error menyebutkan parameter yang harus diperbaiki agen
- Versi Markdown setiap halaman untuk jendela konteks
Tempelkan ke Claude, ChatGPT, atau Cursor, lalu jelaskan yang ingin Anda buat.
Tampilkan 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"
]
}
}
}
Jalankan sekali di folder proyek Anda. Kunci Bearer yang sama seperti REST API.
Mulai ulang Cursor setelah menyimpan. Server muncul di bagian MCP pada pengaturan.
Settings → Developer → Edit config, lalu mulai ulang Claude Desktop. Memerlukan Node.js.