Prava SDK

Prava is an API for Labor. Our computer-use agents handle the skilled digital work you’d normally outsource to a team—or your money back. Built with GPT-5 and our SOTA computer-use agents.

Installation

npm install prava  # or: pip install prava

Quick Start

TypeScript

import Prava from 'prava';

const prava = new Prava({ apiKey: "prava_sk_..." });

// Send work with SLA controls
const task = await prava.tasks.create({
  workflow: "ehr_processing",
  data: {
    portal_url: "https://epic.northwellhealth.org",
    patient_mrns: ["12345678", "87654321"],
    extract_fields: ["demographics", "vitals", "medications"]
  },
  max_price: 1200,    // Don't pay more than $12
  deadline: "2025-09-15T16:00:00Z"  // Due 4pm today
});

// Get results with SLA guarantee
const result = await prava.tasks.get(task.id);
console.log(`Completed in ${result.sla.completed_in_minutes} min`);
console.log(`Accuracy: ${result.sla.accuracy_guarantee * 100}%`);

Environment Variables

Set your API key:

export PRAVA_API_KEY="your-api-key"