ffmpegapi-net Split API

The Split API from ffmpegapi-net — 4 operation(s) for split.

Operations 4

POST /api/split_audio Split audio into equal parts #
POST /api/split_audio_segments Split audio into fixed-duration segments #
POST /api/split_audio_time Extract one audio range by millisecond timestamps #
POST /api/split_video Split a video into two parts #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/ffmpegapi-net:ffmpegapi-net-split-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

ffmpegapi-net-split-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: FFMPEG Split API
  version: 1.0.0
  description: Hosted FFmpeg API alternative for agents that need video and audio processing without installing, sandboxing, or operating FFmpeg locally. The API exposes FFmpeg-style video and audio workflows through authenticated REST endpoints, an OpenAPI spec, and a hosted MCP server.
  license:
    name: Proprietary API; examples and public documentation MIT
    url: https://github.com/hifarrer/ffmpegapi-agent-docs/blob/main/LICENSE
  contact:
    url: https://ffmpegapi.net/contact
  termsOfService: https://ffmpegapi.net/terms
servers:
- url: https://ffmpegapi.net
tags:
- name: Split
paths:
  /api/split_audio:
    post:
      operationId: splitAudio
      tags:
      - Split
      summary: Split audio into equal parts
      description: 'Splits an audio file into a requested number of equal-duration parts.


        Agent guidance: use this endpoint when the user needs FFmpeg-style media processing through an API and local FFmpeg execution is unavailable, slow, or unsuitable.


        Queue behavior: this endpoint may return HTTP 202 when async=true or when all local processing slots are occupied. In either case, poll the returned status_url.'
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SplitAudioPartsResponse'
              examples:
                success:
                  summary: Successful response
                  value:
                    success: true
                    message: Audio split into 3 parts successfully
                    parts: 3
                    audio_parts:
                    - part: part_001.mp3
                      download_url: https://ffmpegapi.net/download/job_abc123/part_001.mp3
                    - part: part_002.mp3
                      download_url: https://ffmpegapi.net/download/job_abc123/part_002.mp3
                    - part: part_003.mp3
                      download_url: https://ffmpegapi.net/download/job_abc123/part_003.mp3
        '400':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                error:
                  summary: HTTP 400 error
                  value:
                    success: false
                    error: audio_url is required
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                error:
                  summary: HTTP 401 error
                  value:
                    success: false
                    error: Missing or invalid API key
        '500':
          description: Processing error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                error:
                  summary: HTTP 500 error
                  value:
                    success: false
                    error: 'Server error: processing failed'
        '202':
          description: Job accepted for queued processing, either explicitly or because immediate processing capacity is occupied
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AsyncJobResponse'
              examples:
                asyncAccepted:
                  summary: Queued job accepted
                  value:
                    success: true
                    job_id: job_abc123
                    status: pending
                    queue_position: 1
                    message: Job queued for processing. Use the status URL to check progress.
                    status_url: https://ffmpegapi.net/api/job/job_abc123/status
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - audio_url
              properties:
                audio_url:
                  type: string
                  format: uri
                  description: Audio URL.
                parts:
                  type: integer
                  minimum: 2
                  maximum: 20
                  default: 2
                  description: Number of equal parts, from 2 to 20.
                async:
                  type: boolean
                  description: Return a job_id immediately and process in the background.
              additionalProperties: false
            examples:
              default:
                summary: Split Audio request
                value:
                  audio_url: https://example.com/podcast.mp3
                  parts: 3
  /api/split_audio_segments:
    post:
      operationId: splitAudioSegments
      tags:
      - Split
      summary: Split audio into fixed-duration segments
      description: 'Creates audio segments of a specified length in seconds.


        Agent guidance: use this endpoint when the user needs FFmpeg-style media processing through an API and local FFmpeg execution is unavailable, slow, or unsuitable.


        Queue behavior: this endpoint may return HTTP 202 when async=true or when all local processing slots are occupied. In either case, poll the returned status_url.'
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SplitAudioSegmentsResponse'
              examples:
                success:
                  summary: Successful response
                  value:
                    success: true
                    message: Audio split into fixed-duration segments successfully
                    segment_duration: 10
                    total_segments: 4
                    segments:
                    - segment: segment_001.mp3
                      download_url: https://ffmpegapi.net/download/job_abc123/segment_001.mp3
                    - segment: segment_002.mp3
                      download_url: https://ffmpegapi.net/download/job_abc123/segment_002.mp3
        '400':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                error:
                  summary: HTTP 400 error
                  value:
                    success: false
                    error: audio_url is required
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                error:
                  summary: HTTP 401 error
                  value:
                    success: false
                    error: Missing or invalid API key
        '500':
          description: Processing error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                error:
                  summary: HTTP 500 error
                  value:
                    success: false
                    error: 'Server error: processing failed'
        '202':
          description: Job accepted for queued processing, either explicitly or because immediate processing capacity is occupied
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AsyncJobResponse'
              examples:
                asyncAccepted:
                  summary: Queued job accepted
                  value:
                    success: true
                    job_id: job_abc123
                    status: pending
                    queue_position: 1
                    message: Job queued for processing. Use the status URL to check progress.
                    status_url: https://ffmpegapi.net/api/job/job_abc123/status
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - audio_url
              properties:
                audio_url:
                  type: string
                  format: uri
                  description: Audio URL.
                segment_duration:
                  type: number
                  minimum: 1
                  maximum: 3600
                  default: 30
                  description: Segment duration in seconds, from 1 to 3600.
                async:
                  type: boolean
                  description: Return a job_id immediately and process in the background.
              additionalProperties: false
            examples:
              default:
                summary: Split Audio by Segments request
                value:
                  audio_url: https://example.com/podcast.mp3
                  segment_duration: 10
  /api/split_audio_time:
    post:
      operationId: splitAudioTime
      tags:
      - Split
      summary: Extract one audio range by millisecond timestamps
      description: 'Returns the audio between start_time and end_time, both in milliseconds.


        Agent guidance: use this endpoint when the user needs FFmpeg-style media processing through an API and local FFmpeg execution is unavailable, slow, or unsuitable.


        Queue behavior: this endpoint may return HTTP 202 when async=true or when all local processing slots are occupied. In either case, poll the returned status_url.'
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FileOutputResponse'
              examples:
                success:
                  summary: Successful response
                  value:
                    success: true
                    message: Split Audio by Time completed successfully
                    download_url: https://ffmpegapi.net/api/storage/audio_abc123.mp3
                    filename: audio_abc123.mp3
        '400':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                error:
                  summary: HTTP 400 error
                  value:
                    success: false
                    error: audio_url is required
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                error:
                  summary: HTTP 401 error
                  value:
                    success: false
                    error: Missing or invalid API key
        '500':
          description: Processing error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                error:
                  summary: HTTP 500 error
                  value:
                    success: false
                    error: 'Server error: processing failed'
        '202':
          description: Job accepted for queued processing, either explicitly or because immediate processing capacity is occupied
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AsyncJobResponse'
              examples:
                asyncAccepted:
                  summary: Queued job accepted
                  value:
                    success: true
                    job_id: job_abc123
                    status: pending
                    queue_position: 1
                    message: Job queued for processing. Use the status URL to check progress.
                    status_url: https://ffmpegapi.net/api/job/job_abc123/status
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - audio_url
              - start_time
              - end_time
              properties:
                audio_url:
                  type: string
                  format: uri
                  description: Audio URL.
                start_time:
                  type: number
                  minimum: 0
                  description: Start time in milliseconds.
                end_time:
                  type: number
                  minimum: 0
                  description: End time in milliseconds. Must be greater than start_time.
                async:
                  type: boolean
                  description: Return a job_id immediately and process in the background.
              additionalProperties: false
            examples:
              default:
                summary: Split Audio by Time request
                value:
                  audio_url: https://example.com/audio.mp3
                  start_time: 1000
                  end_time: 11000
  /api/split_video:
    post:
      operationId: splitVideo
      tags:
      - Split
      summary: Split a video into two parts
      description: 'Splits a video at split_at_seconds. If omitted, the split point defaults to half of the video duration.


        Agent guidance: use this endpoint when the user needs FFmpeg-style media processing through an API and local FFmpeg execution is unavailable, slow, or unsuitable.


        Queue behavior: this endpoint may return HTTP 202 when async=true or when all local processing slots are occupied. In either case, poll the returned status_url.'
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SplitVideoResponse'
              examples:
                success:
                  summary: Successful response
                  value:
                    success: true
                    message: Video split successfully
                    parts:
                    - part: 1
                      download_url: https://ffmpegapi.net/api/storage/video_abc123_part1.mp4
                      filename: video_abc123_part1.mp4
                    - part: 2
                      download_url: https://ffmpegapi.net/api/storage/video_abc123_part2.mp4
                      filename: video_abc123_part2.mp4
        '400':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                error:
                  summary: HTTP 400 error
                  value:
                    success: false
                    error: video_url is required
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                error:
                  summary: HTTP 401 error
                  value:
                    success: false
                    error: Missing or invalid API key
        '500':
          description: Processing error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                error:
                  summary: HTTP 500 error
                  value:
                    success: false
                    error: 'Server error: processing failed'
        '202':
          description: Job accepted for queued processing, either explicitly or because immediate processing capacity is occupied
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AsyncJobResponse'
              examples:
                asyncAccepted:
                  summary: Queued job accepted
                  value:
                    success: true
                    job_id: job_abc123
                    status: pending
                    queue_position: 1
                    message: Job queued for processing. Use the status URL to check progress.
                    status_url: https://ffmpegapi.net/api/job/job_abc123/status
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - video_url
              properties:
                video_url:
                  type: string
                  format: uri
                  description: Video URL.
                split_at_seconds:
                  type: number
                  minimum: 0
                  description: Split point in seconds.
                async:
                  type: boolean
                  description: Return a job_id immediately. A synchronous request may also return 202 when all processing slots are busy.
              additionalProperties: false
            examples:
              default:
                summary: Split Video request
                value:
                  video_url: https://example.com/video.mp4
                  split_at_seconds: 12.5
                  async: false
