+

ImaStudio MCP & CLI for Codex

Codex AI Video Generator

Codex writes your code; ImaStudio gives it a video studio. Connect once, and Codex can generate videos with Seedance 2.5, Kling 3.0, Wan 3.0 and more, use images from your project, and save the finished MP4 right where your code needs it.

How to set up the Codex AI video generator

Add ImaStudio with one command, then sign in in your browser. Paste the setup prompt below into Codex and it will run the steps for you.

  1. 1

    Add the ImaStudio MCP server

    Paste the setup prompt into Codex, or run the codex mcp add command yourself in a terminal.

  2. 2

    Sign in to ImaStudio

    Run codex mcp login ima. A browser opens; sign in to ImaStudio and click Allow.

  3. 3

    Start a new task and ask for a video

    Open a new Codex session and describe the video. For local files and batch jobs, switch to the CLI tab.

How to connect

Connect IMA canvas to Codex

Copy this message and send it to Codex. It will install IMA Studio and then create on your canvas directly.

Connect my IMA Studio canvas here so you can create directly on my canvases. 1. Run this command: codex mcp add ima --url https://api.imastudio.com/mcp --oauth-client-id codex-ima 2. Then run: codex mcp login ima — it opens a browser; remind me to sign in to IMA Studio and click Allow. 3. After I've authorized it, remind me to start a new task — it's available there. Tell me when we're ready to create.

Remote MCP server address (Streamable HTTP): https://api.imastudio.com/mcp

What Codex can do with ImaStudio

Codex already knows your project. With ImaStudio connected, it can create the video assets your project needs, too.

  • Generate video assets while you build

    Ask for a hero loop, background video or onboarding clip while Codex builds the page that uses it.

    Example prompt

    Build a landing page hero section with a looping 8-second background video of soft ocean waves at dawn, 16:9. Generate the video with ImaStudio and save it to public/videos/.

  • Use images from your project

    With the ImaStudio CLI, Codex uploads local images, animates them and downloads the results to the folder you choose.

    Example prompt

    Upload ./assets/sneaker.png and make a 5-second 9:16 showcase video that orbits the shoe. Download it to ./out/sneaker.mp4.

  • Batch videos with scripts

    Let Codex write a script that loops over a folder of product images and generates a video for each one.

    Example prompt

    For every image in ./products, generate a 5-second 1:1 product video with the same camera move, and save each as ./out/[name].mp4. Use the ImaStudio CLI.

  • Compare models before you ship

    Run one brief on several models, review the versions on IMA Canvas and keep the best take in your repo.

    Example prompt

    Generate the same scene with Kling 3.0 and Wan 3.0: a coffee machine pouring espresso in slow motion, 16:9. Save both to ./out so I can compare.

Video models you can use from Codex

Videos made with ImaStudio

Selected videos from the ImaStudio community, from short dramas and product videos to music videos, anime and cinematic shorts. Copy a prompt into Codex and adapt it to your own creative project.

  • Cinematic 15-second single continuous handheld shot, no…

    Cinematic 15-second single continuous handheld shot, no…

    Kira

    0:08
  • ice cream——Double the Cute

    ice cream——Double the Cute

    Kira

    0:15
  • come with me

    come with me

    AI-Austria

    0:31
  • 蜂狂购

    蜂狂购

    张国平(国学小子)

    0:05
  • i’m only your man - MV (Emotional Scene)

    i’m only your man - MV (Emotional Scene)

    Reallsandyy

    1:43
  • Cat makes lasagna talks

    Cat makes lasagna talks

    chuan8 huan

  • Epstein Files

    Epstein Files

    one ambient

    0:51
  • CONVENIENCE STORE FLYBY

    CONVENIENCE STORE FLYBY

    Kira

    0:08
  • Sports wear advertisement

    Sports wear advertisement

    Carrie

    0:15

Videos you can generate from Codex

  • Website hero and background videos

    Generate looping clips for landing pages and drop them into the component Codex is building.

  • App and product demo clips

    Create short promo videos for app store listings, release notes and product pages.

  • E-commerce videos at scale

    Turn a folder of product photos into consistent showcase videos with one scripted run.

  • Social and ad variations

    Produce 16:9, 9:16 and 1:1 versions of the same concept for every channel in one task.

Why use ImaStudio as Codex's video generator

No API key in your config
Codex signs in with OAuth, so there's no secret to store in config files or environment variables.
MCP and CLI
Use MCP for conversational generation, and the CLI for local files, downloads and scripted batch jobs.
Every result on your canvas
Videos are also saved on IMA Canvas with their prompts and history, so teammates can review them.
Same credits as the website
Connecting is free. Generation uses your ImaStudio credits at the same rates as creating on imastudio.com.

Codex AI video generator FAQ

Codex doesn't generate video on its own. After you add the ImaStudio MCP server or CLI, Codex can call ImaStudio's video models and save the results into your project.

Use MCP to generate videos from a conversation. Use the CLI when Codex needs to upload local images, download results to a folder, or run scripted batch jobs. You can set up both.

No ImaStudio API key is needed. You sign in to ImaStudio in your browser with codex mcp login ima. Your Codex access through OpenAI works as usual.

Models such as Seedance 2.5, Kling 3.0, Wan 3.0, MiniMax H3 and Vidu Q4. Ask Codex to list the models currently available before you generate.

Yes, with the ImaStudio CLI. Codex uploads the local image, runs an image-to-video generation and downloads the finished video to the path you specify.

Yes. MCP servers added with the Codex CLI are stored in Codex's configuration, which the IDE extension also uses. Start a new session after signing in so the ImaStudio tools are loaded.

Connecting is free. Each video uses ImaStudio credits at the same rates as the website. Your Codex or ChatGPT plan is billed separately by OpenAI.

On your IMA Canvas, with the prompt and generation history. With the CLI, Codex also downloads a copy into your project.

More ways to create with ImaStudio

Give Codex a video studio

Connect Codex now