ULK Cloud

RisuAI Custom API Setup | API Key, URL, and Model for GLM-5.3

In RisuAI, choose Custom API as the model, then enter https://api.ulkcloud.com/v1/chat/completions as the URL, your sk-ulk- key as Key/Password, and glm-5.3 as Request Model. Uncheck Min P and Top A on the Parameters tab: RisuAI sends them by default, and ULK Cloud rejects them with 400 Unsupported parameter.

To connect RisuAI to ULK Cloud, open Settings → Chat Bot, set Model to Custom API, and fill in three fields: URL https://api.ulkcloud.com/v1/chat/completions, Key/Password your key starting with sk-ulk-, and Request Model glm-5.3. Leave Format on OpenAI Compatible. Then open the Parameters tab and uncheck Min P and Top A. RisuAI sends both by default, and ULK Cloud rejects them with Unsupported parameter: 'min_p'. until they are off.

ULK Cloud is our own API. The RisuAI steps were checked against the RisuAI source code at commit e81b120 (November 26, 2026), and every ULK Cloud response quoted here was received from the production API on November 28, 2026.

RisuAI Custom API settings for ULK Cloud

RisuAI's Custom API needs one ULK Cloud API key and five settings on the Model tab of Settings → Chat Bot.

  1. Sign up at https://console.ulkcloud.com. New accounts get $0.50 of free credit, and no card is needed to sign up.
  2. In the console, create an API key. It starts with sk-ulk-. Copy it right away.
  3. In RisuAI, open Settings (the gear icon) and choose Chat Bot. Stay on the Model tab.
  4. Click the button under Model and pick Custom API from the list. It is at the top level of the list, not inside a provider group.
  5. Fill in the fields below. They appear under the model selector once Custom API is chosen.
  6. Open the Parameters tab and uncheck Min P and Top A (details in the next section).
  7. Start a chat and send a message.
FieldValue
ModelCustom API
URLhttps://api.ulkcloud.com/v1/chat/completions
Key/PasswordYour key starting with sk-ulk-
Request Modelglm-5.3 (or another model ID below)
FormatOpenAI Compatible
Response StreamingOn or off; both work

RisuAI completes a short URL by itself. With Autofill Request URL on (Advanced Settings; on by default), RisuAI adds /chat/completions to a URL ending in /v1, so https://api.ulkcloud.com/v1 also works. With Autofill Request URL off, RisuAI sends the request to the URL exactly as typed, and only the full address ending in /chat/completions works. The full address works in both cases.

Keep Ooba Mode unchecked. It adds text-generation-webui parameters to the request, which ULK Cloud does not accept.

Turn off Min P and Top A in RisuAI's Parameters tab

RisuAI's Custom API sends min_p and top_a with every request, set to 0, even if you never touched them. ULK Cloud does not support these two samplers and returns HTTP 400 instead of ignoring them:

{
  "error": {
    "message": "Unsupported parameter: 'min_p'.",
    "type": "invalid_request_error",
    "param": "min_p",
    "code": "unsupported_parameter"
  }
}

The fix is on the Parameters tab of Settings → Chat Bot. Each sampler slider there has a checkbox on its left edge. Uncheck the boxes for Min P and Top A; the slider then reads Disabled, and RisuAI leaves that parameter out of the request.

These are the parameters RisuAI's Custom API sends from the Parameters tab, with their defaults in a new RisuAI setup and what ULK Cloud did with each on 2026-11-28:

SliderSent asRisuAI defaultULK Cloud
Temperaturetemperature0.80Used
Top Ptop_p1.00Used
Frequency Penaltyfrequency_penalty0.70Used
Presense Penaltypresence_penalty0.70Used
Top Ktop_k0Accepted, no effect
Repetition penaltyrepetition_penalty1.00Accepted, no effect
Min Pmin_p0.00400 Unsupported parameter: 'min_p'.
Top Atop_a0.00400 Unsupported parameter: 'top_a'.
Thinking Tokensthinking_tokensDisabled400 Unsupported parameter: 'thinking_tokens'. when checked

ULK Cloud names only the first parameter it rejects. If you uncheck only Min P, the next message fails with Unsupported parameter: 'top_a'., so uncheck both at once.

Thinking Tokens is usually off in a new setup, but it can show up checked after you switch to or import a preset, and RisuAI then sends thinking_tokens (sometimes as null). Uncheck it as well. GLM-5.3 and DeepSeek V4.1 Flash decide how long to think on their own.

Top K and Repetition penalty can stay as they are. ULK Cloud accepts them so that apps which always send them still connect, but it does not pass them to the model. To reduce repetition, use Frequency Penalty and Presense Penalty (spelled that way in RisuAI).

A rejected request never reaches a model, so the 400 is not charged.

Which model to put in RisuAI's Request Model field

Type one of ULK Cloud's six model IDs into Request Model exactly as written; the field is free text and has no list to pick from. Prices are in US dollars per 1 million tokens as of 2026-11-28; the models page has the current list.

Request ModelPrice (1M in / out)ContextCost of one RisuAI message at default sizes
glm-5.3$0.40 / $1.301,000,000$0.00225
glm-5.3-flash$0.12 / $0.201,000,000$0.00058
deepseek-v4.1-flash$0.07 / $0.221,048,576$0.00039
glm-5.3-uncensored$0.35 / $1.10Not published$0.0038
deepseek-v4.1-flash-abliterated$1.10 / $2.20Not published$0.0084
glm-5.3-abliterated$3.00 / $6.00Not published$0.031

