Learning resourcesReviewed · xAI

Reasoning Effort Evals

Reasoning Effort Evals is an xAI cookbook guide for developers comparing Grok reasoning settings, with recommendations that depend on the quality and size of their test cases. It describes a TypeScript evaluation app that compares accuracy, API cost and latency across four reasoning levels. A local web interface and terminal mode are documented; batch mode uses a different model, so its results need separate interpretation.

Researched 25 Nov 2026

In short.

Reasoning Effort Evals is a practical guide for developers choosing how much reasoning to buy from Grok, but its recommendation is only as reliable as the supplied cases and grading rules. The documented app combines exact checks with model-based grading, compares four reasoning settings and recommends a cheaper setting near the best observed accuracy. Live requests use grok-4.7; batch answers use grok-4.3. The page reports sample costs and results, but these are illustrative observations rather than guarantees. Implementation behavior, current API compatibility and reproducibility remain unverified.

Researched and written by an AI model and checked by a second AI model. How it works

Covers the complete selected documentation page at [https://docs.x.ai/cookbook/examples/reasoning-effort-evals.md] only. Linked repository files, pricing information and other pages are excluded. No license notice appears in the supplied page. The implementation and raw evaluation records were not supplied, and no code was executed. Installation, runtime behavior, API compatibility, charges and reported results remain unverified beyond the page's descriptions.

The overview

identity

Reasoning Effort Evals is an xAI cookbook tutorial with an accompanying TypeScript evaluation app. Its purpose is to help developers choose a reasoning setting using their own prompts, expected answers and grading criteria.

The original page is [https://docs.x.ai/cookbook/examples/reasoning-effort-evals.md]. It describes a local web dashboard and a terminal interface sharing the same evaluation engine. The linked repository implementation is outside the supplied evidence.

assessment

The guide offers a concrete way to investigate whether additional reasoning improves a particular task enough to justify its cost. Its strongest feature is the connection between field checks, a written grading rubric, recorded request costs and inspection of individual failures.

The page reports that all four settings scored between 87% and 93% on its short support-ticket sample, with the highest-scoring setting changing between runs. Low effort reportedly used fewer reasoning tokens and cost about half as much. These observations support evaluating your own workload; they do not establish that low effort is generally sufficient.

users

The resource suits developers building Grok applications who can supply representative inputs and define what counts as a correct answer. Tasks combining fixed labels with written responses, such as ticket classification and reply drafting, match the demonstrated format.

Beginners get a sample task and a visual dashboard, but still need to install a Node.js project and configure an API key. Experienced developers can study schema validation, concurrency, retries, streaming progress, batch processing and evaluation records. People seeking model-independent comparisons or established production benchmarks will need additional evidence.

capabilities

The documented app evaluates every case at low, medium, high and xhigh reasoning effort. It presents accuracy and answer cost per 1,000 responses, records live-request latency and recommends a setting using explicit accuracy and savings thresholds.

The dashboard exposes incorrect answers, failed checks, judge explanations and reasoning output. Both interfaces save answers, checks, costs and latency to output/<task>-<time>.json. The page also describes prompt and case editing, cancellation, retry visibility and a batch submission mode.

Tasks support choice fields, free-text fields, word limits, expected values and optional grading rubrics. Omitting the rubric enables grading with code checks alone.

Using it

requirements

The page requires Node.js 22.13 or later and an xAI API key supplied through XAI_API_KEY or a .env file at the repository root. The example must be available locally under examples/reasoning-effort-evals/typescript. It uses the xAI SDK and Zod; exact dependency versions are not supplied in the page.

Live evaluation and judging require API access to grok-4.7. Batch answer generation uses grok-4.3. Operating-system support, hardware requirements, account eligibility and current model availability are not established by the supplied page.

Useful results require more than installation: users must provide representative cases, reliable expected answers and clear criteria for any free-text judgments. The described requests send task content and answers to xAI; data retention and privacy terms are not covered.

mechanism

The app validates the task with Zod and builds an answer schema from its fields. The same schema supplies the request's JSON Schema and validates the returned answer. Malformed answers count as incorrect. Code first checks expected field values and word limits; only answers passing every code check proceed to model grading.

The judge uses grok-4.7 at low effort and receives the instructions, rubric, case notes and free text without seeing the answer's reasoning setting. It returns structured reasons and verdicts. An answer is correct only when every applicable check passes. A separate comparison of the recommended setting against the highest-scoring setting presents answer pairs in both orders and counts a win only when both judgments agree.

Live execution permits 24 concurrent requests. The SDK is configured for five retries, while a one-minute idle timeout has a separate additional retry for stalled streams. Request usage supplies cost, and a timer supplies latency including rate-limit waits. Shared prompt cache keys support prompt reuse.

Batch mode queues answer requests and grades returned answers in real time. Batch costs arrive in cost_in_usd_ticks, with ten billion ticks per dollar. The web interface receives progress through server-sent events from a small Node.js HTTP server.

setup

The documented setup is to enter examples/reasoning-effort-evals/typescript, run npm install, configure the API key and start the dashboard with npm run web. The interface is available at [http://localhost:3000], where Run the sample starts the supplied task. The page does not include repository acquisition instructions.

For a custom task, the dashboard accepts an edited prompt, fields, rubric and cases. Terminal usage is npm start -- your-task.json; without a task file it uses the sample. The documented batch command is npm start -- --batch, and the dashboard offers the same mode.

Stopping a web run or closing its page is described as aborting requests. In batch mode, stopping cancels the batch and requests that have not run are not billed. Installation, cancellation and API behavior were not executed or verified.

example

The sample contains 30 support tickets for Fernbill, a fictional invoicing app. Each answer supplies a category, priority and written reply. The illustrated fields offer billing, payments or bug as categories, four priority levels and an 80-word reply limit.

One illustrated case concerns a Pro customer reporting a duplicate monthly charge. Its expected labels are billing and high, while the notes ask the reply to describe a refund within 5 to 10 business days. This is fictional task policy used for grading, not evidence about a real service.

Evaluating 30 cases at four settings produces 120 answers. This example shows how deterministic label checks can work alongside qualitative checks of a short reply; it does not establish performance on other support workloads.

Assessment & evidence

limitations

The 30-case sample offers limited resolution: one case changes accuracy by about 3.3 percentage points. A small difference between settings can therefore reflect only one answer, and the page reports variation between runs. It provides no confidence intervals or evidence that the sample represents a broader workload.

The judge is itself a language model. Concealing reasoning settings and reversing comparison order address specific sources of bias, but do not establish correct or consistent grading. The answer model and judge also share the Grok model family.

Batch mode changes the answer model from grok-4.7 to grok-4.3 and does not measure latency. Its results cannot isolate the effect of batching on the live model. The page reports roughly two-minute batch completions while stating that the API promises only that most batches finish within 24 hours.

The documented concurrency can encounter team rate limits, and live latency includes retry waits. Repository code, saved outputs, dependency behavior and operational robustness were not inspected or executed.

reasoning

Here, reasoning effort means a model setting controlling how much reasoning it applies before answering. The app measures the resulting accuracy, cost and latency; it does not assume that a higher setting produces a better answer.

The recommendation first identifies the best observed accuracy, then considers cheaper settings within five percentage points of it. A setting with lower accuracy must save at least 10% to win. This is an explicit cost-quality preference, rather than a statistical guarantee of equivalent performance.

The page reports around 600 reasoning tokens per answer for medium, high and xhigh on its short sample tickets, versus around 140 for low. That observation explains the reported cost pattern for this sample. It does not establish how the settings behave on longer or more difficult tasks.

alternatives

Within the example, the web dashboard suits interactive inspection, while the terminal accepts a task file and prints the scorecard and the recommended setting's failures. Both are described as using the same evaluation engine.

Code-only grading is an option when correctness can be captured through expected values and length checks. A rubric adds model-based assessment for qualities that those checks do not cover, with extra cost and judgment uncertainty.

Batch mode is another documented option when queued processing is acceptable and request volume matters, subject to its different answer model and absent latency measurement. The supplied page contains no comparison with other evaluation frameworks or model providers.

evidence

The source is xAI’s Reasoning Effort Evals documentation [https://docs.x.ai/cookbook/examples/reasoning-effort-evals.md].

The page supplies task examples, setup commands, algorithm descriptions and publisher-reported sample observations. It does not supply raw run records or the full implementation. The linked sample task at [https://github.com/xai-org/xai-cookbook/blob/main/examples/reasoning-effort-evals/typescript/sample-task.json] and the linked pricing page are outside the selected scope.

Descriptions of functionality and performance therefore rest on the documentation. No installation, API request, evaluation or benchmark was executed.

Access & freshness

costs

The page reports sample runs costing about $1.05 each and taking 4 to 6 minutes, with roughly half the cost attributed to answers and half to grading. Each sample generates 120 answers and up to about 180 grading requests. These are the publisher's observations, not independently reproduced results or fixed prices.

The app records request costs from API usage and reports total run cost. Comparing answer cost per 1,000 responses does not by itself describe the full cost of conducting an evaluation, which can also include grading and pairwise comparisons.

The page describes grok-4.3 batch answers as cheaper and links to [https://docs.x.ai/developers/pricing#batch-api-pricing], but supplies no complete rate table. Current rates, the discount amount and the cost of a custom workload are unknown. Omitting a rubric avoids rubric-based judge calls; using batch answers still leaves real-time grading costs.

rights

The selected page contains no explicit license or redistribution grant for the documentation or accompanying code. It links to a GitHub task file, but that link does not establish reuse rights. Permission to redistribute captured material or package the implementation is unknown.

Commercial-use conditions, attribution requirements, API terms and rights governing submitted data are not established by this page.

freshness

The supplied page was captured on 2026-11-25 at 11:56:09.746 UTC. It identifies grok-4.7 for live answers and judging, grok-4.3 for batch answers and Node.js 22.13 as the minimum runtime.

No publication date, last-update date or repository commit is supplied. Model availability, batch support, SDK behavior and prices can change; their status beyond the captured page is unknown.

actions

Use the sample to understand the format, then replace it with representative cases from the intended task. Define exact expected values where possible and write a specific rubric for the remaining text. Inspect individual failures and judge explanations before accepting the recommended setting.

Repeat comparisons and include additional cases before relying on small accuracy differences. Decide whether the built-in five-percentage-point tolerance and 10% savings threshold match the consequences of errors in the application.

Before adoption, inspect the linked implementation and its license, confirm current API access and pricing, and budget for grading as well as answers. Treat batch mode as a separate grok-4.3 evaluation, and use live mode when request latency is part of the decision.

Evidence for this report

selected-page.txtselected · checked 2026-11-25