{
  "schema_version": 1,
  "public_model_id": "kling/kling-4.0",
  "canonical_page": "https://www.maxapi.dev/models/kling/kling-4.0",
  "reviewed_at": "2026-11-23",
  "generated_at": "2026-11-23T10:48:50.156Z",
  "scope": "Checked against MaxAPI's public catalogue, gateway implementation and local regression cases. Shared gateway checks are not separate end-to-end tests of every listed model. This is an integration reference, not a live upstream availability or performance report.",
  "summary": "Kling 4.0 uses kling/kling-4.0 in MaxAPI's video-generation API. Submit a task, save its identifier, and poll for the final result. Acceptance is not completion. Supported media, duration and resolution depend on this model entry and the selected route.",
  "aliases": [],
  "model_profile": {
    "family_id": "kling/kling-4.0",
    "reviewed_at": "2026-11-23",
    "title": "Long shots, keyframes and video editing up to 4K",
    "provider_positioning": "Kling 4.0 is Kuaishou's video model. Kling documents 3–30 second clips at 720p, 1080p or 4K, with HDR at 1080p and 4K, from text, first/middle/last keyframes, reference images and videos, preset voices and video editing. MaxAPI offers it on the official route, billed per output second; as in Kling's own pricing, a request with input video also pays for the input length.",
    "selection_advice": "Compare it when a shot needs more than a few seconds, several keyframes in a fixed order, or an edit of an existing clip that keeps its camera move. Draft at 720p with a short duration, then render the chosen prompt at 1080p, 4K or HDR.",
    "limitations": "The price grows with duration, resolution and HDR, and an input video adds its own length to the bill. Element references are not available on MaxAPI. Check keyframe order and subject consistency across the whole clip; image-to-video follows the first frame's aspect ratio.",
    "suggested_use_cases": [
      {
        "title": "Storyboard to motion",
        "body": "Send the first, middle and last panels as keyframes and describe the motion between them, referring to each by its id."
      },
      {
        "title": "Edit an existing clip",
        "body": "Pass the clip as video_url and ask for one change, such as removing a passer-by, while keeping the camera movement."
      },
      {
        "title": "Longer single takes",
        "body": "Plan a continuous 15–30 second shot with a clear beginning, middle and end before paying for the longer duration."
      }
    ],
    "example_prompt": {
      "title": "A walk through three keyframes",
      "text": "Begin at @first, walk naturally through @middle_1 and finish at @last. Keep the character's clothing and the warm afternoon light consistent; one continuous shot, no cuts.",
      "review": "Check that the frames appear in order and the character does not change between them."
    },
    "scope": "Provider capabilities describe the model, not the complete MaxAPI feature set. Use the parameters, input types and routes documented for this MaxAPI entry. Vendor speed or quality descriptions are not service-level guarantees.",
    "variant_note": null,
    "sources": [
      {
        "label": "Kling · Kling 4.0 text-to-video API",
        "url": "https://kling.ai/document-api/api/video/4-0/text-to-video"
      },
      {
        "label": "Kling · video API pricing",
        "url": "https://kling.ai/document-api/pricing/base/video"
      }
    ]
  },
  "illustration": {
    "url": "https://www.maxapi.dev/model-guides/individual-20260910/seedance-2-0.webp",
    "alt": "Cinematic blue-glass perfume bottle with detailed surface texture and rim light",
    "caption": "Static advertising-shot concept: plan material detail, lighting and camera movement before generating a clip.",
    "provenance": "ai_generated_editorial_concept",
    "is_output_from_named_model": false,
    "is_benchmark": false
  },
  "illustrations": [
    {
      "section": "usecases",
      "url": "https://www.maxapi.dev/model-guides/individual-20260910/seedance-2-0.webp",
      "alt": "Cinematic blue-glass perfume bottle with detailed surface texture and rim light",
      "caption": "Static advertising-shot concept: plan material detail, lighting and camera movement before generating a clip.",
      "width": 1536,
      "height": 1024,
      "provenance": "ai_generated_editorial_concept",
      "is_output_from_named_model": false,
      "is_benchmark": false
    },
    {
      "section": "features",
      "url": "https://www.maxapi.dev/model-guides/expanded-20260911/seedance-2-0-practice.webp",
      "alt": "Refracted light through deep blue perfume glass on dark stone",
      "caption": "Specify the material, focal detail and lighting before planning motion.",
      "width": 1536,
      "height": 1024,
      "provenance": "ai_generated_editorial_concept",
      "is_output_from_named_model": false,
      "is_benchmark": false
    },
    {
      "section": "prompts",
      "url": "https://www.maxapi.dev/model-guides/expanded-20260911/seedance-2-0-prompt.webp",
      "alt": "Whole blue perfume bottle on dark stone with a glistening shoulder and lit backdrop.",
      "caption": "Static advertising concept for planning a camera pull-back.",
      "width": 1536,
      "height": 1024,
      "provenance": "ai_generated_editorial_concept",
      "is_output_from_named_model": false,
      "is_benchmark": false
    },
    {
      "section": "workflow",
      "url": "https://www.maxapi.dev/model-guides/expanded-20260911/seedance-2-0-workflow.webp",
      "alt": "Perfume story stills beside headphones and a blank clapperboard.",
      "caption": "Plan continuity and audio alongside the visual finish.",
      "width": 1536,
      "height": 1024,
      "provenance": "ai_generated_editorial_concept",
      "is_output_from_named_model": false,
      "is_benchmark": false
    }
  ],
  "configured_facts": [
    {
      "label": "Request model ID",
      "value": "kling/kling-4.0",
      "code": true
    },
    {
      "label": "Output type",
      "value": "Video"
    },
    {
      "label": "Base URL",
      "value": "https://api.maxapi.dev",
      "code": true
    },
    {
      "label": "Generation workflow",
      "value": "Asynchronous task + polling"
    },
    {
      "label": "Quality values",
      "value": "720p / 1080p / 4k",
      "code": true
    },
    {
      "label": "Resolution & dimensions",
      "value": "720p / 1080p / 4k; default 1080p. HDR (dynamic_range=hdr) at 1080p and 4k."
    },
    {
      "label": "Video duration",
      "value": "3–30 whole seconds; default 10."
    }
  ],
  "integration_checklist": {
    "reviewedAt": "2026-11-23",
    "labels": {
      "title": "Check your first result",
      "requestTitle": "Send the right fields",
      "responseTitle": "Read the actual result",
      "example": "Illustrative response shape — not a live result",
      "poll": "Query the existing task",
      "reviewed": "Request-contract review",
      "nativeRequest": "Alternative: a Gemini-native request",
      "nativeResult": "Gemini-native result shape — illustrative only"
    },
    "scope": "Checked against the public catalogue and gateway code. Examples are structural illustrations, not paid model tests, latency measurements or a guarantee that every route is currently available.",
    "requestChecks": [
      {
        "field": "model / mode",
        "body": "Send kling/kling-4.0 with mode=text_to_video for the first example. Every field this model does not support is rejected with invalid_video_request before any charge, so remove fields copied from other video models."
      },
      {
        "field": "duration / resolution / ratio",
        "body": "The example requests 10 seconds at 1080p and ratio 16:9. 3–30 whole seconds; default 10. The duration you send is the duration billed."
      },
      {
        "field": "HTTP 202 / id / poll_url",
        "body": "A successful submission returns a task receipt, not a video. Save id and poll_url before closing the client; the JSON identifier is id, not task_id."
      },
      {
        "field": "video_urls / video_url",
        "body": "Input videos must be public https MP4/MOV files. MaxAPI reads their length from the file header before reserving funds; a URL that does not return the file (or hides the header) is rejected with invalid_video_request."
      }
    ],
    "responseChecks": [
      {
        "field": "status / video",
        "body": "Poll with authentication from the same account. queued/running are not final; on succeeded, read the top-level video URL, stored on MaxAPI's CDN. On failed, inspect message instead of assuming a usable file."
      },
      {
        "field": "estimated_charge_credits",
        "body": "The receipt shows the reserved amount. For these per-second prices it equals the final charge unless the task fails, in which case the hold is released."
      }
    ],
    "sample": {
      "id": "example-task-id",
      "object": "video.generation.task",
      "status": "queued",
      "model": "kling/kling-4.0",
      "poll_url": "/v1/videos/generations/example-task-id"
    },
    "pollCurl": "# Set TASK_ID to the saved response.id; this queries, it does not create a task.\ncurl --fail-with-body \"https://api.maxapi.dev/v1/videos/generations/${TASK_ID:?Set TASK_ID from response.id}\" \\\n  -H \"Authorization: Bearer $MAXAPI_KEY\""
  },
  "pricing_scope": "1 credit = US$1. These are catalogue base rates, not a live account quote. Per output second: 720p 0.157, 1080p 0.235, 4K 0.549, 1080p HDR 0.282, 4K HDR 0.627 credits (HDR tiers include the HDR add-on). With input video (video_urls or video_url) the output rate is 720p 0.094, 1080p 0.141, 4K 0.329, 1080p HDR 0.188, 4K HDR 0.407 credits per second, plus 720p 0.094, 1080p 0.141, 4K 0.329, 1080p HDR 0.141, 4K HDR 0.329 credits per second on the longer of the input-video and output length — so a request whose input is not longer than the output pays the with-video rate on twice the output length. MaxAPI reads the input length from the MP4/MOV header before reserving funds; the duration you send is the duration billed. Reference images and preset voices are not billed separately. Account multipliers apply; failed generations are not charged.",
  "pricing_index": "https://www.maxapi.dev/pricing.json",
  "routing_rules": [
    {
      "title": "Which route wins?",
      "body": "Routing priority is: the API key's configured route_modes list → an explicitly requested route → the model's default route. A non-empty key list takes precedence over route_mode in the request. To test a specific route, check the key configuration first; changing the request alone may not change the route used."
    },
    {
      "title": "RPM is shared at account level",
      "body": "An account's positive RPM limit covers its API keys together. A key can impose a stricter limit, but a higher key limit does not override the user limit. For example, a user limit of 200 RPM is not 200 RPM for each key. Service-level RPM and concurrency controls also apply; adding keys is not a way to bypass them."
    }
  ],
  "troubleshooting": [
    {
      "code": "429",
      "title": "rate_limit_exceeded / capacity_exhausted",
      "meaning": "429 can represent account/key RPM, service-wide capacity or generation capacity. Use Retry-After and available X-RateLimit-* / X-Global-* headers to distinguish them; one status code does not identify one unique cause.",
      "action": "Respect Retry-After when present, reduce request rate or active concurrency as appropriate, and use bounded backoff. Do not treat the site's total capacity as your account's personal quota."
    }
  ],
  "verification": {
    "environment": "local_mock_requests_and_test_storage",
    "coverage": "shared_gateway_components_not_each_model_end_to_end",
    "paid_upstream_calls": 0,
    "reviewed_at": "2026-11-23",
    "cases": [
      {
        "key": "shared-user-rpm",
        "title": "Multiple keys share the user limit",
        "input": "Use two keys owned by the same account against an in-memory limiter with a small user quota.",
        "result": "Requests across the keys consume the same user quota; subsequent requests are limited. A larger key quota does not override the user quota, and a smaller key quota remains effective."
      }
    ],
    "limitations": "Local tests use simulated requests, responses and test storage; they do not call paid model channels. They verify request handling, not model image quality, live success rates, latency or end-to-end support for the maximum reference count. The concept illustrations elsewhere on this page are not these test outputs."
  },
  "sources": {
    "maxapi_documentation": "https://www.maxapi.dev/docs",
    "catalogue": "https://www.maxapi.dev/models.json",
    "provider_documentation": "https://kling.ai/document-api/api/video/4-0/text-to-video"
  }
}
