@pontx/mistral-ai
v0.1.1
Published
Type-safe Mistral AI API SDK and CLI generated from the product-owned PontxSpec
Maintainers
Readme
@pontx/mistral-ai
Type-safe Mistral AI API SDK and CLI generated from the product-owned PontxSpec in pontx-api-metadata.
The package covers the ApiKey-authenticated Mistral AI Platform developer
API: 238 Endpoints and 756 Schemas from the pinned Apache-2.0 official
OpenAPI revision (mistralai/platform-docs-public@2ca5afe,
openapi-public-doc.yaml), including Chat Completions, FIM, Agents,
Conversations, Embeddings, Classifiers, Files, Models, Batch, OCR, Audio,
Libraries, Observability, Connectors, Workflows, Prompts, Skills, RAG, and
Events. 11 Endpoints declare typed SSE streaming responses. The
beta.admin.* workspace-administration and beta.users dashboard-session
surfaces are excluded as outside the developer API boundary.
Install
pnpm add @pontx/mistral-ai
# or globally for the CLI
pnpm add --global @pontx/mistral-aiUsage
The API key is read only from the caller-local MISTRAL_API_KEY environment
variable (or the apiKey option). It is never written to previews, logs, or
the Hub.
import { createMistralAiClient } from "@pontx/mistral-ai";
const client = createMistralAiClient();
const models = await client.models.listModelsV1ModelsGet();CLI
export MISTRAL_API_KEY=...
pontx-mistral-ai list apis
pontx-mistral-ai show-api models listModelsV1ModelsGet
pontx-mistral-ai call models listModelsV1ModelsGet --dry-runMutations (POST/PUT/PATCH/DELETE) require a redacted dry-run and an exact
request-bound --confirm token before any request reaches the provider.
Boundary and provenance
See source.provenance.json for the pinned metadata commit, upstream
revision, and canonical-spec SHA-256. The package does not redistribute the
upstream OpenAPI document. The imported source is Apache-2.0 licensed by
Mistral AI; service use and trademarks are governed separately. This
independently branded SDK is not endorsed by Mistral AI.
