# typesafe/jev-1.13 API

> typesafe/jev-1.13 is a model that you can call through the ScalingTensor API. Chat models available through the ScalingTensor API.

- Model ID: `typesafe/jev-1.13`
- Provider: typesafe
- Tasks: Chat
- Price: From $0.042 per 1M input tokens; output, cache and context tiers priced separately

### Token pricing rule

Coefficients are USD per 1M tokens. len is total input context including cache; p is input excluding separately priced cache and modalities; c is output. cr is cache read, cc is cache write, cc1h is one-hour cache write.

```text
tier("base", p * 0.042 + c * 0 + cr * 0.042 + cc * 0.042 + cc1h * 0.042)
```

- Web page: https://scalingtensor.com/models/typesafe/jev-1.13

## How to call it

Authenticate with the `apiKey` request header. Send POST https://restapi.scalingtensor.com/api/chat/completion with model and the example parameters below. A response code of 0 means success; data contains content, tokensIn, tokensOut and costMicros.

```bash
curl --request POST 'https://restapi.scalingtensor.com/api/chat/completion' \
  --header 'apiKey: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "state": {
    "ticket": "I was charged twice and would like a refund."
  },
  "questions": {
    "refund_requested": {
      "type": "noul",
      "instructions": "Does the ticket explicitly request a refund?"
    }
  },
  "model": "typesafe/jev-1.13"
}'
```

## Input parameters

Send these parameters directly in the request body alongside model.

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `state` | any | Required | State passed to the System One model. The upstream accepts the native TypeSafe state shape. |
| `questions` | object | Required | Typed questions evaluated against state. |

## FAQ

### How much does the typesafe/jev-1.13 API cost?

typesafe/jev-1.13 costs From $0.042 per 1M input tokens; output, cache and context tiers priced separately on ScalingTensor. There is no subscription; usage is charged to your prepaid wallet.

### How do I call the typesafe/jev-1.13 API?

Send POST /api/chat/completion with "model": "typesafe/jev-1.13" and a messages array using your apiKey header. Read data.content from the successful response. Usage is reported in tokensIn, tokensOut and costMicros.

### Which parameters does typesafe/jev-1.13 accept?

Required: state and questions. The parameter table on this page describes each one.

### Do I need a typesafe account to use typesafe/jev-1.13?

No. You call typesafe/jev-1.13 with your ScalingTensor API key and pay from your ScalingTensor wallet. The same key works for every other model in the catalog.
