How to run a speculative plan using the API workflow