Rawswitch
  • Routing
  • Docs
ENKOJAZH
ContactGet API key

Browse

  • All models
  • Image
  • Video

Routes

  • Direct supplier API
  • Partner gateway
  • Self-hosted NPU
Featured
Product attributes on our own NPU

Product

  • Routing API
  • Models
  • Playground
  • Beyond shared routes

Models

  • Image
  • Video
  • Nano Banana 2.1
  • GPT Image 2.6
  • Kling 4.0
  • Product Attributes
  • All models

Routes

  • Direct supplier API
  • Partner gateway
  • Self-hosted NPU
  • Bring your own key

Developers

  • API reference
  • Agent prompts
  • llms.txt
  • Webhooks

Resources

  • Docs
  • Request lifecycle
  • Files

Company

  • Contact
  • Get an API key
One keyEvery model
Queue firstNo dropped requests
Same-model failoverNo silent swaps
Visible routingserved_by + attempts
Signed webhooksStandard Webhooks
Cost per requestLogged
© 2026 Rawswitch
TermsPrivacy
Preview build

Kling 4.0 Reference to Video

Kling (Kuaishou)Video to VideoLive
SchemaAPI docs
kling/kling-4.0-reference-to-video
Text to videoImage to videoReference to videoVideo editing
$0.24675 / sec · 1080p
Commercial useSupplier terms
PlaygroundAPI

Input

stringrequired

What happens in the video. Refer to reference images as @Image1, @Image2, …

filesoptional

Hint: pick a file or paste a URL and press Enter. In this preview files stay in your browser; the real API uploads them through POST /v1/files.

  • files.rawswitch.example/samples/model-front.jpg
  • files.rawswitch.example/samples/mug.jpg

2 images added

fileoptional

Hint: pick a file or paste a URL and press Enter. In this preview files stay in your browser; the real API uploads them through POST /v1/files.

filesoptional

Hint: pick a file or paste a URL and press Enter. In this preview files stay in your browser; the real API uploads them through POST /v1/files.

fileoptional

Hint: pick a file or paste a URL and press Enter. In this preview files stay in your browser; the real API uploads them through POST /v1/files.

numberDefault: 5
enumDefault: "1080p"
booleanDefault: false
enumDefault: "16:9"

$0.24675 / sec · 1080p · This is a mock run: no request leaves this page.

Result

Idle
No result yetFill in the input and press Run.

path partner/gateway · Partner gateway

Kling 4.0 Reference to Video

Generates a 3–30 second video guided by reference images at 720p, 1080p or 4k.

Refer to reference images as @Image1, @Image2, … in the prompt. Start, keyframe and end images are optional and count toward the image limit. Reference videos are not accepted here yet.

Billed per second of the requested length by resolution; HDR adds a per-second fee at 1080p and 4k.

Paths behind this model

PathTypeState
partner/gatewayPartner gatewayPrimary

If the primary path fails, the same model is retried on the next path. Rawswitch never swaps in a different model unless you ask for it.

Open API docs