Skip to content

moonshotai

@ai-sdk/moonshotai

AIProviders.moonshotAI

  • Language

MoonshotAI was audited against upstream 3.0.45; its implemented chat-model surface remains at 3.0.37 semantics: MOONSHOT_API_KEY, custom base URL and headers, callable provider plus languageModel/chat aliases, moonshotai.chat provider IDs, versioned user-agent suffix, stream usage by default, current model IDs such as kimi-k2.5, kimi-k2.6, and kimi-k2.7-code, providerOptions.moonshotai thinking, reasoning effort/history, prompt-cache, and safety mapping, owned image/video/text input conversion with local unsupported-media errors, MFJS tool-schema normalization, structured outputs for kimi-k* models with top-level $schema stripping, Moonshot error schema, and unsupported embedding/image families. The 3.0.43 V1/Kimi partial and predicted output, message-name, log-probability, media-reference, reasoning/sampling, structured-output, response-metadata, raw-usage, and error-code delta remains deferred to a dedicated provider pass.

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.