state and retain the Dreamtune run or job ID.
Before submitting
- Validate the selected model, tool schema or compute capacity.
- Save the exact payload and a unique idempotency key.
- Check that the workspace has credit and the key has the required access.
- Submit once and persist the returned record ID.
Reuse a request safely
Replaying the same creation operation with the same key and identical input recovers its existing record. Changing its input is a conflict. Giving the same intended operation a new key can execute and charge it again. SDK, CLI and MCP do not automatically switch providers, select another model or blindly retry a paid creation call. Your application decides when another read or an explicitly new operation is appropriate.When a request times out
A timeout means the client stopped waiting. It does not establish whether the upstream accepted the work. Check the saved run; if no ID reached the client, recover using the original creation key and identical input. For tools,refreshToolRun checks the upstream receipt. For models, getRun
reads/reconciles the saved operation. For compute, inspect the existing job and
call stop when you want the rental to end. Cancelling an HTTP wait does not
terminate a machine.
Reconciliation states
needs_reconciliation means acceptance, output or billing cannot yet be verified.
Do not convert it into success, assume a free failure or launch replacements.
The workspace can retain admission while potentially active work is unresolved.
Keep the run ID, saved key and non-secret timestamps for investigation.