最高品質の画像・動画・音声モデルを1つのAPIで
すべてのモデルで同じリクエスト形式。実行前に正確な価格を確認できます。ファイルは永久保存、または無料で7日保存できます。選択はあなた次第です。
POSTapi.doitong.com/v1/run/{model_id}
キーの取得から完成した動画まで、1回の呼び出しで
# 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
1つのリクエストを覚えて、すべてのモデルを使う
統一されたパラメータ
image、duration、aspect_ratioはすべてのモデルで同じ意味を持ちます。モデル固有の名前もエイリアスとして使用できます。
"image": "…", "duration": 5
すべてのモデルで1つのリクエストURL
パスを変更するだけでモデルを切り替えられます。認証、ボディ、レスポンスは同一です。
POST /run/{model_id}
見積もり額=請求額
POST /quote/{model_id}は入力に対する正確な料金を返します。支払うのはその金額だけで、それ以上かかることはありません。
→ { "credits": 560, "usd": "0.56" }
必要な期間だけファイルを保存
すべての出力はストレージにコピーされます。1か月あたり1GBにつき$0.10で永久保存するか、無料で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"
]
}
}
}
プロジェクトフォルダで1回実行します。REST APIと同じBearerキーを使用します。
保存後にCursorを再起動します。設定のMCPにサーバーが表示されます。
設定 → Developer → Edit configの順に進み、Claude Desktopを再起動します。Node.jsが必要です。