RendGet started

Blog

NSFW AI API for adult apps: rules, age checks and setup

Rend API documentation page showing code examples for the rend-1 writing model.

An adult app built on an NSFW AI API needs two separate age checks: the provider confirms that you, the account holder, are an adult, and your app confirms that each of your users is. On the Rend API, you turn on adult output by sending "uncensored": true, after your account has confirmed once in rend.ai/chat that it is 18 or over. Without that step, the API returns 403 adult_confirm.

Most teams handle the first check and forget the second, which is the one the law and your users will hold you to. The Rend API for the rend-1 writing model is in early access. It uses the OpenAI chat completions format, so most existing code works after a base URL change.

How does the Rend API handle adult content?

The Rend API turns on adult output per request, with one field. You add "uncensored": true to the request body. The field works only after the account that owns the API key has confirmed it is 18 or over, once, in rend.ai/chat.

That confirmation sits on your account, so it tells Rend that the developer is an adult. It tells nobody who is typing into your app. Checking your users' ages is your job, and the sections below show how to wire both checks together.

What does the 403 adult_confirm error mean?

A 403 adult_confirm response means the request sent "uncensored": true from an account that has not yet confirmed it is 18 or over. To fix it, sign in to rend.ai/chat with the account that owns the key, confirm your age once, and send the request again. Retrying before then returns the same 403.

Treat this error as a setup problem on your side. Your users cannot fix it, so log it, alert your team and show them a plain message such as "Adult mode is unavailable right now." Never pass the raw error text through to the app screen.

How do I set up the Rend API?

Setup takes three steps. The API accepts OpenAI-style chat completion requests, so the OpenAI SDKs for Python and JavaScript work once you point them at the Rend base URL.

  1. Create a key in Rend under Settings, Connections, Rend API. Keys start with rnd_api_.
  2. Set your client's base URL to https://api.rend.ai/v1 and send the key as a Bearer token.
  3. If you plan to send "uncensored": true, confirm 18+ once in rend.ai/chat with the same account.

The available models are rend-1, rend-1-regular and rend-pro. You can list them yourself with GET /models.

curl

curl https://api.rend.ai/v1/models \
  -H "Authorization: Bearer $REND_API_KEY"

curl https://api.rend.ai/v1/chat/completions \
  -H "Authorization: Bearer $REND_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "rend-1",
    "uncensored": true,
    "messages": [
      {"role": "system", "content": "All characters are adults."},
      {"role": "user", "content": "Continue the scene from chapter 3."}
    ]
  }'

Python with the OpenAI SDK

The Python SDK rejects keyword arguments it does not know, so uncensored goes in extra_body.

import os
from openai import OpenAI, APIStatusError

client = OpenAI(
    base_url="https://api.rend.ai/v1",
    api_key=os.environ["REND_API_KEY"],
)

try:
    resp = client.chat.completions.create(
        model="rend-1",
        messages=[
            {"role": "system", "content": "All characters are adults."},
            {"role": "user", "content": "Continue the scene from chapter 3."},
        ],
        extra_body={"uncensored": True},
    )
    print(resp.choices[0].message.content)
except APIStatusError as e:
    if e.status_code == 403:
        pass  # adult_confirm: confirm 18+ once in rend.ai/chat, then alert your team
    elif e.status_code == 503:
        pass  # busy moment: retry with backoff
    else:
        raise

JavaScript with the OpenAI SDK

import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.rend.ai/v1",
  apiKey: process.env.REND_API_KEY,
});

const resp = await client.chat.completions.create({
  model: "rend-1",
  uncensored: true,
  messages: [
    { role: "system", content: "All characters are adults." },
    { role: "user", content: "Continue the scene from chapter 3." },
  ],
});

console.log(resp.choices[0].message.content);

In TypeScript, the extra field needs a type cast or a // @ts-expect-error line above it. Keep the key on your server in every language. If the key ships in browser or mobile code, anyone who finds it can send adult requests on your account.

What does Rend check, and what does your app have to check?

Rend checks the account that owns the key. Your app checks every person who sees the output. This table splits the work.

CheckWho does itWhat it covers
Account holder is 18+Rend, once in rend.ai/chatThe account that owns the API key
Adult output for this requestYour server, by sending "uncensored": trueOne request
User is 18+Your appEvery person who can see adult output
Content stays inside the hard limitsRend's rules, plus your own prompt screeningEvery request, with or without the flag
Local age verification lawYour app, with legal adviceEach country or state you serve

