{"id":16112,"date":"2026-11-19T09:56:05","date_gmt":"2026-11-19T01:56:05","guid":{"rendered":"https:\/\/imastudio.com\/?p=16112"},"modified":"2026-11-19T11:39:20","modified_gmt":"2026-11-19T03:39:20","slug":"generate-ai-videos-in-codex-imastudio","status":"publish","type":"post","link":"https:\/\/imastudio.com\/zh\/blog\/generate-ai-videos-in-codex-imastudio","title":{"rendered":"\u5982\u4f55\u5728 Codex \u4e2d\u4f7f\u7528 ImaStudio \u751f\u6210 AI \u89c6\u9891"},"content":{"rendered":"<p>You can generate AI videos in Codex in two ways: connect ImaStudio over MCP and ask for a clip in conversation, or install the ImaStudio CLI and turn a local image into a video file in your project folder. This guide covers both and ends with a real run: one product image in, one 5-second video out.<\/p>\n<p>Codex doesn&#8217;t render video itself. It calls a service that does, and ImaStudio runs video models such as Seedance 2.5 on your credits.<\/p>\n<p style=\"margin:1.8em 0\"><a href=\"https:\/\/www.imastudio.com\/mcp\" style=\"display:inline-block;background:#111;color:#fff;font-weight:700;text-decoration:none;padding:14px 22px;border-radius:6px;line-height:1.2\">Generate AI Videos in Codex<\/a><\/p>\n<h2>What you need<\/h2>\n<ul>\n<li>An ImaStudio account with credits. Every video run costs credits, and the CLI tells you the price before it starts.<\/li>\n<li>Codex CLI. We used version 0.166.0.<\/li>\n<li>For the CLI route, Python 3.10 or newer built with OpenSSL 1.1.1 or newer. The installer refuses LibreSSL builds. The system Python 3.9 on our Mac is one, so the installer used a Python 3.11 it found elsewhere.<\/li>\n<li>ffmpeg and ffprobe. The CLI&#8217;s own notes say image-based Seedance runs use them to read your input.<\/li>\n<li>A browser on the same computer, because both routes sign you in there.<\/li>\n<\/ul>\n<h2>MCP or CLI: which one do you need?<\/h2>\n<p>They overlap, but they&#8217;re good at different jobs.<\/p>\n<div style=\"overflow-x:auto;margin:1.6em 0\">\n<table style=\"border-collapse:collapse;width:100%;font-size:.95em\">\n<thead>\n<tr>\n<th style=\"border:1px solid #ddd;padding:8px 10px;text-align:left;background:#f6f7f9;vertical-align:top\"><\/th>\n<th style=\"border:1px solid #ddd;padding:8px 10px;text-align:left;background:#f6f7f9;vertical-align:top\">MCP<\/th>\n<th style=\"border:1px solid #ddd;padding:8px 10px;text-align:left;background:#f6f7f9;vertical-align:top\">CLI<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"border:1px solid #ddd;padding:8px 10px;text-align:left;vertical-align:top\">Best for<\/td>\n<td style=\"border:1px solid #ddd;padding:8px 10px;text-align:left;vertical-align:top\">Asking for a clip in plain language<\/td>\n<td style=\"border:1px solid #ddd;padding:8px 10px;text-align:left;vertical-align:top\">Using a file from your project and saving the result back into it<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #ddd;padding:8px 10px;text-align:left;vertical-align:top\">Local image upload<\/td>\n<td style=\"border:1px solid #ddd;padding:8px 10px;text-align:left;vertical-align:top\">Possible in two steps: get a one-time upload link, then send the file yourself. Read from the tool descriptions, not run here<\/td>\n<td style=\"border:1px solid #ddd;padding:8px 10px;text-align:left;vertical-align:top\">Run end to end here: pass a path with <code>--input-images<\/code><\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #ddd;padding:8px 10px;text-align:left;vertical-align:top\">Download into a folder<\/td>\n<td style=\"border:1px solid #ddd;padding:8px 10px;text-align:left;vertical-align:top\">The result comes back as a link, so saving it to a folder is a separate step<\/td>\n<td style=\"border:1px solid #ddd;padding:8px 10px;text-align:left;vertical-align:top\">Run end to end here: <code>--save-to .\/out<\/code><\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #ddd;padding:8px 10px;text-align:left;vertical-align:top\">Setup<\/td>\n<td style=\"border:1px solid #ddd;padding:8px 10px;text-align:left;vertical-align:top\">One command, then a browser sign-in<\/td>\n<td style=\"border:1px solid #ddd;padding:8px 10px;text-align:left;vertical-align:top\">Download, unzip, run the installer, then sign in<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #ddd;padding:8px 10px;text-align:left;vertical-align:top\">Cost control<\/td>\n<td style=\"border:1px solid #ddd;padding:8px 10px;text-align:left;vertical-align:top\">Put a points limit in your request (<code>max_points<\/code>)<\/td>\n<td style=\"border:1px solid #ddd;padding:8px 10px;text-align:left;vertical-align:top\">Stops and asks before any run over 100 points<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>This guide uses the CLI for anything that touches local files, because that&#8217;s the route we ran from start to finish.<\/p>\n<figure style=\"max-width:420px;margin:1.6em auto\"><img fetchpriority=\"high\" decoding=\"async\" width=\"720\" height=\"1020\" class=\"wp-image-16107\" src=\"https:\/\/imastudio.com\/wp-content\/uploads\/2026\/11\/codex-mcp-or-cli-route.png\" alt=\"Vertical diagram: Codex connects to ImaStudio either through MCP, for asking for a clip in conversation, or through the CLI, for a local image in and a video file out, and ImaStudio runs the video model\" style=\"width:100%;height:auto;display:block;border-radius:4px\" srcset=\"https:\/\/wpcdn.imastudio.com\/wp-content\/uploads\/2026\/11\/codex-mcp-or-cli-route.png 720w, https:\/\/wpcdn.imastudio.com\/wp-content\/uploads\/2026\/11\/codex-mcp-or-cli-route-212x300.png 212w, https:\/\/wpcdn.imastudio.com\/wp-content\/uploads\/2026\/11\/codex-mcp-or-cli-route-8x12.png 8w\" sizes=\"(max-width: 720px) 100vw, 720px\" \/><figcaption style=\"font-size:.85em;line-height:1.5;color:#666;margin:.5em 0 0\">Illustration, not a screenshot. Both routes end at the same ImaStudio video models.<\/figcaption><\/figure>\n<h2>Route 1: connect Codex over MCP<\/h2>\n<p>Add the server with one command:<\/p>\n<pre style=\"background:#f6f7f9;border-left:3px solid #111;border-radius:4px;padding:14px 16px;margin:1.6em 0;font-size:.9em;line-height:1.6;white-space:pre-wrap;word-break:break-word\"><code>codex mcp add ima --url https:\/\/api.imastudio.com\/mcp --oauth-client-id codex-ima<\/code><\/pre>\n<p>On Codex CLI 0.166.0 that registered the server, noticed it needs a sign-in, and printed a link to open:<\/p>\n<pre style=\"background:#f6f7f9;border-left:3px solid #111;border-radius:4px;padding:14px 16px;margin:1.6em 0;font-size:.9em;line-height:1.6;white-space:pre-wrap;word-break:break-word\"><code>Added global MCP server 'ima'.\nOAuth callback URL: http:\/\/127.0.0.1\/callback\/&lt;random&gt;\nDetected OAuth support. Starting OAuth flow\u2026\nAuthorize `ima` by opening this URL in your browser:\nhttps:\/\/api.imastudio.com\/api\/v3\/oauth\/authorize?response_type=code&amp;client_id=codex-ima&amp;\u2026<\/code><\/pre>\n<p>Open the link, sign in to ImaStudio and approve the connection. Until you do, <code>codex mcp list<\/code> shows the server as enabled with <code>Not logged in<\/code> in the Auth column.<\/p>\n<p>If your Codex version doesn&#8217;t start the sign-in on its own, run <code>codex mcp login ima<\/code>. On a machine without a browser, add <code>--no-browser<\/code>, open the printed link elsewhere and paste the full redirect URL back into the terminal. Both steps are described in <a href=\"https:\/\/learn.chatgpt.com\/docs\/extend\/mcp?surface=cli\" rel=\"noopener nofollow\" target=\"_blank\">OpenAI&#8217;s page on MCP in Codex<\/a>. The server is saved in <code>~\/.codex\/config.toml<\/code>:<\/p>\n<pre style=\"background:#f6f7f9;border-left:3px solid #111;border-radius:4px;padding:14px 16px;margin:1.6em 0;font-size:.9em;line-height:1.6;white-space:pre-wrap;word-break:break-word\"><code>[mcp_servers.ima]\nurl = \"https:\/\/api.imastudio.com\/mcp\"\n\n[mcp_servers.ima.oauth]\nclient_id = \"codex-ima\"\ncallback_url = \"http:\/\/127.0.0.1\/callback\/&lt;random&gt;\"<\/code><\/pre>\n<p>In a Codex session, type <code>\/mcp<\/code> to see the active servers. Then ask a question before you ask for a video:<\/p>\n<pre style=\"background:#f6f7f9;border-left:3px solid #111;border-radius:4px;padding:14px 16px;margin:1.6em 0;font-size:.9em;line-height:1.6;white-space:pre-wrap;word-break:break-word\"><code>Which video models can you use through ImaStudio? For each one, tell me the durations and aspect ratios it supports.<\/code><\/pre>\n<p>A list of models means the connection works.<\/p>\n<h3>What a real session looks like<\/h3>\n<p>We approved the connection and ran a real request through Codex. Afterwards <code>codex mcp list<\/code> showed the server with <code>OAuth<\/code> in the Auth column, and Codex could see 28 tools from ImaStudio, in four groups: media, canvas, templates and asset packs.<\/p>\n<p>We asked for one 5-second 16:9 text-to-video clip with Seedance 2.5, with a 300-point limit. Codex worked out the steps on its own:<\/p>\n<ol>\n<li><code>media_models_list<\/code> read the model&#8217;s settings before anything was generated.<\/li>\n<li><code>canvas_create<\/code> made a canvas, because every generated video is placed on one.<\/li>\n<li><code>media_generate<\/code> started the task, with the 300-point limit passed as <code>max_points<\/code>.<\/li>\n<li><code>media_task_status<\/code> checked the task three times until it returned the link to the MP4.<\/li>\n<\/ol>\n<p>From request to link took about four minutes. Two details matter for your own prompts. Codex turned sound off on its own, so say so if you want sound. And every video lives on a canvas in your ImaStudio account, so you&#8217;ll find the result there as well as in the link. The full run, with the settings and the clip, is in our guide to <a href=\"https:\/\/imastudio.com\/blog\/use-seedance-2-5-in-claude-imastudio\">using Seedance 2.5 with ImaStudio<\/a>.<\/p>\n<h3>Local files and MCP<\/h3>\n<p>The server&#8217;s tool descriptions say how files get in. One tool gives you a one-time upload link for a file on your computer, and you send the file to it yourself, for example with <code>curl<\/code>. Another imports a public HTTPS link, up to 50 MB. Either way you get an ImaStudio media link that you can pass to a generation as a starting image or a reference. We read this from the tool descriptions and didn&#8217;t run the upload ourselves, so the CLI below stays the route we tested for local files.<\/p>\n<h2>Route 2: the ImaStudio CLI<\/h2>\n<h3>Install it<\/h3>\n<p>Copy the install commands from ImaStudio&#8217;s connection page: open the Codex tab and switch from MCP to CLI. Don&#8217;t copy a download link out of an article, because the page reads the current link for you. The commands have this shape:<\/p>\n<pre style=\"background:#f6f7f9;border-left:3px solid #111;border-radius:4px;padding:14px 16px;margin:1.6em 0;font-size:.9em;line-height:1.6;white-space:pre-wrap;word-break:break-word\"><code>curl -fL -o ima-studio-cli-skill.zip &lt;download link from the page&gt;\nunzip -o ima-studio-cli-skill.zip\ncd ima-studio-cli-skill &amp;&amp; bash install.sh\nimacli login<\/code><\/pre>\n<p>Read <code>install.sh<\/code> before you run it. It&#8217;s a plain shell script, and its header says what it changes:<\/p>\n<ul>\n<li>It installs the skill under <code>~\/.agents\/skills<\/code> and links it into <code>~\/.claude\/skills<\/code>, <code>~\/.codex\/skills<\/code> and <code>~\/.openclaw\/skills<\/code> when those folders exist.<\/li>\n<li>It creates a private Python environment and an <code>imacli<\/code> command in <code>~\/.local\/bin<\/code>.<\/li>\n<li>It adds a PATH block to your shell startup files, so restart the terminal afterwards.<\/li>\n<\/ul>\n<p>To try it without touching your real setup, point the installer at a temporary home. The folders and the shell are settings the installer reads:<\/p>\n<pre style=\"background:#f6f7f9;border-left:3px solid #111;border-radius:4px;padding:14px 16px;margin:1.6em 0;font-size:.9em;line-height:1.6;white-space:pre-wrap;word-break:break-word\"><code>HOME=\/tmp\/imacli-home SHELL=\/bin\/sh \\\n  IMA_SKILLS_ROOT=\/tmp\/imacli-home\/skills IMA_BIN_DIR=\/tmp\/imacli-home\/bin \\\n  bash install.sh<\/code><\/pre>\n<p>That&#8217;s how we ran it. It finished with <code>Installed<\/code> and listed <code>imacli login<\/code> as the next step.<\/p>\n<h3>Sign in and look around<\/h3>\n<p><code>imacli login<\/code> opens your browser and stores a token in your system keyring, or in an owner-only file if the keyring isn&#8217;t available. Then check three things:<\/p>\n<pre style=\"background:#f6f7f9;border-left:3px solid #111;border-radius:4px;padding:14px 16px;margin:1.6em 0;font-size:.9em;line-height:1.6;white-space:pre-wrap;word-break:break-word\"><code>imacli status\nimacli --points\nimacli --task-type image_to_video --list-models<\/code><\/pre>\n<p>The model list is read live, so prices and model names are current. Seedance 2.5 showed up as <code>dreamina-seedance-2-5<\/code>, with the price for the default settings in the same list.<\/p>\n<h2>Turn a local image into a video<\/h2>\n<p>Set up a project folder with an input image and an empty output folder:<\/p>\n<pre style=\"background:#f6f7f9;border-left:3px solid #111;border-radius:4px;padding:14px 16px;margin:1.6em 0;font-size:.9em;line-height:1.6;white-space:pre-wrap;word-break:break-word\"><code>my-project\/\n  assets\/sneaker.png\n  out\/<\/code><\/pre>\n<p>No product image yet? We made ours with the CLI. Give it an aspect ratio and a resolution together:<\/p>\n<pre style=\"background:#f6f7f9;border-left:3px solid #111;border-radius:4px;padding:14px 16px;margin:1.6em 0;font-size:.9em;line-height:1.6;white-space:pre-wrap;word-break:break-word\"><code>imacli --task-type text_to_image --model-id gpt-image-2 \\\n  --prompt \"A single white and orange running sneaker, side view, centered on a plain light-grey studio background, soft product lighting, clean commercial product photo, no text, no logo\" \\\n  --extra-params '{\"quality\":\"high\",\"output_format\":\"png\",\"aspect_ratio\":\"1:1\",\"resolution\":\"1k\"}' \\\n  --save-to .\/assets<\/code><\/pre>\n<p>That took about 100 seconds. It saves the file as <code>assets\/&lt;task id&gt;-1-&lt;result id&gt;.png<\/code>, so we renamed ours to <code>sneaker.png<\/code>.<\/p>\n<p>Now the video. Here is the whole command:<\/p>\n<pre style=\"background:#f6f7f9;border-left:3px solid #111;border-radius:4px;padding:14px 16px;margin:1.6em 0;font-size:.9em;line-height:1.6;white-space:pre-wrap;word-break:break-word\"><code>imacli --task-type image_to_video \\\n  --model-id dreamina-seedance-2-5 \\\n  --prompt \"The camera makes a slow smooth orbit around the sneaker on the plain light-grey studio background. Keep the sneaker's shape, white and orange colors and sole pattern exactly as in the image. Soft studio lighting, no text.\" \\\n  --input-images .\/assets\/sneaker.png \\\n  --extra-params '{\"duration\":5,\"aspect_ratio\":\"adaptive\",\"resolution\":\"720p\"}' \\\n  --max-points 250 \\\n  --save-to .\/out<\/code><\/pre>\n<ul>\n<li><code>--input-images<\/code> takes a local path. The CLI uploads the file for you.<\/li>\n<li><code>--extra-params<\/code> sets the length, the resolution and the aspect ratio. For image-to-video with Seedance 2.5, the only aspect ratio the CLI accepted was <code>adaptive<\/code>, which follows your input image.<\/li>\n<li><code>--max-points<\/code> is the most you allow this run to cost. The default is 100. A 5-second 720p Seedance 2.5 clip costs more than that, so we set 250, comfortably above the 204 points the live price list showed on November 19, 2026.<\/li>\n<li><code>--save-to<\/code> is the folder the finished file lands in.<\/li>\n<\/ul>\n<p>Trimmed output, with the IDs and the price replaced (the price you see comes from the live price list):<\/p>\n<pre style=\"background:#f6f7f9;border-left:3px solid #111;border-radius:4px;padding:14px 16px;margin:1.6em 0;font-size:.9em;line-height:1.6;white-space:pre-wrap;word-break:break-word\"><code>\u2705 Model found:\n   name          = Seedance 2.5\n   model_id      = dreamina-seedance-2-5\n   catalog_credit = &lt;points&gt; pts (before request overrides)\n\ud83d\ude80 Creating task\u2026\n\u2705 Task created: &lt;task id&gt;; observing this task without resubmission.\n\ud83e\uddfe Task record: &lt;task id&gt; (success)\n   Submitted quote: &lt;points&gt; points (&lt;points&gt; \u00d7 1).\n\u2705 Generation complete!\n   Saved: out\/&lt;task id&gt;-1-&lt;result id&gt;.mp4<\/code><\/pre>\n<p>It took about two minutes. Then check that the file is a real video:<\/p>\n<pre style=\"background:#f6f7f9;border-left:3px solid #111;border-radius:4px;padding:14px 16px;margin:1.6em 0;font-size:.9em;line-height:1.6;white-space:pre-wrap;word-break:break-word\"><code>ffprobe -v error -show_entries stream=codec_name,width,height,duration -of compact out\/*.mp4<\/code><\/pre>\n<pre style=\"background:#f6f7f9;border-left:3px solid #111;border-radius:4px;padding:14px 16px;margin:1.6em 0;font-size:.9em;line-height:1.6;white-space:pre-wrap;word-break:break-word\"><code>stream|codec_name=h264|width=960|height=960|duration=5.041667\nstream|codec_name=aac|duration=5.056000<\/code><\/pre>\n<p>That&#8217;s H.264 video at 960 \u00d7 960 for just over 5 seconds, plus an audio track. The video came out square because the input image was square.<\/p>\n<figure style=\"margin:1.6em 0\"><video controls playsinline preload=\"metadata\" poster=\"https:\/\/wpcdn.imastudio.com\/wp-content\/uploads\/2026\/11\/sneaker-poster.jpg\" style=\"width:100%;height:auto;display:block;border-radius:4px\"><source src=\"https:\/\/wpcdn.imastudio.com\/wp-content\/uploads\/2026\/11\/codex-cli-sneaker-seedance-2-5.mp4\" type=\"video\/mp4\" \/><\/video><figcaption style=\"font-size:.85em;line-height:1.5;color:#666;margin:.5em 0 0\">The result: a slow orbit around the sneaker, 5 seconds, made from the local image with Seedance 2.5.<\/figcaption><\/figure>\n<div style=\"display:flex;flex-wrap:wrap;gap:12px;margin:1.6em 0\">\n<figure style=\"flex:1 1 240px;margin:0\"><img decoding=\"async\" width=\"1024\" height=\"1024\" class=\"wp-image-16108\" src=\"https:\/\/imastudio.com\/wp-content\/uploads\/2026\/11\/sneaker-input.jpg\" alt=\"White and orange running sneaker, side view, on a plain light grey background: the input image\" style=\"width:100%;height:auto;display:block;border-radius:4px\" srcset=\"https:\/\/wpcdn.imastudio.com\/wp-content\/uploads\/2026\/11\/sneaker-input.jpg 1024w, https:\/\/wpcdn.imastudio.com\/wp-content\/uploads\/2026\/11\/sneaker-input-300x300.jpg 300w, https:\/\/wpcdn.imastudio.com\/wp-content\/uploads\/2026\/11\/sneaker-input-150x150.jpg 150w, https:\/\/wpcdn.imastudio.com\/wp-content\/uploads\/2026\/11\/sneaker-input-768x768.jpg 768w, https:\/\/wpcdn.imastudio.com\/wp-content\/uploads\/2026\/11\/sneaker-input-12x12.jpg 12w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption style=\"font-size:.85em;line-height:1.5;color:#666;margin:.5em 0 0\">The input image.<\/figcaption><\/figure>\n<figure style=\"flex:1 1 240px;margin:0\"><img decoding=\"async\" width=\"960\" height=\"960\" class=\"wp-image-16109\" src=\"https:\/\/imastudio.com\/wp-content\/uploads\/2026\/11\/sneaker-video-frame.jpg\" alt=\"A frame from the generated video: the same white and orange sneaker seen from a three-quarter front angle on a grey studio background\" style=\"width:100%;height:auto;display:block;border-radius:4px\" srcset=\"https:\/\/wpcdn.imastudio.com\/wp-content\/uploads\/2026\/11\/sneaker-video-frame.jpg 960w, https:\/\/wpcdn.imastudio.com\/wp-content\/uploads\/2026\/11\/sneaker-video-frame-300x300.jpg 300w, https:\/\/wpcdn.imastudio.com\/wp-content\/uploads\/2026\/11\/sneaker-video-frame-150x150.jpg 150w, https:\/\/wpcdn.imastudio.com\/wp-content\/uploads\/2026\/11\/sneaker-video-frame-768x768.jpg 768w, https:\/\/wpcdn.imastudio.com\/wp-content\/uploads\/2026\/11\/sneaker-video-frame-12x12.jpg 12w\" sizes=\"(max-width: 960px) 100vw, 960px\" \/><figcaption style=\"font-size:.85em;line-height:1.5;color:#666;margin:.5em 0 0\">One frame from the video.<\/figcaption><\/figure>\n<\/div>\n<p>In the frames we checked, mid-clip and at the end, the shoe kept its shape, its white-and-orange colors and its sole pattern while the camera moved around it. Do the same check on your own product before you use a clip: pause on the logo, the stitching and the sole.<\/p>\n<h2>The errors we hit, and the fix<\/h2>\n<p>Three messages stopped us on the way. They&#8217;re worth knowing before you hit them.<\/p>\n<div style=\"overflow-x:auto;margin:1.6em 0\">\n<table style=\"border-collapse:collapse;width:100%;font-size:.95em\">\n<thead>\n<tr>\n<th style=\"border:1px solid #ddd;padding:8px 10px;text-align:left;background:#f6f7f9;vertical-align:top\">What the CLI said<\/th>\n<th style=\"border:1px solid #ddd;padding:8px 10px;text-align:left;background:#f6f7f9;vertical-align:top\">What it means<\/th>\n<th style=\"border:1px solid #ddd;padding:8px 10px;text-align:left;background:#f6f7f9;vertical-align:top\">What to do<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"border:1px solid #ddd;padding:8px 10px;text-align:left;vertical-align:top\"><code>Incomplete virtual field group 'size': provided aspect_ratio=1:1; missing resolution.<\/code><\/td>\n<td style=\"border:1px solid #ddd;padding:8px 10px;text-align:left;vertical-align:top\">For GPT Image 2 the size comes from an aspect ratio and a resolution together.<\/td>\n<td style=\"border:1px solid #ddd;padding:8px 10px;text-align:left;vertical-align:top\">Pass both, for example <code>\"aspect_ratio\":\"1:1\",\"resolution\":\"1k\"<\/code>.<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #ddd;padding:8px 10px;text-align:left;vertical-align:top\"><code>Unsupported aspect ratio '9:16' for 'aspect_ratio'. Valid options: adaptive.<\/code><\/td>\n<td style=\"border:1px solid #ddd;padding:8px 10px;text-align:left;vertical-align:top\">Image-to-video with Seedance 2.5 follows the shape of your input image.<\/td>\n<td style=\"border:1px solid #ddd;padding:8px 10px;text-align:left;vertical-align:top\">Use <code>adaptive<\/code>. For a vertical video, start from a vertical image.<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #ddd;padding:8px 10px;text-align:left;vertical-align:top\"><code>Awaiting cost confirmation: this request costs &lt;points&gt; points (allowed limit: 100).<\/code><\/td>\n<td style=\"border:1px solid #ddd;padding:8px 10px;text-align:left;vertical-align:top\">The CLI stops before spending more than the limit.<\/td>\n<td style=\"border:1px solid #ddd;padding:8px 10px;text-align:left;vertical-align:top\">Decide the cost is fine, then run it again with a higher <code>--max-points<\/code>, at least the quoted number.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>We ran these on November 18, 2026, with CLI version 1.1.9. Models and rules change, so if a message differs, trust the CLI.<\/p>\n<h2>Before you run a batch<\/h2>\n<p>We ran one image, not a batch. Repeating the same command for every file in a folder is the obvious next step, but each run is billed and takes a couple of minutes. Get one clip you&#8217;re happy with first, then decide how many more to make.<\/p>\n<h2>FAQ<\/h2>\n<h3>Do I need both MCP and the CLI?<\/h3>\n<p>No. Use MCP when you want to ask for a clip in conversation. Use the CLI when a file from your project goes in or a video file has to come back out.<\/p>\n<h3>Does the CLI need an API key?<\/h3>\n<p>It signs you in through the browser and keeps a token in your system keyring, or in an owner-only file when the keyring isn&#8217;t available, according to its README. You still need an ImaStudio account with credits.<\/p>\n<h3>Can I make a vertical video from a local image?<\/h3>\n<p>With Seedance 2.5 the aspect ratio follows the input image, so start from a vertical image. We haven&#8217;t run that case ourselves.<\/p>\n<h3>How much does it cost?<\/h3>\n<p>The CLI quotes the price before it runs. On November 19, 2026 the live price list showed 204 points for a 5-second 720p Seedance 2.5 clip, and 96 points at 480p. Prices and models change, so read them from <code>--list-models<\/code> instead of this page.<\/p>\n<h2>Where to go next<\/h2>\n<p>If you&#8217;d rather work in a chat app, see how to <a href=\"https:\/\/imastudio.com\/blog\/generate-ai-videos-in-claude-imastudio\">generate AI videos in Claude with ImaStudio<\/a>. For turning product photos into ad-ready clips, see how to <a href=\"https:\/\/imastudio.com\/blog\/sports-product-photos-to-ai-video-ads\">turn product photos into AI video ads<\/a>, or how to <a href=\"https:\/\/imastudio.com\/blog\/ai-video-ads-seedance-2-5-imastudio\">build video ads with Seedance 2.5<\/a>.<\/p>\n<p style=\"margin:1.8em 0\"><a href=\"https:\/\/www.imastudio.com\/mcp\" style=\"display:inline-block;background:#111;color:#fff;font-weight:700;text-decoration:none;padding:14px 22px;border-radius:6px;line-height:1.2\">Generate AI Videos in Codex<\/a><\/p>\n<p style=\"font-size:.85em;color:#666\">How this guide was put together: we installed the ImaStudio CLI (version 1.1.9) and ran every CLI command above on November 18, 2026, signing in with a session token instead of the browser login. The MCP route was run end to end on Codex CLI 0.166.0 against ImaStudio&#8217;s MCP server. The cover and the example clip were made in ImaStudio. Our own runs went through ImaStudio&#8217;s test site, which has its own prices, so the numbers in our output differ from the live price list quoted above.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u901a\u8fc7 MCP \u5c06 Codex \u8fde\u63a5\u5230 ImaStudio\uff0c\u6216\u4f7f\u7528 CLI \u5c06\u672c\u5730\u56fe\u50cf\u8f6c\u6362\u4e3a\u89c6\u9891\u6587\u4ef6\u3002\u771f\u5b9e\u547d\u4ee4\u3001\u771f\u5b9e\u9519\u8bef\u4ee5\u53ca\u6bcf\u79cd\u9519\u8bef\u7684\u89e3\u51b3\u65b9\u6cd5\u3002.<\/p>","protected":false},"author":1,"featured_media":16106,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"rank_math_title":"Generate AI Videos in Codex with ImaStudio (MCP and CLI)","rank_math_description":"Connect Codex to ImaStudio over MCP, or use the CLI to turn a local image into a video file. Real commands, real errors and the fix for each.","footnotes":""},"categories":[46],"tags":[21,51],"class_list":["post-16112","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-product-videos","tag-ai-video","tag-type-guides"],"_links":{"self":[{"href":"https:\/\/imastudio.com\/zh\/wp-json\/wp\/v2\/posts\/16112","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/imastudio.com\/zh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/imastudio.com\/zh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/imastudio.com\/zh\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/imastudio.com\/zh\/wp-json\/wp\/v2\/comments?post=16112"}],"version-history":[{"count":3,"href":"https:\/\/imastudio.com\/zh\/wp-json\/wp\/v2\/posts\/16112\/revisions"}],"predecessor-version":[{"id":16129,"href":"https:\/\/imastudio.com\/zh\/wp-json\/wp\/v2\/posts\/16112\/revisions\/16129"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/imastudio.com\/zh\/wp-json\/wp\/v2\/media\/16106"}],"wp:attachment":[{"href":"https:\/\/imastudio.com\/zh\/wp-json\/wp\/v2\/media?parent=16112"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/imastudio.com\/zh\/wp-json\/wp\/v2\/categories?post=16112"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/imastudio.com\/zh\/wp-json\/wp\/v2\/tags?post=16112"}],"curies":[{"name":"\u53ef\u6e7f\u6027\u7c89\u5242","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}