Datumwell

Dream-1 API

By default, each user can submit up to 10 jobs concurrently. This limit applies across all API tokens on your account for model inference, video annotation and standalone 3D Hand Pose. Each accepted video in a batch uses one slot, including while it waits to run. Contact us for higher concurrency or faster processing.

Access Dream Labs’ Dream-1 through RoboRouter. Official cross-embodiment evaluations cover 27 unseen simulated robots and four physical robots, with joint and end-effector action modes described in the report. This guide uses RoboRouter’s integrated I²RT YAM configuration.

The YAM configuration returns joint and gripper actions. Dream Labs’ cross-embodiment end-effector mode uses the target robot’s inverse kinematics to turn poses into joint commands. Other integrations require matching camera, state, action channel and calibration configurations.

Call POST /api/v1/inference with model rr/dream-1. Use the same API token as annotation. Production pricing is $0.04 per 1,000 action tokens, one per returned action step. Each request reserves up to $0.02048 and releases the difference after settlement.

observation.json contains instruction, a right-first 14-channel joint/gripper state, images for overhead/wrist_l/wrist_r (each with a frames array of 320×176 JPEG data URLs), and eef.right/left with position and rotation_6d computed from measured joints using FK.

The JSON below illustrates the input shape; replace its example values and image placeholder with your measured observations. RoboRouter chooses the hardware template from model; no profile ID is required. Write your real observation to observation.json, then run the command below. Images use data:image/jpeg;base64,... rather than remote URLs.

POST returns an id, status, charged_microusd and held_microusd. GET /inference/{id}/result returns action values and channel information. Keep request_key: an identical retry does not invoke or charge again. Returned actions are never executed automatically.

Uploading a video, polling status and reading results do not use an execution slot.

Capacity responses: 429 account_concurrency_exceeded means the account has no free slots. 503 service_capacity_exceeded means the service cannot accept new work right now. 503 capacity_busy means admission is temporarily busy. These responses do not queue work, start an upstream call, or place a new credit hold.

Retry these three capacity errors after the time in Retry-After (in seconds, currently 5). Add a small random delay and cap retries. Reuse the same request_key and payload for inference, or the same job UUID for annotation. For other 503 responses or network timeouts, check the original request status before retrying.

observation.json
{
  "instruction": "Sort the drinks",
  "state": [
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0
  ],
  "images": [
    {
      "role": "overhead",
      "frames": [
        "data:image/jpeg;base64,REPLACE_WITH_YOUR_JPEG"
      ]
    },
    {
      "role": "wrist_l",
      "frames": [
        "data:image/jpeg;base64,REPLACE_WITH_YOUR_JPEG"
      ]
    },
    {
      "role": "wrist_r",
      "frames": [
        "data:image/jpeg;base64,REPLACE_WITH_YOUR_JPEG"
      ]
    }
  ],
  "eef": {
    "right": {
      "position": [
        0,
        0,
        0
      ],
      "rotation_6d": [
        1,
        0,
        0,
        0,
        1,
        0
      ]
    },
    "left": {
      "position": [
        0,
        0,
        0
      ],
      "rotation_6d": [
        1,
        0,
        0,
        0,
        1,
        0
      ]
    }
  }
}
HTTP
export ROBOROUTER_TOKEN='YOUR_API_TOKEN'
BASE=https://datumwell.io

# observation.json contains your instruction, measured state and JPEG data URLs.
# Save request.json and reuse it when checking the same request.
python3 - <<'PY'
import json, uuid
with open('observation.json') as f:
    observation = json.load(f)
with open('request.json', 'w') as f:
    json.dump({'model': 'rr/dream-1', 'request_key': str(uuid.uuid4()),
               'observation': observation}, f)
PY

curl --fail-with-body -sS "$BASE/api/v1/inference" \
  -H "Authorization: Bearer $ROBOROUTER_TOKEN" \
  -H 'Content-Type: application/json' \
  --data-binary @request.json > receipt.json
cat receipt.json

# Read the saved request. GET does not call the model or charge again.
REQUEST_ID=$(python3 -c 'import json; print(json.load(open("receipt.json"))["id"])')
curl --fail-with-body -sS "$BASE/api/v1/inference/$REQUEST_ID/result" \
  -H "Authorization: Bearer $ROBOROUTER_TOKEN"