Agnai setup guide

How to connect Agnai to UnleashedAPI

Adults 18 and older only. UnleashedAPI is an adult service. Do not use it with Agnai if you are under 18, and never create or request sexual content involving minors, including fictional or “aged-up” depictions.

Quick answer

The three values Agnai needs

They go into a new provider: press + New in a preset’s Service picker.

URL
https://api.unleashedapi.com/v1Keep /v1 on the end. Agnai adds /chat/completions itself.
API Key
Your own UnleashedAPI keyIt starts with ulk_, is shown once when you create it on the account page, and is sent as Authorization: Bearer by the tool itself.
Model
deepseek-v4.1-flash-abliteratedChoose it from the model list, or type it under Manual Model ID.

Two routes, same values. OpenAI Compatible (under Custom) sends requests from Agnai’s server. Self-Host / OpenAI Compatible (under Local / Self-Host) sends them from your browser, so the chats go straight to us. Either way, use the URL above with /v1.

Setup

Step-by-step: connect UnleashedAPI to Agnai

Written for the hosted app at agnai.chat. You need an Agnai account so the provider can be saved.

  1. Create an account and an API key

    Press Sign up, pick a plan and pay by card (cancel anytime) or crypto (30 days, never auto-renews). We email you a sign-in link once the payment goes through. On your account page, give the key a label under New key label, press Create key and copy it straight away: it is shown once and starts with ulk_.

    One key per tool means you can revoke this one later without breaking anything else.

  2. Open the Service picker

    Open the preset you chat with (or the chat’s generation settings) and find Service. Press + New. A window titled Create Provider opens.

  3. Choose the provider type

    Open the provider dropdown. Under Custom, choose OpenAI Compatible for the server route. To send requests from your browser instead, choose Self-Host / OpenAI Compatible under Local / Self-Host.

  4. Fill in the provider

    • Label: any name, for example UnleashedAPI.
    • URL: https://api.unleashedapi.com/v1
    • API Key: your ulk_ key.
    • Request Format: OpenAI Compat (Chat). Avoid OpenAI (Completion): it calls /v1/completions, which UnleashedAPI does not serve.

    On the Custom route, leave Disable Auto-URL off.

  5. Test the connection and save

    Press Test Connection. A green tick means the URL and key work. Press Create to save the provider.

  6. Pick the provider and a model

    Back in the Service picker, choose the provider you just made. In the model picker, choose deepseek-v4.1-flash-abliterated or another ID from the table below, or type it under Manual Model ID and press Confirm.

  7. Set context and response length

    In the same preset, raise Context Size; Agnai’s slider goes up to 32000 for this kind of provider, and every model accepts far more. Set Response Length to 400 to 800, and turn on Stream Response to watch replies arrive.

  8. Send a test message

    Open a chat that uses the preset and send something short. A reply means you are connected. If an error appears instead, match it against the troubleshooting table.

Good to know

  • Which route to pick. The Custom route is the simplest and keeps working on any device you sign in from. The Self-Host route keeps the chat traffic between your browser and UnleashedAPI; our API accepts browser requests from agnai.chat.
  • Why /v1 matters on the Self-Host route. That route joins your URL and /chat/completions as they are, so a URL without /v1 returns a 404. The Custom route adds /v1 when the URL has no version, but typing it does no harm.
  • Running Agnai yourself? The Custom route works the same from your own server. The browser route from a local address is not accepted by our API, so use Custom there.
Models

Which models to use in Agnai

Pick any of these from the model list, or type the ID. Five of our eight models are uncensored; start with uncensored DeepSeek Flash.

Model ID, type, typical speed, lowest plan and what it suits
Model IDTypeTypical speedLowest planUse it for
deepseek-v4.1-flash-abliterated
Start here
uncensored ~85 tok/s Every plan Character dialogue and scene prose. Uncensored and included on every plan.
deepseek-v4.1-flash-abliterated-fast uncensored ~120 tok/s Plus The same uncensored DeepSeek line with quicker replies, for long sessions.
glm-5.3-flash-abliterated uncensored ~78 tok/s Plus Longer scenes that need plot and character continuity across many turns.
glm-5.3-abliterated uncensored ~42 tok/s Pro The full GLM 5.3: richer prose than the Flash version, heavier on capacity.
kimi-k3.1-pro-abliterated uncensored ~32 tok/s Max Lore-heavy, long-memory chats where the biggest uncensored model is worth it.
minimax-m3.1-flash standard ~90 tok/s Every plan Fast general chat when you do not need an uncensored model.

Speeds are typical tokens per second, not a guarantee. Model IDs are lower case and must match exactly. Asking for a model your plan does not include returns a 403 naming a plan that has it; compare plans in the plans section.

Troubleshooting

Fixing Agnai errors with UnleashedAPI

Start with Test Connection in the provider window, then the error text in the chat.

