solutions

API v1

Documentation

Two engines behind one API. S1SVC — singing voice conversion for whole songs: a track and a voice sample go in, the same track in the new voice comes out, mixed and mastered. S1SEP — separation: a track goes in, studio-clean stems come out, including a dry HQ acapella.

Overview

The API is asynchronous. One cover or one separation is one job, and a job goes through four steps:

  1. create the job and receive the upload links;
  2. upload the track (and, for a cover, the voice sample) to those links;
  3. start processing;
  4. poll the status until the job is done, then download the result.

Base URL: https://s1solutions.pro. Requests and responses are JSON. A typical cover takes about two minutes to process, a separation about half that. The machine-readable description is at /openapi.json.

MethodPathPurpose
POST/v1/jobsCreate a job
POST/v1/jobs/{id}/startStart processing
GET/v1/jobs/{id}Status and result
GET/v1/balanceBalance

Authentication

Every request to /v1/… carries your API key in a header:

http
Authorization: Bearer <api key>

Create keys in the dashboard. A key is shown once, so save it right away. A revoked key stops working immediately. Uploads and the result download use signed links and do not need the header.

POST /v1/jobs

Creates a job and returns the upload links.

Request body

FieldTypeDescription
formatstringResult format: "mp3" (default) or "wav".
modestring"cover" (default) — S1SVC, the song sung by the sampled voice. "separate" — S1SEP, stems only; no voice sample needed. "music" — a new song from a description and lyrics, generated with MiniMax-Music3; nothing to upload.
rawbooleanFor "cover": true returns, next to the finished track in result_url, the converted vocal straight from the voice conversion in raw_url — no restoration, vocal processing, mix or master. Mono, the same length as the song, silence between phrases, so it lines up with the original instrumental. Same price. Default false.
stemsarrayFor "separate": which stems to return. Default ["acapella", "instrumental"]. See the table below.
promptstringFor "music": the song description — genre, mood, tempo, vocals, instruments. Up to 2000 characters.
lyricsstringFor "music": the words, with optional [Verse], [Chorus], [Bridge] tags on their own lines. Up to 5000 characters. The song runs as long as the lyrics need.
duration_secintegerFor "music": upper bound on the length, 10–300 s (default 180).
StemWhat it is
acapellaHQ acapella: the dry lead vocal — no backing vocals, no reverb or echo — after artifact restoration. Made for training voice models.
instrumentalEverything except the vocals.
vocalsAll vocals: lead and backing, as recorded.
leadThe lead vocal with its reverb.
backsThe backing vocals.

The price of a separation does not depend on how many stems you ask for.

json
{"format": "mp3"}
{"format": "wav", "mode": "separate", "stems": ["acapella", "instrumental", "backs"]}

Response

json
{
  "id": "0b6f0c1e-7c0a-4a52-9d1b-2f4d5c1f8a11",
  "mode": "cover",
  "upload": {
    "track_url": "https://…",
    "voice_url": "https://…"
  }
}

track_url is for the song and voice_url is for the voice sample; a "separate" job gets only track_url. The links are valid for 30 minutes. A job that is never started eventually gets the status expired.

Upload files

Send each file with an HTTP PUT to its link: raw bytes in the request body, no multipart form and no Authorization header.

If an upload gets a 5xx answer or the connection drops, send the same file to the same link again after a short pause (a few seconds, then longer). The link stays valid for 30 minutes.

bash
curl -T song.mp3  "<track_url>"
curl -T voice.wav "<voice_url>"

Each file can be up to 200 MB.

POST /v1/jobs/{id}/start

Puts an uploaded job in the queue. No request body. The response is the job object, the same as in the status request.

json
{
  "id": "0b6f0c1e-7c0a-4a52-9d1b-2f4d5c1f8a11",
  "mode": "cover",
  "status": "queued",
  "format": "mp3",
  "created_at": "2026-10-02T12:00:00+00:00",
  "queue_position": 0,
  "estimated_sec": 120
}

Errors

CodeReasonWhat to do
400A file is not uploadedUpload the track (and, for a cover, the voice sample), then call start again.
402Insufficient balanceThe balance must cover the reserve. See Billing.
503Service busyThe queue is too long, or file storage did not answer. The response includes estimated_wait_sec, the estimated wait in seconds. Retry later: the job stays in awaiting_upload, uploaded files are kept and nothing is reserved.

GET /v1/jobs/{id}

Returns the job object. id, mode, status, format and created_at are always present; the other fields depend on the status.

