सामग्री पर जाएँ
AI एजेंट

AI एजेंट्स के लिए दस्तावेज़

Markdown के रूप में देखें अपडेट किया गया

ये दस्तावेज़ लोगों के साथ-साथ AI सहायकों द्वारा पढ़े जाने के लिए बनाए गए हैं। अपने एजेंट को नीचे दिए गए एंट्री पॉइंट में से कोई एक दें और वह पैरामीटर नामों या कीमतों का अनुमान लगाए बिना सही इंटीग्रेशन कोड लिख सकता है।

एंट्री पॉइंट

URL यह क्या है
https://doitong.com/developers/llms.txt llms.txt फ़ॉर्मैट में इंडेक्स: हर गाइड और मॉडल का एक-पंक्ति विवरण।
https://doitong.com/developers/llms-full.txt एक ही Markdown फ़ाइल में हर गाइड का पूरा पाठ, विशेष मॉडलों का पूरा विवरण और सभी 1,496 मॉडलों की आवश्यक जानकारी (id, निर्माता, कीमत, पूरे पेज का लिंक)।
/<lang>/developers/llms.txt किसी अन्य साइट भाषा में गाइड वाला वही इंडेक्स, उदाहरण के लिए https://doitong.com/de/developers/llms.txt (डिफ़ॉल्ट भाषा English है)।
<any page>.md किसी पेज का Markdown twin, उदाहरण के लिए https://doitong.com/developers/models/flux/schnell.md या https://doitong.com/developers/docs/quickstart.md।
/developers/models/<id>/llms.txt मॉडल के .md twin जैसा ही।
https://doitong.com/developers/openapi.json कोड जनरेटर के लिए OpenAPI 3.1: विशेष मॉडलों का हर एंडपॉइंट और टाइप किए गए अनुरोध बॉडी; ?model=<id>, ?category=<id> या ?models=all अन्य मॉडल जोड़ते हैं।
https://api.doitong.com/v1/models JSON के रूप में कैटलॉग (कुंजी की आवश्यकता नहीं)।

हर मॉडल के Markdown पेज पर उसकी कीमत USD और API क्रेडिट में, सभी अनुमत मानों वाले हर पैरामीटर, केवल आवश्यक फ़ील्ड वाला और पूरा उदाहरण, रिस्पॉन्स का आकार, तथा curl, JavaScript, Python और MCP के लिए तैयार कोड होता है।

AI के लिए कॉपी करें

हर मॉडल पेज पर AI के लिए कॉपी करें बटन होता है: पेज को Markdown के रूप में कॉपी करें, या ऐसे प्रॉम्प्ट के साथ ChatGPT या Claude में खोलें जो सहायक को Markdown संस्करण पर निर्देशित करता है।

एक काम करने वाला प्रॉम्प्ट

इसे Claude, ChatGPT या Cursor में पेस्ट करें, फिर बताएं कि आप क्या बनाना चाहते हैं:

प्रॉम्प्ट
I want to generate images/video/audio with the Doitong API.
Read https://doitong.com/developers/llms.txt first, then the .md page of each model you plan to use.
Facts: base URL https://api.doitong.com/v1; auth header "Authorization: Bearer <key>" with the key from the
DOITONG_API_KEY environment variable; run with POST /run/{model_id}?wait=20 and, if the status is
still queued or running, poll GET /requests/{id}?wait=20; outputs[].url are file URLs on Doitong storage
(kept forever by default; add ?storage=temporary for throwaway runs, deleted after 7 days).
Get the price first with POST /quote/{model_id} (same body): exact, or for a model charged by usage the
most the run can cost (the unused part is refunded). Prices are in USD; 1000 API credits = 1 USD.
Use the parameter names from the model page; never invent parameters.

एजेंट को स्वयं मॉडल कॉल करने दें

एजेंट को सीधे मीडिया बनाने देने के लिए, MCP सर्वर को ऐसी कुंजी से कनेक्ट करें जिसका बजट API क्रेडिट में हो। इसके बाद एजेंट के पास मॉडल खोजने, कीमत बताने, चलाने और परिणाम प्राप्त करने के टूल होंगे, और वह बजट से अधिक खर्च नहीं कर सकेगा।