How to connect Magic Hour to Grok Bot

Connect Grok Bot to Magic Hour MCP. Generate three 16:9 hero image variations, create 30-second promo video from script, and more using natural language, with authentication handled for you.

Magic Hour logoMagic Hour
Api Key

Magic Hour is an AI media creation platform for generating and editing images, videos, and audio through a unified API. It streamlines multimedia production so teams can programmatically create and iterate on visual and audio assets faster.

38 Tools

Introduction

Grok is xAI's assistant, and its bot builder lets you create a personal agent that holds context, runs skills, and connects to the apps you already use through plugins.

This guide explains how to connect Magic Hour to a Grok bot using Composio Connect, which handles OAuth, token refresh, and reliability so you do not have to. You add Composio as a plugin, authenticate once, then ask your bot to work with Magic Hour in plain language.

For exact tool slugs and parameter tables, see the tool catalog in the Composio docs.

Also integrate Magic Hour with

Why use Composio?

Composio exposes 2,000+ apps to your Grok bot through a single connection, so you get:

  • Connect to 2,000+ apps with on-demand tool loading, so you do not fill your context window with unnecessary tool definitions.
  • Use programmatic tool calling through a remote workbench, letting the model write its own code to handle complex tool chaining. This reduces back-and-forth for frequent tool calls.
  • Handle large tool responses outside the model context to keep conversations lean.

Connecting Magic Hour to Grok Bot

Once Grok Bot is set up, you connect Magic Hour entirely from its interface, and the whole flow takes under a minute.

Set up Grok Bot

Get access. Grok Bot is included with Cursor Ultra, Cursor Premium Teams, and SuperGrok Heavy. Get the desktop app for macOS or Windows from x.ai/bot and sign in. An iPhone companion app is also available, and your bots sync across devices.

Create a bot. Pick a suggested role or define your own, then give it a short name, one primary job, and a short description of how it should work. Focused bots work best, because a clear role gives the bot more useful context over time.

Connect Magic Hour

1. Add the Composio plugin

Click the button. The Composio listing on x.ai opens and launches Grok Bot for you. If the app does not open on its own, click Add to Grok Bot.

Add to Grok Bot

Composio for Grok Bot listing on x.ai with the Add to Grok Bot button

Grok Bot opens the Composio plugin, showing its connector and skills. Click Add.

Composio plugin sheet in Grok Bot with the Add button

2. Authenticate

Go to the Installed section and click the Composio entry. You'll see its connector and skills listed.

Installed Composio plugin showing the Authenticate button

Click Authenticate. You'll be taken to the Composio consent screen. Review the access it requests and click Authorize. Composio handles the OAuth handshake for you, so you never touch API keys or tokens.

Composio authorization screen with Authorize and Deny

3. Connect your Magic Hour account

Back in the chat, ask your bot to connect to Magic Hour or give it any Magic Hour task.

For example, ask it to:

  • "Generate three 16:9 hero image variations"
  • "Create 30-second promo video from script"
  • "Transcribe and denoise a podcast episode"

It will prompt you to authenticate and authorize access.

That's it. Composio's tools are now available in your Grok bot, and your Magic Hour account is ready to use.

What is Grok Bot?

Grok is xAI's assistant, available as a chat interface and a bot builder for creating personal agents that run skills and connect to external apps.

With Composio Connect, your Grok bot can securely access apps like Magic Hour through MCP without you sharing account credentials directly with the agent.

What is the Magic Hour MCP server, and what's possible with it?

The Magic Hour MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your Magic Hour account. It provides structured and secure access to your Magic Hour media tools, projects, and account, so your agent can generate images, create videos, produce voices, edit media, and monitor projects on your behalf.

  • AI image creation and editing: Have your agent generate images, headshots, memes, artistic QR codes, and GIFs, or edit faces, clothing, backgrounds, colors, and image resolution.
  • Video generation and transformation: Let the agent create videos from text, images, or audio, animate characters, replace subjects, transform video styles, and turn photos into speaking presenters.
  • Voice and lip sync production: Direct your agent to produce speech with preset voices or cloned recordings, then create lip sync videos using the generated or supplied audio.
  • Media finishing and enhancement: Instruct your agent to add styled subtitles, upscale images, colorize old photos, remove backgrounds, or animate a still image into a video.
  • Project and credit management: Have your agent check available credits before generation, monitor image, video, audio, and face detection progress, retrieve completed media, and delete projects you no longer need.

Way Forward

