Playground
The playgrounds on this page cover decision-machine-1. To try rakeaudio, send a file with curl. See Transcribe.
Console playground
Sign in and open the console playground. Select a workspace, choose a capability, and edit the input. No key paste is required.
- Use the form or switch to JSON for the full request body.
- Select Run decision to send a live request with your workspace’s test key and monthly test tokens.
- Read the result and scores. Expand View JSON response for the complete response.
- Select Get code to copy a curl request. The example uses an environment variable instead of your key.
The console selects an active recoverable test key for your workspace and uses it on the server. It creates a reusable Playground key if needed.
The playground always uses your signed-in workspace’s test key. The key stays on the server; the playground does not accept manually pasted keys.
The console forwards live requests to the Milliseconds API. Production keys and purchased credits are not used in this playground.
Initial results are labeled Recorded example. Editing the input clears that result until you run a live request.
Live results show input tokens, usage value, round-trip time, and inference time when the API provides these values. Round-trip time includes the console proxy.
Interactive demos
Open Milliseconds demos. The page automatically connects to your signed-in console workspace and retrieves its test key. No connection button is required.
Automatic key sharing is restricted to the trusted demo site at https://demo.milliseconds.ai. Built-in examples remain free and available without signing in.
When you are signed in, the website and demos show Console in navigation instead of login and signup links.
The console reuses an active recoverable test key. It creates a reusable Playground key if none exists.
The demo keeps the retrieved key in page memory. It does not save the key in browser storage or retrieve production keys.
Demos also accept manually pasted keys. Test keys use the monthly test tokens; production keys use purchased credits.
API Reference playground
Every endpoint page in the API Reference tab also carries a live request builder. You edit the JSON body, press Send, and get the real response from https://api.milliseconds.ai.
Every request needs an API key. Create a test key in the console to use the monthly test tokens. Send it as an Authorization: Bearer test_sk-... header, the same way the code examples do. See Authentication.
Open an endpoint
Go to the API Reference and open an endpoint, for example POST /v1/decision-machine-1/classify.
Every response on this page is a real capture. Two headers come back on every capability call: x-input-chars reports the number of input characters, and x-input-tokens reports the input tokens billed for this call. You pay $0.04 per million input tokens and $0 per output token. See Pricing.
Yes / no
Endpoint POST /v1/decision-machine-1/yes-no.
Look at probability, not answer. answer is only probability >= 0.5. Now edit when_true to "yes" and when_false to "no" and send again. The probability drops to 0 and answer turns false, which is wrong for this text. The hint text must describe the case, a rule covered in writing good statements and labels.
Classify
Endpoint POST /v1/decision-machine-1/classify.
Look at confidence and scores. confidence is 1 − normalized entropy: 0.973 means one clear winner. scores shows the runner-up, which tells you which label pair to rewrite. Send "labels": ["billing", "shipping", "account"] and compare the scores you get without descriptions.
Rate
Endpoint POST /v1/decision-machine-1/rate.
Look at score against level. level is the argmax, here 2 by a margin under 0.001. score is the probability-weighted position, 1.504, sitting between Annoyed and Frustrated. confidence of 0.489 reports the tie honestly. Route on score when the levels are close.
Answer
Endpoint POST /v1/decision-machine-1/answer.
Look at the third result. Answers are spans of your text, never generated prose. A question the text cannot answer returns answer: null and probability: 0. Check start and end against your own string to confirm the span.
Extract
Endpoint POST /v1/decision-machine-1/extract.
Look at paid. This invoice text says nothing about payment, and the model still returned true. Extraction gives you types, not truth. Confirm any value that drives an action with verify. Note also that $2,676.00 came back as the number 2676.
Send {"type": "string"} as the whole schema to see the guard: 400 invalid_schema, schema must be an object with properties.
Entities
Endpoint POST /v1/decision-machine-1/entities.
Look at the offsets. Entities come back sorted by start. The offsets let you redact or highlight the original string without a search. Add "date": "a day or date" to types and send again.
Verify
Endpoint POST /v1/decision-machine-1/verify.
Look at found. It holds the raw spans the model read for that field, match or not. Change value to 4417 and send again: matches goes false, probability goes to 0, and found still shows ["INVOICE #4471"]. That is your debugging output.
The OpenAI-compatible route
POST /v1/chat/completions runs in the explorer too. Plain chat returns 400 on purpose. Send response_format.json_schema or tools, as shown in Structured extraction and Function calling.
Try an error
Send classify with a one-item labels array. Every error uses this envelope. The full list of codes lives in Errors.
Typical round trips from a laptop: every capability lands near 0.4 seconds, and classify-tree adds about 0.4 seconds per level. Errors return in under 0.1 seconds.
Next
- Choosing a capability — pick the right endpoint before you tune one.
- Decisions and probabilities — what each number means.
- Quickstart — the same calls from curl, Python and TypeScript.