Audio Understanding
sandbase-ai/audio-understandingAnalyzes 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.
- Cena bazowa
- $0.01USD / uruchomienie
- Wykonanie
- async
- Typ modelu
- audio
- Pola wejściowe
- 3
Wypróbuj model
Playground
Twój wynik pojawi się tutaj
Uzupełnij dane wejściowe, a następnie kliknij Uruchom.
Karta modelu
Specyfikacja
Cennik
- Cena bazowa
- $0.01 / uruchomienie
Kontekst i modalności
- Wejście
- Zdefiniowane przez schemat
- Wyjście
- audio
Możliwości
- Czat
- Nieobsługiwane
- Wizja
- Nieobsługiwane
- Rozumowanie
- Nieobsługiwane
- Ustrukturyzowany wynik
- Nieobsługiwane
- Wywoływanie funkcji
- Nieobsługiwane
- Wejście audio
- Nieobsługiwane
Dostęp
- Dostawca
- SandBase AI
- ID modelu
- sandbase-ai/audio-understanding
- Wykonanie
- async
- Bazowy URL
- https://api.sandbase.ai
- API
- Unified Run API
- Endpoint
- /v1/run
README API
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.
Zacznij tworzyć
Wyślij pierwsze żądanie
Kompatybilny z OpenAI endpoint z jednolitym uwierzytelnianiem i śledzeniem użycia.
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/run" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{
"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
}
SANDBASE_JSON
)
run_id=$(printf '%s' "$result" | jq -r .id)
for attempt in $(seq 1 120); do
status=$(printf '%s' "$result" | jq -r .status)
case "$status" in completed|failed|timeout) break ;; esac
sleep 2
result=$(curl --fail-with-body --silent \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
"https://api.sandbase.ai/v1/run/$run_id")
done
status=$(printf '%s' "$result" | jq -r .status)
[ "$status" = completed ] || { echo "Generation ended: $status" >&2; exit 1; }
printf '%s\n' "$result"Schemat wejścia
3 parametrów · 2 wymaganych · 1 opcjonalnych
| Parametr | Typ | Wymagane | Opis |
|---|---|---|---|
audio | string | Wymagane | Audio file or URL to analyze. |
prompt | string | Wymagane | The question or prompt about the audio content (1–10,000 characters). · Minimalna długość: 1 · Maksymalna długość: 10000 |
detailed_analysis | boolean | Opcjonalne | Whether to request a more detailed analysis of the audio. · Domyślnie: false |
Schemat wyjścia
| Pole | Typ | Opis |
|---|---|---|
id | string | Unikalny identyfikator zadania generowania |
status | string | Status zadania: pending, running, completed, failed, timeout |
model | string | Model użyty do generowania |
outputs | array | Tablica elementów wyjściowych |
outputs[].url | string | URL wygenerowanego artefaktu |
outputs[].content_type | string | Typ MIME (np. image/png, video/mp4) |
error | object | null | Szczegóły błędu, jeśli wystąpił; null w przypadku powodzenia |
error.type | string | Maszynowo czytelny kod typu błędu |
error.message | string | Opis błędu czytelny dla człowieka |
Asynchroniczny przepływ pracy
Ten model działa asynchronicznie. Wyślij żądanie, a następnie odpytyuj o wynik.
- Wyślij: wykonaj POST do /v1/run i odczytaj zwrócone
id. - Odpytywanie: wykonuj GET /v1/run/{id}, aż status będzie równy
completed,failedlubtimeout. - Pobierz: odczytaj
outputsz ukończonej odpowiedzi.
Wybierz swój model
Porównaj modele
| Model | Typ | Cena domyślna | Wydano |
|---|---|---|---|
Audio UnderstandingTen model SandBase AI | Audio | $0.01 / uruchomienie | 24 paź 2025 |
SandBase AI | Audio | $0.01 / uruchomienie | 16 cze 2026 |
SandBase AI | Audio | $0.06 / uruchomienie | 7 sty 2026 |
sandbase-ai | Audio | $0.02 / uruchomienie | 7 paź 2025 |
SandBase AI | Audio | $0.05 / uruchomienie | 4 kwi 2025 |
SandBase AI | Audio | $0.05 / uruchomienie | 4 kwi 2025 |
Pytania
FAQ
Jak wywołać SandBase AI Audio Understanding przez SandBase?
Utwórz klucz API SandBase, a następnie wysyłaj żądania z identyfikatorem modelu "sandbase-ai/audio-understanding" do Unified Run API (/v1/run) na https://api.sandbase.ai. Przykłady żądań na tej stronie pokazują dokładny payload.
Czy potrzebuję osobnego konta SandBase AI?
Nie. Jeden klucz API SandBase i saldo daje Ci dostęp do SandBase AI Audio Understanding oraz innych modeli w katalogu; nie musisz osobno zakładać konta u SandBase AI.
