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
AnyLLM
Reusable clients, provider metadata, model parsing, and custom compatible endpoints.
Functions
Stateless helpers for every operation exposed by the common facade.
Types
Type tables generated from the repository's TypeScript source declarations.
Errors
Normalized provider errors and configuration failures.
Naming conventions
- Public JavaScript names use idiomatic camelCase:
imageGeneration,listModels, andproviderOptions. - Wire-format fields are translated to camelCase in normalized responses.
- Provider-specific fields retain the provider's naming inside
providerOptions,clientOptions,raw, andextraContent. - All network operations are promise-based.
- Streams use the standard JavaScript
AsyncIterableprotocol.