Үздік кескін, бейне және аудио модельдеріне арналған бір 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}
Quote = төлем
POST /quote/{model_id} енгізуіңіз үшін нақты бағаны қайтарады. Сіз дәл осы соманы төлейсіз, одан артық емес.
→ { "credits": 560, "usd": "0.56" }
Файлдарды қажетіңізше сақтаңыз
Әр шығыс сақтау орнымызға көшіріледі. Оны айына әр GB үшін 0,10 $ төлеп мәңгі сақтаңыз немесе 7 күн тегін сақтаңыз: аккаунтыңыздағы не әр сұраудағы бір ауыстырып-қосқыш жеткілікті.
?storage=permanent | temporary
Бір қате пішімі
Әр сәтсіздік параметрді, себебін және құжаттама сілтемесін кез келген модельде көрсетеді. Жарамсыз енгізу үшін ақы алынбайды.
"param": "duration", "code": "out_of_range"
Әр кілтке бюджет + MCP
Әр кілтке шығын шегін қойып, сол кілтті MCP сервері арқылы агентке беріңіз.
api.doitong.com/v1/mcp
Агентіңіз модельді таңдап, бағаны есептеп, іске қоссын
Claude, ChatGPT немесе Cursor жүйесін REST үшін пайдаланатын кілтпен 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 қажет.