सर्वश्रेष्ठ इमेज, वीडियो और ऑडियो मॉडल के लिए एक 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}
कोट = शुल्क
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
अपने एजेंट को मॉडल चुनने, कीमत कोट करने और उसे चलाने दें
REST के लिए उपयोग की जाने वाली उसी कुंजी से Claude, ChatGPT या Cursor को Doitong MCP सर्वर से कनेक्ट करें। हर दस्तावेज़ पेज 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"
]
}
}
}
अपने प्रोजेक्ट फ़ोल्डर में एक बार चलाएँ। REST API जैसी ही Bearer कुंजी।
सेव करने के बाद Cursor रीस्टार्ट करें। सर्वर सेटिंग्स में MCP के अंतर्गत दिखाई देगा।
Settings → Developer → Edit config चुनें, फिर Claude Desktop रीस्टार्ट करें। Node.js आवश्यक है।