StatusMeaningExtra fields
awaiting_uploadCreated, waiting for files and start—
queuedIn the queuequeue_position (0 means next), estimated_sec (estimated time until done)
runningBeing processedestimated_sec
doneFinishedtrack_sec (source track length), cost (amount charged, in US dollars), result_url (cover; with raw also raw_url, the raw vocal) or results (separation: one link per stem), result_expires_in_sec
failedProcessing failed, nothing chargederror (the reason)
expiredThe job was not started in time—
json
{
  "id": "0b6f0c1e-7c0a-4a52-9d1b-2f4d5c1f8a11",
  "mode": "cover",
  "status": "done",
  "format": "mp3",
  "created_at": "2026-10-02T12:00:00+00:00",
  "track_sec": 212.4,
  "cost": 0.106,
  "result_url": "https://…",
  "result_expires_in_sec": 287
}

A finished separation carries results instead of result_url:

json
{
  "id": "5d1c7a3e-2b4f-4e8a-9c61-0f3b2a7d9e44",
  "mode": "separate",
  "status": "done",
  "format": "wav",
  "created_at": "2026-10-02T12:00:00+00:00",
  "track_sec": 212.4,
  "cost": 0.053,
  "results": {
    "acapella": "https://…",
    "instrumental": "https://…"
  },
  "result_expires_in_sec": 287
}

The result link works for 5 minutes. When the window closes, result_url (and raw_url, and every link in results) becomes null, the file is deleted and it cannot be downloaded later. Poll every few seconds and download the result as soon as the job is done.

GET /v1/balance

Your current balance in US dollars. Amounts reserved for jobs in progress are not included.

json
{"balance": 25.0}

Billing

Billing is per minute of the source track, counted to the second:

  • Cover (S1SVC) — from $0.03 per minute. A 3-minute track costs $0.09. The length of the voice sample does not affect the price.
  • Song generation (MiniMax-Music3) — from $0.105 per minute of generated audio. Output is AI-generated; label it as such when you publish it.
  • Separation (S1SEP) — 50% of your cover rate: from $0.015 per minute, any number of stems. A 3-minute track costs $0.045.

Your own rate is shown in your account. The balance, the cost field and the /v1/balance response are in US dollars. There is no online payment: more credit is added by arrangement — contact us.

  1. Start. The cost of a maximum-length track (10 min) is reserved on your balance: $0.30 for a cover, $0.15 for a separation. If the balance cannot cover the reserve, start returns 402.
  2. Success. The actual cost is charged, based on the length of the source track, and the reserve is released.
  3. Failure. The whole reserve is released. Jobs with the status failed cost nothing.

Every movement — top-ups, reserves, releases and charges — is listed in the balance history in the dashboard.

Limits and retention

  • Track length: up to 10 minutes.
  • File size: up to 200 MB per file.
  • Upload links are valid for 30 minutes.
  • The result link works for 5 minutes. After that the result cannot be retrieved.
  • Files are not kept: the track and the voice sample are deleted when the job ends, and the results are deleted when their links expire.

Errors

Errors come back with the matching HTTP status and a JSON body with a text description.

CodeWhen
400Bad request: unknown format, mode or stem, or a file was not uploaded before start
401The key is missing, wrong or revoked
402The balance cannot cover the reserve
404Job not found
409The job has failed or expired. A start sent again for a job that is already queued, running or done answers 200 with the job, so it is safe to resend a start whose answer was lost
429Too many jobs created but not started
503Service busy; the body includes estimated_wait_sec

Example: curl

The full path from a new job to a finished file.

bash
export S1_API="https://s1solutions.pro"
export S1_KEY="YOUR_API_KEY"

# 1. Create a job
curl -s -X POST "$S1_API/v1/jobs" \
  -H "Authorization: Bearer $S1_KEY" \
  -H "Content-Type: application/json" \
  -d '{"format": "mp3"}'
# → {"id": "…", "upload": {"track_url": "…", "voice_url": "…"}}

# Fill these in from the response
export JOB_ID="…"
export TRACK_URL="…"
export VOICE_URL="…"

# 2. Upload the track and the voice sample (HTTP PUT, raw bytes)
curl -f -T song.mp3  "$TRACK_URL"
curl -f -T voice.wav "$VOICE_URL"

# 3. Start
curl -s -X POST "$S1_API/v1/jobs/$JOB_ID/start" \
  -H "Authorization: Bearer $S1_KEY"
# → {"id": "…", "status": "queued", "queue_position": 0, "estimated_sec": 120, …}

# 4. Poll until status is "done"
curl -s "$S1_API/v1/jobs/$JOB_ID" \
  -H "Authorization: Bearer $S1_KEY"
