# SandBase AI Audio Understanding API

> Analyzes an audio recording and answers a question about it in text, such as what is being discussed, who is speaking or what emotions are expressed. An optional detailed mode returns a longer analysis.

Source: https://www.sandbase.ai/models/sandbase-ai/audio-understanding
API reference: https://www.sandbase.ai/models/sandbase-ai/audio-understanding#api

## Facts

- Provider: SandBase AI
- Type: Audio model
- Model ID: `sandbase-ai/audio-understanding`
- Price: From $0.01 per run
- Capabilities: audio to text
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

- Unified Run API: `POST https://api.sandbase.ai/v1/run`

```bash
curl -X POST https://api.sandbase.ai/v1/run \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "sandbase-ai/audio-understanding",
  "audio": "https://storage.googleapis.com/falserverless/model_tests/audio-understanding/Title_%20Running%20on%20Fal.mp3",
  "prompt": "What is being discussed in this audio?",
  "detailed_analysis": false
}'
```

The response returns a run id; poll `GET https://api.sandbase.ai/v1/run/{id}` until the status is `completed` or `failed`.

## FAQ

### How do I call SandBase AI Audio Understanding through SandBase?

Create a SandBase API key, then send requests with the model ID "sandbase-ai/audio-understanding" to Unified Run API (/v1/run) at https://api.sandbase.ai. The request examples on this page show the exact payload.

### Do I need a separate SandBase AI account?

No. One SandBase API key and balance gives you access to SandBase AI Audio Understanding and the other models in the catalog; you do not need to sign up with SandBase AI separately.

## README

### Audio Understanding

Ask a question about an audio recording and get a text answer: topics, speakers, emotions, sounds and more.

#### Fields

| Field | Type | Default | Notes |
|---|---|---|---|
| `audio` | audio file or URL, required | — | Recording to analyze. |
| `prompt` | string, required | — | Question about the audio, up to 10,000 characters. |
| `detailed_analysis` | boolean | false | Ask for a longer, more detailed answer. |

#### Output

| Field | Notes |
|---|---|
| `text` | Answer to the prompt. |

#### Billing

$0.01 per started 5 seconds of input audio ($0.12 per minute), using the measured audio length. If the length cannot be read, the quote assumes 10 minutes.

| Audio | Price |
|---|---|
| 5 s | $0.01 |
| 1 min | $0.12 |
| 5 min | $0.60 |

Failed runs are not charged.

#### Prompting

- Ask one specific question per request, such as the main topic, the number of speakers or the mood.
