Kling 3.0 API for Developers

Kling 3.0 API

480 five-second Kling 3.0 videos for $144/year, paid upfront. 720p, audio off, using all Creator annual credits.

Free credits on signup
Transparent per-credit pricing
No watermarks with paid plans or credit packs
Subscriptions, credit packs, or usage-based billing
Auto-scaling
Street
Hologram
Night out
Penguin
Sky ring
Jet ski
Train

Trusted by teams at

Everything You Need to Ship Kling 3.0

Character-controlled multi-shot video with cinematic camera movement.

Character Control
Maintain consistent character identity, pose, and appearance across multi-shot sequences.
Camera Movement
Precise dolly, tracking, orbit, and handheld camera styles that follow cinematic conventions.
Native Audio
Toggle audio generation on or off per request. Synced sound without post-production layering.
Up to 4K Output
Generate at 720p, 1080p, or 4K for production-quality video output.
Auto-Scaling Infrastructure
Scales compute to match demand automatically. No GPU provisioning or cold starts.
Commercial-Ready
Paid subscriptions and credit-pack purchases support non-watermarked outputs with commercial licensing for production delivery.

Integrate in 3 Steps

Add character-controlled AI video to your app in minutes.

1
Get Your API Key
Sign up free and generate an API key from the Developer dashboard. You get free credits to start.
2
Send Your Request
Select kling-3.0 and use POST /v1/text-to-video for a text prompt or POST /v1/image-to-video to start from an image.
3
Get Results & Scale
Save the project ID. Poll GET /v1/video-projects/{id} or use a webhook, then download the finished video.
Get Started Free

Generate a Kling 3.0 video with Python, Node.js, or HTTP

Run a three-second 720p clip from the included image. Requires a paid plan and 180 credits. See the image-to-video API.

from magic_hour import Client
from os import getenv

client = Client(token=getenv("MAGIC_HOUR_API_KEY"))
res = client.v1.image_to_video.generate(
    assets={"image_file_path": "https://d28dkohlqf5vwj.cloudfront.net/api-assets/examples/image-to-video-perfume-start.webp"},
    end_seconds=3,
    audio=False,
    model="kling-3.0",
    name="Kling 3.0 Video",
    resolution="720p",
    style={"prompt": "Slow camera push in toward the perfume bottle."},
)
Before you run
  1. Create an API key and add it to the authorization value shown in your chosen snippet.
  2. The example includes a sample image. For your own clip, use an image you own or have permission to use. For web-hosted inputs, use direct HTTPS file URLs. For private or local files, upload the file first and use its returned file_path.
  3. Choose Python, Node.js, or HTTP above, then review the example before running it. The Kling example submits one billable job.
Expected result and async processing

The POST returns a project id and credits_charged, not the finished media. Save the project ID and poll it with backoff until the status is complete, error or canceled. For completed jobs, read the final credit charge, download URL and expiration time. Handle errors and cancellations without continuing to poll. Download your output before the URL expires; if it expires, retrieve the project again for a fresh URL.

Stopping a poll does not cancel the job or prove failure. Reuse the saved project ID to resume polling without creating another job. If the create request times out before returning an ID, do not submit it again. Email support@magichour.ai with the endpoint, request name and UTC timestamp so the request can be traced first. For production, use webhooks, verify signatures and handle repeated deliveries. Poll for cancellation because canceled jobs do not emit a cancellation webhook. See measured processing times; queue load, input and settings affect latency.

Pricing and usage estimates

Kling 3.0 pricing depends on resolution, duration and audio. Read the completed project for this request’s exact charge; the calculator below estimates supported monthly workloads rather than this three-second request. These are usage-based billing examples, not subscription prices or a promise of free generation. Usage-based billing requires setup assistance. Subscription and credit-pack economics differ. Video create charges are estimates; read the completed project for the final charge.

Billing rates · Model credit costs · Cost calculator

Troubleshooting
  • 401: verify the API key and Bearer header. Keep keys in server environment variables.
  • Invalid input: use direct file URLs or uploaded paths, check the response message and compare the payload with the endpoint schema. Confirm the model supports the requested duration and resolution.
  • Insufficient balance or plan access: inspect the error code and account balance and tier. A free key does not unlock every model.
  • 429 or transient polling failure: reduce concurrency, back off and resume the existing project ID. Do not blindly retry a create request.
  • Unexpected output: reduce camera motion and simplify the prompt. Review packaging, logos and geometry before using a generated clip in a product listing; exact fidelity is not guaranteed.

