x-inference-task-id header. The task appears in the dashboard as soon as the first tagged request comes through.
Set the task header
Addx-inference-task-id to your request. The value is whatever name makes sense for the objective — document-summary, ticket-classifier, extract-product-data, etc.
You can set the task per request, or put it in defaultHeaders on the client if all calls from that client belong to the same task.
Per request (use when one client serves multiple tasks):
The default task
If you don’t setx-inference-task-id, the request is grouped under the default task. Your traffic is still captured, but it’s all in one bucket. Once you start tagging, you can break down metrics, run evals, and build datasets per task.
Assign task IDs automatically
Use Install with AI if you want the CLI to add task IDs for you. It runsinf instrument, scans your codebase, and names each call site based on what the prompt is doing — for example, document-summary or ticket-classification. These are starting points; you can rename them by editing the x-inference-task-id header value in the generated code.