# Mux Codex API Evaluation

**Category:** Video Infra
**Score:** 76 (B)

This is the agent-readable Devtool Arena evaluation page for Mux on Codex API.

## Summary

| Metric | Value |
|--------|-------|
| Status | completed |
| Overall score | 76 |
| Grade | B |
| Eval score | 67 |
| Discovery score | 100 |
| Cost | $0.56 |
| Runtime | 2m 22s |
| Tool calls | 36 |
| Errors | 2 |
| Tokens used | 590588 |
| Success | Yes |

## Agent-Readiness Checklist

| Signal | Evidence |
|--------|----------|
| Context7 | https://context7.com/muxinc/mux-node-sdk |
| llms.txt | https://mux.com/llms.txt |
| MCP server | https://www.mux.com/docs/integrations/mcp-server |
| Typed SDK | https://github.com/muxinc/mux-node-sdk |
| OpenAPI | https://www.mux.com/api-spec.json |
| Agent skills | https://www.mux.com/docs/core/ai-agents |
| CLI | https://www.mux.com/docs/integrations/mux-cli |

## Evaluation Prompt

````text

# Task
Using https://docs.mux.com/, complete the following task:

Using the Mux Python SDK, build me a script that demonstrates video infrastructure capabilities:

1. Install the official Mux Python SDK (pip install)
2. Upload or ingest a sample video (you can use this public video URL: https://sample-videos.com/video321/mp4/720/big_buck_bunny_720p_1mb.mp4)
3. Wait for processing/indexing to complete (poll status if the API is async)
4. Search or query the video content — for example, search for "bunny" or query a specific timestamp
5. Print the result as JSON with fields: video_id, status, and either search_results or video_metadata

You MUST use the official Mux Python SDK — do not make raw HTTP/REST calls. 

## Execution
After creating the script, run it to verify it works:
```bash
cd /home/daytona/app && 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.56 ($0.40–0.70, expensive) |
| Time | Yes | 0 | 0 | 142s (2–3min, good) |
| Efficiency | No | 0 | 0 | 36 tool calls (>25, inefficient) |
| Found Docs | Yes | 0 | — | Touched docs at docs.mux.com: yes (3 matching tool calls) |
| Zero Errors | No | 0 | — | Tool outputs with errors/tracebacks: 2 |
| Syntax Valid | Yes | 0 | — | Code compiles/parses correctly |
| Created Files | Yes | 0 | — | Generated files: 2 (need ≥1) |
| Full Execution | Yes | 0 | — | Method: full_execution, Exit: 0 |

## Run Artifacts

| Artifact | Value |
|----------|-------|
| Conversation turns | 41 |
| Tool call traces | 36 |
| Generated files | 2 |
| Exit code | 0 |
| Completed at | 2026-09-29T16:45:42.476056+00:00 |

### Generated Files

- /home/daytona/app/video_demo.py
- /home/daytona/app/requirements.txt

## Related Pages

- [Codex API leaderboard](/leaderboard/codex/api)
- [Compare Codex API companies](/leaderboard/codex/api/compare)
- [Agent Landscape](/leaderboard/discoverability)

Canonical URL: https://devtoolarena.com/codex/api/mux
