Image, Video, and Voiceover Generation

Last reviewed November 15, 2026 (checked against the app).

CPLai can run hosted image, video, and voiceover requests through configured providers and can manage a local ComfyUI runtime on the CPLai host. The live picker remains the authoritative image and video catalog because available providers, models, and approved local workflows can change between releases.

How do I choose between hosted and local generation?

Path Best for Requirements Cost behavior
Hosted provider Broad image and video catalogs, managed capacity, and provider-specific features An eligible provider key, such as FAL.ai or Kie AI Uses provider credits or usage billing
Hosted voiceover Text-to-speech narration for video and content automation An ElevenLabs key plus an explicit voice ID Uses the account's character quota or overage billing
Managed ComfyUI runtime Approved local workflows on the machine running CPLai An administrator installs the runtime and supplies the required model weights Local jobs record zero paid provider cost and can retain a hosted-cost estimate for comparison

CPLai's backend media contract includes an approved text-to-image template, but the current Chat media panel does not expose ComfyUI as a selectable provider. The complete local Media Studio flow is not currently available. Installing the runtime does not enable arbitrary ComfyUI graphs, custom nodes, LoRA training, or a general local video engine.

How do I configure hosted media providers?

Open Settings > Integrations and configure Kie AI or FAL.ai for image and video generation. Add ElevenLabs when a supported workflow needs a voiceover track. Under Settings > Files & storage > Folders, review the image and video output folders. Under Settings > Integrations, select the default image and video provider when more than one is available.

Never place provider keys in prompts, project files, or manual examples.

How do I configure ElevenLabs voiceover?

On desktop or web, open Settings > Integrations > API Keys and add your ElevenLabs key. The Settings field stores the credential but does not run a live check. To validate it, use the Test control on the ElevenLabs row during desktop Guided Onboarding. That check uses a read-only account request, so it does not spend characters and can still confirm a valid key when the account's character allowance is exhausted.

How do I generate an ElevenLabs voiceover?

The backend media service supports two explicit audio intents:

Intent Pinned model Best for
audio:default eleven_multilingual_v2 Final narration and multilingual voiceover
audio:cheap-draft eleven_turbo_v2_5 Faster, lower-cost iteration

A voiceover job needs the words to speak, the elevenlabs provider, and an alphanumeric ElevenLabs voice ID from the account's voice library. CPLai does not silently choose a stock voice, and ElevenLabs is never used as the default provider for image or video requests. Speech length comes from the text, so audio jobs do not accept a requested duration or aspect ratio. Completed audio is persisted as MP3 unless the provider returns a supported WAV response.

The desktop Chat media panel and web Chat media tools currently expose image and video intents only. An in-app voiceover picker is not currently available. The audio path is available to supported automation and advanced clients that use the CPLai media job contract. Agents that receive the configured ELEVENLABS_API_KEY can use ElevenLabs directly when instructed, but that is separate from CPLai's media-job adapter.

Desktop Chat read-aloud continues to use Microsoft Edge TTS. Web Chat uses the browser's Web Speech API.

How do I install the managed ComfyUI runtime?

You need administrator access.

  1. Open Settings > Integrations.
  2. Find Media runtime (ComfyUI).
  3. Review the model root, free disk space, and pinned versions.
  4. Click Install.
  5. Watch the eight provision steps move from pending to ready.
Provision step What CPLai prepares
Download Fetches the pinned official ComfyUI release and verifies its hash
Extract Creates the versioned CPLai-managed runtime directory
Python environment Creates an isolated environment for ComfyUI
PyTorch Installs the GPU-matched or CPU dependency set
Requirements Installs the pinned ComfyUI dependencies
comfy-cli Installs the pinned CLI used by the runtime manager
Model paths Connects ComfyUI to the configured shared model root
Verify Confirms the provisioned runtime is ready

Nothing from ComfyUI is bundled inside the CPLai installer. The first enable downloads the pinned release and verifies it before use. The runtime itself uses about 10 GB; model weights are stored separately and can be much larger.

Tip: A ready runtime does not mean every workflow model is installed. If generation reports model_missing, add the required approved model to the model root shown on the card.

How do I control the local runtime?

The desktop and web Settings pages expose the same controls for the runtime on the CPLai host.

