Your privacy choices

Allow optional cookies for referral attribution, visit analytics, Google Analytics, and Google Ads purchase measurement.

Quick Start: Base URL and First Request

Buy credits, get your key, set the Base URL and send a first request. Also covers quota links and the separate Jev /v1/decisions endpoint.

First request in four steps:

  1. Get a key. On the Buy page, choose a credit package, verify your email and pay in USD. The API key arrives by secure email link; you can also look it up with the same email. Already have a key? Top up instead of buying again.
  2. Set the Base URL from the table below. It is the same in every region. You bought on llm-agent.cc, but the API host is api.llm-token.cn, shared by all our sites.
  3. Pick a model ID. Copy an exact ID from model pricing. Display names are not request IDs.
  4. Send a request. Run the cURL example in the docs quick start, or follow the guide for your tool, such as Codex or Claude Code.

1. Regional API Endpoints

RegionRecommended Base URLDescription
Global (including Mainland China)https://api.llm-token.cn/v1Globally routed: nodes in East China, South China, Hong Kong, Singapore, the US, and Germany; automatically picks the fastest route.

Jev native decisions: use a different URL, not chat

jev-latest uses the native decisions protocol, not an ordinary chat client. The gateway URL differs from TypeSafe's direct endpoint; the API keys are not interchangeable.

ConnectionFull POST URLAPI key
Recommended gateway entryhttps://api.llm-token.cn/v1/decisionsLLM API Gateway key
Compatible gateway entryhttps://api.llm-token.cn/v1/systemoneLLM API Gateway key
Direct TypeSafe APIhttps://api.typesafe.ai/v1/systemoneTypeSafe key

If the client's Base URL already ends in https://api.llm-token.cn/v1, append only /decisions or /systemone, not /v1/v1/decisions.

Include model, state, and questions. questions is an object keyed by question ID, with type and instructions for each question. For choice, criteria is an options object; for score, it is an ordered array; noul evaluates a yes/no probability. Do not send a chat messages payload or enable streaming.

Minimal request

Set your gateway API key in the LLM_API_KEY environment variable first. This example makes a real call; confirm your quota and billing before running it. Read answers.is_urgent.noul and usage, not choices[0].message.content.

curl -sS -X POST https://api.llm-token.cn/v1/decisions \
  -H "Authorization: Bearer $LLM_API_KEY" \
  -H "Content-Type: application/json" \
  -d @- <<'JSON'
{
  "model": "jev-latest",
  "state": "The order is due today and the payment has failed.",
  "questions": {
    "is_urgent": {
      "type": "noul",
      "instructions": "Does this require urgent attention?"
    }
  }
}
JSON

If a 500 / convert_request_failed error contains this channel only supports native decisions requests, inspect whether the client still sends to /v1/chat/completions or /v1/messages. This is a protocol mismatch, not insufficient credit. Adding funds or choosing usage-based billing does not change the client's protocol. Correct the URL and payload before retrying; do not repeatedly resend the original chat request.

Jev integration Skill · TypeSafe API reference