ਸਮੱਗਰੀ ਵੱਲ ਜਾਓ
ਨਵਾਂ Kling 3.0 ਅਤੇ Seedance 2.0 ਹੁਣ ਲਾਈਵ ਹਨ

ਸਭ ਤੋਂ ਵਧੀਆ ਇਮੇਜ, ਵੀਡੀਓ ਅਤੇ ਆਡੀਓ ਮਾਡਲਾਂ ਲਈ ਇੱਕ API

ਹਰ ਮਾਡਲ ਲਈ ਇੱਕੋ ਬੇਨਤੀ ਫਾਰਮੈਟ। ਚਲਾਉਣ ਤੋਂ ਪਹਿਲਾਂ ਸਹੀ ਕੀਮਤ। ਫ਼ਾਈਲਾਂ ਹਮੇਸ਼ਾ ਲਈ ਜਾਂ ਮੁਫ਼ਤ ਵਿੱਚ 7 ਦਿਨ ਤੱਕ ਰੱਖੋ—ਤੁਹਾਡੀ ਚੋਣ।

POSTapi.doitong.com/v1/run/{model_id}

1,496ਮਾਡਲ
84ਲੈਬ
ਚਿੱਤਰਵੀਡੀਓਆਡੀਓ3Dਟੈਕਸਟਡਾਟਾ (JSON)ਫ਼ਾਈਲ
ਸਭ ਲਈ ਇੱਕੋ ਰਿਕਵੈਸਟ ਫਾਰਮੈਟ
ਤੁਰੰਤ ਸ਼ੁਰੂਆਤ

ਕੁੰਜੀ ਤੋਂ ਇੱਕ ਕਾਲ ਵਿੱਚ ਤਿਆਰ ਵੀਡੀਓ ਤੱਕ

ਤੁਰੰਤ ਸ਼ੁਰੂਆਤ ਪੜ੍ਹੋ
ਟਰਮੀਨਲ
# 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"
response.json
{
  "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
    }
  ]
}
1,496 ਮਾਡਲ · 21 ਸ਼੍ਰੇਣੀਆਂ

ਵੇਖੋ ਹਰ ਮਾਡਲ ਕੀ ਬਣਾਉਂਦਾ ਹੈ

ਸਾਰੀਆਂ ਸ਼੍ਰੇਣੀਆਂ (21)

ਲੈਬ ਅਨੁਸਾਰ ਵੇਖੋ

ਸਾਰੀਆਂ ਲੈਬਾਂ (84)
Doitong API ਕਿਉਂ

ਇੱਕ ਰਿਕਵੈਸਟ ਸਿੱਖੋ। ਹਰ ਮਾਡਲ ਵਰਤੋ।

ਇਕਸਾਰ ਪੈਰਾਮੀਟਰ

image, duration ਅਤੇ aspect_ratio ਹਰ ਮਾਡਲ ਵਿੱਚ ਇੱਕੋ ਅਰਥ ਰੱਖਦੇ ਹਨ। ਮਾਡਲ-ਮੂਲ ਨਾਂਵ ਅਲਿਆਸ ਵਜੋਂ ਵੀ ਕੰਮ ਕਰਦੇ ਹਨ।

"image": "…", "duration": 5

ਹਰ ਮਾਡਲ ਲਈ ਇੱਕ ਰਿਕਵੈਸਟ URL

ਪਾਥ ਬਦਲ ਕੇ ਮਾਡਲ ਬਦਲੋ। ਪ੍ਰਮਾਣੀਕਰਨ, ਬਾਡੀ ਅਤੇ ਜਵਾਬ ਇੱਕੋ ਜਿਹੇ ਰਹਿੰਦੇ ਹਨ।

POST /run/{model_id}

Quote = ਚਾਰਜ

POST /quote/{model_id} ਤੁਹਾਡੇ ਇਨਪੁੱਟ ਦੀ ਸਹੀ ਕੀਮਤ ਵਾਪਸ ਕਰਦਾ ਹੈ। ਤੁਸੀਂ ਓਨਾ ਹੀ ਭੁਗਤਾਨ ਕਰਦੇ ਹੋ, ਕਦੇ ਵੱਧ ਨਹੀਂ।

→ { "credits": 560, "usd": "0.56" }

ਫ਼ਾਈਲਾਂ ਜਿੰਨਾ ਚਿਰ ਤੁਹਾਨੂੰ ਲੋੜ ਹੋਵੇ

ਹਰ ਆਉਟਪੁੱਟ ਸਾਡੇ ਸਟੋਰੇਜ ਵਿੱਚ ਕਾਪੀ ਕੀਤੀ ਜਾਂਦੀ ਹੈ। ਇਸਨੂੰ $0.10 ਪ੍ਰਤੀ GB-ਮਹੀਨਾ ਲਈ ਹਮੇਸ਼ਾ ਲਈ ਰੱਖੋ, ਜਾਂ ਮੁਫ਼ਤ ਵਿੱਚ 7 ਦਿਨ ਤੱਕ: ਆਪਣੇ ਖਾਤੇ ਵਿੱਚ ਜਾਂ ਪ੍ਰਤੀ ਬੇਨਤੀ ਇੱਕ ਸਵਿੱਚ।

?storage=permanent | temporary

ਇੱਕੋ ਐਰਰ ਫਾਰਮੈਟ

ਹਰ ਅਸਫਲਤਾ ਹਰ ਮਾਡਲ ਵਿੱਚ ਪੈਰਾਮੀਟਰ, ਕਾਰਨ ਅਤੇ ਦਸਤਾਵੇਜ਼ ਲਿੰਕ ਦੱਸਦੀ ਹੈ। ਗਲਤ ਇਨਪੁੱਟ ਲਈ ਕਦੇ ਚਾਰਜ ਨਹੀਂ ਹੁੰਦਾ।

"param": "duration", "code": "out_of_range"

ਹਰ ਕੁੰਜੀ ਲਈ ਬਜਟ + MCP

ਹਰ ਕੁੰਜੀ ਦਾ ਖ਼ਰਚ ਸੀਮਿਤ ਕਰੋ, ਫਿਰ MCP ਸਰਵਰ ਰਾਹੀਂ ਉਹ ਕੁੰਜੀ ਕਿਸੇ ਏਜੰਟ ਨੂੰ ਦਿਓ।

api.doitong.com/v1/mcp
AI ਏਜੰਟਾਂ ਲਈ ਬਣਾਇਆ

ਆਪਣੇ ਏਜੰਟ ਨੂੰ ਮਾਡਲ ਚੁਣਨ, ਕੀਮਤ ਦੱਸਣ ਅਤੇ ਚਲਾਉਣ ਦਿਓ

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"

ਆਪਣੇ ਪ੍ਰੋਜੈਕਟ ਫੋਲਡਰ ਵਿੱਚ ਇੱਕ ਵਾਰ ਚਲਾਓ। REST API ਵਾਲੀ ਉਹੀ Bearer ਕੁੰਜੀ।