Run and observe
You have a task. Run it with one POST, read the structured response and the metrics that come with it, then fetch the recorded run back over the API. The examples reuse the RB_TOKEN, RB_ORG, and RB_PROJECT variables from Create a task; set RB_TASK to the id you saved there.
Run the task
Send the task’s inputs in a task_input object. Its keys match the {placeholder} variables in the task’s prompt — here, customer_review.
The field is task_input, not input_params. A request without task_input fails validation.
This task runs on text alone, so image_match is false and image_description is "N/A". To exercise image verification, create the task with a vision file_input_mode (such as "image") and attach a file on every run — either base64 in a task_files array or as multipart form data. See Run tasks via the API.
Read the response
Your model output is in the response field. Everything else is metadata about the run.
The response also carries two headers worth keeping: x-task-run-id (this run’s id) and x-task-revision-id (the revision that served it).
Identifiers
Response and inputs
Metrics
Unique identifier of the task definition
The specific revision that processed this run
Unique identifier for this execution
Understand the metrics
Tokens
Timing
input_processor_timing covers work before the model call: URL fetching, document extraction, image preprocessing, and retrieval from a collection. llm_call_timing is the model inference itself and is usually the largest component of total latency.
Credits
charged_credits is what the run cost. The two levers are the model (higher-end models cost more per token) and the token count (both input and output). To reduce cost, compare model quality against credit consumption, trim prompts, and keep output concise.
Fetch the run back
Every run is recorded. Fetch a single run by its id, or list a task’s runs — observation is a plain GET.
The list response is a paginated envelope ({ "pagination": {...}, "results": [...] }) — see Errors & pagination. The same runs are also visible in your dashboard, but everything you need to observe them is available over the API.