Quickstart
Send one curl call to decision-machine-1 and read a typed decision back in about a second.
decision-machine-1 runs at https://api.milliseconds.ai. Every capability is a single POST with a JSON body.
No API key is required during the launch period. The API is public. It costs $0.04 per million input tokens and $0 per output token. See Pricing. Send no Authorization header.
Make your first call
Pick a capability
Start with Classify. It takes text and labels, and returns one label with a probability.
What each field means
Two headers come back on every capability response: x-input-chars (79 here), the number of input characters, and x-input-tokens (20 here), the input tokens billed for this call.
Label descriptions improve accuracy. The model reads the label text, so "billing": "payments, invoices, charges or refunds" scores better than a bare billing. Read more in writing good statements and labels.
The same call from your code
No SDK exists. Use your language’s HTTP client.
Ask several questions at once
Every capability accepts texts for a batch of inputs. yes-no also accepts statements, and answer accepts questions. Statements share one model call, so they cost almost nothing extra.
Results come back in input order. The limits are 32 texts, 32 statements and 32 questions per call. Batching covers the ordering rules and the fan-out.
When a call fails
Every capability returns errors in one envelope:
Two codes need a retry, not a code change. runner_error (502) means inference failed twice. overloaded (529) means every inference slot stayed busy. Retry both with backoff. Errors lists every code.