Unified Codex + Claude tutorial · media

How to add a logo watermark to a video with Medux MCP

Learn to add a logo watermark to a video with the Medux API through Codex or Claude MCP. Check inputs, tool calls, task status, and output.

Watch the complete workflow: add a logo watermark to a video with Codex, Claude, MCP, and Medux. Watch on YouTube ↗
Choose your AI client

Follow the Codex or Claude workflow

The Medux operation and request fields are shared. Switch tabs for the client-specific prompt, approval pattern, screenshots, and walkthrough.

Codex-specific workflow

Run Add a Logo Watermark to Video as a Codex MCP task

Use the active workspace as the source of truth. Ask Codex to identify the source video, logo image, placement, scale, and opacity, select the Medux video watermark tool, and keep the Medux task ID and returned output with the rest of the project. Naming the input roles and the expected result prevents an agent from guessing which file should be used where.

Codex prompt pattern

In this workspace, use the Medux video watermark tool through Medux MCP to add a logo watermark to a video.
First inspect and identify the source video, logo image, placement, scale, and opacity.
Show me the exact tool arguments before execution.
After the task completes, return the branded MP4 and verify that the logo position, size, opacity, duration, and video playback are correct.

Approval gate

Before approving the call, compare the selected tool, file or asset IDs, ordering, timing, and output settings with the request. If a local filename was mapped to an uploaded Medux file ID, keep that mapping visible so it can be audited later.

Result verification

Let Codex monitor an asynchronous task until it reaches a terminal state, then save or report the branded MP4. The final check is explicit: confirm that the logo position, size, opacity, duration, and video playback are correct.

Before you start

Prepare two files in the Codex workspace: the source video and the logo image. In the recorded workflow, the video is sample.mp4 and the logo is logo2.png.

Source assetA video file that will receive the watermark. The example uses a 1920×1080 MP4.
Logo assetA transparent or square PNG logo. The example uses a 180×180 logo in the top-right corner.
Tip: Give Codex a clear placement rule, not just “add the logo.” Mention the corner, approximate size, and whether the watermark should be subtle or prominent.

Step-by-step workflow

01

Ask Codex to add the logo watermark

Start with a simple instruction. The key is to name both assets and describe the placement clearly.

Use Medux to add logo2.png to sample.mp4. Resize the logo to an appropriate size and place it in the top-right corner of the video.
Codex prompt for adding a logo watermark to sample.mp4
Codex receives the task: add logo2.png to sample.mp4 and place it in the top-right corner.
02

Let Codex inspect the project files

Codex checks the workspace before calling Medux. It confirms the video file, the logo file, and a prior output frame that helps estimate the watermark size and placement.

Codex inspecting the video, logo, and reference frame
Codex uses the existing assets and preview information instead of guessing the watermark dimensions.
03

Find the Medux add-logo workflow

Next, Codex identifies the Medux workflow for adding a logo to video. The important parameters are the logo position, width, and height.

{
  "tool": "add_logo_to_video",
  "video": "sample.mp4",
  "logo": "logo2.png",
  "placement": {
    "corner": "top-right",
    "logo_width": 180,
    "logo_height": 180,
    "margin_x": 24,
    "margin_y": 24
  }
}
Codex finding the Medux add_logo_to_video endpoint and parameters
The workflow maps the natural-language request into a concrete Medux add-logo job.
04

Upload assets and submit the Medux task

Codex prepares upload targets for the MP4 and PNG, then submits the Medux task. In the example, it chooses a 180×180 logo with a 24px top-right margin for a 1920×1080 source video.

POST /api/app/v1/process/video/add_logo_to_video
{
  "video_url": "<uploaded-sample-mp4-url>",
  "logo_url": "<uploaded-logo2-png-url>",
  "x": 1716,
  "y": 24,
  "logo_width": 180,
  "logo_height": 180
}
Codex submitting a Medux add logo task
Codex submits the job and starts polling until Medux returns the generated MP4 URL.
05

Approve the download when needed