Control What it does
Start Starts the installed runtime on the CPLai host
Stop Stops the managed worker
Restart Restarts the currently promoted version
Repair Re-runs provisioning for the current version without changing the rollback target
Check for updates Stages the pinned update, smoke-tests it, records a snapshot, and promotes it only after the check passes
Roll back Returns to the retained last-known-good version; enabled only when a rollback target exists
Remove Stops and removes the managed runtime after confirmation
Change (models folder) Points the runtime at a custom absolute folder for model weights
Reset to default (models folder) Returns model storage to <workspace folder>/media-models

The card shows the current version, running process, PyTorch variant, free disk space, model root, and available rollback target. A changed model folder takes effect on the next start or restart. An update that already matches the current version is a safe no-op.

How do I use ComfyUI on another computer?

On desktop or web, open Settings > Integrations > Media runtime (ComfyUI). Beside ComfyUI endpoint, select Change, enter the server's http:// address, and select Save. Use an address without a username or password in the URL. The server must be reachable from the CPLai host and have the model required by the approved workflow. Save stores the address; it does not test generation.

CPLai sends ComfyUI jobs to this endpoint. Install, Start, and the other runtime controls still manage the local runtime on the CPLai host. Hosted image and video providers keep their existing configuration.

Select Use local runtime to restore the default endpoint. Configuring another server does not add ComfyUI to the Chat media picker or enable arbitrary workflows.

How do desktop and web share the runtime safely?

Both surfaces call the authenticated CPLai service. A browser never connects directly to ComfyUI or to the host's loopback port.

Only one CPLai instance can own the worker. If another development, beta, or production instance holds the live ownership lock, the card shows a read-only banner with the owning instance. Use that instance to start, stop, repair, update, or roll back the runtime. CPLai can reclaim a stale lock after the owning process exits.

How do I remove the managed runtime?

In Settings > Integrations > Media runtime (ComfyUI), select Remove, then Remove runtime. This control is available on desktop and web whenever managed runtime files are present, including after an incomplete installation. CPLai stops the managed worker and removes its runtime files. Separately stored models, LoRAs, and persisted media remain.

If another CPLai instance owns the runtime, use that instance. If removal reports that the models folder is inside the runtime, move the models outside it and update Models folder before retrying. Wait for any ongoing installation or maintenance operation to finish.

During an interactive CPLai uninstall, CPLai stops the worker and asks separately whether to remove the managed runtime. Choose Yes to remove the versioned ComfyUI program files and isolated Python environment, which use about 10 GB. Model weights, LoRAs, and generated media stay in their separate storage locations. Silent upgrades and reinstalls skip this cleanup prompt.

How do I track a video from script to finished asset?

Use the Content dashboard's Video render queue, on desktop and web. Approve for render moves an approved script into production on the same content piece, retaining its assignment and review notes. A cover image is not a finished video; scheduling and publication require a completed video asset and rendered status. See Content Creation Dashboard.

How do I generate media on desktop?

In desktop Chat, click Generate Media below the message box to open the media generation panel. The button stays disabled until a FAL or Kie key is saved. In the panel, choose:

  • an available provider (FAL.ai or Kie.ai);
  • image or video intent;
  • a model for that intent;
  • prompt;
  • aspect ratio when the intent supports it, and duration for video.

The panel has no reference or first-frame image input. Image-to-image and image-to-video requests are available only through the generate_image and generate_video chat tools (see How do I ask the AI to generate media?).

Submit the request and keep the conversation open to monitor the persistent generation card. The card moves through submission, provider processing, persistence, completion, failure, or abort states. When provider failover occurs, the card identifies the provider and model actually used.

How do I generate media on web?

Web Chat exposes generate_image and generate_video tools when the CPLai service reports an eligible Kie or FAL credential. Select and approve the tool in Chat, then describe the requested media.

Web Chat can submit image and video jobs through the CPLai service. The dedicated desktop media panel provides explicit provider, model, intent, aspect ratio, and duration controls.

The web Media runtime (ComfyUI) card manages the runtime on the CPLai host. It does not try to run ComfyUI on the remote browser's computer.

How do I ask the AI to generate media?

In an Agent-capable Chat mode, ask for an image or video and enable the matching tool:

  • generate_image for supported text-to-image and image-edit intents;
  • generate_video for supported text-to-video and image-to-video intents.

