# Generate UUIDs (`generate.uuid`)

Generate up to 100 random UUIDs: version 4 (random) or version 7 (time-ordered, sortable).

- **Route:** `POST /v1/run/generate.uuid`
- **Price:** $0.0002 per request ($0.20 per 1,000) · `cost_usd` on every response
- **Source:** GetAllAPIs compute (`compute`) · failover: no
- **Measured latency:** p50 7 ms · p95 7 ms · p99 7 ms (1 calls, 30d)
- **Heavy response:** no

## Input

| Field | Type | Required | Default | Notes |
|---|---|---|---|---|
| `count` | integer | no | 1 | How many |
| `version` | string | no | "4" | UUID version |

## Output (`output` in the run envelope)

| Field | Meaning |
|---|---|
| `uuids` | The generated UUIDs. |
| `version` | UUID version. |
| `count` | How many were generated. |

## Example

```bash
curl -s -X POST https://getallapis.com/v1/run/generate.uuid \
  -H "Authorization: Bearer $GETALLAPIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"count":3,"version":"7"}'
```

```python
from getallapis_client import Client
client = Client()  # reads GETALLAPIS_API_KEY
result = client.run('generate.uuid', {'count': 3, 'version': '7'})
print(result['cost_usd'], result['output'])
```

```bash
getallapis run generate.uuid '{"count":3,"version":"7"}'
```

Quote first (free, validates input): `POST /v1/quote/generate.uuid` with the same body.
