Captions
captionsCaptions provides the Mirage API for generating videos and speech and adding styled captions to videos.
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ónStart 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.
CAPTIONS_ADD_CAPTIONSAcciónStart 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
videoobjectMP4 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_idstringID of an existing COMPLETE video in video_* format. Provide this or video, but not both.
caption_template_idstringObligatorioCaption style template ID returned by CAPTIONS_LIST_CAPTION_TEMPLATES.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Download VideoCAPTIONS_DOWNLOAD_VIDEOAcciónDownload 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.
CAPTIONS_DOWNLOAD_VIDEOAcciónDownload 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_idstringObligatorioID of a completed video in video_* format.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Generate SpeechCAPTIONS_GENERATE_SPEECHAcciónGenerate 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.
CAPTIONS_GENERATE_SPEECHAcciónGenerate 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
textstringObligatorioText to synthesize as speech; must not be empty.
voice_idstringObligatorioMirage voice ID to synthesize with. The public API does not provide a voice-list endpoint.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Generate VideoCAPTIONS_GENERATE_VIDEOAcciónStart 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.
CAPTIONS_GENERATE_VIDEOAcciónStart 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_referenceobjectObligatorioWAV or MP3 speech audio that drives the portrait animation. Duration must be between 1 and 180 seconds.
image_referenceobjectObligatorioJPEG or PNG portrait image to animate.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Caption TemplateCAPTIONS_GET_CAPTION_TEMPLATEAcciónRetrieve one caption style by ID, including its name and preview video URL.
CAPTIONS_GET_CAPTION_TEMPLATEAcciónRetrieve one caption style by ID, including its name and preview video URL.
Parámetros de entrada
template_idstringObligatorioCaption template ID in ctpl_* format.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Video StatusCAPTIONS_GET_VIDEO_STATUSAcciónRetrieve the current state, progress, and error details for a video generation or captioning job.
CAPTIONS_GET_VIDEO_STATUSAcciónRetrieve the current state, progress, and error details for a video generation or captioning job.
Parámetros de entrada
video_idstringObligatorioVideo job ID in video_* format, returned by video generation or captioning.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Caption TemplatesCAPTIONS_LIST_CAPTION_TEMPLATESAcciónReturn one page of available caption styles, including names and preview video URLs.
CAPTIONS_LIST_CAPTION_TEMPLATESAcciónReturn one page of available caption styles, including names and preview video URLs.
Parámetros de entrada
limitintegerMaximum caption templates to return on this page (1-100).
cursorstringContinuation cursor returned by a previous call; omit for the first page.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List VideosCAPTIONS_LIST_VIDEOSAcciónReturn one page of video jobs owned by the connected Mirage account, including each job's status and progress.
CAPTIONS_LIST_VIDEOSAcciónReturn one page of video jobs owned by the connected Mirage account, including each job's status and progress.
Parámetros de entrada
limitintegerMaximum videos to return on this page (1-100).
orderstringenumSort videos by creation time in ascending or descending order.
ascdesccursorstringContinuation cursor returned by a previous call; omit for the first page.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not