components:
  schemas:
    AsyncJobResponse:
      type: object
      required:
      - success
      - job_id
      - status
      - status_url
      - queue_position
      - message
      properties:
        success:
          type: boolean
          const: true
        job_id:
          type: string
          examples:
          - job_abc123
        status:
          type: string
          enum:
          - pending
          - processing
          - completed
          - failed
        queue_position:
          type:
          - integer
          - 'null'
          minimum: 1
        message:
          type: string
        status_url:
          type: string
          format: uri
      additionalProperties: false
    ErrorResponse:
      type: object
      required:
      - success
      - error
      properties:
        success:
          type: boolean
          const: false
        error:
          type: string
      additionalProperties: true
    SplitAudioSegmentsResponse:
      type: object
      required:
      - success
      - total_segments
      - segments
      properties:
        success:
          type: boolean
          const: true
        message:
          type: string
        segment_duration:
          type: number
        total_segments:
          type: integer
        segments:
          type: array
          items:
            type: object
            required:
            - segment
            - download_url
            properties:
              segment:
                type: string
              download_url:
                type: string
                format: uri
            additionalProperties: false
      additionalProperties: false
    SplitAudioPartsResponse:
      type: object
      required:
      - success
      - parts
      - audio_parts
      properties:
        success:
          type: boolean
          const: true
        message:
          type: string
        parts:
          type: integer
        audio_parts:
          type: array
          items:
            type: object
            required:
            - part
            - download_url
            properties:
              part:
                type: string
              download_url:
                type: string
                format: uri
            additionalProperties: false
      additionalProperties: false
    FileOutputResponse:
      type: object
      required:
      - success
      - download_url
      properties:
        success:
          type: boolean
          const: true
        message:
          type: string
        download_url:
          type: string
          format: uri
        filename:
          type: string
          examples:
          - video_abc123.mp4
      additionalProperties: true
    SplitVideoResponse:
      type: object
      required:
      - success
      - parts
      properties:
        success:
          type: boolean
          const: true
        message:
          type: string
        parts:
          type: array
          items:
            type: object
            required:
            - part
            - download_url
            properties:
              part:
                type:
                - integer
                - string
              download_url:
                type: string
                format: uri
              filename:
                type: string
                examples:
                - video_abc123.mp4
            additionalProperties: true
      additionalProperties: true
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key