Reference
Field-by-field API docs for the Pareta SDK. Signatures are shown in Python; the TypeScript SDK mirrors them (a single Promise-only Pareta client, camelCase names, awaited calls). Everything hangs off one client object, Pareta (Python also ships an async mirror, AsyncPareta); the resource pages document the five namespaces that live on it. Conventions that hold everywhere: model ids you pass and read are per-task aliases, inference and evals are metered against your org balance, and money appears on .cost (a dollars Decimal in Python, a fixed-2dp string in TypeScript) with the raw integer on .cost_micro_usd / .costMicroUsd.
Client
- Client (
Pareta,AsyncPareta) — the sync/async client:from_env, constructor params (api_key,base_url,timeout,max_retries,http_client), lifecycle, and the five resource namespaces.
Resources
- chat.completions —
chat.completions.create: params,ChatCompletion/chunk return types, streaming SSE behavior, metering, and the full error/retry surface, with sync, async, and OpenAI-SDK examples. - models —
client.models:list()returns aModelListof callable deployed endpoints; the threeModelfields (id/owned_by/created), sync+async usage, and how it differs fromendpoints.list(). - endpoints —
client.endpoints:deploy(wait semantics + progress-event SSE),list/retrieve/start/stop/delete, theEndpointobject, andmetrics(id)observability dimensions. - tasks —
client.tasks:list/retrieve/match/leaderboard/recommendedwith theTask/TaskMatch/Leaderboardresponse models. - evals —
client.evals:sets,runs, andfrontier_models, withfrontier=resolution, metering, and response-object tables.
Types and errors
- Exceptions — the exception hierarchy:
ParetaErrorbase, status-to-class mapping, and thestatus_code/detail/request_idattributes. - Response types — every response object (chat, models, endpoints, tasks, evals) plus the
.costvs.cost_micro_usdmoney convention.
Transport
- Underlying HTTP API — a per-method map of the
/v1routes the SDK wraps (chat/completions, models, endpoints+metrics, tasks+match/leaderboard, eval frontier-models, eval-sets, eval-runs) with method, path, Bearer auth, request/response shapes, and sync/async + curl examples.