Skip to content
הדף עדיין אינו זמין בשפה שלכם, ולכן הוא מוצג באנגלית.
Kuaishou · Kling

kling-v4-flash API

Generate, edit, and extend 720p videos with kling-v4-flash on APISea.

יצירת וידאווידאומשימה אסינכרונית
מזהה מודל
kling-v4-flash

תמחור API של kling-v4-flash

כל המחירים נקובים ב-USD. תעריפי APISea בהשוואה למחירון הרשמי עבור אותה יחידה.

אפשרותAPISeaרשמיחיסכון
ברירת מחדלברירת מחדל$0.09429$0.08571—
720P$0.09429$0.08571—
720P · עם וידאו קלט$0.06286$0.05714—

המחירים הם לכל שנייה.

מהו kling-v4-flash?

kling-v4-flash is a Kuaishou Kling video model for generating clips from text, animating a single starting image, creating videos from image or video references, and editing or extending existing footage. On APISea, all five workflows use the same model ID, with the workflow selected by your assets and omni_reference_task_type. Output is 720p at 24fps, with integer generated durations from 3 to 20 seconds. Supported workflows offer aspect-ratio controls, while image-to-video follows the starting image and extension preserves the original ratio.

Submit requests to POST /v1/videos/generations using your APISea key, then poll the returned task_id for status and results. APISea provides pay-as-you-go access and bills only successful requests. Default and 720P pricing is $0.09429 per second; 720P · with input video is $0.06286 per second. Billing uses the integer duration, and for extension that duration specifies the added segment length.

המאפיינים הבולטים של kling-v4-flash

Five Video Workflows

Generate from text, animate one first-frame image, use references, edit footage, or extend a clip. All workflows use kling-v4-flash.

Image And Video References

Reference workflows accept up to 10 reference images and up to 5 reference videos, within a combined limit of 15 assets. Reference videos must total no more than 20 seconds.

Duration And Format Controls

Generate 3–20 seconds at 720p and 24fps. Text-to-video, reference generation, and editing support 16:9, 9:16, 1:1, and 21:9 aspect ratios.

Reference Audio Options

For reference generation with video, audio_setting set to origin preserves the first reference video's audio. The default auto setting generates new audio.

איך לקרוא ל-API של kling-v4-flash ב-4 שלבים

  1. 01

    יצירת מפתח API

    יש להתחבר ל-APISea, להוסיף יתרה החל מ-$50 וליצור מפתח sk-sea במסוף.

  2. 02

    הגדרת כתובת הבסיס

    יש להשתמש ב-https://api.apisea.ai/v1 ככתובת הבסיס ב-SDK או בלקוח HTTP.

  3. 03

    שליחת הבקשה

    יש לקרוא ל-POST /v1/videos/generations עם "model": "kling-v4-flash" והפרמטרים שלהלן.

  4. 04

    טיפול בתגובה

    התגובה מכילה task_id. יש לשלוח בקשות GET אל /v1/tasks/{task_id} עד שהסטטוס יהיה completed, ואז להוריד את כתובות ה-URL של התוצאות.

curl --request POST \
  --url https://api.apisea.ai/v1/videos/generations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "model": "kling-v4-flash",
    "prompt": "A paper boat drifts along a gutter on a rainy night, with the gentle sound of rain",
    "duration": 5,
    "resolution": "720p",
    "aspect_ratio": "9:16"
  }'

פרמטרים

