Skip to content

    Music Video

    Music Video API

    Availability varies by operationOpen App ↗

    Music Video (MV) turns a song into a finished MP4 with generated visuals. You send an audio URL (or a Suno clip), a creative direction and output settings; OmnAPI plans the shots, generates them, adds captions when asked and assembles the final video.

    • Base URL: https://api.omnapi.com, authenticated with x-api-key.
    • Scopes: task:create to quote, buy and delete, task:read to poll and read results, task:cancel to cancel. Keys created without scopes can do all three.
    • Asynchronous: a purchase returns a video (Omn) or a receipt (OneClick) with a taskId. Poll, stream or receive a webhook, then download the final video.
    • Length: 10 seconds to 10 minutes of audio.
    • 中文: Omn 对接指南(中文).

    Both models turn a song into a finished music video and share the same flow: quote (free), buy once, wait, download. They differ in output options, creative controls and price.

    OmnOneClick
    Best forSinging, story or mood videos at a fixed per-second priceAutomatic video from a prompt and references, up to 1080p and High quality
    Creative controlauto, sing, story, mood; one performer; style and location references; captionsPrompt, references, optional lip-sync, creative and prompt modes
    OutputNative 480p/768p; AI-upscaled 1080p/1440p (2K)540p, 720p, 1080p; Standard or High quality
    Aspect ratios21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:16, 9:2116:9, 9:16, 1:1, 4:3, 3:4
    Audio length10–600 s10–600 s (long videos are split and joined automatically)
    Price480p 9, 768p 12, 1080p 20, 1440p 48 credits/s, everything includedQuoted per request
    Follow-up editsRegenerate shots or recut, each as a new video (how)Scene edit, select rendering, recompose
    Endpoint/api/v2/mv (or /api/v1/mv with generation.engineVersion: "omn-v1")/api/v1/mv

    OneClick Turbo is retired. Since November 12, 2026 it no longer accepts purchases: requests with generation.engineVersion: "vidu-v2", generation.managedVersion: "premium-v2" or a *_turbo performance mode return 422 MV_ENGINE_UNSUPPORTED with details.reason: turbo_retired before any charge. Turbo videos you already bought stay readable on /api/v1/mv.

    Studio (Beta) is a manual workflow on /api/v1/mv (mode: "studio"): you review a storyboard, render scenes yourself and assemble the shots you pick. See Studio.

    Keep every saved MV and retry on the endpoint that created it — changing /v1/ to /v2/ does not migrate a resource and returns 409 CONFLICT (details.reason: resource_contract_mismatch).

    Prices are in credits. A quote (Omn) or preflight (OneClick) returns the exact amount for your request; use it, not the tables, to approve a purchase.

    Omn — billed per second of output, rounded up. The creative mode does not change the price; planning, reference images and captions are included. Videos shorter than 10 effective seconds are rejected, never padded.

    Delivery resolutionCredits / second60 s video
    480p9540
    768p12720
    1080p (AI-upscaled)201,200
    1440p / 2K (AI-upscaled)482,880

    OneClick — priced per request by duration, resolution, quality, lip-sync and any generated Visual Board images. Call POST /api/v1/mv/quote or preflight for the amount. For example, 60 seconds at Standard 720p is 960 credits without lip-sync and 1,440 with lip-sync, before images and captions.

    On a OneClick contract price? Omn has no customer discounts, so your OneClick contract price can be lower than Omn’s list price, especially at 1080p. Compare both prices with POST /api/v2/mv/migrations/v1-check before you switch; see Move from OneClick to Omn. The machine-readable price card is GET /api/v1/pricing/catalog (public, no key). Refunds and credit value are covered in Credits and refunds.

    Set output.resolution to 1080p or 1440p in an Omn spec (1440p is the API value for 2K; 2K is rejected). Both are AI-upscaled from a 768p render. At 16:9 the file is 1920 × 1080 or 2560 × 1440; at 9:16 the dimensions are swapped. All 11 Omn aspect ratios are supported.

    Before offering HD to your users, read GET /api/v2/mv/capabilities. availableResolutions lists what can be bought right now: 1080p and 1440p are left out while AI upscaling is unavailable, and a quote for them then returns 503 MV_PROVIDER_UNAVAILABLE without charging. resolutions is the full catalog.

    {
    "source": { "type": "audio_url", "url": "https://example.com/song.mp3" },
    "creative": { "mode": "mood", "brief": "An empty coastal road at dawn" },
    "output": { "resolution": "1440p", "aspectRatio": "16:9" },
    "captions": { "mode": "off" }
    }

    The price covers the whole order, including upscaling, planning and captions. An HD order is never completed with a lower-resolution file: if the HD file cannot be produced, or its measured size is wrong, the video fails with MV_CENTER_HD_FAILED and the entire charge is refunded. When it succeeds, GET /api/v2/mv/videos/{id}/file returns the measured width, height and resolution. The Postman collection includes 1080p and 2K quotes.

    1. Quote the exact request. Omn: POST /api/v2/mv/quotes; OneClick: POST /api/v1/mv/preflight. The quote downloads and validates your audio and images, measures the real duration and returns the price and an expiry (about 10 minutes). It charges nothing. Any change to the request needs a new quote. GET /api/v2/mv/capabilities lists what Omn sells.
    2. Buy once with the quote, a maxCredits ceiling you approve and an Idempotency-Key header. Credits are deducted when the video is accepted.
    3. Wait. Omn: poll GET /api/v2/mv/videos/{id}, stream GET /api/v2/mv/videos/{id}/events, or pass webhookUrl — see Track an Omn video. OneClick: poll GET /api/v1/tasks/{taskId} or pass config.webhookUrl. Generation takes minutes, not seconds, and longer for longer songs and HD.
    4. Download. Omn: GET /api/v2/mv/videos/{id}/file; OneClick: GET /api/v1/mv/{mvId}/final. The URL is signed and expires; read it again for a fresh one.

    Rules that apply to every paid call:

    • Idempotency. Generate the key once, save it with the exact body, and reuse both if the response is lost. A new key means a new purchase. Retry rules.
    • Spending ceiling. maxCredits caps the charge. If the final price is higher, the request fails with 402 and nothing is charged. The ceiling never makes the service lower your resolution or change your mode.
    • IDs. Every purchase has a taskId; Task webhooks and GET /api/v1/tasks/{taskId} use it. An Omn video’s id is the same value and never changes, so store either one.

    This creates a 40-second Omn singing video at 768p with automatic captions. Replace the URLs with publicly reachable files.

    Terminal window
    export OMNAPI_KEY="your-api-key"
    # 1. Quote the request (free)
    cat > mv-spec.json <<'JSON'
    {
    "source": { "type": "audio_url", "url": "https://example.com/song.wav", "range": { "startSec": 0, "endSec": 40 } },
    "creative": { "mode": "sing", "brief": "A singer walks through a rain-lit city.", "style": "Cinematic realism, blue and violet light" },
    "references": { "performer": { "imageUrl": "https://example.com/singer.png" } },
    "output": { "resolution": "768p", "aspectRatio": "16:9" },
    "captions": { "mode": "auto", "required": true }
    }
    JSON
    curl -X POST https://api.omnapi.com/api/v2/mv/quotes \
    -H "x-api-key: $OMNAPI_KEY" -H "Content-Type: application/json" \
    --data @mv-spec.json -o quote.json
    jq '{id, price, expiresAt, warnings}' quote.json
    # 2. Buy once. Run the uuidgen line once and keep the key for any retry.
    uuidgen > mv-key.txt
    jq '{quoteId: .id, maxCredits: .price.credits}' quote.json > mv-buy.json
    curl -X POST https://api.omnapi.com/api/v2/mv/videos \
    -H "x-api-key: $OMNAPI_KEY" -H "Content-Type: application/json" \
    -H "Idempotency-Key: $(cat mv-key.txt)" \
    --data @mv-buy.json -o video.json
    VIDEO_ID=$(jq -r .id video.json)
    # 3. Read every 15–30 seconds until completed, failed or cancelled
    curl https://api.omnapi.com/api/v2/mv/videos/$VIDEO_ID -H "x-api-key: $OMNAPI_KEY"
    # 4. Read the video file URL
    curl https://api.omnapi.com/api/v2/mv/videos/$VIDEO_ID/file -H "x-api-key: $OMNAPI_KEY"

    The purchase body references the saved quote:

    { "quoteId": "REPLACE_WITH_QUOTE_ID", "maxCredits": 480 }

    To quote and buy in one call, send { "spec": { … }, "maxCredits": 480 } instead. If the purchase response is lost, repeat step 2 with the same key file and body — do not quote again or generate a new key. Download the MP4 without sending your API key to the media URL.

    An Omn spec has source (audio), creative (what the video shows), output (resolution and aspect ratio) and optional references and captions. Pick one creative.mode:

    creative.modeResultRequirements
    auto (default)Song-led direction; Omn decides whether people appear; no singing—
    singThe referenced performer sings the song, lip-syncedreferences.performer
    storyA narrative from the lyrics or your briefstorySource: lyrics or brief (brief must be non-empty)
    moodAtmosphere and visual motifs—

    Set creative.people: "none" for a video without people (not with sing). Non-singing videos need no reference images at all.

    A brief-led story without people:

    {
    "source": { "type": "audio_url", "url": "https://media.example.com/song.mp3" },
    "creative": {
    "mode": "story",
    "storySource": "brief",
    "brief": "A paper bird crosses a rainy hometown at dawn",
    "people": "none"
    },
    "output": { "resolution": "480p", "aspectRatio": "9:16" },
    "captions": { "mode": "off" }
    }

    References. references.performer is one { imageUrl, description? } — the singer for sing, or the main character otherwise. references.styles and references.locations take up to three image URLs each (PNG, JPEG or WebP; 10 MB for the performer, 12 MB otherwise).

    Brief and style. Put content in creative.brief and visual treatment in creative.style. If your brief conflicts with the period or culture the song suggests, Omn keeps your explicit requirements and returns the advisory warning MV_CREATIVE_BRIEF_SONG_WORLD_CONFLICT.

    OneClick uses /api/v1/mv with mode: "fast". Preflight, then send the same body plus preflightId and maxCredits to POST /api/v1/mv:

    {
    "mode": "fast",
    "generation": { "engineVersion": "vidu-v1", "managedVersion": "oneclick-v1" },
    "source": { "type": "audio", "audioUrl": "https://media.example.com/song.mp3", "durationSec": 30 },
    "prompt": "warm coastal indie pop video, gentle camera motion",
    "aspectRatio": "9:16",
    "resolution": "720p",
    "subtitles": false
    }
    • References: up to 7 referenceImages (12 MB each). Omit them and OmnAPI generates a Visual Board of 1–7 reference images based on duration.
    • Lip-sync: set lipSync: true with a clear, front-facing characterImage; use 720p or 1080p.
    • Quality: generation.quality is standard or high (high needs 720p or 1080p).
    • Direction: generation.creativeMode (auto, lyrics_story, prompt_story, mood_visual, performance) and generation.promptMode (auto, verbatim, creative_brief). prompt_story requires prompt. generation.style adds a fixed visual style hint.
    • Generated references: generation.referenceStrategy is direct (default when you send referenceImages) or synthesize (OmnAPI first builds a unified Visual Board). generation.visualBoard.imageProvider picks the image model (gpt-image-2, p-image, viduq2); generation.visualBoard.preset is auto, speed, detail or off. With synthesize, characterImage becomes the identity reference and at most six other references are used (MV_REFERENCE_IMAGES_TRUNCATED_FOR_CHARACTER reports the cut).
    • Camera motion: omit generation.motionPreset for automatic selection, or set stable_performance, cinematic_light, dynamic_dance or lip_sync_closeup.
    • A downloadable Python program runs the whole flow with saved keys and resumable polling.

    You can move a OneClick integration to Omn in three ways, from least to most change:

    1. Ask us to switch your API key. We set your key to buy its OneClick requests as Omn; your code does not change. Requests Omn cannot serve keep using OneClick before any charge (or fail, if you prefer).
    2. Add one field to your existing /api/v1/mv request: generation.engineVersion: "omn-v1".
    3. Use /api/v2/mv. POST /api/v2/mv/migrations/v1-check takes your existing /api/v1/mv body and returns the matching Omn spec, every field mapping, what would block migration and both prices. It charges nothing and does not download your media.

    OneClick settings map like this (the response carries MV_OMN_RESOLUTION_MAPPED when the resolution changes):

    OneClickOmn
    resolution omitted or 540p480p — fewer pixels than 540p (832×480 vs 960×540), 9 instead of 12 credits/s
    720p768p — 12 instead of 16 (24 with lip-sync) credits/s
    lipSync: true with characterImagesing with that performer
    No lip-syncauto (lyrics_story / prompt_story → story, mood_visual → mood)
    1080pSame delivery tier, AI-upscaled from 768p, 20 credits/s; compare the quotes
    prompt / generation.stylecreative.brief / creative.style
    referenceImages 1–3 / 4–6references.styles / references.locations (more than 6 blocks migration)
    subtitles, subtitle, srtUrlcaptions (auto or provided)
    generation.quality: "high", two singers, dance or instrument performances, motion video, Studio, uploaded audioNot available — keep OneClick

    OneClick-only tuning — generation.promptMode, generation.referenceStrategy, generation.visualBoard, generation.motionPreset — has no Omn equivalent and does not block migration; Omn plans the shots itself. v1-check lists every mapping it applies (mappings) and everything that blocks (reasons, each with a field and code).

    Before switching a production integration:

    • Price. Omn list prices apply; OneClick contract discounts do not carry over. Compare price.omnCredits and price.oneClickCredits from v1-check.
    • 480p is smaller than 540p (832 × 480 vs 960 × 540).
    • Edits make new videos. An Omn edit (regenerate shots or recut) is a new, separately billed video; the original is unchanged. On /api/v1/mv a prompt-only scene edit works this way, while select rendering, scene edits with referenceImages and resolution upgrades are not available (details).
    • Ids and reads. A video stays on the API that bought it: with option 1 or 2 you keep reading /api/v1/mv and /api/v1/tasks; with option 3 you read /api/v2/mv/videos.

    POST /api/v2/mv/videos takes quoteId or the same spec, plus maxCredits and webhookUrl. Unknown fields, including engine selectors, are rejected.

    An Omn video request.

    Required, optional and null

    Required fields apply within their object and selected option. An optional object may be absent; when present, its required fields must be included. Required and nullable are independent: null is allowed only where listed.

    Only the listed fields are accepted in this object.

    • Request · sourceRequired

      object

      The song.

      Use a complete option below; the value must satisfy at least one option.

      2 options
      • Request · Option 1 — type = "audio_url"Option

        object

        Only the listed fields are accepted in this object.

        4 fields
        • Request · source.typeRequired

          "audio_url"

          Audio from a public URL.

        • Request · source.urlRequired

          string

          Public HTTPS audio URL (MP3, WAV, AAC, M4A; ≤ 128 MB).

          Maximum characters: 4096. Format: uri.

        • Request · source.lyricsOptional

          string

          Song lyrics, one line per line; improve story and captions.

          Maximum characters: 5000.

        • Request · source.rangeOptional

          object

          Use only this part of the song (10–600 s).

          Only the listed fields are accepted in this object.

          2 fields
      • Request · Option 2 — type = "suno_clip"Option

        object

        Only the listed fields are accepted in this object.

        4 fields
        • Request · source.clipIdRequired

          string

          Suno clip id you own.

          Minimum characters: 1. Maximum characters: 128.

        • Request · source.typeRequired

          "suno_clip"

          Audio from your Suno clip.

        • Request · source.lyricsOptional

          string

          Song lyrics, one line per line; improve story and captions.

          Maximum characters: 5000.

        • Request · source.rangeOptional

          object

          Use only this part of the song (10–600 s).

          Only the listed fields are accepted in this object.

          2 fields
    • Request · captionsOptional

      object

      Burned-in captions.

      Only the listed fields are accepted in this object.

      4 fields
      • Request · captions.modeRequired

        "off" | "auto" | "provided"

        off, auto (timed from the audio) or provided (your SRT).

        Default: "off".

      • Request · captions.languageOptional

        "auto" | "en" | "zh"

        Caption language: auto (detect from the song), en (English) or zh (Chinese).

        Default: "auto".

      • Request · captions.requiredOptional

        boolean

        Fail instead of delivering without captions.

      • Request · captions.srtUrlOptional

        string

        Public SRT URL (≤ 4 MB), times relative to the used range.

        Maximum characters: 4096. Format: uri.

    • Request · creativeOptional

      object

      What the video shows.

      Only the listed fields are accepted in this object.

      5 fields
      • Request · creative.briefOptional

        string

        What the video shows: story, setting, people, events.

        Maximum characters: 3000.

      • Request · creative.modeOptional

        "auto" | "sing" | "story" | "mood"

        auto: Omn chooses the direction and whether people appear (no singing). sing: the referenced performer sings the song (lip-synced, requires references.performer). story: a narrative from the lyrics or brief (requires storySource). mood: atmospheric visuals.

        Default: "auto".

      • Request · creative.peopleOptional

        "auto" | "none"

        none: no people or characters on screen (not with sing).

        Default: "auto".

      • Request · creative.storySourceOptional

        "lyrics" | "brief"

        Required when mode is story, not allowed otherwise. lyrics: tell the story of the lyrics. brief: tell the story in creative.brief (brief required).

        Default: "lyrics".

      • Request · creative.styleOptional

        string

        Visual treatment: look, palette, camera feel.

        Maximum characters: 1000.

    • Request · outputOptional

      object

      Resolution and aspect ratio.

      Only the listed fields are accepted in this object.

      2 fields
      • Request · output.aspectRatioOptional

        "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "3:2" | "2:3" | "21:9" | "5:4" | "4:5" | "9:21"

        Aspect ratio of the video.

        Default: "16:9".

      • Request · output.resolutionOptional

        "480p" | "768p" | "1080p" | "1440p"

        Delivery resolution. 480p and 768p are native; 1080p and 1440p (2K) are AI-upscaled from 768p. Default 768p. If 1080p/1440p cannot be delivered the video fails and the entire charge is refunded.

        Default: "480p".

    • Request · referencesOptional

      object

      Reference images.

      Only the listed fields are accepted in this object.

      3 fields
      • Request · references.locationsOptional

        array<string>

        Up to three images of places to show.

        Maximum items: 3.

        1 field
      • Request · references.performerOptional

        object

        The singer (required for sing) or main character: one PNG, JPEG or WebP image, at most 10 MB.

        Only the listed fields are accepted in this object.

        2 fields
      • Request · references.stylesOptional

        array<string>

        Up to three images that set the visual style, not identity.

        Maximum items: 3.

        1 field
        • Request · references.styles[]Each item

          string

          Public HTTPS URL.

          Maximum characters: 4096. Format: uri.

    • Request · titleOptional

      string

      Video title.

      Maximum characters: 200.

    Rules the schema cannot express:

    TopicRule
    Audio sourceOmn: source.type audio_url (url) or suno_clip (clipId). OneClick: audio (audioUrl) or suno (clipId). All accept optional lyrics (≤ 5,000 chars) and range: { startSec, endSec }.
    DurationMeasured from the audio (or the selected range). A client durationSec is only a hint and is rejected if it disagrees.
    Media URLsPublic HTTPS only; no uploads or base64. Keep them reachable until the video finishes. Audio ≤ 128 MB in MP3, WAV, AAC or M4A.
    LyricsSupplying lyrics improves story and caption wording. Use one lyric line per line and no section headings such as [Verse].
    Omn (/api/v2/mv)OneClick (/api/v1/mv)
    No captionscaptions: { "mode": "off" }subtitles: false
    Automaticcaptions: { "mode": "auto" }subtitles: true, subtitle: { "mode": "auto" }
    Your SRTcaptions: { "mode": "provided", "srtUrl": "…" }subtitles: true, subtitle: { "mode": "provided" }, srtUrl
    Must not be droppedcaptions.required: truesubtitle.required: true, fallback: "fail"
    Languagecaptions.language: auto, en, zhsubtitle.language (overrides top-level language)

    SRT files must be public, parseable and ≤ 4 MB, with cue times relative to the selected audio range. Automatic captions are machine estimates: send source.lyrics for exact wording or an SRT for exact timing, and review the result. On /api/v1/mv, subtitle.fallback: "continue_without_subtitles" lets the video finish without captions if recognition fails. Videos with burned-in captions cannot be upgraded to a higher resolution later.

    POST /api/v2/mv/quotes returns the normalized spec (defaults filled in), the fixed price and an expiry. price.credits is the amount to approve as maxCredits.

    {
    "id": "pf_0197f3a0c41e7b2a",
    "status": "valid",
    "expiresAt": "2026-11-15T08:10:00.000Z",
    "spec": {
    "source": { "type": "audio_url", "url": "https://example.com/song.wav", "range": { "startSec": 0, "endSec": 40 } },
    "creative": { "mode": "sing", "brief": "A singer walks through a rain-lit city.", "style": "Cinematic realism, blue and violet light", "people": "auto" },
    "references": { "performer": { "imageUrl": "https://example.com/singer.png" } },
    "output": { "resolution": "768p", "aspectRatio": "16:9" },
    "captions": { "mode": "auto", "required": true }
    },
    "price": { "credits": 480, "creditsPerSecond": 12, "billableSeconds": 40 },
    "warnings": []
    }

    GET /api/v2/mv/quotes/{id} re-reads it; status becomes used once bought and expired after expiresAt.

    The purchase response, GET /api/v2/mv/videos/{id}, every list item and every video stream event share this shape:

    {
    "id": "0197f3a1-6b2c-7d4e-9a10-3c5e8f2b7a61",
    "taskId": "0197f3a1-6b2c-7d4e-9a10-3c5e8f2b7a61",
    "status": "completed",
    "progress": 100,
    "spec": {
    "source": { "type": "audio_url", "startSec": 0, "endSec": 40, "durationSec": 40 },
    "title": null,
    "creative": { "mode": "sing", "brief": "A singer walks through a rain-lit city.", "style": "Cinematic realism, blue and violet light", "people": "auto" },
    "output": { "resolution": "768p", "aspectRatio": "16:9" }
    },
    "price": { "credits": 480, "refundedCredits": 0 },
    "warnings": ["MV_AUTO_SUBTITLE_GENERATED"],
    "failure": null,
    "links": {
    "self": "/api/v2/mv/videos/0197f3a1-6b2c-7d4e-9a10-3c5e8f2b7a61",
    "file": "/api/v2/mv/videos/0197f3a1-6b2c-7d4e-9a10-3c5e8f2b7a61/file",
    "events": "/api/v2/mv/videos/0197f3a1-6b2c-7d4e-9a10-3c5e8f2b7a61/events",
    "charges": "/api/v2/mv/videos/0197f3a1-6b2c-7d4e-9a10-3c5e8f2b7a61/charges",
    "shots": "/api/v2/mv/videos/0197f3a1-6b2c-7d4e-9a10-3c5e8f2b7a61/shots"
    },
    "createdAt": "2026-11-15T08:01:12.000Z",
    "updatedAt": "2026-11-15T08:19:40.000Z"
    }
    statusMeaningNext step
    queuedBought, waiting to startKeep waiting
    generatingShots are being madeKeep waiting; progress rises, /shots shows per-shot state
    deliveringAssembling and checking the final fileKeep waiting
    completedThe file is readyRead /file
    failedNo video will be deliveredRead failure; the charge is refunded
    cancelledCancelled at your requestThe charge is refunded
    deletedYou deleted itNothing to download

    These optional fields add detail. Treat each as absent when missing:

    FieldWhenMeaning
    stagequeued, generating, deliveringplanning, generating, reviewing, composing or delivering
    etaWhile queued or processingqueuePosition (0 = running), startAt, finishAt and remainingSeconds. An estimate, not a commitment; final delivery adds a few minutes
    waiting.reasonWhile pausedreview (held for a quality review), storyboard_approval, or candidate_selection (an edit waits for you to pick candidates)
    qualitycompletedgrade A, B or C and issues[] (type, text, shot, defects, at time spans). C is still a completed, charged delivery; watch the listed spans before publishing
    parentId, edit, candidatesVideos made by an editThe original video, the edit bought (action, shots, candidates) and the candidates per changed shot; null for a purchase

    A failed video names the reason in failure.code. failure.retryable says whether buying the same spec again may succeed; a new attempt always needs a new quote and a new Idempotency-Key.

    {
    "id": "0197f3a1-6b2c-7d4e-9a10-3c5e8f2b7a61",
    "status": "failed",
    "price": { "credits": 480, "refundedCredits": 480 },
    "failure": {
    "code": "MV_CENTER_QUALITY_FAILED",
    "message": "The video did not pass quality review",
    "retryable": false
    }
    }

    Refunds post asynchronously: price.refundedCredits can read 0 for a short time after failed or cancelled. Confirm with GET /api/v2/mv/videos/{id}/charges, where settlementStatus moves from PENDING to CHARGED (delivered) or REFUNDED:

    {
    "items": [
    {
    "operation": "create",
    "taskId": "0197f3a1-6b2c-7d4e-9a10-3c5e8f2b7a61",
    "authorizedCredits": 480,
    "chargedCredits": 480,
    "refundedCredits": 480,
    "netCredits": 0,
    "settlementStatus": "REFUNDED",
    "taskStatus": "FAILED"
    }
    ],
    "costSummary": { "authorizedCredits": 480, "chargedCredits": 480, "refundedCredits": 480, "netSpentCredits": 0, "operationCount": 1 }
    }

    GET /api/v2/mv/videos/{id}/file returns 409 with details.reason: file_not_ready until the video is completed, then:

    {
    "url": "https://media.omnapi.com/mv/0197f3a1-6b2c-7d4e-9a10-3c5e8f2b7a61/final.mp4?X-Amz-Signature=…",
    "expiresAt": "2026-11-15T09:20:00.000Z",
    "contentType": "video/mp4",
    "width": 1920,
    "height": 1080,
    "durationSec": 40,
    "resolution": "1080p",
    "retainedUntil": "2026-11-29T08:19:40.000Z"
    }

    Download the MP4 without your API key. The signed url works until expiresAt (about an hour); read /file again for a fresh one. The stored file is deleted after retainedUntil, so copy it to your own storage before then. width and height are measured from the file.

    POST /api/v2/mv/videos/{id}/cancel needs the task:cancel scope.

    • A queued video is cancelled at once.
    • A generating or delivering video is cancelled only after generation confirms it stopped. If that cannot be confirmed — or the video already finished — you get 409 CONFLICT; the video continues and is charged normally.

    A successful cancel returns the refund it triggers (posting is asynchronous; check /charges):

    { "id": "0197f3a1-6b2c-7d4e-9a10-3c5e8f2b7a61", "status": "cancelled", "refundedCredits": 480 }

    DELETE /api/v2/mv/videos/{id} deletes the stored files of a completed, failed or cancelled video; billing records are kept. A video still being made returns 409 CONFLICT with details.reason: video_in_progress — cancel it or wait first. A video cancelled before generation started has no stored files; deleting it succeeds with assetsDeleted: 0. GET /api/v2/mv/videos lists your videos newest first; pass nextCursor as cursor (and optionally limit, 1–50) for the next page.

    Use any one of these; all report the same status.

    Poll. Read GET /api/v2/mv/videos/{id} every 15–30 seconds, backing off to about 60 seconds for long songs or HD. Stop at completed, failed, cancelled or deleted. Polling never extends or changes the video.

    Stream. GET /api/v2/mv/videos/{id}/events is a server-sent event stream. Each video event’s data is the same JSON as GET /api/v2/mv/videos/{id}, sent when you connect and whenever status, progress, price, warnings, failure or the file link changes:

    retry: 3000
    id: 1763193700000-1
    event: video
    data: {"id":"0197f3a1-6b2c-7d4e-9a10-3c5e8f2b7a61","taskId":"0197f3a1-6b2c-7d4e-9a10-3c5e8f2b7a61","status":"generating","progress":40,…}
    : heartbeat
    id: 1763194780000-2
    event: video
    data: {"id":"0197f3a1-6b2c-7d4e-9a10-3c5e8f2b7a61","taskId":"0197f3a1-6b2c-7d4e-9a10-3c5e8f2b7a61","status":"completed","progress":100,…}

    The stream ends after a terminal status. Otherwise the server closes it after about 55 seconds; reconnect (a browser EventSource does this automatically, the SDK’s streamOmnVideo / stream_omn_video too). Every connection starts with the current snapshot, so nothing is lost between connections. event: unavailable means the stream could not continue; read GET /api/v2/mv/videos/{id} instead.

    Webhook. Pass webhookUrl when buying. You receive task.* events and mv.ready or mv.failed when the video settles; for Omn videos the body carries videoId and viewUrl / finalUrl pointing at /api/v2/mv/videos/{id} and its /file. Bodies, signatures and retries are in Webhook events. Treat a webhook as a signal and read the video before acting on it.

    Errors use the standard { "success": false, "error": { "code", "message", "details" } } body. Branch on error.code and error.details.reason, never on the message text.

    ResponseCharged?What to do
    Timeout, connection error or 5xx on POST /videosUnknownRepeat with the same Idempotency-Key and body until you get a definite answer
    400 VALIDATION_ERROR naming a fieldNoFix the field, quote again, use a new key
    400 VALIDATION_ERROR, reason quote_expiredNoQuote again; review the price; use a new key
    409 CONFLICT, reason quote_already_usedAlready boughtDo not buy again; read the video details.taskId
    409 CONFLICT, key used with a different bodyNoRestore the saved body for that key
    409 CONFLICT, key still being processedPendingWait a few seconds and repeat with the same key and body
    402 INSUFFICIENT_CREDITSNoTop up, then repeat with the same key and body
    402 INSUFFICIENT_CREDITS, reason MAX_CREDITS_EXCEEDEDNoThe price is above your maxCredits; approve a higher ceiling (new body, so new key) or quote again
    422 MV_ENGINE_UNSUPPORTEDNoChange the option named in details.reason; quote again
    503 MV_PROVIDER_UNAVAILABLE (capacity_unavailable and other retryable: true reasons)NoWait for Retry-After; if the quote is still valid repeat the purchase with the same key and body, otherwise quote again
    503 MV_PROVIDER_UNAVAILABLE with retryable: falseNoOmn cannot take this request now; use OneClick or try later
    429 RATE_LIMITEDNoWait for Retry-After; repeat with the same key and body
    404 on a video or quote—Wrong id, or it belongs to another account
    409 CONFLICT, reason file_not_ready—Wait for completed
    409 CONFLICT, reason video_in_progress (delete)—Cancel or wait, then delete
    409 CONFLICT on cancelCharged normallyThe video continues; nothing to undo
    409 CONFLICT, reason resource_contract_mismatch—The video was bought on /api/v1/mv; read it there
    409 MV_CENTER_EDIT_REFUSEDNoThe edit is not allowed; read details.refusals[], change the edit and quote again
    409 MV_CENTER_EDIT_IN_PROGRESSNoAnother edit of this video is running; wait for it to finish
    409 MV_CENTER_EDIT_NOT_PENDING (adopt)NoThe video is not waiting for a candidate selection
    422 MV_CENTER_EDIT_UNSUPPORTEDNoThis video cannot be edited (bought before November 14, 2026)

    Errors on quotes, capabilities and reads never charge. Video failures after purchase are reported in failure.code — see Troubleshooting and Errors.

    POST /api/v1/mv returns a receipt: save taskId, mvId and creditsRequired, poll GET /api/v1/tasks/{taskId} (PENDING → PROCESSING → COMPLETED, FAILED or CANCELLED), then read GET /api/v1/mv/{mvId}/final. videoUrl expires after about 60 minutes; when ready is false, follow staleReason (source_changed means recompose, how). The MV view (GET /api/v1/mv/{mvId}) adds scenes, version, warningCodes and costSummary; GET /api/v1/mv/{mvId}/operations lists charges.

    LimitValue
    AudioMP3, WAV, AAC, M4A; ≤ 128 MB; 10–600 effective seconds (Studio 10–300)
    Reference imagesOmn: one performer (≤ 10 MB) + up to 3 style and 3 location images (≤ 12 MB); OneClick ≤ 7 references (≤ 12 MB)
    SRT≤ 4 MB
    Prompt / briefOmn creative.brief ≤ 3,000 and creative.style ≤ 1,000 characters; OneClick prompt ≤ 3,000 (on /api/v1/mv with omn-v1, the prompt plus derived instructions must fit 4,000)
    Quote / preflight lifetimeUse before expiresAt (about 10 minutes)
    Signed media URLsAbout 60 minutes; read again to refresh
    Asset retentionAbout 14 days by default. Omn: retainedUntil on /videos/{id}/file; OneClick: retainedUntil / file expiry. Download anything you need to keep
    • Omn renders a limited number of videos at a time. When it is full, quotes and purchases return 503 MV_PROVIDER_UNAVAILABLE with details.reason: capacity_unavailable and Retry-After: 60 instead of accepting a video that would wait for hours. Nothing is charged.
    • A delivered Omn video can still carry review warnings or quality.grade: "C"; watch it before publishing. To change a finished video, buy an edit.
    • Subjective dissatisfaction is not a refund reason. Technical failures without a deliverable result are refunded automatically.
    SymptomCauseWhat to do
    Timeout or no response on a purchaseOutcome unknownRetry with the same Idempotency-Key and body. Never generate a new key to recover.
    409 CONFLICT on a retrySame key with a different body, a quote already bought (quote_already_used), or the first request still runningRestore the saved body; read error.details.taskId when present — see Errors and retries
    409 with resource_contract_mismatchCalled /api/v2/mv for a v1 resource, or the reverseUse the endpoint that created the MV
    400 VALIDATION_ERROR with quote_expiredQuote expired or missingQuote again, review the price, save a new key
    400 VALIDATION_ERROR naming a fieldUnknown field or inconsistent spec (for example sing without references.performer)Fix the named field
    400 MV_AUDIO_DURATION_INVALIDAudio or range shorter than 10 s or longer than 600 sChoose a valid range
    400 MV_RESOLUTION_INVALIDUnsupported resolution or High qualityUse 480p, 768p, 1080p or 1440p with standard quality
    MV_CENTER_HD_FAILEDThe purchased HD tier could not be delivered or its dimensions failed validationThe order fails and is refunded in full; check charges for posting
    MV_CENTER_SINGER_UNAVAILABLENo suitable singer was recognized in the performer imageUse a clear single-person portrait; the failed order is refunded in full
    400 MV_AUDIO_DOWNLOAD_FAILED, 413 MV_AUDIO_SOURCE_TOO_LARGEAudio URL unreachable, private or too largeHost the file publicly with a Content-Length; ≤ 128 MB
    402 INSUFFICIENT_CREDITSBalance below the price, or details.reason: MAX_CREDITS_EXCEEDED when the price is above your maxCreditsTop up or approve a higher ceiling; do not raise it automatically
    422 MV_ENGINE_UNSUPPORTEDThe mode or combination is not offered (details.reason), or turbo_retiredChange the named option; retrying unchanged will not help
    503 MV_PROVIDER_UNAVAILABLEModel busy (capacity_unavailable) or unavailableRetry after Retry-After when details.retryable is true
    429 RATE_LIMITEDToo many requests or active TasksHonor Retry-After; keep the same key and body
    Video failedGeneration failed after purchaseRead failure.code and retryable; credits are refunded (confirm on /charges); a new attempt needs a new quote and key
    MV_CENTER_QUALITY_FAILEDThe video still failed quality review after automatic repairsNot delivered and refunded in full; buy again with a clearer brief or references
    Captions have wrong wordsMachine recognition (MV_SUBTITLE_TEXT_REVIEW_REQUIRED)Send source.lyrics or a verified srtUrl
    Story ignores the lyricsNo usable lyrics (MV_CREATIVE_PLANNING_WITHOUT_LYRICS) or unverified recognition (MV_CREATIVE_PLANNING_FROM_UNVERIFIED_TRANSCRIPT)Provide source.lyrics

    Warnings never fail a delivered video; they tell you what to review:

    WarningMeaning
    MV_AUTO_SUBTITLE_GENERATEDCaptions were timed automatically — review them
    MV_AUTO_SUBTITLE_LOW_CONFIDENCEAutomatic captions were accepted with low confidence
    MV_AUTO_SUBTITLE_FALLBACK_SKIPPEDCaptions failed and your fallback allowed delivery without them
    MV_SUBTITLE_LYRICS_CORRECTEDCaption text was corrected; timing kept
    MV_CHARACTER_IMAGE_REFERENCE_IGNOREDThe selected image model could not use characterImage
    MV_LIP_REF_AUTO_DERIVE_SKIPPEDNo lip-sync reference could be prepared from characterImage — use a clearer frontal image
    MV_FACE_DETAIL_LOW_RESOLUTION_RISKFace-led video at 540p; prefer 720p or 1080p
    MV_REFERENCE_IMAGES_AUTOGENERATEDNo references were sent, so a Visual Board was generated
    MV_FAST_PROVIDER_DEGRADEDAccepted while delivery is slower or less reliable than usual
    MV_OMN_RESOLUTION_MAPPEDA OneClick resolution was delivered at the nearest Omn resolution (540p as 480p, 720p as 768p)

    The full error list is in Errors.

    NeedOmn (/api/v2/mv)OneClick (/api/v1/mv)
    OptionsGET /capabilitiesGET /fast/availability, GET /capabilities
    PricePOST /quotesPOST /quote, POST /preflight
    BuyPOST /videosPOST /
    ReadGET /videos/{id}GET /{mvId}
    Video fileGET /videos/{id}/fileGET /{mvId}/final
    CancelPOST /videos/{id}/cancelPOST /{mvId}/operations/{taskId}/cancel
    EditPOST /videos/{id}/edits/quote, POST /videos/{id}/editsPOST /{mvId}/scenes/{sceneIndex}/render, POST /{mvId}/finalize
    All Music Video endpoints

    Omn — /api/v2/mv

    MethodPathSummary
    GET/api/v2/mv/capabilitiesRead Omn capabilities
    POST/api/v2/mv/quotesQuote an Omn video
    GET/api/v2/mv/quotes/{id}Read an Omn quote
    POST/api/v2/mv/videosBuy an Omn video
    GET/api/v2/mv/videosList Omn videos
    GET/api/v2/mv/videos/{id}Read an Omn video
    DELETE/api/v2/mv/videos/{id}Delete an Omn video
    GET/api/v2/mv/videos/{id}/fileRead the delivered Omn video file
    GET/api/v2/mv/videos/{id}/eventsStream Omn video progress
    GET/api/v2/mv/videos/{id}/shotsRead Omn video shot progress
    GET/api/v2/mv/videos/{id}/chargesRead Omn video charges and refunds
    POST/api/v2/mv/videos/{id}/cancelCancel an Omn video
    POST/api/v2/mv/videos/{id}/edits/quoteQuote an edit of an Omn video
    POST/api/v2/mv/videos/{id}/editsBuy an edit of an Omn video
    GET/api/v2/mv/videos/{id}/candidatesRead the candidates of an edit
    GET/api/v2/mv/videos/{id}/candidates/{fileId}Download a candidate thumbnail or preview
    POST/api/v2/mv/videos/{id}/adoptAdopt candidates of an edit
    GET/api/v2/mv/videos/{id}/timelineRead the editable timeline of an Omn video
    POST/api/v2/mv/migrations/v1-checkCheck a OneClick V1 request for Omn

    OneClick, Studio and Omn on API v1 — /api/v1/mv

    MethodPathSummary
    GET/api/v1/mvList MVs
    POST/api/v1/mvCreate MV
    GET/api/v1/mv/capabilitiesRead MV generation capabilities
    POST/api/v1/mv/capabilities/checkCheck one Omn capability combination
    POST/api/v1/mv/draftsSave creative draft
    GET/api/v1/mv/drafts/{id}Read creative draft
    PUT/api/v1/mv/drafts/{id}Save creative draft
    POST/api/v1/mv/drafts/{id}/generateGenerate MV from creative draft
    POST/api/v1/mv/drafts/{id}/preflightPreflight creative draft
    POST/api/v1/mv/drafts/{id}/previewGenerate a ten-second creative preview
    POST/api/v1/mv/drafts/{id}/preview/preflightQuote a ten-second creative preview
    GET/api/v1/mv/fast/availabilityGet Fast MV availability
    POST/api/v1/mv/preflightPreflight MV create
    POST/api/v1/mv/quoteQuote MV credits
    GET/api/v1/mv/stylesList MV style cards
    GET/api/v1/mv/{mvId}Get MV
    DELETE/api/v1/mv/{mvId}Delete MV
    GET/api/v1/mv/{mvId}/finalGet final MV download URL
    POST/api/v1/mv/{mvId}/finalizeFinalize MV
    POST/api/v1/mv/{mvId}/lock-characterLock Studio character anchor
    GET/api/v1/mv/{mvId}/operationsList MV operations and costs
    POST/api/v1/mv/{mvId}/operations/{taskId}/cancelCancel MV operation
    POST/api/v1/mv/{mvId}/scenes/render-batchRender multiple Studio scenes
    PATCH/api/v1/mv/{mvId}/scenes/{sceneIndex}Edit Studio scene
    POST/api/v1/mv/{mvId}/scenes/{sceneIndex}/regenerate-imageRegenerate Studio scene image
    POST/api/v1/mv/{mvId}/scenes/{sceneIndex}/renderRender MV scene
    PATCH/api/v1/mv/{mvId}/scenes/{sceneIndex}/select-renderingSelect scene rendering
    POST/api/v1/mv/{mvId}/upgradeUpgrade an Omn MV to a higher render tier
    POST/api/v1/mv/{mvId}/upgrade/preflightPreflight an Omn MV render-tier upgrade
    GET/api/v1/tasks/{taskId}/workflowRead MV workflow and quality review
    GET/api/v1/tasks/{taskId}/workflow/artifactsList MV workflow artifacts
    GET/api/v1/tasks/{taskId}/workflow/artifacts/{assetId}Read MV workflow artifact access URL
    GET/api/v1/tasks/{taskId}/workflow/eventsRead MV workflow events
    GET/api/v1/tasks/{taskId}/workflow/streamStream durable MV workflow events

    Omn edits (regenerate, recut, candidates, timeline) and, for /api/v1/mv, drafts, previews, scene edits, recompose, upgrades, Studio and workflow events are on Drafts, edits and upgrades. SDK helpers: TypeScript · Python.