naïve
Back to Primitives

5 actions · from $0.01 / second

Mira video edits

NaiveTool

Send a short clip and say what to change: the place, an outfit or object, or a person (from your photos). Or copy the clip's exact motion onto the people in your photos. Runs as a job; the finished edit lands in your files. Billed what the render cost: per second without photos, per scene with photos.

Part of AI models

Actions

Every action: POST /v1/tools/runs { "tool": "<name>", "input": { … } }

  • Mira video edits

    Edit a clip

    edit.prompt

    Change anything in a clip, described in words.

    Parameters
    ParameterDescription
    video
    string · required
    The clip to edit: a public link (https) or the file id (fil_…) of a video in your library. Up to 15 seconds are edited.
    prompt
    string · required
    What to change, in plain words, e.g. "make it night and add rain".
    references
    string[]
    Optional photos (fil_ ids, up to 4) of what should appear. With photos it is billed per scene instead.
    Example response
    {
      "files": [
        {
          "id": "fil_01JDXH",
          "kind": "video"
        }
      ]
    }
    $0.03 / secondAsync
  • Mira video edits

    Swap the place

    edit.scene

    Keep the people and the action, change where it happens.

    Parameters
    ParameterDescription
    video
    string · required
    The clip to edit: a public link (https) or the file id (fil_…) of a video in your library. Up to 15 seconds are edited.
    prompt
    string · required
    The new place, e.g. "a snowy mountain ridge at dawn".
    references
    string[]
    Optional photos (fil_ ids, up to 4) of the new place.
    Example response
    {
      "files": [
        {
          "id": "fil_01JDXH",
          "kind": "video"
        }
      ]
    }
    $0.03 / secondAsync
  • Mira video edits

    Swap an outfit or object

    edit.outfit

    Change what someone wears or holds, or any object in the shot.

    Parameters
    ParameterDescription
    video
    string · required
    The clip to edit: a public link (https) or the file id (fil_…) of a video in your library. Up to 15 seconds are edited.
    prompt
    string · required
    What to swap and for what, e.g. "swap the red jacket for a black leather one".
    references
    string[]
    Optional photos (fil_ ids, up to 4) of the new outfit or object.
    Example response
    {
      "files": [
        {
          "id": "fil_01JDXH",
          "kind": "video"
        }
      ]
    }
    $0.03 / secondAsync
  • Mira video edits

    Swap a person

    edit.person

    Replace a person in the clip with the one in your photos.

    Parameters
    ParameterDescription
    video
    string · required
    The clip to edit: a public link (https) or the file id (fil_…) of a video in your library. Up to 15 seconds are edited.
    prompt
    string · required
    Who to replace, e.g. "replace the woman on the left with the person in photo 1".
    references
    string[] · required
    Photos (fil_ ids, 1 to 4) of the new person. Use only people who agreed to it.
    Example response
    {
      "files": [
        {
          "id": "fil_01JDXH",
          "kind": "video"
        }
      ]
    }
    $0.78 / sceneAsync
  • Mira video edits

    Copy the motion

    edit.motion

    Put the people in your photos into the clip's exact moves.

    Parameters
    ParameterDescription
    video
    string · required
    The clip to edit: a public link (https) or the file id (fil_…) of a video in your library. Up to 15 seconds are edited.
    prompt
    string · required
    Who moves, e.g. "the person in photo 1 does the dance".
    references
    string[] · required
    Photos (fil_ ids, 1 to 3) of the people who take over the motion. Use only people who agreed to it.
    Example response
    {
      "files": [
        {
          "id": "fil_01JDXH",
          "kind": "video"
        }
      ]
    }
    $0.01 / secondAsync

Pricing

from $0.01 / second

Billed per call to one prepaid balance. No vendor accounts, no subscription.

Code

import { createNaive } from "@usenaive-sdk/naive"; const naive = createNaive(); // reads NAIVE_API_KEYconst run = await naive.tools.run("edit.prompt", {"video":"https://files.usenaive.ai/beach.mp4","prompt":"make it golden hour and add light rain"}, { wait: true });console.log(run.output);

Related tools

  • Naive

    Text or image to video with sound, 5–15 s.

    $0.05
    per second
    1 action
  • Naive

    A long video cut into short, captioned clips.

    at cost + $0.10
    per job
    1 action
  • Naive

    Text to image and image editing, up to 4K.

    from $0.004
    per image
    2 actions