פרמטרסוגנדרשברירת מחדלתיאור
modelstringנדרש—Must be `kling-v4-flash`.
nsfw_checkbooleanאופציונליfalseWhether to run content moderation before submitting the video task.
promptstringאופציונלי—Describe the content to generate or edit. Optional for image-to-video; required otherwise. Use `@Image1` / `@Video1` for references, numbered from 1 in each array. For editing, the input video is `@Video1` and reference images are `@Image1`, `@Image2`, and so on.
durationintegerאופציונלי—Integer seconds from `3` to `20`, normally defaulting to `5`. For editing, omission follows the input duration rounded up. For extension, this is the added segment length. Explicit `0` returns HTTP 400; `null` is equivalent to omission. Billing uses this integer duration; the actual file may be about one frame longer.
secondsintegerאופציונלי—Alias for `duration`, with the same rules. If both are provided, each must be within `3`–`20` and their values must match; otherwise HTTP 400.
resolutionstringאופציונלי720pOnly `720p`, the default when omitted. `1080p` returns HTTP 400. Selecting a tier with `mode` is not supported.
aspect_ratiostringאופציונלי—Text-to-video, reference generation, and editing support `16:9`, `9:16`, `1:1`, and `21:9`; only reference generation accepts `auto`. Image-to-video does not accept `aspect_ratio` or `size`: nonempty values return HTTP 400, while an empty string is treated as omitted. Crop the first frame beforehand to change the ratio.
image_urlsstring[]אופציונלי—Image-to-video accepts exactly one first frame; two images return HTTP 400. In reference generation and editing, these are reference images, up to 10. For image-only references, explicitly set `omni_reference_task_type: "reference"`. Asset URLs must be publicly accessible. First frames and reference images must be at least 300px wide and high, with a width-to-height ratio between 2:5 and 5:2. Invalid images return HTTP 400 at submission without charging.
image_with_rolesobject[]אופציונלי—Each item has `url` and `role`. Image-to-video accepts exactly one `first_frame`; reference generation and editing use `reference_image`. Last and intermediate frames are not supported. Up to 10 reference images and 15 assets total including reference videos. First frames and reference images must be at least 300px wide and high, with a width-to-height ratio between 2:5 and 5:2. Invalid images return HTTP 400 at submission without charging.
first_frame_imagestringאופציונלי—First-frame image URL for image-to-video. It can also be supplied as `first_frame` in `image_with_roles`, or as the first image in `image_urls`. First frames and reference images must be at least 300px wide and high, with a width-to-height ratio between 2:5 and 5:2. Invalid images return HTTP 400 at submission without charging.
video_urlsstring[]אופציונלי—Up to 5 reference videos, no longer than 20 seconds in total. Exceeding the limit returns HTTP 400; clips are not trimmed. For editing or extension, exactly 1 entry may replace `video_url`, with the corresponding task type explicitly set.
video_urlstringאופציונלי—Input video URL for editing or extension. Requires explicit `omni_reference_task_type: "edit"` or `"extend"`; otherwise HTTP 400. Editing input must be 3–20 seconds. Shorter than 3 or longer than 20 seconds is rejected without charging.
omni_reference_task_typestringאופציונליautoSupports `auto`, `reference`, `edit`, and `extend`.
audio_settingstringאופציונלי—For reference generation with video: `origin` preserves the first reference video’s audio; `auto` generates new audio and is the default. `origin` requires a reference video. If the first reference video has no audio track, the output has none either. Editing generates new audio and does not preserve the source audio; omit this parameter in editing requests. Extension does not accept it.

מה אפשר לבנות עם kling-v4-flash

Prompt-to-video tools

Build an interface that turns scene descriptions into short 720p clips, with duration and aspect-ratio controls.

Still-image animation

Let users supply one starting image to generate a video that follows its aspect ratio. Crop the image before submission to choose the framing.

Reference-guided production

Create a workflow where teams submit image and video references alongside prompts that identify assets with @Image1 and @Video1.

Clip editing and extension

Build tools for prompt-based edits to existing footage or for adding a generated segment, using explicit edit or extend task types.

טיפים לקבלת תוצאות טובות יותר

  • 01

    Select the workflow explicitly

    For editing or extension, supply video_url and set omni_reference_task_type to edit or extend. For image-only references, explicitly set it to reference.

  • 02

    Keep duration parameters consistent

    Use duration or its alias seconds with an integer from 3 to 20. If you send both, their values must match; billing uses this integer duration.

  • 03

    Prepare your first frame

    Image-to-video accepts exactly one first frame and no nonempty aspect_ratio or size value. Crop beforehand, and use a publicly accessible image at least 300px wide and high with a ratio between 2:5 and 5:2.

  • 04

    Poll after submission

    Save the returned task_id and query GET /v1/tasks/{task_id} for status and results. The generation endpoint is asynchronous.

מגבלות ודברים שכדאי לדעת

  • Only 720p is supported; 1080p and tier selection through mode are not supported.

  • Last and intermediate frames are not supported.

  • Reference videos may total at most 20 seconds and are not trimmed to fit the limit.

שאלות נפוצות על API של kling-v4-flash

How much does kling-v4-flash cost on APISea?

APISea Default and APISea 720P each cost $0.09429 per second. APISea 720P · with input video costs $0.06286 per second, with billing only for successful requests.

How do I call kling-v4-flash through the API?

Send an authenticated POST request to https://api.apisea.ai/v1/videos/generations with model set to kling-v4-flash and the inputs for your workflow. Use your APISea key for Bearer authentication, then poll GET /v1/tasks/{task_id} using the returned task_id.

What resolutions and durations does kling-v4-flash support?

Output is 720p at 24fps, with integer durations from 3 to 20 seconds. Duration normally defaults to 5 seconds; editing without a duration follows the input duration rounded up, while extension uses duration for the added segment.

Can kling-v4-flash use images and videos as references?

Yes, reference generation supports up to 10 reference images and 5 reference videos, with at most 15 assets combined. Reference videos must total no more than 20 seconds; use video_urls for video references rather than video_url.

Can I use kling-v4-flash output commercially?

Commercial use is subject to the provider's terms. Review Kuaishou's applicable terms and confirm rights to your input assets before using outputs commercially.

How does kling-v4-flash compare with other Kling models?

The Flash name positions it as a lighter, faster tier, but the supplied facts do not establish measured speed or quality differences against other Kling models. Compare documented capabilities and pricing for the specific models you are considering.

מודלים קשורים

עומק: יותר מ-250 מודלים · טעינת יתרה מינימלית $50

מתחילים לבנות עם kling-v4-flash

מפתח אחד, תשלום לפי שימוש החל מ-$50, וחיוב רק על בקשות שהצליחו.