How strongly you must verify a user's age depends on where that user lives, and the rules change often. Check the current law for each market before launch, and get legal advice for the markets that matter most to you.

Whatever method the law requires, the wiring on your side looks the same:

  • Run the age check at sign-up, before any adult output appears.
  • Store the result on your server with the date it passed.
  • Send "uncensored": true only for users whose stored check passed.
  • When a user's status is missing or unclear, send a standard request instead.
  • Give users a report button and act on what comes in.

The fourth rule matters most. A bug that drops the age field should fail toward standard output, never toward adult output.

What stays off limits in uncensored mode?

Uncensored mode on the Rend API allows sexual content between adults. These hard limits apply to every request, with or without the flag:

  • Anything sexual must involve adults only. Content that sexualises minors is banned in every form.
  • Real people cannot appear without their consent.
  • Harassment is banned.
  • Copyright infringement is banned.

Build the same lines into your own product. State in your system prompt that every character is an adult. Screen user prompts before they reach the API and reject ones that give a character an age under 18 or name a real person who has not consented. Put the same limits in your terms of service so you have grounds to close accounts that break them.

What limits apply to each request?

The Rend API gives each request a large budget and sets no per-account rate limit. A busy moment can still return a 503.

LimitValue
Context window1M tokens
Maximum output, rend-1131,072 tokens
Maximum output, rend-pro128,000 tokens
Images per requestUp to 10
Tools per requestUp to 128
Per-account rate limitNone; a busy moment can return 503

Handle 503 even though there is no rate limit. Retry after 1 second, then 2, then 4. After that, show the user a "try again in a moment" message instead of retrying forever.

A long companion chat fits easily inside 1M tokens. Sending the full history on every turn still adds tokens to each request, so summarise older turns once a conversation gets long. Prices are listed on the Rend facts page with current API prices. Check them there before you budget, because they can change during early access.

Rend facts page displaying current API pricing and usage limits.

Worked example: one request from an adult fiction app

Here is the full path of one request in a story app where adults co-write fiction with the model.

  1. A new user signs up and passes your age check. Your server saves age_verified: true with the date.
  2. The user opens their story and asks for the next scene.
  3. Your server screens the prompt. A character given an age under 18 or a named real person gets the prompt rejected with a clear reason, and nothing goes to the API.
  4. Your server reads the stored age check. If it passed, the request goes to rend-1 with "uncensored": true. If the field is missing, the request goes without the flag.
  5. Your server handles the response. A 200 goes to the user. A 403 adult_confirm triggers an alert to your team, because the account step in rend.ai/chat was skipped. A 503 retries at 1, 2 and 4 seconds, then shows the user a retry message.
  6. Your server logs which user received adult output and when, next to the date of their age check.

Step 6 looks like paperwork until someone asks how a piece of content reached a particular account. With that log, you can answer in minutes.

What to do next

Create a Rend account, confirm 18+ once in rend.ai/chat, then make a key under Settings, Connections, Rend API and run the curl sample above. Compare plan options on Rend's pricing page before you ship. If your app also needs video, the same account opens Rend Studio in the browser, with video tools for captions, voice and music and no install. Start a free Rend account to try the API and the editor.

Frequently asked questions

Does confirming I'm 18 on Rend verify my app's users?

No. The confirmation in rend.ai/chat covers only the account that owns the API key. Your app has to check the age of every user who can see adult output, using whatever method the law requires where they live.

Do I need to confirm my age again for each new API key?

The 18+ confirmation is a one-time step for the account, made in rend.ai/chat. Keys are created under Settings, Connections, Rend API on that same account. If you get 403 adult_confirm, check that the key belongs to the account that confirmed.

Can I write sexual content about a real person or celebrity with the Rend API?

Only with that person's consent. Real people without consent are a hard limit in every mode, including when "uncensored": true is set. Screen prompts for real names before they reach the API.

Is the Rend API ready for a production app?

The Rend API is in early access. It has no per-account rate limit, but a busy moment can return a 503, so build retries with backoff and a fallback message into your app. For questions about your use case, email support@rend.ai.

Can the Rend API make videos for my app?

The Rend API serves chat completions from the rend-1, rend-1-regular and rend-pro models. For video, Rend Studio runs in a browser editor with no install and no local GPU needed. Editing there is free, and you pay only when Rend renders or generates something.

Give Rend the job.

Editing is free. You pay only when Rend renders or generates something. What Rend is and who it’s for.