Volver al catálogo

Captions

captions

Captions provides the Mirage API for generating videos and speech and adding styled captions to videos.

Acciones
8
Triggers
0
Autenticación
—
OAuth gestionado
No
Información técnica: el detalle de parámetros, schemas y triggers de esta página está pensado para equipos de integración. Si solo necesitas saber si tu herramienta favorita está disponible, basta con ver la lista de acciones.

Acciones disponibles (8)

Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.

Add CaptionsCAPTIONS_ADD_CAPTIONSAcción

Start an asynchronous job that transcribes and renders a selected caption style onto an uploaded or existing completed video. Use CAPTIONS_GET_VIDEO_STATUS to monitor the returned job, then CAPTIONS_DOWNLOAD_VIDEO when it completes. This call consumes paid Mirage credits and cannot be cancelled or deleted once submitted.

Parámetros de entrada

  • videoobject

    MP4 or MOV video upload. The video must use a 9:16 aspect ratio, be at most 50 MB, and be at most 5 minutes long. Provide this or video_id, but not both.

  • video_idstring

    ID of an existing COMPLETE video in video_* format. Provide this or video, but not both.

  • caption_template_idstringObligatorio

    Caption style template ID returned by CAPTIONS_LIST_CAPTION_TEMPLATES.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Download VideoCAPTIONS_DOWNLOAD_VIDEOAcción

Download the MP4 content of a completed video job and return an offloaded file reference. Use CAPTIONS_GET_VIDEO_STATUS first to confirm the job is COMPLETE.

Parámetros de entrada

  • video_idstringObligatorio

    ID of a completed video in video_* format.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Generate SpeechCAPTIONS_GENERATE_SPEECHAcción

Generate WAV speech synchronously from text using a known Mirage voice ID and return an offloaded audio file reference. This call consumes paid Mirage credits and cannot be cancelled or deleted once submitted.

Parámetros de entrada

  • textstringObligatorio

    Text to synthesize as speech; must not be empty.

  • voice_idstringObligatorio

    Mirage voice ID to synthesize with. The public API does not provide a voice-list endpoint.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Generate VideoCAPTIONS_GENERATE_VIDEOAcción

Start an asynchronous Mirage Video 1 job that animates a portrait image using speech audio. Use the returned job ID with CAPTIONS_GET_VIDEO_STATUS. This call consumes paid Mirage credits and cannot be cancelled or deleted once submitted.

Parámetros de entrada

  • audio_referenceobjectObligatorio

    WAV or MP3 speech audio that drives the portrait animation. Duration must be between 1 and 180 seconds.

  • image_referenceobjectObligatorio

    JPEG or PNG portrait image to animate.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Caption TemplateCAPTIONS_GET_CAPTION_TEMPLATEAcción

Retrieve one caption style by ID, including its name and preview video URL.

Parámetros de entrada

  • template_idstringObligatorio

    Caption template ID in ctpl_* format.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Video StatusCAPTIONS_GET_VIDEO_STATUSAcción

Retrieve the current state, progress, and error details for a video generation or captioning job.

Parámetros de entrada

  • video_idstringObligatorio

    Video job ID in video_* format, returned by video generation or captioning.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List Caption TemplatesCAPTIONS_LIST_CAPTION_TEMPLATESAcción

Return one page of available caption styles, including names and preview video URLs.

Parámetros de entrada

  • limitinteger

    Maximum caption templates to return on this page (1-100).

  • cursorstring

    Continuation cursor returned by a previous call; omit for the first page.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List VideosCAPTIONS_LIST_VIDEOSAcción

Return one page of video jobs owned by the connected Mirage account, including each job's status and progress.

Parámetros de entrada

  • limitinteger

    Maximum videos to return on this page (1-100).

  • orderstringenum

    Sort videos by creation time in ascending or descending order.

    ascdesc
  • cursorstring

    Continuation cursor returned by a previous call; omit for the first page.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not