Kling text-to-video schema

Continue with the product video recipe when you are ready to turn this first request into a repeatable workflow.

Get an API key and run your first request →

Estimate Your API Costs

Choose your settings and volume to estimate the credits and cost.

API Calculator

How will you use the API?
For projects with recurring generation needs.
≈ 100 videos of 5 seconds each
Estimated monthly usage

30,000 Credits

≈ 100 videos (5 sec each) · $0.0849/sec
Based on your selected model, resolution, and usage volume. Rate assumes you use all included credits.
Best plan for your usage

Business

For teams, agencies, and high-volume content
$99
/ month
Billed monthly
-33%
$99
$66
/ month · $792 billed yearly
Save $396 compared to monthly
70,000 credits per month
Up to 48.6 min of video
Up to 14,000 images
OR
All payment options
Estimates in USD. Final price and currency shown at checkout.

Kling 3.0 API Pricing

Subscription plans for standard usage.

Need usage-based billing?

Email us or message us in Intercom for monthly billing with graduated volume discounts.

Built for Builders

See how developers use the Kling 3.0 API to power real products.

Brand & Product Videos
Create polished campaign videos with consistent character identity and professional camera work.
Social Media Content
Generate engaging short-form content with cinematic quality for TikTok, Reels, and Shorts.
Film Pre-Visualization
Test camera angles, blocking, and character performances before committing to production.
E-Commerce & Virtual Try-On
Generate product demonstration videos with consistent framing and professional motion.
Content Platforms
Power video creation tools with high-quality AI generation and character consistency.
Gaming & Trailers
Create character-driven game trailers and cinematics with controlled camera movement.
Try before integrating

Try Kling 3.0 Free — No Code Required

Test quality first with the free tool, then plug the same output quality into your app with the API when you are ready.

Kling 3.0 API — Frequently Asked Questions

Magic Hour's Kling 3.0 API lets developers generate AI videos using Kuaishou's Kling 3.0 model via REST API with SDKs for Python, Node.js, Go, and Rust.

Sign up at magichour.ai, generate an API key from the Developer dashboard, and install an SDK or call the REST API directly. Free credits included on signup.

Kling 3.0 excels at multi-shot storytelling with strong character control and camera movement. It supports 720p, 1080p, and 4k output with toggle-able native audio.

Kling 3.0 generates videos up to 15 seconds per request in 720p, 1080p, or 4k resolution.

Kling 3.0 outputs at 720p, 1080p, and 4k in 9:16, 16:9, and 1:1 aspect ratios.

Yes. Kling 3.0 supports toggle-able native audio generation. You can enable or disable it per request.

Creator annual is $144 for 144,000 credits, enough for 480 five-second Kling 3.0 videos at 720p without audio ($0.30 each). Pro annual is $300 for 300,000 credits, enough for 1,000 at the same settings ($0.30 each). Business annual is $792 for 840,000 credits, enough for 2,800 (about $0.283 each). Annual plans are paid upfront; effective prices assume all included credits are used and exclude tax. Audio, higher resolutions and video-reference inputs cost more credits. Monthly plans and credit packs are also available. A five-second 1080p Kling 3.0 video with audio and no video reference uses 540 credits. On Creator usage-based billing, the first 100,000 credits per month cost $1.20 per 1,000 credits, equivalent to $0.648 for this video. Usage-based billing requires setup assistance.

Paid subscriptions and credit-pack purchases include commercial-use rights and support non-watermarked outputs with commercial licensing for production and client work.

Sign up at magichour.ai/developer — no credit card required. You'll receive free credits and an API key immediately. The key works across all Magic Hour API endpoints including Kling 3.0. Start making API calls in minutes using our Python, Node.js, Go, or Rust SDKs.

New accounts get free credits to test supported free-tier API endpoints. Some models and resolutions require a paid plan; check the current endpoint page and pricing before integrating.

Start Building with the Magic Hour Kling 3.0 Video API

Free credits on signup. SDKs for Python, Node.js, Go, and Rust. Production-ready in minutes.