Una API para los mejores modelos de imagen, video y audio
El mismo formato de solicitud para todos los modelos. Precio exacto antes de ejecutarla. Archivos almacenados para siempre o 7 días gratis; tú eliges.
POSTapi.doitong.com/v1/run/{model_id}
De la clave al video terminado en una llamada
# 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
}
]
}
Descubre qué crea cada modelo
Explorar por laboratorio
Todos los laboratorios (84)- Alibaba Endpoints: 142
- Black Forest Labs Endpoints: 135
- Lightricks Endpoints: 102
- MiniMax Endpoints: 64
- Kling Endpoints: 62
- ByteDance Endpoints: 57
- Bria AI Endpoints: 54
- Stability AI Endpoints: 48
- PixVerse Endpoints: 42
- Google Endpoints: 41
- Ideogram Endpoints: 36
- Tencent Endpoints: 33
- Microsoft Endpoints: 27
- NVIDIA Endpoints: 25
- Meta Endpoints: 24
- Recraft Endpoints: 24
- Vidu Endpoints: 22
- xAI Endpoints: 19
Aprende una solicitud. Usa todos los modelos.
Parámetros unificados
image, duration y aspect_ratio significan lo mismo en todos los modelos. Los nombres nativos del modelo siguen funcionando como alias.
"image": "…", "duration": 5
Una URL de solicitud para todos los modelos
Cambia de modelo modificando la ruta. La autenticación, el cuerpo y la respuesta permanecen idénticos.
POST /run/{model_id}
Cotización = cobro
POST /quote/{model_id} devuelve el precio exacto de tus entradas. Eso es lo que pagas, nunca más.
→ { "credits": 560, "usd": "0.56" }
Archivos conservados el tiempo que necesites
Cada salida se copia en nuestro almacenamiento. Consérvala para siempre por $0.10 por GB al mes, o 7 días gratis: con un solo interruptor en tu cuenta o por solicitud.
?storage=permanent | temporary
Un formato de error
Cada error indica el parámetro, el motivo y un enlace a la documentación en todos los modelos. Las entradas no válidas nunca generan cargos.
"param": "duration", "code": "out_of_range"
Presupuestos por clave + MCP
Limita el gasto por clave y luego entrégale esa clave a un agente mediante el servidor MCP.
api.doitong.com/v1/mcp
Permite que tu agente elija el modelo, cotice el precio y lo ejecute
Conecta Claude, ChatGPT o Cursor al servidor MCP de Doitong con la misma clave que usas para REST. Además, cada página de documentación está disponible en Markdown, para que los agentes lean exactamente lo mismo que tú.
- Cotizaciones antes de cada ejecución, para que los agentes se mantengan dentro del presupuesto
- Los errores indican el parámetro que el agente debe corregir
- Una versión Markdown de cada página para las ventanas de contexto
Pégalo en Claude, ChatGPT o Cursor y luego describe lo que quieres crear.
Mostrar el 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"
]
}
}
}
Ejecútalo una vez en la carpeta de tu proyecto. Usa la misma clave Bearer que la API REST.
Reinicia Cursor después de guardar. El servidor aparece en MCP, dentro de la configuración.
Configuración → Developer → Edit config; después reinicia Claude Desktop. Requiere Node.js.