# → {"id": "…", "status": "done", "result_url": "…", "result_expires_in_sec": 287, …}

# 5. Download the result: the link works for 5 min
curl -f -o result.mp3 "<result_url>"

# Balance
curl -s "$S1_API/v1/balance" -H "Authorization: Bearer $S1_KEY"
# → {"balance": 25.0}

Example: Python

Needs the requests library. The function creates a job, uploads both files, starts processing, waits until the job is done and saves the result.

python
import time

import requests

API = "https://s1solutions.pro"
KEY = "YOUR_API_KEY"
HEADERS = {"Authorization": f"Bearer {KEY}"}


RETRY = (502, 503, 504)


def retried(send, tries=5):
    """Call send() again after a dropped connection or a 502/503/504, with growing pauses."""
    for attempt in range(tries):
        try:
            r = send()
            if r.status_code not in RETRY:
                return r
        except (requests.ConnectionError, requests.exceptions.ChunkedEncodingError):
            if attempt == tries - 1:
                raise
        time.sleep(min(60, 5 * 2 ** attempt))
    return r


def convert(track_path, voice_path, out_path, fmt="mp3"):
    # 1. Create a job
    r = retried(lambda: requests.post(f"{API}/v1/jobs", json={"format": fmt}, headers=HEADERS, timeout=30))
    r.raise_for_status()
    job = r.json()
    job_id = job["id"]

    # 2. Upload the files: HTTP PUT, raw bytes; a failed upload is simply sent again to the same link
    uploads = (
        (job["upload"]["track_url"], track_path),
        (job["upload"]["voice_url"], voice_path),
    )
    for url, path in uploads:
        def put(url=url, path=path):
            with open(path, "rb") as f:
                return requests.put(url, data=f, timeout=600)
        retried(put).raise_for_status()

    # 3. Start; busy (503) or a lost answer: send the same start again (a repeat returns the job)
    r = retried(lambda: requests.post(f"{API}/v1/jobs/{job_id}/start", headers=HEADERS, timeout=60), tries=8)
    if r.status_code == 402:
        raise RuntimeError("Insufficient balance")
    r.raise_for_status()

    # 4. Wait until the job is done
    while True:
        r = retried(lambda: requests.get(f"{API}/v1/jobs/{job_id}", headers=HEADERS, timeout=30))
        r.raise_for_status()
        job = r.json()
        if job["status"] == "done":
            break
        if job["status"] in ("failed", "expired"):
            raise RuntimeError(f"Job {job_id}: {job.get('error') or job['status']}")
        time.sleep(5)

    # 5. Download the result right away: the link works for 5 min
    def download():
        r = requests.get(job["result_url"], stream=True, timeout=600)
        if r.ok:
            with open(out_path, "wb") as f:
                for chunk in r.iter_content(chunk_size=1 << 20):
                    f.write(chunk)
        return r
    retried(download).raise_for_status()

    return job


if __name__ == "__main__":
    job = convert("song.mp3", "voice.wav", "result.mp3")
    print(f"Done: {job['track_sec']} s, charged ${job['cost']}")

    balance = requests.get(f"{API}/v1/balance", headers=HEADERS, timeout=30).json()["balance"]
    print(f"Balance: ${balance}")

A separation is the same flow without the voice sample: create the job with {"mode": "separate", "stems": [...]}, upload only the track, start, poll, then download every link in results.

python
def separate(track_path, out_prefix, stems=("acapella", "instrumental"), fmt="wav"):
    r = requests.post(f"{API}/v1/jobs", json={"format": fmt, "mode": "separate", "stems": list(stems)},
                      headers=HEADERS, timeout=30)
    r.raise_for_status()
    job_id = r.json()["id"]
    with open(track_path, "rb") as f:
        requests.put(r.json()["upload"]["track_url"], data=f, timeout=600).raise_for_status()
    requests.post(f"{API}/v1/jobs/{job_id}/start", headers=HEADERS, timeout=30).raise_for_status()
    while True:
        job = requests.get(f"{API}/v1/jobs/{job_id}", headers=HEADERS, timeout=30).json()
        if job["status"] == "done":
            break
        if job["status"] in ("failed", "expired"):
            raise RuntimeError(f"Job {job_id}: {job.get('error') or job['status']}")
        time.sleep(5)
    for stem, url in job["results"].items():
        with requests.get(url, stream=True, timeout=600) as r, open(f"{out_prefix}_{stem}.{fmt}", "wb") as f:
            for chunk in r.iter_content(chunk_size=1 << 20):
                f.write(chunk)
    return job