ClipOnIt Smart API

AI/vision helpers: auto-reframe on faces, silences, auto-zoom, descriptions, B-roll and emoji suggestions.

GitHub OpenAPI

Operations 8

POST /api/videos/{id}/search Find a moment from a natural-language query (creates a clip) #
POST /api/videos/{id}/clips/{clip_id}/description Generate a ready-to-post description and hashtags for a clip #
POST /api/clips/{id}/auto-reframe Detect faces/speakers and camera cuts, write layout + keyframes (follow or… #
GET /api/clips/{id}/faces Face tracks of the clip #
POST /api/clips/{id}/silences Detect silences (returns cuts, does not apply them) #
POST /api/clips/{id}/auto-zoom Add punch-in zoom keyframes at sentence starts (saved) #
POST /api/clips/{id}/broll/suggest AI suggestions of B-roll moments for the clip #
POST /api/clips/{id}/emojis/suggest AI emoji reactions for the clip (not applied) #

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/cliponit-app:cliponit-app-smart-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

cliponit-app-smart-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Cliponit App Smart API
  version: 1.0.0
  contact:
    name: ClipOnIt
    url: https://cliponit.app
  license:
    name: Proprietary
    url: https://cliponit.app
  description: 'Operations tagged smart across 2 of this provider''s published API definitions: cliponit-app-openapi.json, cliponit-app-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://cliponit.app
  description: Production
- url: http://localhost:3000
  description: Local dev (cargo run)
security:
- ApiKey: []
- SessionCookie: []
- OAuth2:
  - clips
tags:
- name: SMART
  description: 'AI/vision helpers: auto-reframe on faces, silences, auto-zoom, descriptions, B-roll and emoji suggestions.'
paths:
  /api/videos/{id}/search:
    post:
      tags:
      - SMART
      operationId: findMoment
      summary: Find a moment from a natural-language query (creates a clip)
      description: 'AI search over the transcript; creates a new clip appended to the list and returns it. Requires a transcript (video `ready`). Free plan: 5 searches/day → 402 beyond.'
      parameters:
      - $ref: '#/components/parameters/VideoId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - query
              properties:
                query:
                  type: string
                  example: the part about pricing
      responses:
        '200':
          description: New clip
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Clip'
        '400':
          $ref: '#/components/responses/BadRequest'
        '402':
          $ref: '#/components/responses/PaymentRequired'
    servers:
    - url: https://cliponit.app
      description: Production
    - url: http://localhost:3000
      description: Local dev (cargo run)
  /api/videos/{id}/clips/{clip_id}/description:
    post:
      tags:
      - SMART
      operationId: describeClip
      summary: Generate a ready-to-post description and hashtags for a clip
      description: '2-3 sentences with a hook on the first line, in the transcript language, plus 5-8 hashtags without `#`. Cached on the clip: a second call returns the same result without AI.'
      parameters:
      - $ref: '#/components/parameters/VideoId'
      - name: clip_id
        in: path
        required: true
        schema:
          $ref: '#/components/schemas/Uuid'
      responses:
        '200':
          description: Description
          content:
            application/json:
              schema:
                type: object
                required:
                - description
                - hashtags
                properties:
                  description:
                    type: string
                  hashtags:
                    type: array
                    items:
                      type: string
        '404':
          $ref: '#/components/responses/NotFound'
    servers:
    - url: https://cliponit.app
      description: Production
    - url: http://localhost:3000
      description: Local dev (cargo run)
  /api/clips/{id}/auto-reframe:
    post:
      tags:
      - SMART
      operationId: autoReframeClip
      summary: Detect faces/speakers and camera cuts, write layout + keyframes (follow or…
      description: 'Synchronous (~5 s per 30 s of clip in release). The clip is split into segments at camera cuts (ffmpeg scene > 0.3) and at face-less gaps >= 4 s; a shorter gap inside a shot keeps the last zone. Face-less segment -> `spotlight` 1x1 (whole source on blurred background). mode=follow (default): `split` while the clip''s stable duo is on screen in that segment, otherwise `vertical` following the active speaker. mode=mix (vertical only): 1 face -> `vertical`; 2 -> `split` (left person on top), or `vertical` on someone talking alone >= 4 s; 3 -> `trio`; 4+ -> wide shot. Segment changes are `ease: cut` keyframes on the camera cut; moves inside a segment are `smooth`; a segment = 40 % of source height), medium (default, face + shoulders, >= 55 %), wide (full source height); face centre at ~38 % from the top of the zone. Overwrites `layout` and `keyframes` of the edit for this orientation. Results are cached per clip bounds. 400 on unknown mode/framing. 500 if the face model is missing on the server.'
      parameters:
      - $ref: '#/components/parameters/ClipId'
      - $ref: '#/components/parameters/Orientation'
      - name: mode
        in: query
        required: false
        schema:
          type: string
          enum:
          - follow
          - mix
          default: follow
        description: follow = track the speaker; mix = mixed auto layout shot by shot (vertical only)
      - name: framing
        in: query
        required: false
        schema:
          type: string
          enum:
          - tight
          - medium
          - wide
          default: medium
        description: Crop closeness; zoom is capped to avoid grain
      responses:
        '200':
          description: Reframe result
          content:
            application/json:
              schema:
                type: object
                required:
                - layout
                - keyframes
                - faces
                - speakers
                properties:
                  layout:
                    $ref: '#/components/schemas/Layout'
                  keyframes:
                    type: array
                    items:
                      $ref: '#/components/schemas/Keyframe'
                  faces:
                    type: integer
                    description: Number of face tracks found
                  speakers:
                    type: integer
                    description: Number of stable speakers
                  shots:
                    type: integer
                    description: Number of camera shots detected in the clip
        '404':
          $ref: '#/components/responses/NotFound'
    servers:
    - url: https://cliponit.app
      description: Production
    - url: http://localhost:3000
      description: Local dev (cargo run)
  /api/clips/{id}/faces:
    get:
      tags:
      - SMART
      operationId: getClipFaces
      summary: Face tracks of the clip
      description: Boxes as `[t, x, y, w, h]` (t relative to the clip, x/y/w/h fractions 0..1 of the source); `activity` as `[t, v]` (mouth-motion variance, higher = speaking).
      parameters:
      - $ref: '#/components/parameters/ClipId'
      responses:
        '200':
          description: Tracks
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/FaceTrack'
        '404':
          $ref: '#/components/responses/NotFound'
    servers:
    - url: https://cliponit.app
      description: Production
    - url: http://localhost:3000
      description: Local dev (cargo run)
  /api/clips/{id}/silences:
    post:
      tags:
      - SMART
      operationId: detectSilences
      summary: Detect silences (returns cuts, does not apply them)
      description: ffmpeg `silencedetect` on the clip; each silence trimmed by 80 ms on both sides, those shorter than `min_ms` dropped. Returns `{cuts}` in absolute source seconds — merge them into `cuts` of `updateClipEdit` to apply.
      parameters:
      - $ref: '#/components/parameters/ClipId'
      - name: min_ms
        in: query
        schema:
          type: integer
          default: 400
          minimum: 0
        description: Minimum silence length (ms) after trimming
      - name: threshold_db
        in: query
        schema:
          type: number
          default: -35
        description: Level under which audio counts as silence (dBFS)
      responses:
        '200':
          description: Silences
          content:
            application/json:
              schema:
                type: object
                required:
                - cuts
                properties:
                  cuts:
                    type: array
                    items:
                      $ref: '#/components/schemas/Cut'
        '404':
          $ref: '#/components/responses/NotFound'
    servers:
    - url: https://cliponit.app
      description: Production
    - url: http://localhost:3000
      description: Local dev (cargo run)
  /api/clips/{id}/auto-zoom:
    post:
      tags:
      - SMART
      operationId: autoZoomClip
      summary: Add punch-in zoom keyframes at sentence starts (saved)
      description: Alternates current framing / punch-in (zone shrunk by `strength` around the same centre) on every `every`-th sentence start. Single-zone layouts only (vertical, spotlight, centered) → 400 for split/trio/horizontal. Writes `keyframes` of the edit.
      parameters:
      - $ref: '#/components/parameters/ClipId'
      - $ref: '#/components/parameters/Orientation'
      - name: strength
        in: query
        schema:
          type: number
          default: 0.15
          minimum: 0
          maximum: 1
        description: Zoom amount as a fraction of the zone (0.15 = 15 % tighter)
      - name: every
        in: query
        schema:
          type: integer
          default: 2
          minimum: 1
        description: Zoom on every Nth sentence
      responses:
        '200':
          description: Keyframes written
          content:
            application/json:
              schema:
                type: object
                required:
                - keyframes
                properties:
                  keyframes:
                    type: array
                    items:
                      $ref: '#/components/schemas/Keyframe'
        '400':
          $ref: '#/components/responses/BadRequest'
    servers:
    - url: https://cliponit.app
      description: Production
    - url: http://localhost:3000
      description: Local dev (cargo run)
  /api/clips/{id}/broll/suggest:
    post:
      tags:
      - SMART
      operationId: suggestBroll
      summary: AI suggestions of B-roll moments for the clip
      description: '≤ 3 moments `{start, end, query}` (2-5 s each, absolute seconds, English 2-4 word query). Nothing is applied: call `searchBroll` then `addBroll`.'
      parameters:
      - $ref: '#/components/parameters/ClipId'
      responses:
        '200':
          description: Suggestions
          content:
            application/json:
              schema:
                type: object
                required:
                - suggestions
                properties:
                  suggestions:
                    type: array
                    items:
                      type: object
                      required:
                      - start
                      - end
                      - query
                      properties:
                        start:
                          type: number
                        end:
                          type: number
                        query:
                          type: string
        '403':
          $ref: '#/components/responses/Forbidden'
    servers:
    - url: https://cliponit.app
      description: Production
    - url: http://localhost:3000
      description: Local dev (cargo run)
  /api/clips/{id}/emojis/suggest:
    post:
      tags:
      - SMART
      operationId: suggestEmojis
      summary: AI emoji reactions for the clip (not applied)
      description: ≤ 1 emoji per ~6 s, 1.5-2.5 s each, absolute seconds. Add `x`, `y`, `size` and pass them as `emojis` to `updateClipEdit`.
      parameters:
      - $ref: '#/components/parameters/ClipId'
      responses:
        '200':
          description: Suggestions
          content:
            application/json:
              schema:
                type: object
                required:
                - emojis
                properties:
                  emojis:
                    type: array
                    items:
                      type: object
                      required:
                      - start
                      - end
                      - emoji
                      properties:
                        start:
                          type: number
                        end:
                          type: number
                        emoji:
                          type: string
        '404':
          $ref: '#/components/responses/NotFound'
    servers:
    - url: https://cliponit.app
      description: Production
    - url: http://localhost:3000
      description: Local dev (cargo run)
components:
  schemas:
    Error:
      type: object
      required:
      - error
      properties:
        error:
          type: string
          description: Human-readable message (French or English)
    ClipBase:
      type: object
      required:
      - id
      - video_id
      - position
      - title
      - start_s
      - end_s
      - created_at
      properties:
        id:
          $ref: '#/components/schemas/Uuid'
        video_id:
          $ref: '#/components/schemas/Uuid'
        position:
          type: integer
          description: Chronological order
        title:
          type: string
        start_s:
          type: number
          description: Absolute start in the source video (seconds)
        end_s:
          type: number
          description: Absolute end (seconds)
        created_at:
          type: string
    FaceTrack:
      type: object
      required:
      - id
      - boxes
      - activity
      properties:
        id:
          type: integer
        boxes:
          type: array
          items:
            type: array
            items:
              type: number
            minItems: 5
            maxItems: 5
          description: '[t, x, y, w, h]'
        activity:
          type: array
          items:
            type: array
            items:
              type: number
            minItems: 2
            maxItems: 2
          description: '[t, mouth-motion variance]'
    Keyframe:
      type: object
      required:
      - t
      - layout
      - zones
      description: Framing from time `t` (seconds **relative to the clip start**, before cuts) until the next keyframe. The first keyframe should be at t = 0. The number of zones must match the layout (vertical/spotlight/centered 1, split 2, trio 3, horizontal 0).
      properties:
        t:
          type: number
          minimum: 0
        layout:
          $ref: '#/components/schemas/Layout'
        zones:
          type: array
          items:
            $ref: '#/components/schemas/Zone'
        ease:
          type: string
          enum:
          - cut
          - smooth
          - ''
          default: cut
          description: '`cut` = hard switch; `smooth` = zones glide from the previous keyframe over the 0.6 s before `t` (same layout only)'
      example:
        t: 0
        layout: vertical
        zones:
        - x: 0.3
          y: 0
          w: 0.4
          h: 1
        ease: cut
    Layout:
      type: string
      enum:
      - vertical
      - horizontal
      - split
      - trio
      - spotlight
      - centered
      description: 'How source zones fill the output frame. `vertical`: 1 zone cropped to 9:16. `horizontal`: full frame (0 zones). `split`: 2 zones stacked (top, bottom). `trio`: 3 zones stacked. `spotlight`: 1 zone over a blurred full-frame background. `centered`: 1 square zone on a blue (#1e3a8a) background.'
    Uuid:
      type: string
      format: uuid
      example: 6f1c2d6e-3b1a-4c0f-9a0e-2f5d1c7b8e90
    Clip:
      allOf:
      - $ref: '#/components/schemas/ClipBase'
      - type: object
        properties:
          score:
            type:
            - integer
            - 'null'
            minimum: 0
            maximum: 100
            description: Estimated viral potential (AI)
          reason:
            type:
            - string
            - 'null'
            description: One sentence explaining the score, in the transcript language
          score_detail:
            type:
            - object
            - 'null'
            description: 'Sub-scores (0-10) the score is computed from: hook, standalone, payoff, emotion, value, shareability (weights 0.25/0.20/0.20/0.15/0.10/0.10). Null for older clips and search results'
            additionalProperties:
              type: integer
          description:
            type:
            - string
            - 'null'
            description: Ready-to-post caption (null until `describeClip`)
          hashtags:
            type:
            - array
            - 'null'
            items:
              type: string
            description: Without `#`
          thumbnail_url:
            type:
            - string
            - 'null'
            description: '`/files/thumbs/clips/<clip_id>.jpg`, 320 px frame at start_s + 1'
    Cut:
      type: object
      required:
      - start
      - end
      description: Range removed from the clip, absolute source seconds (end > start)
      properties:
        start:
          type: number
        end:
          type: number
    Zone:
      type: object
      required:
      - x
      - y
      - w
      - h
      description: Rectangle of the SOURCE frame, fractions 0..1 (x+w ≤ 1, y+h ≤ 1). Its aspect should match the cell it fills (9:16 for vertical, 9:8 per cell in split, 1:1 for centered).
      properties:
        x:
          type: number
          minimum: 0
          maximum: 1
        y:
          type: number
          minimum: 0
          maximum: 1
        w:
          type: number
          exclusiveMinimum: 0
          maximum: 1
        h:
          type: number
          exclusiveMinimum: 0
          maximum: 1
      example:
        x: 0.3
        y: 0
        w: 0.4
        h: 1
    Orientation:
      type: string
      enum:
      - vertical
      - horizontal
      - square
      - portrait45
      default: vertical
      description: vertical = 9:16 1080x1920 (TikTok/Reels/Shorts), horizontal = 16:9 1920x1080 (YouTube), square = 1:1 1080x1080 (feed), portrait45 = 4:5 1080x1350 (Instagram feed). auto-reframe supports vertical|horizontal only.
  responses:
    BadRequest:
      description: 'Validation error — the message names the field, e.g. `champ subtitles.size invalide : attendu 1..3`'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    PaymentRequired:
      description: Plan quota reached (monthly videos, daily searches, file size/duration on free)
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: 'Quota mensuel atteint : passe au plan supérieur'
    Forbidden:
      description: Feature not included in the user's plan (upgrade at /billing)
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: L'API & MCP nécessitent le plan Starter
    NotFound:
      description: Resource not found or not owned by the user
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: clip 6f1c2d6e-… introuvable (ou n'appartient pas à ce compte)
  parameters:
    Orientation:
      name: orientation
      in: query
      required: false
      description: 'Which edit/export: `vertical` (9:16, default), `horizontal` (16:9), `square` (1:1) or `portrait45` (4:5). Each clip has one independent edit per orientation.'
      schema:
        $ref: '#/components/schemas/Orientation'
    ClipId:
      name: id
      in: path
      required: true
      description: Clip id (UUID)
      schema:
        $ref: '#/components/schemas/Uuid'
    VideoId:
      name: id
      in: path
      required: true
      description: Video id (UUID)
      schema:
        $ref: '#/components/schemas/Uuid'
  securitySchemes:
    ApiKey:
      type: http
      scheme: bearer
      bearerFormat: ck_<64 hex>
      description: 'Personal API key from `POST /api/me/api-key` (Starter plan and above). Also accepted: the session `token` returned by `login`/`register`. Send `Authorization: Bearer ck_…`.'
    SessionCookie:
      type: apiKey
      in: cookie
      name: session
      description: HttpOnly cookie set by `register`/`login` (browser clients).
    OAuth2:
      type: oauth2
      description: 'OAuth 2.1 for MCP connectors (Claude.ai / Claude Desktop / Claude Code / ChatGPT): discovery at `/.well-known/oauth-protected-resource` and `/.well-known/oauth-authorization-server`, dynamic client registration (RFC 7591) at `/oauth/register`, PKCE S256 required, public clients only. Access tokens (`cko_…`, 1 h) are accepted everywhere a `ck_…` key is; refresh tokens (`ckr_…`, 90 days) rotate on use.'
      flows:
        authorizationCode:
          authorizationUrl: https://cliponit.app/oauth/authorize
          tokenUrl: https://cliponit.app/oauth/token
          refreshUrl: https://cliponit.app/oauth/token
          scopes:
            clips: Import videos, read/edit clips, run exports (everything the API key allows)
externalDocs:
  description: Agent guide (llms-api.txt)
  url: https://cliponit.app/llms-api.txt
x-refined-from:
- cliponit-app-openapi.json
- cliponit-app-openapi.yml