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

# TypeSafe AI

> TypeSafe AI serves Jev, a decision model that returns typed answers with calibrated probabilities instead of text.

TypeSafe AI offers 2 models through Lava's AI Gateway, supporting Structured Decisions. Authentication uses `Authorization: Bearer`. See the [TypeSafe AI API docs](https://docs.typesafe.ai/api) for provider-specific parameters.

<Info>Supports both **managed** (Lava's API keys) and **unmanaged** (bring your own credentials) mode.</Info>

## Quick Start

```typescript theme={null}
const response = await fetch('https://api.lava.so/v1/forward?u=https%3A%2F%2Fapi.typesafe.ai%2Fv1%2Fsystemone', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    Authorization: `Bearer ${forwardToken}`,
  },
  body: JSON.stringify({
    model: 'jev-latest',
    state: "Help! My payouts have been failing for 3 days.",
    questions: {
      is_urgent: { type: "noul", instructions: "Does this convey urgency?" },
    },
  }),
});
```

## Structured Decisions

**Target URL:** `https://api.typesafe.ai/v1/systemone`

| | |
| - | - |
| **Content Type** | `application/json` |
| **Streaming** | No |

| Model | Input / 1M tokens | Output / 1M tokens |
| - | - | - |
| jev-latest | \$0.042 | Free |
| jev-1.13.0 | \$0.042 | Free |

## Next Steps

<CardGroup cols={2}>
  <Card title="All Providers" icon="grid" href="/docs/gateway/supported-providers">
    Browse all supported AI providers
  </Card>

  <Card title="Forward Proxy" icon="route" href="/docs/gateway/forward-proxy">
    Learn how to construct proxy URLs and authenticate requests
  </Card>
</CardGroup>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.