> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pre.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# SDKs

> Install the official Node.js and Python SDKs for specifications and browser tasks.

Both SDKs use the package name **`predev-api`** and support specification generation and Browser Agents.

|                       | Node.js / TypeScript                          | Python                                          |
| --------------------- | --------------------------------------------- | ----------------------------------------------- |
| Install               | `npm install predev-api`                      | `pip install predev-api`                        |
| Import                | `import { PredevAPI } from 'predev-api'`      | `from predev_api import PredevAPI`              |
| Runtime               | Node.js 18+                                   | Python 3.8+                                     |
| HTTP behavior         | Promises; async generator for browser streams | Blocking requests; iterator for browser streams |
| Specification results | JavaScript objects                            | Dictionaries                                    |
| Credit balance        | JavaScript object                             | `CreditsBalanceResponse` object                 |
| Browser results       | JavaScript objects                            | Dictionaries                                    |

Both clients accept an API key and optional base URL. Neither exposes a client-wide timeout or retry configuration option. Python sets timeouts inside its methods; use server-side async submission for long work and direct HTTP when you need transport controls.

<CardGroup cols={2}>
  <Card title="Node SDK" icon="node-js" href="/architect-agent/sdks/node">
    Specifications, bounded polling, uploads, and errors.
  </Card>

  <Card title="Python SDK" icon="python" href="/architect-agent/sdks/python">
    Specification results, async jobs, and file uploads.
  </Card>
</CardGroup>

See [Browser Agents SDKs](/browser-agents/sdks/overview) for task execution and streaming. Use direct REST for proposal review, live browser URLs, existing-run SSE, capacity statistics, and idempotency headers.
