Skip to content
הדף עדיין אינו זמין בשפה שלכם, ולכן הוא מוצג באנגלית.
APISea · Seed Audio 1.5

Seed Audio 1.5 Separation API

Extract dialogue, music, and sound effects from a mixed audio file using a natural-language track description.

Audio separationאודיו ומוזיקהמשימה אסינכרונית
מזהה מודל
seed-audio-1-5-separation

תמחור API של Seed Audio 1.5 Separation

APISea retail price: $0.06 per minute of summed returned tracks, not just the source file length. For example, three returned tracks of 60 seconds each total three billable minutes. Track durations are summed before rounding up to a whole second; final task charges include request-level rounding.

אפשרותAPISea
Summed returned tracksברירת מחדל$0.06

המחירים הם per minute (summed returned tracks).

מהו Seed Audio 1.5 Separation?

Seed Audio 1.5 Separation extracts tracks from mixed audio. Supply one audio file and describe the components to separate, such as dialogue, background music, and sound effects. Completed media links are returned in track order, with optional track labels in extra_results.

Submit model seed-audio-1-5-separation with POST /v1/audio/seed/tasks. Put audio_urls, prompt, and any output-format options inside input; omit mode and callback fields. Poll GET /v1/audio/seed/tasks/{task_id} to retrieve the completed result.

המאפיינים הבולטים של Seed Audio 1.5 Separation

Prompt-guided tracks

Describe the components to extract in input.prompt, such as dialogue, music, and sound effects.

Single-file input

Supply exactly one public WAV or MP3 file, lasting 2–360 seconds, through input.audio_urls.

Track labels

When available, data.result.extra_results.audio_tracks identifies tracks using a zero-based result_index into data.result.urls, with type and description fields.

Flexible downloads

Select WAV, MP3, or Ogg Opus with the supported sample rate for your workflow.

איך לקרוא ל-API של Seed Audio 1.5 Separation ב-4 שלבים

  1. 01

    יצירת מפתח API

    יש להתחבר ל-APISea, להוסיף יתרה החל מ-$50 וליצור מפתח sk-sea במסוף.

  2. 02

    הגדרת כתובת הבסיס

    יש להשתמש ב-https://api.apisea.ai/v1 ככתובת הבסיס ב-SDK או בלקוח HTTP.

  3. 03

    שליחת הבקשה

    יש לקרוא ל-POST /v1/audio/seed/tasks עם "model": "seed-audio-1-5-separation" והפרמטרים שלהלן.

  4. 04

    טיפול בתגובה

    התגובה מכילה task_id. יש לשלוח בקשות GET אל /v1/audio/seed/tasks/{task_id} עד שהסטטוס יהיה completed, ואז להוריד את כתובות ה-URL של התוצאות.

# Requires Bash, curl, and jq. Replace example.com media URLs before running.
set -euo pipefail
TASK=$(curl --fail-with-body --silent --show-error \
  "https://api.apisea.ai/v1/audio/seed/tasks" \
  -H "Authorization: Bearer $APISEA_API_KEY" \
  -H "Content-Type: application/json" \
  --data '
{
  "model": "seed-audio-1-5-separation",
  "input": {
    "audio_urls": [
      "https://example.com/scene-mix.wav"
    ],
    "prompt": "Separate the dialogue, background music, and sound effects.",
    "format": "wav",
    "sample_rate": 44100
  }
}
')
TASK_ID=$(printf '%s' "$TASK" | jq -er '.data.task_id')
for attempt in $(seq 1 120); do
  TASK=$(curl --fail-with-body --silent --show-error \
    "https://api.apisea.ai/v1/audio/seed/tasks/$TASK_ID" \
    -H "Authorization: Bearer $APISEA_API_KEY")
  STATUS=$(printf '%s' "$TASK" | jq -er '.data.status')
  case "$STATUS" in
    completed) printf '%s\n' "$TASK" | jq '.data | {result, cost_usd}'; exit 0 ;;
    failed) printf '%s\n' "$TASK" >&2; exit 1 ;;
    submitted|processing) sleep 5 ;;
    *) printf 'Unexpected task status: %s\n' "$STATUS" >&2; exit 1 ;;
  esac
done
printf 'Polling timed out; resume GET polling with task_id=%s (do not resubmit).\n' "$TASK_ID" >&2
exit 1

פרמטרים

פרמטרסוגנדרשברירת מחדלתיאור
modelstringנדרש—Must be `seed-audio-1-5-separation`.
inputobjectנדרש—Task inputs described below. Keep these fields nested inside `input`. APISea selects the operation from `model`; do not supply `input.mode`.
input.audio_urlsstring[]נדרש—Exactly one public HTTP(S) URL for a WAV or MP3 file, 2–360 seconds long.
input.promptstringנדרש—Describe which tracks to extract, such as dialogue, background music, sound effects, or individual speakers.
input.formatstringאופציונליwavAudio download format: `wav`, `mp3`, or `ogg_opus`.
input.sample_rateintegerאופציונלי—For WAV/MP3: `8000`, `16000`, `24000`, `32000`, `44100`, or `48000` Hz; default `44100`. For Ogg Opus: only `48000` Hz, which is also its default. Omit to use the format default.

מה אפשר לבנות עם Seed Audio 1.5 Separation

Dialogue extraction

Extract speech from mixed material for an editing or accessibility workflow.

Sound editing

Work with separate music and effects tracks rather than one mixed file.

טיפים לקבלת תוצאות טובות יותר

  • 01

    Use exactly one URL in input.audio_urls and a non-empty separation prompt.

  • 02

    Budget for all returned tracks. Three 60-second tracks have a nominal retail total of $0.18 before any request-level rounding difference.

  • 03

    Use result_index from optional audio_tracks metadata to match a label to the correct media URL.

מגבלות ודברים שכדאי לדעת

  • Input must be a public HTTP(S) WAV or MP3 file lasting 2–360 seconds.

  • The billing duration is summed across returned tracks, rounded up to a whole second. It may exceed the source file duration.

  • Ogg Opus supports only 48000 Hz. WAV and MP3 support 8000, 16000, 24000, 32000, 44100, and 48000 Hz.

  • Do not send input.mode, callback_url, or request_type. APISea manages operation selection and completion.

שאלות נפוצות על API של Seed Audio 1.5 Separation

How is separation billed?

The rate is $0.06 per minute of summed returned-track duration. All output track durations are added before rounding to whole billable seconds, then request-level rounding applies. A 60-second source that returns three 60-second tracks represents three billable minutes, not one.

How do I identify each output track?

Read data.result.urls in track order. Optional data.result.extra_results.audio_tracks entries use result_index to point into that array and may include a track type and description.

Does separation run synchronously?

No. Submit POST /v1/audio/seed/tasks with model seed-audio-1-5-separation and input. Save data.task_id and poll GET /v1/audio/seed/tasks/{task_id} until completed or failed.

מודלים קשורים

עומק: יותר מ-250 מודלים · טעינת יתרה מינימלית $50

מתחילים לבנות עם Seed Audio 1.5 Separation

מפתח אחד, תשלום לפי שימוש החל מ-$50, וחיוב רק על בקשות שהצליחו.