Bỏ qua đến nội dung

Lingbot World 2

Tích hợp

Id mô hình robbyant/lingbot-world-2
# 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/robbyant/lingbot-world-2?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "sdp": "example"
  }'

# 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"

Yêu cầu này: ≈0,001 $ 1 tín dụng API Chạy trên trang này

Lấy khóa API
Robbyant 3D #worlds#world-model#realtime#interactive

Phiên làm việc với mô hình thế giới tương tác theo thời gian thực, dùng quy trình bắt tay offer và answer kiểu WebRTC

Robbyant · Dữ liệu (JSON)

Kết quả đầu tiên của bạn sẽ xuất hiện ở đây

Tạo một yêu cầu bên dưới và chạy bằng khóa API của bạn. Đầu ra được sao chép vào bộ lưu trữ của chúng tôi, giữ vĩnh viễn hoặc 7 ngày miễn phí.

Tạo một yêu cầu

Các điều khiển được tạo từ lược đồ mô hình. Mã và giá sẽ cập nhật khi bạn thay đổi chúng.

•bắt buộc
Nâng cao type · session_id · ice_status · credential_age_seconds · ice_servers
mặc định offer
POST /run/robbyant/lingbot-world-2?wait=20 báo giá → 0,001 $
# 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/robbyant/lingbot-world-2?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "sdp": "example"
  }'

# 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"

Chạy yêu cầu này

Key của bạn vẫn nằm trong trình duyệt này: key chỉ được gửi đến Doitong API và chỉ được lưu trong localStorage nếu bạn chọn Ghi nhớ. Nhận khóa API

Giới thiệu về Lingbot World 2

Bắt đầu một phiên thế giới tương tác có thể khám phá, trong đó chuyển động và camera được điều khiển trực tiếp. Đầu vào là các trường kết nối: `sdp` bắt buộc, `type` mặc định là offer, cùng `session_id`, `ice_servers`, `ice_status` và `credential_age_seconds`. Trả về dữ liệu phiên thay vì tệp.

Tham số

TênKiểu Mặc địnhĐược phép Mô tả
sdpbắt buộc
Kiểustring
typetùy chọn
Kiểustring
Mặc địnhoffer
session_idtùy chọn
Kiểustring | null
ice_serverstùy chọn
Kiểuobject[]
ice_statustùy chọn
Kiểustring | null
credential_age_secondstùy chọn
Kiểunumber | null
≥ 0
bắt buộc

Đầu ra

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "robbyant/lingbot-world-2",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 1,
    "usd": "0.001",
    "charged": 1,
    "refunded": 0
  },
  "input": {
    "sdp": "example"
  },
  "output": {},
  "outputs": [
    {
      "type": "file",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_size": 1843200,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Tệp của bạn, lựa chọn của bạnMỗi outputs[].url là một bản sao trên bộ lưu trữ của chúng tôi: được giữ vĩnh viễn (tính phí theo GB-tháng) hoặc 7 ngày miễn phí, theo cài đặt tài khoản hoặc ?storage=.
Cùng một cấu trúc trên mọi mô hìnhtype, url, content_type, width, height và duration cho hình ảnh, video và âm thanh. output là đối tượng kết quả riêng của mô hình.

Dành cho tác nhân AI: trang này ở dạng Markdown tại https://doitong.com/vi/developers/models/robbyant/lingbot-world-2.md. Tất cả mô hình và hướng dẫn: https://doitong.com/developers/llms.txt