fa ▾

شروع سریع: ادغام API بدون سانسور

API LLM بدون سانسور ما را در برنامه‌های خود با صفر اصطکاک یکپارچه کنید. این راهنما شامل نقطه پایانی سازگار با OpenAI، احراز هویت و استریم برای استقرار سریع است.

URL پایه و احراز هویت

اتصال فوری به اندپوینت ما با به‌روزرسانی پیکربندی کلاینت خود. استفاده از https://api.apikeyforclaudecode.com/v1 به‌عنوان آدرس پایه (base URL) خود تنظیم کنید و اعتبارنامه خود را در Authorization header. یک کلید فعال برای هر حساب از طریق ثبت‌نام با گوگل یا ایمیل دریافت می‌کنید.

احراز هویت به توکن‌های bearer استاندارد متکی است. اطمینان حاصل کنید که کلید شما قبل از ارسال payload معتبر است. کلیدهای نامعتبر خطاهای 401 برمی‌گردانند. موجودی اعتبار خالی پاسخ‌های 402 را ایجاد می‌کند. محدودیت‌های نرخ 300 درخواست در دقیقه را اعمال می‌کنند.

ارسال اولین درخواست

متن را به مدل با استفاده از نقطه پایانی استاندارد تکمیل‌های چت ارسال کنید. پیکربندی خود را با شناسه مدل uncensored و پارامترهای دلخواه خود. این روش با هر SDK سازگار با OpenAI کار می‌کند.

  • تنظیم model به uncensored.
  • کلید messages.
  • Define max_tokens for output length.

Our servers process the request and return raw text. No hidden filters apply to lawful adult content.

curl https://api.apikeyforclaudecode.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "uncensored",
    "messages": [{"role": "user", "content": "List three benefits of serverless architecture"}]
  }'

Python SDK Integration

Use the official Python library to interact with the API programmatically. Initialize the client with your base URL and API key. This setup ensures compatibility with existing codebases.

Pass your messages array to the chat.completions.create method. The response contains the generated text and token usage. Errors are raised as standard exceptions. Check your balance before heavy usage.

from openai import OpenAI

client = OpenAI(base_url="https://api.apikeyforclaudecode.com/v1", api_key="YOUR_KEY")

resp = client.chat.completions.create(
    model="uncensored",
    messages=[{"role": "user", "content": "Summarise this thread without softening it."}],
)
print(resp.choices[0].message.content)

Node SDK Implementation

Integrate the API into Node.js applications with minimal code changes. Set the baseUrl to our endpoint. Pass your API key as the apiKey value.

Create a completion request with your system and user messages. Handle the response object to extract the content. This method supports JSON mode and function calling for structured outputs.

import OpenAI from "openai";

const client = new OpenAI({ baseURL: "https://api.apikeyforclaudecode.com/v1", apiKey: process.env.API_KEY });

const resp = await client.chat.completions.create({
  model: "uncensored",
  messages: [{ role: "user", content: "Draft a villain monologue for my game." }],
});
console.log(resp.choices[0].message.content);

Handling Streaming Responses

Enable streaming for lower latency and real-time token display. Set the stream parameter to true in your request. The API returns a server-sent events (SSE) stream.

Parse each chunk to access partial completions. The final chunk includes total token usage. This feature is essential for chat interfaces and live coding tools.

stream = client.chat.completions.create(
    model="uncensored",
    messages=[{"role": "user", "content": "Tell the story in second person."}],
    stream=True,
)
for chunk in stream:
    if chunk.choices and chunk.choices[0].delta.content:
        print(chunk.choices[0].delta.content, end="", flush=True)

Limits, Errors, and Context

Understand the operational limits to optimize your application. The context window supports 100,000 tokens total. Max output is 16,000 tokens per request. Errors like 401 indicate invalid keys. 402 errors mean no credit. 429 signals rate limits. Your prepaid credit never expires.

Frequently asked questions

What is the API key for claude code alternative?

Our API key provides access to an uncensored LLM via an OpenAI-compatible endpoint. It works with standard SDKs without requiring a subscription. You receive the key immediately after signup.

How does pricing work for this uncensored AI API?

We charge $0.15 per 1M input tokens and $0.50 per 1M output tokens. Errors are free. You can top up with USDT or USDC starting at $20. No monthly fees apply.

What are the limits for the uncensored coding API?

You get 300 requests per minute and a 100,000 token context window. Max output is 16,000 tokens. Streaming and function calling are supported. Use JSON mode for structured data.

Generate your key now

Register, retrieve your key, update your base URL. Simple configuration.

Get API key