If the environment asks for confirmation before downloading the Medux result, approve the command so Codex can save the completed video into the workspace.

Approval prompt for downloading the Medux output video
The generated Medux output is downloaded back into the Codex workspace for review.
06

Verify the final MP4

Codex saves the final file, extracts a preview frame, and confirms that the logo is visible in the top-right corner without dominating the video.

Codex showing the final watermarked video output
Output example: sample_logo2_top_right.mp4 plus a preview frame for quick visual verification.

Publishing checklist

Use this workflow as a short product tutorial for your website, docs, YouTube description, or social post. Keep the story focused: one prompt, one MCP connection, one finished video.

Clear input
Name the video and logo files directly.
Controlled placement
Specify corner, size, and margin.
Visual proof
Always verify a frame before publishing.

Example result

src / logo / rst demonstration

Below is the complete watermark example: src is the original video, logo is the image added as a watermark, and rst is the final branded video generated by Medux.

src
Source video. Original video before the logo watermark is applied.
logo
Logo image used as the video watermark
Logo image. The logo asset added to the source video.
rst
Generated result. Final video with the logo watermark applied by Medux.

Claude-specific workflow

Run Add a Logo Watermark to Video as a Claude MCP workflow

Keep the goal, source assets, and constraints together in the conversation. Ask Claude to restate the source video, logo image, placement, scale, and opacity before proposing the Medux video watermark tool. That context checkpoint makes the file roles and desired outcome easy to correct before any Medux call is approved.

Claude prompt pattern

Using the assets and requirements in this conversation, help me add a logo watermark to a video with Medux MCP.
Restate which input fulfills each role: the source video, logo image, placement, scale, and opacity.
Propose the the Medux video watermark tool call and summarize its arguments before asking for approval.
When it finishes, return the branded MP4 with a checklist confirming that the logo position, size, opacity, duration, and video playback are correct.

Context checkpoint

Have Claude summarize the intended transformation, identify every source asset by role, and list the important constraints. Review that summary together with the proposed tool arguments; correct the conversation first if a file, order, time range, or setting is ambiguous.

Result verification

Keep the Medux task ID in the conversation while Claude checks progress. When processing ends, ask for the branded MP4 plus a concise validation checklist confirming that the logo position, size, opacity, duration, and video playback are correct.

Before you start

Prepare two local files

Source videoExample: sample.mp4
Logo imageExample: logo.png, ideally with transparency
Connection requirement: Claude must have the Medux MCP connector enabled. The video shows the medux connector available in Claude's context panel.

Core workflow

01

Describe the result in one prompt

Tell Claude which files to use, where the watermark should appear, and how uploads should be handled. In the demonstrated workflow, the logo is placed in the top-right corner.

Prompt used in Claude

Use Medux to add logo.png to sample.mp4.
Resize the logo to an appropriate size and place it
in the top-right corner of the video.
Upload the files using the curl command.

The code block uses wrapping rules such as white-space: pre-wrap, overflow-wrap: anywhere, and word-break: break-word, so long commands stay inside the page on desktop and mobile.

Claude prompt requesting a logo overlay through Medux
Start with a clear request that identifies both assets and the desired placement.
02

Let Claude inspect the media and choose overlay settings

Claude checks the video and logo dimensions, then calculates a practical watermark size and position. In the example, the 1920×1080 video receives a 150×150 logo near the top-right edge with padding.

Video: 1920 × 1080
Logo target: 150 × 150
Position: x = 1750, y = 20
Placement: top-right with padding
Claude calculating the watermark dimensions and top-right coordinates
Claude turns the visual instruction into concrete size and coordinate values.
03

Upload the video and logo to Medux

Claude calls Medux to obtain upload destinations and sends both files with curl. Successful uploads return an HTTP 200 response and file identifiers that the processing task can reference.

curl --request PUT   --header "Content-Type: video/mp4"   --upload-file "sample.mp4"   "<MEDUX_SIGNED_UPLOAD_URL>"

