TypeScript SDK: Models
⚠️
Preview — this feature is being built; the design below is the spec.
Discover models and their limits.
import Syntic from '@syntic/sdk'
const client = new Syntic() // reads SYNTIC_API_KEY| Method | Endpoint | Returns |
|---|---|---|
models.list | GET /v1/models | SyncPage[Model] / Page<Model> |
models.retrieve | GET /v1/models/{id} | Model |
Methods
models.list
List the models your key can use. Auto-paginates when iterated. Maps to GET /v1/models.
for await (const item of client.models.list()) {
console.log(item)
}models.retrieve
One model’s limits, capabilities and prices. Maps to GET /v1/models/{id}.
const result = await client.models.retrieve("Amara S1.2")Conventions
Every method accepts a final options object with headers, query, timeout, maxRetries and signal (an AbortSignal). List methods return pages that work with for await across all pages.
See the TypeScript SDK overview for installation, errors and retries.
Was this page helpful?