跳到导航

Answer typed decision questions with JEV

Synchronous native decision endpoint. Send shared state and named noul, choice, or score questions; read id, model, answers, and usage directly from the response (no data envelope and no task polling). Nouls require instructions; score accepts 1-10 criteria. The paid model is billed by input tokens; the free model is rate limited. Inspect the selected model for current availability and pricing. This is the direct equivalent of capabilities/run with reference model:jev-1.13 or model:jev-1.13-free.

身份验证

AuthorizationBearer

Send your API key as Authorization: Bearer <BEATAPI_API_KEY>.

请求

This endpoint expects an object.
statestring or map from strings to any or list of any必需
Shared application state. Billed once across all named questions.
questionsmap from strings to objects必需
modelstring可选默认为 jev-1.13

Use a published decision model, such as jev-1.13 or jev-1.13-free.

streamboolean可选

Only false is supported; decisions are synchronous and never stream.

响应

Completed decision; no polling is required.

idstring
Identifier for the completed decision.
modelstring
answersmap from strings to objects
One typed answer per question name, without a data envelope.
usageobject

错误

400
Bad Request Error
401
Unauthorized Error
402
Payment Required Error
403
Forbidden Error
404
Not Found Error
429
Too Many Requests Error
500
Internal Server Error
503
Service Unavailable Error