> ## Documentation Index
> Fetch the complete documentation index at: https://docs.eversince.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# extract media

> Pixel operations with no model. From an image: crop a region, or take one panel out of a grid image (the kind a model returns when asked for several options in one picture). From a video: a still at a moment. From a timeline (timeline_id): one frame of the composite as the export shows it, every layer, text and captions, attached to the timeline's media with lineage to what was on screen, for a poster, a thumbnail source or a reference for generating in the same look. The result is a new library item. Free, except a timeline frame: cloud processing.



## OpenAPI

````yaml /openapi.json post /tools/extract_media
openapi: 3.1.0
info:
  title: Eversince API
  version: '1'
  description: >-
    Every Eversince tool as one POST call, plus the routes beside them: the tool
    list, account and keys, uploads, webhooks and models. The prose is at
    https://docs.eversince.ai.
servers:
  - url: https://eversince.ai/api/v1
security:
  - bearer: []
tags:
  - name: Discovery
    description: The tool list, the same on the MCP server, the REST API and the CLI.
  - name: Workspace
    description: Jobs, balances, settings, templates, skills and the overview.
  - name: Library
    description: >-
      Items, search, import, reading media, comments, boards, calendars, the
      brand kit and public links.
  - name: Timeline
    description: 'Video editing: timelines, clips, captions, sound, language and rendering.'
  - name: Canvas
    description: 'Still editing: canvases, slides, layers and rendering.'
  - name: Generation
    description: Image, video and audio generation, upscaling, cutouts and models.
  - name: Research
    description: 'What platforms publish: pulling and keeping posts.'
  - name: Account
    description: Balances, keys, workspaces and script sessions.
  - name: Uploads
    description: Files into the library by presigned upload or by URL.
  - name: Webhooks
    description: Job results posted to a URL as they complete.
  - name: Models
    description: Generation models and cost estimates.
paths:
  /tools/extract_media:
    post:
      tags:
        - Generation
      summary: extract media
      description: >-
        Pixel operations with no model. From an image: crop a region, or take
        one panel out of a grid image (the kind a model returns when asked for
        several options in one picture). From a video: a still at a moment. From
        a timeline (timeline_id): one frame of the composite as the export shows
        it, every layer, text and captions, attached to the timeline's media
        with lineage to what was on screen, for a poster, a thumbnail source or
        a reference for generating in the same look. The result is a new library
        item. Free, except a timeline frame: cloud processing.
      operationId: extract_media
      parameters:
        - $ref: '#/components/parameters/IdempotencyKey'
        - $ref: '#/components/parameters/WorkspaceId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                ref:
                  description: The image or video item. Give this or timeline_id.
                  type: string
                timeline_id:
                  description: >-
                    A timeline instead of an item: its composite frame at
                    at_time or frame is kept as an image.
                  type: string
                mode:
                  description: >-
                    crop takes a region of an image. panel takes one cell out of
                    a grid image, the kind a model returns when asked for
                    several options in one picture. frame takes a still out of a
                    video at a moment, and is the mode a timeline_id implies.
                  type: string
                  enum:
                    - crop
                    - panel
                    - frame
                region:
                  description: 'crop: region as PERCENTAGES (0-100) of the source.'
                  type: object
                  properties:
                    x:
                      type: number
                    'y':
                      type: number
                    w:
                      type: number
                    h:
                      type: number
                  required:
                    - x
                    - 'y'
                    - w
                    - h
                panel_index:
                  description: >-
                    panel: 0-based cell index, row-major. Each cell is inset 2%
                    per edge to avoid grid borders, so compose with margin
                    inside the cell.
                  type: integer
                grid:
                  description: 'panel: grid dimensions (default 2x2).'
                  type: string
                  enum:
                    - 2x2
                    - 2x3
                    - 3x3
                at_time:
                  description: >-
                    frame: the moment in seconds, in the video or on the
                    timeline (default 0, the first frame).
                  type: number
                  minimum: 0
                frame:
                  description: 'timeline_id: the exact frame number instead of at_time.'
                  type: integer
                  minimum: 0
                title:
                  description: >-
                    timeline_id: the item's title. Default: the timeline's name
                    and the timecode.
                  type: string
                  maxLength: 120
                folder:
                  description: >-
                    timeline_id: folder path or id to file it in. Default:
                    unfiled.
                  type: string
                context:
                  description: 'Optional: one sentence shown to the user beside this action.'
                  type: string
                  maxLength: 600
      responses:
        '200':
          description: >-
            Done, or a job started for work that runs longer (follow it with
            get_jobs).
          content:
            application/json:
              schema:
                type: object
                required:
                  - ok
                  - data
                  - meta
                properties:
                  ok:
                    const: true
                  data:
                    type: object
                    additionalProperties: true
                  meta:
                    type: object
                    properties:
                      request_id:
                        type: string
                      cost:
                        $ref: '#/components/schemas/Cost'
                      cloud_processing:
                        $ref: '#/components/schemas/CloudProcessing'
                  media:
                    type: array
                    items:
                      type: object
                      additionalProperties: true
        default:
          $ref: '#/components/responses/Error'
components:
  parameters:
    IdempotencyKey:
      name: Idempotency-Key
      in: header
      required: false
      schema:
        type: string
      description: >-
        Retry a paid dispatch safely: the same key returns the job already
        dispatched instead of charging again.
    WorkspaceId:
      name: x-workspace-id
      in: header
      required: false
      schema:
        type: string
      description: The workspace this one call acts in, when it is not the key's own.
  schemas:
    Cost:
      type: object
      description: AI credits the call cost.
      additionalProperties: true
    CloudProcessing:
      type: object
      description: Cloud processing the call used, and what is left.
      properties:
        ran_on:
          const: cloud
        minutes:
          type: number
        queued_minutes:
          type: number
        left_minutes:
          type: number
        bought_minutes:
          type: number
        note:
          type: string
    Error:
      type: object
      required:
        - ok
        - error
      properties:
        ok:
          const: false
        error:
          type: object
          required:
            - code
            - message
            - retryable
          properties:
            code:
              type: string
            message:
              type: string
              description: What went wrong, in words to act on.
            retryable:
              type: boolean
            suggested_action:
              type: string
              description: The next step that works.
            cloud_processing:
              $ref: '#/components/schemas/CloudProcessing'
  responses:
    Error:
      description: The call was refused or failed.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      description: >-
        An API key (es_live_…) from Settings, under API keys, or an OAuth access
        token.

````