Open Generative AI exposes three additional generation functions beyond image and video:Documentation Index
Fetch the complete documentation index at: https://mintlify.com/anil-matcha/open-generative-ai/llms.txt
Use this file to discover all available pages before exploring further.
generateAudio for AI audio synthesis, runClipping for automatic video highlight extraction, and runMotionGraphics for animated motion graphics. All three follow the standard submit-and-poll pattern and are accessible from the studio package’s muapi.js module.
generateAudio(apiKey, params)
Generates audio using an AI audio model. The function dynamically forwards all provided params to the model endpoint — the specific fields depend on the audio model selected.
Your Muapi.ai API key.
Audio model ID. Use
params._modelId or params.model to specify the model. The model ID maps to an endpoint in the audio model registry.All additional params (except
_modelId and onRequestId) are forwarded directly to the model endpoint. Refer to the specific model’s documentation on Muapi.ai for supported fields.Optional callback invoked after submission with the
request_id.Promise<{ url: string, outputs: string[], status: string }>
runClipping(apiKey, params)
Extracts AI-generated highlight clips from a long-form video. The model automatically identifies the most interesting segments and returns them as short clips — ideal for creating social media content from longer recordings.
Your Muapi.ai API key.
URL of the source video to clip. Must be publicly accessible.
Number of highlight clips to extract. Defaults to
3.Output aspect ratio for the clips. Defaults to
9:16 (vertical, suitable for Reels/TikTok/Shorts).When
true, returns only the timestamp coordinates (start/end times) without rendering the output clips. Useful for preview or custom rendering workflows. Defaults to false.Optional callback with the
request_id after submission.Promise<{ url: string, outputs: string[], status: string }> — the outputs contain URLs to the extracted highlight clips (or coordinate data if return_coordinates_only is true).
runMotionGraphics(apiKey, params)
Generates animated motion graphics from a text prompt. Produces looping or single-play animations suitable for backgrounds, overlays, and social media content.
Your Muapi.ai API key.
Text prompt describing the motion graphics to generate.
Output aspect ratio. Defaults to
16:9.Duration of the animation in seconds. Defaults to
6.Optional callback with the
request_id.Promise<{ url: string, outputs: string[], status: string }>
runMotionGraphicsEdit(apiKey, params)
Edits an existing motion graphics result by request_id. Applies a new edit prompt while preserving the base animation.
Your Muapi.ai API key.
The
request_id of the original runMotionGraphics result to edit.Prompt describing the edits to apply to the existing animation.
Output aspect ratio. Defaults to
16:9.Duration in seconds. Defaults to
6.Optional callback with the new
request_id.