Jev Router API: toman pricing and code

typesafe/jev-router

Image inputTool callingReasoningJSON outputFile inputAudio input
Price
Variable price
Average actual cost, last 7 days

Not enough requests yet for an average

This model is a router: it sends each request to the model it judges best for it, and the request costs that model's price. Before sending, an amount is set aside from your wallet; after the answer only the real cost is deducted and the rest returns at once. The exact cost of every request is in your dashboard's usage history.Pricing and top-ups

Jev Router example: reading an image into JSON

The example is picked from this model's own capabilities. Drop in your key and it runs as is.

# tip: a data URI works too — base64 the file and prefix it with data:image/jpeg;base64,
curl https://api.uttapen.ir/v1/chat/completions \
  -H "Authorization: Bearer sk-up-…" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "typesafe/jev-router",
    "messages": [{
      "role": "user",
      "content": [
        {"type": "text", "text": "Return only the invoice number and the total, as JSON."},
        {"type": "image_url", "image_url": {"url": "https://example.com/factor.jpg"}}
      ]
    }]
  }'
import base64, json
from openai import OpenAI

client = OpenAI(base_url="https://api.uttapen.ir/v1", api_key="sk-up-…")

img = base64.b64encode(open("factor.jpg", "rb").read()).decode()

resp = client.chat.completions.create(
    model="typesafe/jev-router",
    messages=[{
        "role": "user",
        "content": [
            {"type": "text", "text": "Return the invoice number, the date and the total as JSON."},
            {"type": "image_url", "image_url": {"url": f"data:image/jpeg;base64,{img}"}},
        ],
    }],
    response_format={"type": "json_object"},
)
print(json.loads(resp.choices[0].message.content))
import OpenAI from "openai";
import { readFileSync } from "node:fs";

const client = new OpenAI({ baseURL: "https://api.uttapen.ir/v1", apiKey: "sk-up-…" });
const img = readFileSync("factor.jpg").toString("base64");

const resp = await client.chat.completions.create({
  model: "typesafe/jev-router",
  messages: [{
    role: "user",
    content: [
      { type: "text", text: "Return the invoice number, the date and the total as JSON." },
      { type: "image_url", image_url: { url: `data:image/jpeg;base64,${img}` } },
    ],
  }],
  response_format: { type: "json_object" },
});
console.log(JSON.parse(resp.choices[0].message.content));

What is Jev Router good for?

Jev Router comes from Typesafe; in uttapen you reach it with the model id "typesafe/jev-router". It accepts up to 1,000,000 tokens of input per call, so a long document or several source files fit in a single request. A single response can run to 65,536 tokens. It has no fixed price: the destination model is chosen per request, and you are charged exactly what the model that answered actually cost.

Capabilities available on this id: it reads images directly, which makes it a real option for invoices, forms and screenshots; it takes files such as PDFs as input; it accepts audio input; it supports tool calling, so it can invoke your own functions with valid arguments; it returns schema-valid JSON through response_format, ready to hand to your code; it has a reasoning mode that pays off on multi-step problems, maths and debugging. All of it works through the standard parameters of the official OpenAI SDK — no custom client, no wrapper. Keep in mind that reasoning tokens are output tokens and do appear on the bill.

Among the less common parameters it accepts logit_bias, logprobs, max_completion_tokens, min_p, parallel_tool_calls, presence_penalty — all through the standard request body. By context size the nearest option from another provider is Nova 2 Lite at 1,000,000 tokens.

What to use it for: automatic routing when you would rather not pick a model yourself, logic puzzles and code review, pulling text and fields out of images, agents that reach out to APIs and databases, extracting data against a fixed schema, analysing a long document or codebase in one request.

Provider's own description

Jev Router picks the best model and reasoning effort for each request, balancing quality, speed, and cost. It runs on Jev, TypeSafe's first System One model, and adapts as your...

Frequently asked

How do I call Jev Router from Iran?
Sign up with your mobile number, top the wallet up in toman, create an API key, then in the official OpenAI SDK point base_url at https://api.uttapen.ir/v1 and set model to "typesafe/jev-router". Nothing else in your code changes.
What does Jev Router cost in toman?
This model has no fixed price: the cost depends on the model that answered the request, and that exact amount is what leaves your wallet.
How much input does Jev Router take?
Up to 1,000,000 tokens per request, roughly 750k words. A single answer can reach 65,536 tokens.
Does Jev Router support streaming and tool calling?
Streaming (stream=true) works on every model here. This one supports tool calling in the standard OpenAI shape. Image input is accepted through image_url, as a data URI or a public URL. Structured output through response_format works too.