# Stability AI Grok API Evaluation

**Category:** Audio
**Score:** 72 (C)

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

## Summary

| Metric | Value |
|--------|-------|
| Status | completed |
| Overall score | 72 |
| Grade | C |
| Eval score | 79 |
| Discovery score | 57 |
| Cost | $0.41 |
| Runtime | 1m 43s |
| Tool calls | 15 |
| Errors | 0 |
| Tokens used | 431015 |
| Success | Yes |

## Agent-Readiness Checklist

| Signal | Evidence |
|--------|----------|
| Context7 | https://context7.com/stability-ai |
| llms.txt | https://docs.stability.ai/llms.txt |
| MCP server | Not found |
| Typed SDK | https://github.com/Stability-AI/stability-sdk/blob/main/src/stability_sdk/client.py |
| OpenAPI | Not found |
| Agent skills | Not found |
| CLI | https://github.com/Stability-AI/stability-sdk/blob/main/README.md |

## Evaluation Prompt

````text

# Task
Using https://platform.stability.ai/[REDACTED:TENANT]/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 | No | 0 | 0 | $0.41 ($0.40–0.70, expensive) |
| Time | Yes | 0 | 1 | 103s (1–2min, great) |
| Efficiency | Yes | 0 | 0 | 15 tool calls (≤15, good) |
| Found Docs | Yes | 0 | — | Touched [REDACTED:TENANT] at platform.stability.ai: yes (6 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 | 16 |
| Tool call traces | 15 |
| Generated files | 1 |
| Exit code | 0 |
| Completed at | 2026-10-19T16:41:35.777811+00:00 |

### Generated Files

- /home/daytona/app/generate_music.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/stability-ai
