Skip to content

    API documentation

    Render edited audio

    POST/api/v1/audio/renders

    Authentication · x-api-key

    Crop, reorder, repeat and apply linear fades to segments of one public MP3/WAV source. Segments play in array order; repeat is the total play count and each copy includes its fades. Times use [startSeconds,endSeconds), rounded to the nearest output sample (half up). Defaults: WAV PCM16, 48 kHz, stereo; MP3 uses 192 kbps. Limits: 200 MiB, 15-minute source, mono/stereo at 44.1/48 kHz, 64 expanded segments, 30-minute output. Billed once per started output minute; maxCredits caps the quote. Accepted tasks use the shared Task lifecycle; final failures without delivery refund credits. Outputs are retained for 14 days; query the task to refresh download URLs (at most one hour). Idempotency-Key is recommended for safe retries.

    Scope: task:create

    Billing and effects: Paid operation: credits are authorized when the Task is accepted. Review the quote or preflight and save the receipt.

    Recovery: Save one Idempotency-Key with the exact request body before submission. Reuse both after an uncertain response.

    Follow this operation’s workflow → · All permission rules

    Request

    Request headers

    Idempotency-Keyheader · Optional
    string

    Unique key for one logical write. Retrying the same body with the same key replays the original result; reusing it with a different body returns 409.

    Maximum characters: 255.

    JSON request body

    Content-Type: application/json · Required body

    Required, optional and null

    Required fields apply within their object and selected option. An optional object may be absent; when present, its required fields must be included. Required and nullable are independent: null is allowed only where listed.

    Only the listed fields are accepted in this object.

    • Request · segmentsRequired

      array<object>

      Segments in playback order; at most 64 copies after repetition and 30 minutes total output.

      Minimum items: 1. Maximum items: 64.

      1 field
      • Request · segments[]Each item

        object

        Only the listed fields are accepted in this object.

        5 fields
        • Request · segments[].endSecondsRequired

          number

          Exclusive end in source seconds; must exceed the start and fit the decoded source.

          Maximum: 900. Exclusive lower bound: 0.

        • Request · segments[].startSecondsRequired

          number

          Inclusive start in source seconds, rounded to the nearest output sample (half up).

          Minimum: 0. Maximum: 900.

        • Request · segments[].fadeInSecondsOptional

          number

          Linear fade-in duration. A positive fade must span at least two output samples.

          Minimum: 0. Maximum: 900. Default: 0.

        • Request · segments[].fadeOutSecondsOptional

          number

          Linear fade-out duration. Both fades combined must fit the segment.

          Minimum: 0. Maximum: 900. Default: 0.

        • Request · segments[].repeatOptional

          string | integer

          Total copies of this segment; fades apply to every copy.

          Minimum: 1. Maximum: 64. Default: 1. Use a complete option below; the value must satisfy at least one option.

          2 options
          • Request · Option 1 — stringOption

            string

            Numeric string accepted by coercion; the converted value must satisfy the numeric constraints (minimum 1, maximum 64). Prefer a JSON number.

            Format: integer. Default: "1".

          • Request · Option 2 — integerOption

            integer

            Total copies of this segment; fades apply to every copy.

            Minimum: 1. Maximum: 64. Default: 1.

    • Request · sourceUrlRequired

      string

      Public HTTP(S) URL of one MP3 or uncompressed PCM WAV source.

      Maximum characters: 8192. Format: uri.

    • Request · maxCreditsOptional

      number

      Maximum authorized credit charge; a higher quote rejects creation before debit.

      Minimum: 0.

    • Request · outputOptional

      object

      Output settings; defaults to WAV PCM16, 48 kHz, stereo.

      Only the listed fields are accepted in this object.

      3 fields
      • Request · output.channelsOptional

        1 | 2

        Output channels: 1 for mono or 2 for stereo.

        Default: 2.

      • Request · output.formatOptional

        "wav" | "mp3"

        Output encoding: WAV PCM16 or MP3 at 192 kbps.

        Default: "wav".

      • Request · output.sampleRateOptional

        44100 | 48000

        Output sample rate in Hz.

        Default: 48000.

    • Request · webhookUrlOptional

      string

      Optional HTTPS destination for standard Task completion notifications.

      Maximum characters: 2048. Format: uri.

    Responses

    Read the HTTP status and body together. A receipt confirms acceptance; poll the returned Task or product view for terminal execution and media delivery. Example IDs and credit amounts are illustrative, not a price quote.

    HTTP 202 · Acceptance receipt

    Complete JSON example (optional fields may be omitted).

    {
    "taskId": "018f47a0-7b38-7000-8000-000000000001",
    "status": "PENDING",
    "creditsRequired": 1,
    "pollUrl": "/api/v1/tasks/018f47a0-7b38-7000-8000-000000000001"
    }

    HTTP 401 · Request rejected; correct the key before retrying

    Complete JSON example (optional fields may be omitted).

    {
    "success": false,
    "error": {
    "code": "INVALID_API_KEY",
    "message": "Invalid API key"
    }
    }
    202 Accepted

    application/json

    Required, optional and null

    Required fields apply within their object and selected option. An optional object may be absent; when present, its required fields must be included. Required and nullable are independent: null is allowed only where listed.

    • Response 202 · creditsRequiredRequired

      number

      Accepted credit charge for this edit.

    • Response 202 · pollUrlRequired

      string

      Relative Task read URL, resolved against the API base URL.

    • Response 202 · statusRequired

      string

      Task status at acceptance.

    • Response 202 · taskIdRequired

      string

      Accepted Task identifier.

    400 Bad Request

    application/json

    Required, optional and null

    Required fields apply within their object and selected option. An optional object may be absent; when present, its required fields must be included. Required and nullable are independent: null is allowed only where listed.

    • Response 400 · errorRequired

      object

      Structured failure information. Branch on code, show message, and interpret details only for that code. The request ID is returned in the X-Request-Id header.

      3 fields
      • Response 400 · error.codeRequired

        string

        Application-specific error code (see error catalog)

      • Response 400 · error.messageRequired

        string

        Human readable error message

      • Response 400 · error.detailsOptional

        object

        Optional error-specific context. Read code first; details keys depend on that code. Unknown keys must not break error handling. See /resources/errors/.

        1 field
    • Response 400 · successRequired

      false

      Always false for error responses

    401 Unauthorized

    application/json

    Required, optional and null

    Required fields apply within their object and selected option. An optional object may be absent; when present, its required fields must be included. Required and nullable are independent: null is allowed only where listed.

    • Response 401 · errorRequired

      object

      Structured failure information. Branch on code, show message, and interpret details only for that code. The request ID is returned in the X-Request-Id header.

      3 fields
      • Response 401 · error.codeRequired

        string

        Application-specific error code (see error catalog)

      • Response 401 · error.messageRequired

        string

        Human readable error message

      • Response 401 · error.detailsOptional

        object

        Optional error-specific context. Read code first; details keys depend on that code. Unknown keys must not break error handling. See /resources/errors/.

        1 field
    • Response 401 · successRequired

      false

      Always false for error responses

    402 Payment Required

    application/json

    Required, optional and null

    Required fields apply within their object and selected option. An optional object may be absent; when present, its required fields must be included. Required and nullable are independent: null is allowed only where listed.

    • Response 402 · errorRequired

      object

      Structured failure information. Branch on code, show message, and interpret details only for that code. The request ID is returned in the X-Request-Id header.

      3 fields
      • Response 402 · error.codeRequired

        string

        Application-specific error code (see error catalog)

      • Response 402 · error.messageRequired

        string

        Human readable error message

      • Response 402 · error.detailsOptional

        object

        Optional error-specific context. Read code first; details keys depend on that code. Unknown keys must not break error handling. See /resources/errors/.

        1 field
    • Response 402 · successRequired

      false

      Always false for error responses

    403 Forbidden

    Response for status 403 Forbidden: API-key scope/IP restrictions or billing hold. A positive balance does not bypass payment review. Check GET /api/v1/account/credits billingStatus before further paid requests.

    application/json

    Required, optional and null

    Required fields apply within their object and selected option. An optional object may be absent; when present, its required fields must be included. Required and nullable are independent: null is allowed only where listed.

    • Response 403 · errorRequired

      object

      Structured failure information. Branch on code, show message, and interpret details only for that code. The request ID is returned in the X-Request-Id header.

      3 fields
      • Response 403 · error.codeRequired

        string

        Application-specific error code (see error catalog)

      • Response 403 · error.messageRequired

        string

        Human readable error message

      • Response 403 · error.detailsOptional

        object

        Optional error-specific context. Read code first; details keys depend on that code. Unknown keys must not break error handling. See /resources/errors/.

        1 field
    • Response 403 · successRequired

      false

      Always false for error responses

    409 Conflict

    application/json

    Required, optional and null

    Required fields apply within their object and selected option. An optional object may be absent; when present, its required fields must be included. Required and nullable are independent: null is allowed only where listed.

    • Response 409 · errorRequired

      object

      Structured failure information. Branch on code, show message, and interpret details only for that code. The request ID is returned in the X-Request-Id header.

      3 fields
      • Response 409 · error.codeRequired

        string

        Application-specific error code (see error catalog)

      • Response 409 · error.messageRequired

        string

        Human readable error message

      • Response 409 · error.detailsOptional

        object

        Optional error-specific context. Read code first; details keys depend on that code. Unknown keys must not break error handling. See /resources/errors/.

        1 field
    • Response 409 · successRequired

      false

      Always false for error responses

    413 Payload Too Large

    application/json

    Required, optional and null

    Required fields apply within their object and selected option. An optional object may be absent; when present, its required fields must be included. Required and nullable are independent: null is allowed only where listed.

    • Response 413 · errorRequired

      object

      Structured failure information. Branch on code, show message, and interpret details only for that code. The request ID is returned in the X-Request-Id header.

      3 fields
      • Response 413 · error.codeRequired

        string

        Application-specific error code (see error catalog)

      • Response 413 · error.messageRequired

        string

        Human readable error message

      • Response 413 · error.detailsOptional

        object

        Optional error-specific context. Read code first; details keys depend on that code. Unknown keys must not break error handling. See /resources/errors/.

        1 field
    • Response 413 · successRequired

      false

      Always false for error responses

    422 Unprocessable Entity

    application/json

    Required, optional and null

    Required fields apply within their object and selected option. An optional object may be absent; when present, its required fields must be included. Required and nullable are independent: null is allowed only where listed.

    • Response 422 · errorRequired

      object

      Structured failure information. Branch on code, show message, and interpret details only for that code. The request ID is returned in the X-Request-Id header.

      3 fields
      • Response 422 · error.codeRequired

        string

        Application-specific error code (see error catalog)

      • Response 422 · error.messageRequired

        string

        Human readable error message

      • Response 422 · error.detailsOptional

        object

        Optional error-specific context. Read code first; details keys depend on that code. Unknown keys must not break error handling. See /resources/errors/.

        1 field
    • Response 422 · successRequired

      false

      Always false for error responses

    429 Too Many Requests

    Request allowance or task admission capacity exceeded. Follow Retry-After when present; otherwise wait for active tasks and use bounded backoff. Limits do not guarantee throughput. For SSE, this is the HTTP connection response, not an event.

    application/json

    Required, optional and null

    Required fields apply within their object and selected option. An optional object may be absent; when present, its required fields must be included. Required and nullable are independent: null is allowed only where listed.

    • Response 429 · errorRequired

      object

      Structured failure information. Branch on code, show message, and interpret details only for that code. The request ID is returned in the X-Request-Id header.

      3 fields
      • Response 429 · error.codeRequired

        string

        RATE_LIMITED for request and task admission rejections.

      • Response 429 · error.messageRequired

        string

        Human-readable explanation. Wording may change; use the machine-readable code for programmatic decisions.

      • Response 429 · error.detailsOptional

        object

        Optional error-specific context. Read code first; details keys depend on that code. Unknown keys must not break error handling. See /resources/errors/.

        9 fields
        • Response 429 · error.details.currentOptional

          integer

          Current count for the rate-limit window identified by policy and scope.

          Minimum: 0.

        • Response 429 · error.details.inFlightOptional

          integer

          Current accepted tasks counted against the relevant account or API-key admission limit.

          Minimum: 0.

        • Response 429 · error.details.limitOptional

          integer

          Maximum count allowed by this response context. A limit is not a throughput guarantee.

          Minimum: 0.

        • Response 429 · error.details.policyOptional

          "operation" | "query"

          Allowance bucket: query for resource reads, operation for task-producing or operation requests. See the rate-limit response headers.

        • Response 429 · error.details.retryAfterSecOptional

          integer

          Suggested delay in seconds before another request. Honor the Retry-After header when present; use bounded backoff.

          Minimum: 1.

        • Response 429 · error.details.scopeOptional

          "user" | "api-key" | "ip" | "apiKey"

          Entity whose allowance was exceeded, such as the user, API key or IP address.

        • Response 429 · error.details.tierOptional

          "FREE" | "PREMIUM" | "ENTERPRISE"

          Account allowance tier used for this admission or rate-limit decision.

        • Response 429 · error.details.typeOptional

          "rps" | "daily" | "monthly"

          Admission limit that rejected the request: rps (continuously refilled requests-per-second bucket), daily or monthly UTC request budget. Interpret with policy, scope and retryAfterSec.

        • Response 429 · error.details[key]Each value

          any JSON value

          Key pattern: ^(.*)$.

    • Response 429 · successRequired

      false

      Whether this response reports a successful action; false accompanies the structured error object.

      Default: false.

    500 Internal Server Error

    application/json

    Required, optional and null

    Required fields apply within their object and selected option. An optional object may be absent; when present, its required fields must be included. Required and nullable are independent: null is allowed only where listed.

    • Response 500 · errorRequired

      object

      Structured failure information. Branch on code, show message, and interpret details only for that code. The request ID is returned in the X-Request-Id header.

      3 fields
      • Response 500 · error.codeRequired

        string

        Application-specific error code (see error catalog)

      • Response 500 · error.messageRequired

        string

        Human readable error message

      • Response 500 · error.detailsOptional

        object

        Optional error-specific context. Read code first; details keys depend on that code. Unknown keys must not break error handling. See /resources/errors/.

        1 field
    • Response 500 · successRequired

      false

      Always false for error responses

    503 Service Unavailable

    application/json

    Required, optional and null

    Required fields apply within their object and selected option. An optional object may be absent; when present, its required fields must be included. Required and nullable are independent: null is allowed only where listed.

    • Response 503 · errorRequired

      object

      Structured failure information. Branch on code, show message, and interpret details only for that code. The request ID is returned in the X-Request-Id header.

      3 fields
      • Response 503 · error.codeRequired

        string

        Application-specific error code (see error catalog)

      • Response 503 · error.messageRequired

        string

        Human readable error message

      • Response 503 · error.detailsOptional

        object

        Optional error-specific context. Read code first; details keys depend on that code. Unknown keys must not break error handling. See /resources/errors/.

        1 field
    • Response 503 · successRequired

      false

      Always false for error responses

    Workflow and next steps → · Recover an uncertain request

    Interactive API Explorer → · OpenAPI JSON