# Origami — Wrapped API

> **You are on:** `https://api.beta.paywithlocus.com/api` | [llms.txt](https://beta.paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> AI research agents for person lookup, work-email discovery, company research, and other record enrichment, returned as structured tables.

**Category:** AI Research | **Website:** [origami.chat](https://origami.chat) | **Docs:** [docs.origami.chat](https://docs.origami.chat)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.beta.paywithlocus.com/api/wrapped/origami/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

> Also available via public x402 on Base (no account needed): [x402/origami.md](https://beta.paywithlocus.com/x402/origami.md)

> Also available via MPP (no account needed): [mpp/origami.md](https://beta.paywithlocus.com/mpp/origami.md)

## Endpoints

### Research

Run an isolated research agent for person lookup, work-email discovery, company research, or other record enrichment, then return structured tables and rows.

**Estimated cost:** $0.018 per settled credit (authorization maximum set by maxCredits)

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `prompt` | string | Yes | Research brief (1-10,000 characters) |
| `maxCredits` | integer | Yes | Hard Origami credit budget (5-10000); Origami requires at least 5 credits to admit a run |
| `model` | string | No | Model: "origami-lite" or "origami-max" |
| `maxRows` | integer | No | Maximum rows returned across all result tables (default 200, max 200) |
| `includeTranscript` | boolean | No | Include Origami public transcript messages (default false) |
| `timeoutSeconds` | integer | No | Overall wait limit (default 1200, max 1740) |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/origami/research \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"prompt":"Return one concise sentence explaining HTTP status 402.","maxCredits":5,"model":"origami-lite","maxRows":1,"includeTranscript":false,"timeoutSeconds":120}'
```