These tools are the only way to supply a reference or first-frame image. Include a public https image URL in your request, and the tool passes it as the source image. Only the image:default, image:photoreal, video:default, and video:high-motion intents accept one. CPLai does not upload local image files for these tools.

Media tools are write actions. Review the prompt and provider cost before approving. A normal chat response that contains an external image URL is not the same as a completed CPLai media-generation result.

How are media files persisted?

Completed media is persisted through the CPLai service and saved to the configured media location when the execution path supports local persistence. The result records provider and model metadata plus a correlation ID so the conversation card can recover state.

Local ComfyUI assets are served through authenticated CPLai asset IDs. Host filesystem paths and the ComfyUI loopback service are not exposed to desktop or web clients. Model weights live outside the versioned runtime so repair, update, rollback, and runtime removal do not delete them.

If you save an ordinary remote image from a Chat message, use the message's save action. That path downloads and validates the remote asset; it is separate from a generate_image job that already persisted its result.

How do I choose a provider and model?

The UI filters providers and models by media intent. A model can support one or more of:

  • text-to-image;
  • image editing or image-to-image;
  • text-to-video;
  • image-to-video or first-frame video;
  • text-to-speech voiceover through the explicit ElevenLabs audio path.

Image editing, image-to-image, and image-to-video need a source image, which you can supply only through the generate_image and generate_video chat tools. The desktop media panel covers text-to-image and text-to-video.

Not every model supports every kind of job. The model picker shows what each model can do, and CPLai says so before it starts a job the chosen model cannot run. Model names, durations, sizes, and prices are set by each provider, so check them in the provider's own account before a costly job.

How do I control media cost and reliability?

Hosted media requests may consume prepaid provider credits or usage-based billing. A failed provider request can still have provider-specific billing implications. Before batch generation:

  1. test with one low-cost request;
  2. verify the selected provider and model on the result card;
  3. check output quality and location;
  4. review the provider's current usage dashboard.

If CPLai can safely fail over to another configured provider, the result records the transition. Authentication, invalid-input, and unsupported-intent errors normally require operator correction instead of silent retry.

Local ComfyUI jobs do not spend provider credits, but they consume host GPU, CPU, memory, and disk resources. CPLai records paid local cost separately from a hosted-cost estimate so local savings are not mistaken for provider billing.

ElevenLabs voiceover jobs consume the account's character allowance. A key can validate successfully after the character pool is exhausted because credential validity and available quota are separate checks.

How do I troubleshoot media generation?

How do I restore missing hosted media tools?

Configure an eligible Kie or FAL credential, refresh Chat, and verify the service can read the credential. On web, the tools are credential-gated by the server contract.

Why does a valid ElevenLabs key report exhausted quota?

The account-level key test confirms authentication without spending characters. Voiceover generation uses the same monthly character pool as ElevenLabs web usage. Open the ElevenLabs usage dashboard to review the remaining allowance, reset date, and overage setting.

How do I fix an ElevenLabs voice-not-found error?

Confirm that the workflow supplied a voice ID owned by the current ElevenLabs account. Voice names are not accepted in place of the ID, and the media contract rejects path characters or punctuation in the ID.

How do I fix a local runtime install that will not start?

  • If the card reports the disk floor, free space on the runtime volume and retry. The default floor is 40 GB free.
  • If a provision step failed before installation completed, click Install again after correcting the reported problem.
  • If the installed runtime is damaged, click Repair.
  • If another instance owns the runtime, switch to that instance and use its controls.

Why is Roll back disabled?

Rollback becomes available only after CPLai has promoted an update and retained the previous version. A first installation has no earlier target.

How do I fix a missing local model?

Check the model root shown on the runtime card. The runtime manager installs ComfyUI and its dependencies; it does not silently download every model weight.

How do I recover a generation that never completes?

Open the result card for its current phase, check System Status, and verify the provider job, local runtime, or credit status. Do not submit repeated copies until you know whether the first job is still active.

How do I correct the output folder?

Review the configured media image and video paths in Settings. Desktop development and production instances can intentionally use different data roots.

How do I fix a rejected reference image?

Reference images work only through the generate_image and generate_video chat tools, not the media panel. Ask for an intent that accepts a source image (image:default, image:photoreal, video:default, or video:high-motion) and supply the image as a public https URL. Local files are not uploaded.

CPLai user manual, version of November 20, 2026. This is the same manual that ships inside the app.