any-llm-ts
API reference

API reference

The public entry point, its operation groups, and TypeScript declaration reference.

Everything documented in this section is exported from the package root:

import {
  AnyLLM,
  completion,
  embedding,
  responses,
  type CompletionParams,
} from "any-llm-ts";

Surface overview

Naming conventions

  • Public JavaScript names use idiomatic camelCase: imageGeneration, listModels, and providerOptions.
  • Wire-format fields are translated to camelCase in normalized responses.
  • Provider-specific fields retain the provider's naming inside providerOptions, clientOptions, raw, and extraContent.
  • All network operations are promise-based.
  • Streams use the standard JavaScript AsyncIterable protocol.

On this page