Krea MCP

Krea MCP lets agents generate and enhance images, video, audio and 3D, manage Krea Files, moodboards, styles, Ad Studio brand kits, Drama Studio series, motion projects and node workflows, and run the Krea Agent through Krea's hosted MCP server.

Tools

This is a reference catalogue. Tools cannot be configured or run from this page.

  • Generate video

    Submit a video generation request through the Krea public API. For Seedance 2 and Kling 3.0 models, fetch get_prompting_guide before the turn that calls generate_video when possible and follow it when writing the prompt; when making a video ad or product commercial, also fetch the "video-ad-formats" guide; when making an episode of a drama series, also fetch the "micro-drama" guide. For media input URL fields, pass a Krea asset URL, a publicly accessible external URL, or an uploaded asset URL returned by get_upload_url. Use async mode by default so the MCP Apps UI can show progress. The attached widget polls get_job automatically, so do not manually call get_job after submitting unless the user explicitly asks for a text status update or the host does not render the widget. Use sync mode only when the user explicitly asks to wait for the final result in the tool response, because long generations can time out. If generation fails because the user has insufficient balance, non-agent API-key connections need API credit: tell the user to add API credit at krea.ai before trying again; a plan upgrade does not replenish API credit. For OAuth connections and workspace-agent keys, use the workspace compute balance, not API credit: call show_plans_and_packs with reason "out_of_credits" (as the first tool call of your next reply, with no other tool call before it in that turn); it offers the recommended plan, the plans above it, and, on paid plans, compute packs. Tell the user to upgrade or buy compute before trying again. If the error has balance_visible false, admins of the user's organization manage the balance: do not call show_plans_and_packs; tell the user to ask an organization admin to add credits. If generation fails because the model requires a higher plan, call show_plans_and_packs with reason "plan_required" and that model id as model, the same way; the card recommends the lowest plan that unlocks it. Do not tell the user to switch workspaces and do not fall back to another model (for example a cheaper Seedance) on your own: offer the upgrade, and only use a different model or workspace if the user asks for it. The result widget renders most reliably when the generation tool is the first tool call of the assistant turn, so make preparatory calls such as get_model_schema, get_upload_url, get_prompting_guide, and list_models in an earlier turn or before starting the turn that generates, when the client allows.

  • Get upload url

    Get a 3 hour presigned URL for uploading an asset. POST the file to this URL as multipart/form-data with a file field. For example, the following command would work for CURL: `curl -X POST "$UPLOAD_URL" -F "file=@/example.png"`. The asset URL will be returned in the response body. The same presigned URL can be reused to upload multiple files within its 3 hour lifetime — POST once per file and each returns its own asset URL, so you do not need a new URL per upload. If sending a POST to the presigned URL fails tell the user to add `api.krea.ai` to their domain allowlist. If you cannot make the POST yourself at all — for example your runtime is sandboxed without network egress, or you have no way to send HTTP requests — do not keep retrying: call upload_asset instead so the user can drop the file into the upload widget directly.

  • Remove background

    Remove the background from an image and return a transparent PNG cutout of the subject. Use this for background removal, cutouts, or transparent backgrounds instead of generate_image or an image-editing model, which can change the subject. Set preflight to get the cost quote without submitting. For media input URL fields, pass a Krea asset URL, a publicly accessible external URL, or an uploaded asset URL returned by get_upload_url. Use async mode by default so the MCP Apps UI can show progress. The attached widget polls get_job automatically, so do not manually call get_job after submitting unless the user explicitly asks for a text status update or the host does not render the widget. Use sync mode only when the user explicitly asks to wait for the final result in the tool response, because long generations can time out. If generation fails because the user has insufficient balance, non-agent API-key connections need API credit: tell the user to add API credit at krea.ai before trying again; a plan upgrade does not replenish API credit. For OAuth connections and workspace-agent keys, use the workspace compute balance, not API credit: call show_plans_and_packs with reason "out_of_credits" (as the first tool call of your next reply, with no other tool call before it in that turn); it offers the recommended plan, the plans above it, and, on paid plans, compute packs. Tell the user to upgrade or buy compute before trying again. If the error has balance_visible false, admins of the user's organization manage the balance: do not call show_plans_and_packs; tell the user to ask an organization admin to add credits. If generation fails because the model requires a higher plan, call show_plans_and_packs with reason "plan_required" and that model id as model, the same way; the card recommends the lowest plan that unlocks it. Do not tell the user to switch workspaces and do not fall back to another model (for example a cheaper Seedance) on your own: offer the upgrade, and only use a different model or workspace if the user asks for it. The result widget renders most reliably when the generation tool is the first tool call of the assistant turn, so make preparatory calls such as get_model_schema, get_upload_url, get_prompting_guide, and list_models in an earlier turn or before starting the turn that generates, when the client allows.

  • Save motion version

    Save a motion project as it is now as a numbered version the user can open, compare and go back to in Krea. Do it each time a pass is ready to be looked at. Saving again with nothing changed returns the same version.

  • Send motion notes

    Save the notes left on a motion export in the player and send them as one round of feedback.

  • Swap video

    Replace people, outfits, objects, or the setting in an existing video with up to 4 reference images, keeping its motion, timing, camera, and sound. Krea works out what each reference replaces, so pass a prompt only to state the user's own mapping or extra direction. The source video must be 4 to 29 seconds long for Standard and 4 to 15 seconds for Lite. Recast takes a 5 to 30 second source with no single shot over 15 seconds. A swap always runs async: the attached widget polls the job automatically, so do not call get_job unless the host does not render the widget. For media input URL fields, pass a Krea asset URL, a publicly accessible external URL, or an uploaded asset URL returned by get_upload_url. If generation fails because the user has insufficient balance, non-agent API-key connections need API credit: tell the user to add API credit at krea.ai before trying again; a plan upgrade does not replenish API credit. For OAuth connections and workspace-agent keys, use the workspace compute balance, not API credit: call show_plans_and_packs with reason "out_of_credits" (as the first tool call of your next reply, with no other tool call before it in that turn); it offers the recommended plan, the plans above it, and, on paid plans, compute packs. Tell the user to upgrade or buy compute before trying again. If the error has balance_visible false, admins of the user's organization manage the balance: do not call show_plans_and_packs; tell the user to ask an organization admin to add credits. If generation fails because the model requires a higher plan, call show_plans_and_packs with reason "plan_required" and that model id as model, the same way; the card recommends the lowest plan that unlocks it. Do not tell the user to switch workspaces and do not fall back to another model (for example a cheaper Seedance) on your own: offer the upgrade, and only use a different model or workspace if the user asks for it.

  • Write files

    LEGACY: prefer write_files_inline (inline text) or write_files_upload (binary/large files via signed URL). Batch create Krea Files with optional exact tags. Pass content inline for text up to 200000 bytes. Omit content (or pass null) for a large or binary file: the item returns a signed uploadUrl instead — POST the raw file bytes as the whole request body within 15 minutes (curl --data-binary @file). Never send a multipart body (curl -F): the server rejects it with 415. Files have no size limit; over 20 MB, also pass the exact size_bytes to get a direct storage upload instead: PUT the bytes to uploadUrl (or each slice to multipart.partUrls, collecting the ETag response headers), echo the returned headers, then POST commitUrl (multipart: with a JSON body {"parts":[{"partNumber":1,"etag":"..."}]}) — the file does not exist until the commit succeeds.

PreviousPage 2 / 2