← Back to kasyana.com

Base URL

https://api.kasyana.com/v1

Everything below follows the OpenAI API shape. Authentication is by bearer API key, issued in the platform panel.

Authentication

Authorization: Bearer sk-<your-api-key>

Keys are created in the panel and shown once at creation. Revoking a key stops it immediately.

List models

GET /v1/models
curl https://api.kasyana.com/v1/models \
  -H "Authorization: Bearer sk-<your-api-key>"

Chat completions

POST /v1/chat/completions
curl https://api.kasyana.com/v1/chat/completions \
  -H "Authorization: Bearer sk-<your-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepseek-v4-flash",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Set "stream": true in the body to receive a Server-Sent-Events stream ending with data: [DONE]. Supported body fields: model, messages, stream, temperature, top_p, max_tokens, stop, presence_penalty, frequency_penalty, response_format, stream_options.

Limits

Requests are rate-limited per key (120 burst, 2/second sustained) and token usage counts against your plan's daily and monthly caps. A 429 with {"error": "daily quota exceeded"} means the cap is reached; usage resets at midnight UTC.

Usage tracking

The panel shows token usage per key and per day, and your remaining quota.