跳到导航

Run a capability, poll a task or fetch a result

Runs an inspected capability with your API key; a start spends balance at the inspected price. Copy next from Inspect and fill the placeholders.

  • operation: start (default): input follows the inspected input_schema; unknown fields inside input are rejected. Synchronous kinds — social and web data, text models, JEV — return the result in the response. Asynchronous kinds — image, video, workflows and data:web.research (30 s to 3 min) — return {data: task, next}; repeat next, an operation: status call with task_id, until succeeded or failed. A finished research task carries its result in data.output; a failed one is not charged.
  • Text models: {"reference":"model:<id>","input":{"input":"<prompt>"}} returns {object:"text.result", model, status, output_text, usage, request_id}. input.input is a string or a messages array; instructions, max_output_tokens and temperature are optional.
  • JEV (model:jev-1.13, model:jev-1.13-free): {"input":{"state":…,"questions":…}} returns {id, model, answers, usage}.
  • Result views: view: preview lifts the result’s main list to items (the first max_items, default 10, each element trimmed inside) with items_path and items_total, shortens long strings and marks the reply truncated with a result_ref; fields keeps only the listed paths, items[].<key> for keys of each list element. REST defaults to full; the BeatAPI MCP server defaults to preview. A status poll takes the same view.
  • operation: result with request_id returns a finished result again, free, for one hour, with any view, fields or max_items.

Send a unique idempotency_key per task as a top-level field (or the Idempotency-Key header) and reuse it only to retry the same start. An unknown reference returns 404 with suggestions.

身份验证

AuthorizationBearer

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

请求头

X-Beat-Clientenum可选默认为 http

Dialect of next: http (default) writes a curl command, mcp writes a capabilities tool call. The BeatAPI MCP server sends mcp.

允许的值:

请求

This endpoint expects an object.
referencestring必需格式: "^(model|data|workflow):.+$"
The inspected reference
operationenum可选默认为 start

start: run it. status: poll an async task (needs task_id; takes view, max_items and fields like start). result: fetch a finished result again, free within one hour (needs request_id).

允许的值:
inputmap from strings to any可选

For start: the input, following the inspected input_schema. Text models: {"input": "<prompt or messages>"} with optional instructions, max_output_tokens, temperature. JEV: {"state": …, "questions": …}.

task_idstring可选

For status: the task id an async start returned.

request_idstring可选

For result: the request_id a sync start returned.

viewenum可选

full (REST default): the whole result. preview: the result’s main list lifted to items (the first max_items elements, each trimmed inside) with items_path and items_total, long strings shortened, truncated and result_ref reported.

允许的值:
max_itemsinteger可选1-50

With preview: elements kept in items (default 10).

fieldslist of strings可选

Keep only these paths. Paths starting items[] are read from each element of the result’s list and returned as items, such as items[].title; other paths are dotted from the root, [] walks an array.

idempotency_keystring可选<=255 characters

Unique per task, a top-level field next to reference and input (or the Idempotency-Key header); reuse only to retry the same start.

响应

Synchronous result, stored result or task status
objectstring可选
idstring可选
Task id for async kinds.
statusstring可选

Task status: poll until succeeded or failed.

request_idstring可选

Pass to operation: result to fetch the stored result.

output_textstring可选
Text models only.
answersmap from strings to any可选
JEV only.
itemslist of any可选

With preview or items[] fields: the elements of the result’s main list.

items_pathstring可选

Where the list sits in the full result, such as data.data.items or results.

items_totalinteger可选
Elements in the full list.
items_showninteger可选

Elements in items.

truncatedboolean可选
True when a preview cut the result.
result_refobject可选
The stored full result, when a view left anything out.
usagemap from strings to any可选
dataany可选
The result payload or the wrapped object.

错误

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