# OpenRouter Grok API Evaluation

**Category:** Inference
**Score:** 83 (B)

This is the agent-readable Devtool Arena evaluation page for OpenRouter on Grok API.

## Summary

| Metric | Value |
|--------|-------|
| Status | completed |
| Overall score | 83 |
| Grade | B |
| Eval score | 77 |
| Discovery score | 100 |
| Cost | $0.53 |
| Runtime | 1m 44s |
| Tool calls | 21 |
| Errors | 0 |
| Tokens used | 576844 |
| Success | Yes |

## Agent-Readiness Checklist

| Signal | Evidence |
|--------|----------|
| Context7 | https://context7.com/openrouterteam/typescript-sdk |
| llms.txt | https://openrouter.ai/docs/llms.txt |
| MCP server | https://openrouter.ai/docs/guides/overview/mcp-server |
| Typed SDK | https://github.com/OpenRouterTeam/typescript-sdk |
| OpenAPI | https://openrouter.ai/openapi.json |
| Agent skills | https://github.com/OpenRouterTeam/skills |
| CLI | https://openrouter.ai/docs/guides/ori/harness.md |

## Evaluation Prompt

````text

# Task
Using https://openrouter.ai/[REDACTED:TENANT], complete the following task:

Using OpenRouter, build me a script that extracts structured data from this invoice and returns JSON:

---
INVOICE #INV-2024-0042
From: Acme Corp
Date: 2024-03-15

Items:
- Consulting Services: $500.00
- Travel Expenses: $150.00

Total: $650.00
---

The JSON output should have these fields: invoice_number, vendor, date, line_items (array), total 

## Execution
After creating the script, run it to verify it works:
```bash
cd /home/daytona/[REDACTED:TENANT] && python <your_script>.py
```

The script should print output to stdout. If there are errors, debug and fix them until it runs successfully.

````

## Grader Results

| Check | Passed | Weight | Score | Details |
|-------|--------|--------|-------|---------|
| Cost | No | 0 | 0 | $0.53 ($0.40–0.70, expensive) |
| Time | Yes | 0 | 1 | 104s (1–2min, great) |
| Efficiency | Yes | 0 | 0 | 21 tool calls (≤25, below average) |
| Found Docs | Yes | 0 | — | Touched [REDACTED:TENANT] at openrouter.ai: yes (13 matching tool calls) |
| Zero Errors | Yes | 0 | — | No errors in tool outputs |
| Syntax Valid | Yes | 0 | — | Code compiles/parses correctly |
| Created Files | Yes | 0 | — | Generated files: 1 (need ≥1) |
| Full Execution | Yes | 0 | — | Method: full_execution, Exit: 0 |

## Run Artifacts

| Artifact | Value |
|----------|-------|
| Conversation turns | 22 |
| Tool call traces | 21 |
| Generated files | 1 |
| Exit code | 0 |
| Completed at | 2026-10-19T08:13:03.87278+00:00 |

### Generated Files

- /home/daytona/app/extract_invoice.py

## Related Pages

- [Grok API leaderboard](/grok/api)
- [Compare Grok API companies](/grok/api/compare)
- [Agent Landscape](/discoverability)

Canonical URL: https://devtoolarena.com/grok/api/openrouter
