> ## Documentation Index
> Fetch the complete documentation index at: https://magica-adi.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Merge videos



## OpenAPI

````yaml /openapi.yaml post /tools/merge_videos
openapi: 3.1.0
info:
  title: Galaxy Agent API
  version: 1.0.0
  description: |
    Public REST for agent chats, Magica tools, and run status.
    Authenticate with `Authorization: Bearer gxk_live_…`.
servers:
  - url: https://magica-backend-oda9.onrender.com/api/v1
    description: Production
  - url: http://localhost:4000/api/v1
    description: Local
security:
  - bearerAuth: []
tags:
  - name: Chats
  - name: Messages
  - name: Runs
  - name: Magica
paths:
  /tools/merge_videos:
    post:
      tags:
        - Magica
      summary: Merge videos
      operationId: mergeVideos
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - video_urls
              properties:
                video_urls:
                  type: array
                  items:
                    type: string
                transition:
                  type: string
                  enum:
                    - none
                    - fade
                    - dissolve
      responses:
        '200':
          description: Tool result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ToolResult'
components:
  schemas:
    ToolResult:
      type: object
      required:
        - toolName
        - output
        - assets
        - creditCost
        - durationMs
      properties:
        toolName:
          type: string
        output: {}
        assets:
          type: array
          items:
            type: object
            properties:
              url:
                type: string
              mimeType:
                type: string
              filename:
                type: string
        creditCost:
          type: string
        providerRunId:
          type: string
        durationMs:
          type: integer
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key created in the product. Shown once, prefix `gxk_live_`.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.