curl --request PUT   --header "Content-Type: image/png"   --upload-file "logo.png"   "<MEDUX_SIGNED_UPLOAD_URL>"
Do not publish signed upload URLs. They are temporary credentials. Keep placeholders in public tutorials and let Claude request fresh URLs during each run.
Terminal showing curl uploads for the video and logo
The workflow uploads each asset and confirms the HTTP status before continuing.
04

Run the Medux watermark task

After both uploads are available, Claude sends the video file, logo file, target size, and placement values to the Medux processing tool. Medux creates an asynchronous media task and returns a task identifier.

Input video: sample.mp4
Overlay image: logo.png
Logo width: 150
Logo height: 150
X position: 1750
Y position: 20
Output format: MP4
Claude submitting the Medux logo overlay task
Claude passes the uploaded assets and overlay parameters into the Medux workflow.
05

Wait for completion and retrieve the output

Claude checks the task status until processing is complete. Once Medux returns the result URL, Claude can download the finished MP4 into the local workspace.

curl --location   "<MEDUX_RESULT_URL>"   --output "sample_with_logo_topright.mp4"
Claude checking the Medux task status
The asynchronous task is polled until the final media URL becomes available.

Result

The final video keeps its original scene and motion while displaying a clean, consistently positioned logo watermark in the top-right corner.

✓ Logo resized automatically
✓ Top-right placement preserved
✓ MP4 returned for download

Reusable prompt template

Replace the file names and placement instructions to reuse the same workflow for other videos.

Use Medux to add <logo-file> to <video-file>.
Resize the logo to <size or "an appropriate size">.
Place it in the <top-right / top-left / bottom-right / bottom-left>
corner with comfortable padding.
Upload the local files using curl, run the Medux task,
and save the finished MP4 in the current workspace.
Be specific about placementName the corner and mention padding to avoid edge collisions.
Use transparent PNG logosTransparency usually produces a cleaner overlay than a solid background.
Review before publishingCheck visibility over bright and dark parts of the source video.

Example result

src / logo / rst demonstration

Below is the complete logo-watermark example: src is the original video, logo is the image added as the watermark, and rst is the final video generated by Medux.

src
Source video. Original video before the logo watermark is added.
logo
Logo image used as the video watermark
Logo image. The image asset used as the watermark.
rst
Generated result. Final video with the logo watermark added by Medux.

Quick answer

How do I add a logo watermark to a video with Medux MCP?

Connect either Codex or Claude to Medux MCP, prepare the required inputs, review the proposed medux_add_logo_to_video call, and verify the returned result. The tabs above keep client-specific prompting on one canonical page.

Can I use the same Medux tool in Codex and Claude?

Yes. The client interaction differs, but both use the same Medux MCP tool and API request contract shown in this tutorial.

Related developer intent

Use AI agents to add a logo watermark to a video

This tutorial addresses developer workflows for add logo to video API and add a watermark to video by making the task repeatable through the Medux API. Codex or Claude can prepare inputs, show the MCP tool arguments for approval, monitor processing, and return an output that can be checked against the original request.

This capability fits a broader AI video editing pipeline alongside video watermark removal, logo removal, object cleanup, resizing, and output validation for owned or authorized media.

Can Codex or Claude add a logo watermark to a video through Medux MCP?

Yes. Use the client-specific tab above to prepare the inputs, review the Medux tool call, run the operation, and verify the returned result. The linked API reference remains the source of truth for supported fields and limits.

Production, trust, and developer intent

Apply rights-aware controls when you add a logo watermark to a video

Use this as an authorized AI media processing workflow for add a logo watermark to a video. Codex or Claude can expose the selected files, tool arguments, task status, and result checks, making the edit easier to review than an opaque one-click video operation.

Only process media you own or are permitted to modify. For production and commercial publishing, retain the source license or authorization, review the changed region, and record who approved the final output.

What should I verify before running an AI video editing API?

Verify ownership or permission, choose the operation that matches the requested edit, inspect the complete output, and keep the task record with the approved source file.