Skip to main content
POST

Authorizations

Authorization
string
header
required

Your API key: Authorization: Bearer tokz_live_<id>_<secret>. Only a SHA-256 hash of the secret is stored.

Body

application/json
inputs
required

One text or up to 64, each at most 20,000 characters. A fine tune takes up to 16.

Required string length: 1 - 20000
model
string
default:opendecision-large-packed

A catalog model (opendecision-small, opendecision-large-packed, opendecision-large), or the name of a fine tune your organization owns.

decisions
object

Questions keyed by name, 1 to 16 per request. Required for a catalog model, and refused for a fine tune, which already knows its question and labels.

Response

One object per input, keyed by decision name. A fine tune uses the fixed key decision.

id
string
required
model
string
required
results
object[]
required

One object per input, in order, keyed by decision name. A fine tune uses the fixed key decision.

usage
object
required