Jedno API do najlepszych modeli obrazów, wideo i audio
Ten sam format żądania dla każdego modelu. Dokładna cena przed uruchomieniem. Pliki przechowywane bezterminowo lub 7 dni bezpłatnie — wybór należy do Ciebie.
POSTapi.doitong.com/v1/run/{model_id}
Od klucza do gotowego wideo w jednym wywołaniu
# 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
}
]
}
Zobacz, co tworzy każdy model
Przeglądaj według laboratorium
Wszystkie laboratoria (84)- Alibaba Endpointy: 142
- Black Forest Labs Endpointy: 135
- Lightricks Endpointy: 102
- MiniMax Endpointy: 64
- Kling Endpointy: 62
- ByteDance Endpointy: 57
- Bria AI Endpointy: 54
- Stability AI Endpointy: 48
- PixVerse Endpointy: 42
- Google Endpointy: 41
- Ideogram Endpointy: 36
- Tencent Endpointy: 33
- Microsoft Endpointy: 27
- NVIDIA Endpointy: 25
- Meta Endpointy: 24
- Recraft Endpointy: 24
- Vidu Endpointy: 22
- xAI Endpointy: 19
Poznaj jedno żądanie. Używaj każdego modelu.
Ujednolicone parametry
image, duration i aspect_ratio oznaczają to samo w każdym modelu. Nazwy właściwe dla modelu nadal działają jako aliasy.
"image": "…", "duration": 5
Jeden adres URL żądania dla każdego modelu
Zmieniaj modele, modyfikując ścieżkę. Uwierzytelnianie, treść i odpowiedź pozostają identyczne.
POST /run/{model_id}
Wycena = opłata
POST /quote/{model_id} zwraca dokładną cenę dla Twoich danych wejściowych. Tyle płacisz, nigdy więcej.
→ { "credits": 560, "usd": "0.56" }
Pliki przechowywane tak długo, jak potrzebujesz
Każdy wynik jest kopiowany do naszej przestrzeni dyskowej. Przechowuj go bezterminowo za 0,10 $ za GB miesięcznie lub 7 dni bezpłatnie — jednym przełącznikiem na koncie albo dla każdego żądania.
?storage=permanent | temporary
Jeden format błędów
Każdy błąd wskazuje parametr, przyczynę i link do dokumentacji, w każdym modelu. Nieprawidłowe dane wejściowe nigdy nie są obciążane.
"param": "duration", "code": "out_of_range"
Budżety dla kluczy + MCP
Ustal limit wydatków dla klucza, a następnie przekaż ten klucz agentowi przez serwer MCP.
api.doitong.com/v1/mcp
Pozwól agentowi wybrać model, sprawdzić cenę i go uruchomić
Połącz Claude, ChatGPT lub Cursor z serwerem MCP Doitong za pomocą tego samego klucza, którego używasz dla REST. Każda strona dokumentacji jest również dostępna w formacie Markdown, więc agenci czytają dokładnie to, co Ty.
- Wyceny przed każdym uruchomieniem, dzięki czemu agenci mieszczą się w budżecie
- Błędy wskazują parametr, który agent musi poprawić
- Wersja Markdown każdej strony na potrzeby okien kontekstowych
Wklej go do Claude, ChatGPT lub Cursor, a następnie opisz, co chcesz zbudować.
Pokaż 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"
]
}
}
}
Uruchom raz w folderze projektu. Ten sam klucz Bearer co dla REST API.
Uruchom ponownie Cursor po zapisaniu. Serwer pojawi się w sekcji MCP w ustawieniach.
Ustawienia → Developer → Edit config, a następnie uruchom ponownie Claude Desktop. Wymaga Node.js.