klingai
Package
Section titled “Package”@ai-sdk/klingai
Factories
Section titled “Factories”AIProviders.klingAI
Capabilities
Section titled “Capabilities”- Video
KlingAI video models mirror upstream KlingAI 4.0.38: trimmed KLINGAI_API_KEY bearer auth or explicit/environment legacy access and secret keys with upstream precedence, custom base URL and headers, versioned user-agent suffix, video/videoModel aliases, text-to-video, image-to-video, reference-to-video multi-image, and motion-control endpoints, first/last frameImages, inputReferences, top-level generateAudio to sound mapping with provider-option override behavior, providerOptions.klingai schema and snake_case passthrough, polling, video/mp4 media type, provider metadata, KlingAI error schema, and warnings for unsupported standard video options. ProviderV4 type names, ESM-only packaging, Node 22 engines, TypeScript option export split, optional JS headers config, and workflow serialization helpers are JS-only upstream concerns. Status polling now follows only validated redirects and never forwards credentials away from the configured origin.
Factory argument requirements are defined by the public Swift factory signatures. Use Public symbols when you need the exact initializer or factory declaration.
Return to the provider matrix.