Symptom, likely cause and fix
What you seeLikely causeFix
Test Connection shows a red cross The URL has a typo or the key is wrong. Enter https://api.unleashedapi.com/v1 and paste the whole ulk_ key again, then test again.
404 not found The URL has no /v1 on the Self-Host route, has /chat/completions typed on the end, or Request Format is OpenAI (Completion). Use exactly https://api.unleashedapi.com/v1 and choose OpenAI Compat (Chat).
401 invalid_api_key The key is incomplete, has a stray space, was revoked, or never reached the tool. Edit the provider (the pencil icon in the Service picker), paste the whole ulk_ key again, or create a new one on the account page.
403 model_not_available, or an unknown model error The model is not on your plan, or the ID is misspelled or has capital letters. Copy the ID from the table above. If the error names a plan, that model needs it: pick another or upgrade.
429 rate limited Too many requests at once (Plus 3, Pro 4, Max 6, Unleashed 10), or a rolling 5-hour, 7-day or 30-day window is full. Wait for the Retry-After interval and try again. If error.window is set, that window is full: wait for it to roll, top up or upgrade. Without it, your plan's requests at a time were all busy: the request already waited a few seconds for a free slot (up to about 10 for non-streaming calls), so retry after a moment. There is never an overage charge.
Empty or cut-off replies Response Length is too low: the models may spend output tokens reasoning before they write. Raise Response Length to 600 or more.

Still stuck? Email support@unleashedapi.com with the time, model and error text, never the key.

FAQ

Agnai FAQ

Short answers for this tool. For account questions, the site FAQ covers plans, billing and privacy.

Can Agnai use a custom OpenAI-compatible API?

Yes. Create a provider with the + New button in a preset’s Service picker, choose an OpenAI-compatible provider type and enter a URL and key. For UnleashedAPI the URL is https://api.unleashedapi.com/v1 and the request format is OpenAI Compat (Chat).

Which Agnai provider type should I choose?

OpenAI Compatible, under Custom, is the simplest: Agnai’s server sends the requests. Self-Host / OpenAI Compatible, under Local / Self-Host, sends them from your browser instead. Both work with UnleashedAPI.

What URL do I enter in Agnai?

https://api.unleashedapi.com/v1. On the Custom route Agnai would add /v1 to a bare https://api.unleashedapi.com, but the Self-Host route adds only /chat/completions, so it needs /v1 typed in. Using /v1 on both is the safe choice.

Which model should I use for Agnai roleplay?

Start with deepseek-v4.1-flash-abliterated, the uncensored DeepSeek V4.1 Flash, which is on every plan. On Plus, try deepseek-v4.1-flash-abliterated-fast for speed or glm-5.3-flash-abliterated for long scenes. glm-5.3-abliterated on Pro and kimi-k3.1-pro-abliterated on Max give the richest prose.

Do my chats pass through Agnai’s servers?

On the Custom route, yes: Agnai’s server sends each request to UnleashedAPI. On the Self-Host / OpenAI Compatible route your browser sends the chat requests to UnleashedAPI directly.

Does UnleashedAPI log what I send from Agnai?

No. UnleashedAPI does not write prompt or completion text to storage or logs. For billing it records only the account, the model, the token counts, the cost and the time of each request, and keeps those records for up to 35 days. Agnai is a separate service with its own privacy terms.

Plans

Pick a plan. Upgrade when you need more.

Plans from $9/month: card plans cancel anytime, crypto plans cover 30 days and never auto-renew. No overage billing, ever. Uncensored DeepSeek V4.1 Flash is on every plan.

Plus

$9/month

Build side projects

Capacity vs PlusBaseline

5 models · 3 uncensored

Typical requests

per 5 hours
≈ 25,000
per 7 days
≈ 33,000
per 30 days
≈ 70,000

≈ 170M tokens / 30 days on DeepSeek V4.1 Flash Fast

  • Uncensored DeepSeek V4.1 Flash and GLM 5.3 Flash
  • Plus DeepSeek V4.1 Flash Fast and MiniMax M3.1 Flash
  • 3 requests at a time
  • For personal tools and occasional coding
Choose Plus

Card monthly, or $90/year (2 months free) · crypto 30 days

Max

$39/month

Stay in flow for longer

Capacity vs PlusAbout 4×

All 8 models · 5 uncensored

Typical requests

per 5 hours
≈ 100,000
per 7 days
≈ 140,000
per 30 days
≈ 310,000

≈ 790M tokens / 30 days on DeepSeek V4.1 Flash Fast

  • Complete model library
  • Adds uncensored Kimi K3.1 Pro
  • 6 requests at a time
  • Made for long sessions and demanding workflows
Go Max

Card monthly, or $390/year (2 months free) · crypto 30 days

Unleashed

$100/month

Maximum capacity

Capacity vs PlusAbout 10×

All 8 models · 5 uncensored

Typical requests

per 5 hours
≈ 250,000
per 7 days
≈ 360,000
per 30 days
≈ 830,000

≈ 2B tokens / 30 days on DeepSeek V4.1 Flash Fast

  • Complete model library, every uncensored model
  • 10 requests at a time
  • For heavy, all-day and high-volume use
Get Unleashed

Card monthly, or $1,000/year (2 months free) · crypto 30 days

Estimates for a typical request (2,000 tokens in, 500 out) on deepseek-v4.1-flash-fast; reasoning tokens count as output, so real numbers vary. Larger models use more per request. Repeated context is usually billed at a lower cached rate.