Open Layo
Browse

Prices

Price a video

On this page
POST/v1/prices/videos

NeedsGenerateNo chargeMCP toolget_video_price

What this video costs, what the workspace can spend, and whether it can start: what would stop it, and what we'd change to start it. Nothing is charged. A spoken video's price depends on its line, so ask for that one here rather than working it out.

Authorization

  • Authorizationstringrequired

    Bearer then the key, with the generate scope. A Layo API key, from layo.co/api-keys.

Body

  • influencerstring<uuid>

    An influencer with a chosen look, who stars in it. Leave it out to make the video from the prompt and reference images, or a start frame; a line needs one.
  • promptstringrequired

    What happens in the video. Up to 10,000 characters, by model: seedance-2.5: 10,000; h3-max: 5,520; wan-3.0-prime: 10,000; kling-4: 10,000. With line on seedance-2.5: 10,000.

    Range: 1 <= length

  • modelenum<string>required

    Start with seedance-2.5 when the person hasn't picked one, as layo.co does. With line, the model says the line when it can: seedance-2.5: up to 30 s; h3-max: up to 15 s; wan-3.0-prime: up to 15 s. Any other model is said by seedance-2.5. A line too long for the one picked is refused: shorten the line, or pick seedance-2.5.

    Available options: seedance-2.5h3-maxwan-3.0-primekling-4

  • qualityenum<string>required

    By model: seedance-2.5: 480p, 720p, 1080p (default 720p); h3-max: 480p, 768p, 1080p (default 768p); wan-3.0-prime: 480p, 720p, 1080p (default 720p); kling-4: 720p, 1080p (default 720p). With line on seedance-2.5: 480p, 720p, 1080p; on the others, the model's own.

    Available options: 480p720p768p1080p

  • durationSecondsinteger

    Whole seconds, by model: seedance-2.5: 4–30 (default 5); h3-max: 4–15 (default 5); wan-3.0-prime: 2–30 (default 5); kling-4: 3–30 (default 5). Leave it out for the model's default. With line, leave it out: a spoken video is as long as its line.

    Range: 2 <= x <= 30

  • aspectenum<string>

    The requested shape. With a start frame, leave it out to choose the model's supported shape nearest that picture's width and height. Without a start frame, leave it out for 9:16 (vertical). By model: seedance-2.5: 9:16, 3:4, 1:1, 4:3, 16:9, 21:9; h3-max: 9:16, 3:4, 1:1, 4:3, 16:9, 21:9; wan-3.0-prime: 9:16, 3:4, 1:1, 4:3, 16:9; kling-4: 9:16, 3:4, 1:1, 4:3, 16:9, 21:9. With line on seedance-2.5: 9:16, 1:1, 16:9; on the others, the model's own.

    Available options: 9:163:41:14:316:921:9

  • linestring

    What the influencer says, in their voice (one is made first if they have none). Without it, any voice in the video is the model's own, not the influencer's.
  • mediasobject[]

    The references, in order: images, clips (MP4) and audio (WAV, MP3 or M4A) for the video to use, and the pictures it starts or ends on. Each item is one file: its type, one source (url, id, generationId or file), its purpose and an optional note. Purposes by type: image: person, product, style, scene, start_frame, end_frame; video: person, style, scene, motion; audio: voice. start_frame and end_frame are the frames; every other purpose makes the file a reference image, clip or audio file. Layo writes one sentence per reference into the prompt, numbered per type in list order: "Image 2 is the product: the red jacket." With an influencer their look is Image 1 (on kling-4 it is @Element1), so your first image is Image 2. Refer to them the same way in prompt, by model: seedance-2.5: @Image1, @Video1, @Audio1; h3-max: Image 1, Video 1, Audio 1; wan-3.0-prime: Image 1, Video 1, Audio 1; kling-4: @Image1, @Video1, @Audio1, the look @Element1. How many each model takes, images: seedance-2.5: 30 (29 with an influencer); h3-max: 9 (8 with an influencer); wan-3.0-prime: 10 (9 with an influencer); kling-4: 10 (10 with an influencer). clips: seedance-2.5: 10, 2–30 s each, 30 s in all; h3-max: 3, 2–15 s each, 15 s in all; wan-3.0-prime: 5, 1–15 s each, 15 s in all; kling-4: 5, 3–30 s each, 30 s in all. audio: seedance-2.5: 10, 1.8–30 s each, 30 s in all; h3-max: 3, 2–15 s each, 15 s in all; wan-3.0-prime: 5, 2–15 s each, 15 s in all; none on kling-4. files in all, an influencer's look included: seedance-2.5: 50; h3-max: 12; kling-4: 15. More than the model takes is refused, never dropped. Clips' seconds are priced; audio costs nothing. Frames stand alone: a start_frame, and optionally an end_frame, with no other references and no line. The start frame is who stars and sets the default shape. start_frame: Every model takes one. end_frame: Every model takes one. When the person means something made before ("the jacket video", "that take"), find it with list_videos, list_images or get_generation and pass its id as generationId, rather than asking for an upload. Only send a voice you have the right to use: your own, or one you have permission for.

    Range: items <= 50

    Show child attributes
    • typeenum<string>required

      image (JPEG, PNG or WebP), video (MP4) or audio (WAV, MP3 or M4A).

      Available options: imagevideoaudio

    • urlobject

      By public https link, as { download_url, file_id }. In ChatGPT, use file for an attached file instead.
      Show child attributes
      • download_urlstring<uri>required

        A public https link to the file: a JPEG, PNG or WebP image, an MP4 clip, or WAV, MP3 or M4A audio. Layo fetches it once when the video is made; a price read fetches a clip or audio to read its length and keeps nothing.

        Range: length <= 4096

      • file_idstringrequired

        Your name for this file. Send the same one when you repeat a request: it's how a repeat knows it, even if the link changed.

        Range: 1 <= length <= 200

      • mime_typestring

        Ignored: Layo reads the format from the file.

        Range: length <= 100

      • file_namestring

        Ignored.

        Range: length <= 255

    • idstring<uuid>

      A file you uploaded with create_upload and complete_upload (its answer's id).
    • generationIdstring<uuid>

      A finished Generation in this workspace, from list_videos, list_images or get_generation: its first output. An image or influencer look for an image, a video for a video, a spoken line for audio. A video made before Layo kept video lengths is refused: download it and send it as a file.
    • fileinteger

      The position (from 0) of a file in files: in ChatGPT, one the person attached.

      Range: 0 <= x <= 49

    • purposeenum<string>required

      What it's for. By type: image: person, product, style, scene, start_frame, end_frame; video: person, style, scene, motion; audio: voice.

      Available options: personproductstylescenemotionvoicestart_frameend_frame

    • notestring

      What it shows, in a few words of your own ("the red jacket"), up to 100 characters. Said after its purpose in the prompt; counted with prompt toward the model's characters. Not used on a frame.

      Range: length <= 100

  • filesobject[]

    In ChatGPT, the files the person attached (images, clips, audio): name each from medias by its position (file, from 0), and name every one. Elsewhere, leave it out and use an item's url.

    Range: items <= 50

    Show child attributes
    • download_urlstring<uri>required

      A public https link to the file: a JPEG, PNG or WebP image, an MP4 clip, or WAV, MP3 or M4A audio. Layo fetches it once when the video is made; a price read fetches a clip or audio to read its length and keeps nothing.

      Range: length <= 4096

    • file_idstringrequired

      Your name for this file. Send the same one when you repeat a request: it's how a repeat knows it, even if the link changed.

      Range: 1 <= length <= 200

    • mime_typestring

      Ignored: Layo reads the format from the file.

      Range: length <= 100

    • file_namestring

      Ignored.

      Range: length <= 255

Response

application/json

OK

  • creditsnumber | nullrequired

    What this costs, from the rate card. Null when it can't be priced until a finding is fixed.

    Range: x >= 0

  • balancenumberrequired

    Credits the workspace can spend now. Negative while it owes credits.
  • outcomeenum<string>required

    ready: it can start (with adjustments made). needs: one thing is missing, such as credits. stop: it can't start as asked. wait: it would wait for a slot.

    Available options: readyneedsstopwait

  • findingsStartFinding[]required

    What stops or holds it, the first one leading. Empty when it's ready.
    Show child attributes
    • ruleenum<string>required

      A fixed id. Safe to branch on.

      Available options: signed_outaccount_unavailableview_onlyno_influencerlook_in_progressprompt_missingprompt_too_longclip_missingclip_unusedclip_too_shortclip_trimmedclip_unreadablephoto_unsupportedreferences_overreferences_too_longaudio_unusedaudio_lengthaudio_unreadableimages_unusedimages_overupload_missingreference_unfitclip_unfitaudio_unfitframe_unfitend_frame_aloneframes_unusedend_frame_unusedframes_not_aloneframes_with_linevoiceover_no_lineswap_voiceoverline_too_long_for_modelvoice_madevoice_engine_downaspect_changeduploadingstartingchoice_unavailableprice_unavailablecredits_shortslots_fullwill_waitwaiting_fulllook_change_emptydescribe_or_photo

    • messagestringrequired

      A plain sentence an assistant can repeat.
    • inputstring | nullrequired

      The field it's about, when it's about one.
  • adjustmentsStartAdjustment[]required

    What we'd change to start it. Tell the person before creating it.
    Show child attributes
    • ruleenum<string>required

      A fixed id. Safe to branch on.

      Available options: clip_trimmedimages_overvoice_madeaspect_changedchoice_unavailable

    • messagestringrequired

      What we change to start it, in a sentence an assistant can repeat.