Now that Magic Hour is connected, extend your setup by connecting the other apps you already use every day, so your Grok bot can run true cross-app workflows end to end.

  • Connect Calendar to turn threads into scheduled meetings automatically.
  • Connect Slack or Teams to post summaries, approvals, and alerts where your team works.
  • Connect Notion, Linear, Jira, or Asana to convert requests into tickets, tasks, and docs.
  • Connect Drive, Dropbox, or OneDrive to fetch, file, and share attachments without manual steps.

Start with one workflow you do repeatedly, then keep adding apps as you find new handoffs. With everything behind a single connection, your bot can coordinate multiple tools safely and reliably in one conversation.

TOOLS

Supported Tools

Every Magic Hour action and event your agent gets out of the box.

Create AI Clothes Change

Start a credit-consuming asynchronous clothes-change image job from person and garment images.

Create AI Face Edit

Start a credit-consuming asynchronous edit of facial features in an image.

Create AI GIF

Start a credit-consuming asynchronous prompt-based animation in GIF, MP4, or WebM format.

Create AI Headshot

Start a credit-consuming asynchronous headshot generation from an image containing one detectable face.

Create AI Image

Start a credit-consuming asynchronous text-to-image job.

Create AI Image Edit

Start a credit-consuming asynchronous prompt-based edit of one or more images.

Create AI Meme

Start a credit-consuming asynchronous meme generation from a topic and a documented Magic Hour template.

Create AI QR Code

Start an asynchronous artistic QR-code generation for supplied content.

Create AI Video Edit

Start a credit-consuming asynchronous prompt-based edit of an input video.

Create AI Voice

Start credit-consuming asynchronous speech generation from text using a documented preset voice.

Create AI Voice Clone

Start credit-consuming asynchronous speech generation by cloning an input voice recording.

Create Animation Video

Start one credit-consuming asynchronous animation render with explicit dimensions, frame rate, duration, style, and assets.

Create Audio-to-Video

Start a credit-consuming asynchronous video generation job from audio and optional visual style controls.

Create Background Removal

Start a credit-consuming asynchronous image job that removes a background or replaces it with an optional supplied image.

Create Body Swap

Start a credit-consuming asynchronous body-swap image job that places a person into a scene at the selected resolution.

Create Character Animation Video

Animate a reference character with motion transferred from a source video in a credit-consuming asynchronous job.

Create Character Replacement Video

Replace a source-video subject with a reference character in a credit-consuming asynchronous video job.

Create Face Swap Photo

Start a credit-consuming asynchronous photo face swap using one source face for all detected faces or up to five individual face mappings.

Create Face Swap Video

Start a credit-consuming asynchronous video face-swap job using one image for all detected faces or up to five individual face mappings.

Create Head Swap

Start a credit-consuming asynchronous head-swap image job from body and head images.

Create Image-to-Video

Start a credit-consuming asynchronous video generation job from a still image and optional final frame, prompt, audio, model, and resolution controls.

Create Image Upscale

Start a credit-consuming asynchronous 2x or 4x image upscale.

Create Lip Sync Video

Start a credit-consuming asynchronous lip-sync video job from audio and a file or YouTube video.

Create Photo Colorization

Start a credit-consuming asynchronous colorization of a photo.

Create Subtitled Video

Start a credit-consuming asynchronous job that transcribes speech and burns styled subtitles into an MP4 video.

Create Talking Photo

Start a credit-consuming asynchronous talking-photo video from an image and audio.

Create Text-to-Video

Start a credit-consuming asynchronous video generation job from a text prompt and model/output options.

Create Video-to-Video

Start a credit-consuming asynchronous stylized transformation of an input video.

Delete Audio Project

Permanently delete one rendered Magic Hour audio project by ID.

Delete Image Project

Permanently delete one Magic Hour image project and its rendered images by ID.

Delete Video Project

Permanently delete one rendered Magic Hour video project by ID.

Detect Faces

Start asynchronous face detection for an image or video and return a task ID.

Generate Asset Upload URLs

Generate ordered, expiring signed upload URLs and Magic Hour file paths for image, video, or audio assets.

Get Account

Return the connected Magic Hour account's tier, available credits, identity, and subscription details; use this before generation to check entitlement and balance.

Get Audio Project

Get an audio project's asynchronous status, error, credit charge, and temporary downloads.

Get Face Detection

Get face-detection status and detected face paths by task ID.

Get Image Project

Get an image project's asynchronous status, error, credit charge, and temporary downloads.

Get Video Project

Get a video project's asynchronous status, error, credit charge, and temporary downloads.

FAQ

Frequently asked questions

Start with Magic Hour.It takes 30 seconds.

Managed auth, hosted MCP servers, and every Magic Hour tool your agent needs.Free to start.

Start building