abliteration.ai - Uncensored LLM API Platform
Abliteration
DocsRoleplayMigrationDefinitionsPricing
Home/Docs/Uncensored AI for Unity Games

Integrations

Uncensored AI for Unity Games

Use UnityWebRequest to post a chat completion with your abliteration.ai API key.

Quick start

Example request
using System.Collections;
using System.Text;
using UnityEngine;
using UnityEngine.Networking;

public class AblitExample : MonoBehaviour {
  [SerializeField] private string apiKey;

  public IEnumerator Send() {
    var payload = "{\"model\":\"abliterated-model\",\"messages\":[{\"role\":\"user\",\"content\":\"Hello from Unity.\"}]}";
    var req = new UnityWebRequest("https://api.abliteration.ai/v1/chat/completions", "POST");
    req.uploadHandler = new UploadHandlerRaw(Encoding.UTF8.GetBytes(payload));
    req.downloadHandler = new DownloadHandlerBuffer();
    req.SetRequestHeader("Authorization", "Bearer " + apiKey);
    req.SetRequestHeader("Content-Type", "application/json");
    yield return req.SendWebRequest();
    Debug.Log(req.downloadHandler.text);
  }
}

Service notes

  • Pricing model: Usage-based pricing (~$5 per 1M tokens) billed on total tokens (input + output). See the API pricing page for current plans.
  • Data retention: No prompt/output retention by default. Operational telemetry (token counts, timestamps, error codes) is retained for billing and reliability.
  • Compatibility: OpenAI-style /v1/chat/completions request and response format with a base URL switch.
  • Latency: Depends on model size, prompt length, and load. Streaming reduces time-to-first-token.
  • Throughput: Team plans include priority throughput. Actual throughput varies with demand.
  • Rate limits: Limits vary by plan and load. Handle 429s with backoff and respect any Retry-After header.

Common errors & fixes

  • 401 Unauthorized: Check that your API key is set and sent as a Bearer token.
  • 404 Not Found: Make sure the base URL ends with /v1 and you call /chat/completions.
  • 400 Bad Request: Verify the model id and that messages are an array of { role, content } objects.
  • 429 Rate limit: Back off and retry. Use the Retry-After header for pacing.

Related links

  • See API Pricing
  • View Uncensored Models
  • Rate limits
  • Privacy policy
DefinitionsDocumentationRun in PostmanPrivacy PolicyTerms of ServiceHugging Facehelp@abliteration.ai
FacebookX (Twitter)

© 2025 Social Keyboard, Inc. All rights reserved.