# Stability AI Codex API Evaluation

**Category:** Audio
**Score:** 54 (D)

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

## Summary

| Metric | Value |
|--------|-------|
| Status | completed |
| Overall score | 54 |
| Grade | D |
| Eval score | 72 |
| Discovery score | 14 |
| Cost | $0.26 |
| Runtime | 1m 10s |
| Tool calls | 26 |
| Errors | 6 |
| Tokens used | 749716 |
| Success | Yes |

## Agent-Readiness Checklist

| Signal | Evidence |
|--------|----------|
| Context7 | Not found |
| llms.txt | Not found |
| MCP server | Not found |
| Typed SDK | https://github.com/Stability-AI/stability-sdk |
| OpenAPI | Not found |
| Agent skills | Not found |
| CLI | Not found |

## Evaluation Prompt

````text

# Task
Using https://platform.stability.ai/docs/api-reference/audio, complete the following task:

Using the Stability AI REST API, build me a Python script that generates an original instrumental music track:

1. Follow the Stability AI documentation to authenticate and choose the simplest text-to-music REST API path
2. Generate 30 seconds of upbeat electronic background music for a product launch video, with no vocals
3. Save the result as output.mp3, output.wav, or output.m4a, using a format supported by the API
4. Print a confirmation message with the filename and file size when the track is saved

Use the documented Stability AI REST API only; do not generate fake or placeholder audio. 

## 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 | Yes | 0 | 0 | $0.26 ($0.20–0.40, good) |
| Time | Yes | 0 | 1 | 70s (1–2min, great) |
| Efficiency | No | 0 | 0 | 26 tool calls (>25, inefficient) |
| Found Docs | Yes | 0 | — | Touched docs at platform.stability.ai: yes (15 matching tool calls) |
| Zero Errors | No | 0 | — | Tool outputs with errors/tracebacks: 6 |
| 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 | 31 |
| Tool call traces | 26 |
| Generated files | 2 |
| Exit code | 0 |
| Completed at | 2026-09-27T01:58:24.891111+00:00 |

### Generated Files

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

## 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/stability-ai
