DM0.5 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.
Call Dexmal’s DM0.5 (rr/dm05) through RoboRouter to generate joint and gripper action sequences from a task instruction, three camera views and bimanual state. This integration uses the Dexmal Mirror (DOS-W1) hardware contract.
Hardware: RoboRouter supports Dexmal Mirror (DOS-W1). Capture the main view cam_high, left wrist cam_left_wrist, right wrist cam_right_wrist and robot state at the same instant. Supply one 448×448 RGB JPEG data URL per view in frames. Match Mirror’s camera placement and calibration. Other robots cannot use this hardware contract directly.
Input: observation contains instruction, state and images. Omit eef. Supply 14 state values in DexOS native order and units: six left joints, left gripper, six right joints, right gripper. RoboRouter selects the Mirror template from the model ID.
Zero-shot: Dexmal reports that on supported hardware, DM0.5 follows language instructions for learned skills such as grasping and placing in unseen scenes without scene-specific fine-tuning. Those results do not establish support for arbitrary new skills or unadapted robots. The synthetic example below verifies the API only.
Run the example: set ROBOROUTER_TOKEN to your existing RoboRouter API token. The command requires curl and Python 3. It downloads a synthetic observation by default, so no robot or provider key is needed. Production pricing is $0.04 per 1,000 action tokens. A result with 25 steps costs $0.001. To use your own observation, save it as dm05-observation.json and move any previous dm05-request.json aside.
POST returns a receipt with usage.action_tokens and the charge. GET /api/v1/inference/{id}/result reads the actions. Values follow Mirror’s native channel order and units, with dt_ms set to null. The API does not execute them. Keep dm05-request.json for the same prediction; on HTTP 202, query the original ID without generating a new request_key.
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.
# Set ROBOROUTER_TOKEN to your existing API token before running.
(
set -eu
: "${ROBOROUTER_TOKEN:?Set your RoboRouter API token first}"
BASE=https://datumwell.io
# Keep dm05-request.json to check the same prediction without a second charge.
if [ ! -f dm05-request.json ]; then
if [ ! -f dm05-observation.json ]; then
curl --fail -sS "$BASE/downloads/dm05-mirror-observation.json" -o dm05-observation.json
fi
python3 - <<'PY'
import json, uuid
with open("dm05-observation.json") as source:
observation = json.load(source)
with open("dm05-request.json", "x") as output:
json.dump({"request_key": str(uuid.uuid4()), "model": "rr/dm05",
"observation": observation}, output)
PY
fi
curl --fail-with-body -sS "$BASE/api/v1/inference" \
-H "Authorization: Bearer $ROBOROUTER_TOKEN" \
-H 'Content-Type: application/json' \
--data-binary @dm05-request.json -o dm05-receipt.json || { cat dm05-receipt.json; exit 1; }
cat dm05-receipt.json
printf '\n'
REQUEST_ID=$(python3 -c 'import json; print(json.load(open("dm05-receipt.json"))["id"])')
curl --fail-with-body -sS "$BASE/api/v1/inference/$REQUEST_ID/result" \
-H "Authorization: Bearer $ROBOROUTER_TOKEN"
)