The last column assumes a full RisuAI default prompt: 4,000 input tokens (Max Context Size) and 500 output tokens (Max Response Size). At those sizes, the $0.50 sign-up credit covers about 220 messages on glm-5.3, 860 on glm-5.3-flash, or 1,280 on deepseek-v4.1-flash.

glm-5.3 is the main GLM-5.3 model. glm-5.3-flash and deepseek-v4.1-flash cost less and suit long chats where input tokens add up.

The Uncensored and Abliterated models refuse less often than the standard ones, and they are for adult users only (ULK Cloud's terms require users to be 18 or older). They work by adding an instruction prompt to every request: about 5,300 input tokens on the two GLM models and about 2,600 on the DeepSeek model. Those tokens are billed as input, which is why their per-message cost in the table is higher than the per-token price suggests. No model answers every request.

Max Context Size and Max Response Size with ULK Cloud

RisuAI's Max Context Size (default 4,000) limits how many tokens of character card, lorebook, and chat history go into each request, and Max Response Size (default 500) is sent to ULK Cloud as max_tokens. Both are on the Parameters tab.

  • Max Context Size. ULK Cloud's standard models accept about one million tokens, so 4,000 is RisuAI's limit, not ULK Cloud's. A larger value lets the model remember more of the chat, and every extra token is billed as input on each message. If a character card alone is larger than Max Context Size, RisuAI stops before sending and shows Error: The minimum required token is greater than the Max Context Size. Raise the value to fix it.
  • Max Response Size. GLM-5.3 and DeepSeek V4.1 Flash think before they reply, and the thinking counts toward this limit and is billed as output. In our test on 2026-11-28, 500 was enough for a short in-character reply on all three standard models (about 50 to 60 tokens went to thinking). If replies come back cut off or empty, raise it. The largest value each model accepts is 131,072 for the GLM models, 262,144 for deepseek-v4.1-flash-abliterated, and 393,216 for deepseek-v4.1-flash; a larger value returns 400 max_tokens is too large.

Before each request, ULK Cloud holds the most the reply could cost from your balance and settles the real amount afterwards, so a smaller Max Response Size also helps when your balance is low.

RisuAI error messages with ULK Cloud and how to fix them

RisuAI shows ULK Cloud's error text in its error popup. With Response Streaming off, the popup reads Error: error in request: followed by ULK Cloud's message, for example Error: error in request:Unsupported parameter: 'min_p'. With Response Streaming on, it shows ULK Cloud's whole error body as JSON. Either way, the message tells you what to change.

Message from ULK CloudCause in RisuAIFix
Unsupported parameter: 'min_p'. or 'top_a'.Min P or Top A is checkedUncheck both on the Parameters tab
Unsupported parameter: 'thinking_tokens'.Thinking Tokens is checkedUncheck it on the Parameters tab
Unsupported parameter: 'logit_bias'.Entries under Bias (Others tab)Delete the Bias entries
Incorrect API key provided. ... (401)Key/Password is empty, has a typo, or holds another provider's keyPaste the sk-ulk- key again
The model 'gpt-3.5-turbo' does not exist. ... (404)Request Model is empty; RisuAI then sends gpt-3.5-turboType a model ID such as glm-5.3
The model 'GLM-5.3' does not exist. ... (404)Model ID typed differentlyUse the exact lowercase ID
Unknown request URL: POST /v1. (404)Autofill Request URL is off and the URL stops at /v1Use the full URL ending in /chat/completions
Your balance is too low for this request. ... (402)Not enough credit for the reply's maximum costTop up, or lower Max Response Size
Rate limit reached: 1000 requests per minute per API key. ... (429)Too many requests in one minuteWait a moment
The model is temporarily unavailable. ... (502)Temporary failureSend again; it was not charged

To see exactly what RisuAI sent, open Advanced Settings and click Show Request Logs. Each entry shows the URL, the request body with every parameter, and ULK Cloud's response. The log is cleared when RisuAI is reloaded.

A parameter that has no slider can also be removed from the request: on the Others tab of Settings → Chat Bot, open Additional Parameters and add a row with the parameter name as the key and {{none}} as the value.

FAQ

Is there a free API for RisuAI?

ULK Cloud gives each new account $0.50 of credit, about 220 RisuAI messages on glm-5.3 or 1,280 on deepseek-v4.1-flash at RisuAI's default sizes. After that it is pay as you go, with card top-ups from $5.

Do I need /chat/completions at the end of the RisuAI URL?

Not with RisuAI's defaults. Autofill Request URL is on in a new setup and adds /chat/completions to https://api.ulkcloud.com/v1. Typing the full https://api.ulkcloud.com/v1/chat/completions works whether that setting is on or off.

Why does RisuAI say "Unsupported parameter: 'min_p'"?

RisuAI's Custom API sends min_p and top_a set to 0 by default, and ULK Cloud does not accept them. Uncheck Min P and Top A on the Parameters tab of Settings → Chat Bot.

Which API key does RisuAI's Custom API take?

The key of the provider whose URL you entered. For ULK Cloud, that is a key starting with sk-ulk- from the ULK Cloud console, pasted into the Key/Password field. RisuAI sends it as Authorization: Bearer.

Does ULK Cloud work on the RisuAI website and in the app?

Yes. RisuAI sends the same request from both. On the website, RisuAI relays requests through its own server by default; the app sends them directly. ULK Cloud's API also accepts requests made straight from a browser on any site.