EN ▾

Uncensored text API for NSFW pipelines

https://api.nsfwflux.cc/v1uncensored

Get API key

The Ultimate Guide to the Flux API for NSFW Text Pipelines

The flux api provides an uncensored text-completion engine designed for developers who need reliable adult content generation without arbitrary refusals. This guide covers integration patterns, parameter tuning, and cost management for NSFW text pipelines using the uncensored model.

The Ultimate Guide to the Flux API for NSFW Text Pipelines

Updated

What is the Flux API?

The flux api is a hosted, OpenAI-compatible chat-completions endpoint designed specifically for pipelines that require uncensored text generation. Unlike general-purpose LLMs that may refuse adult or controversial topics, this API serves a single, open-weight model tuned to answer without content refusals for lawful adult use. The model is not GPT, Claude, Gemini, or any other vendor's model; it is an independent model run on dedicated servers.

It operates as a text-in, text-out engine. You send prompts and receive completions via standard HTTP requests. The base URL is https://api.nsfwflux.cc/v1, which allows you to use official OpenAI SDKs or any compatible client by simply updating the base_url and providing your API key. The API does not offer embeddings, image generation, audio, or video capabilities; it is strictly for text completion tasks within your broader workflow.

Why Use an Uncensored Model for Text?

Standard LLMs often apply broad content moderation that can block legitimate adult narratives, nuanced roleplay, or specific stylistic choices simply because they contain mature themes. An uncensored text api removes these arbitrary guardrails while maintaining high-quality coherence. This is critical for NSFW AI pipelines where the text component drives the user experience.

Our model refuses only one hard content limit: sexual content involving minors. All other lawful adult, fictional, security-research, or controversial topics are permitted. This ensures that your pipeline can handle diverse content types without unexpected interruptions. The uncensored nature applies to both prompt writing and script generation, making it a solid engine for post-processing text within media workflows.

Setting Up the Flux API Client

Integration begins with obtaining an API key. Sign up via the 'Get API key' page using 'Continue with Google' or email + password. The key is shown immediately, and no phone number is required. You receive $0.50 of trial credit valid for 7 days, with no card needed. Claim this credit with one click on your API key page.

Configure your client to point to the base URL https://api.nsfwflux.cc/v1. Use the model id 'uncensored' for all requests. The API supports standard parameters like temperature, top_p, stop, seed, presence_penalty, and frequency_penalty. You can send requests to POST /v1/chat/completions and retrieve model metadata via GET /v1/models.

  • Rate limit: 300 requests per minute per key.
  • Concurrency: 8 requests at the same time per key.
  • Max request body: 8 MB.

Configuring Parameters for NSFW Content

To optimize the uncensored model for NSFW text generation, adjust parameters to control creativity and coherence. The context window is 100,000 tokens (prompt + completion together). There is no separate output cap, and if max_tokens is not set, the response can run to the end of the window.

Use temperature to vary the randomness of responses. Higher values produce more creative but less predictable text, which may be desirable for roleplay. Lower values provide more deterministic outputs. Top_p controls nucleus sampling, filtering out low-probability tokens. Stop sequences allow you to define specific strings that terminate the response, useful for controlling dialogue turns.

Seed ensures reproducibility. If you need consistent outputs for testing or specific narrative beats, fix the seed. Presence_penalty and frequency_penalty help reduce repetition, ensuring the text remains engaging over long contexts.

Streaming Responses for Real-Time Output

Streaming via Server-Sent Events (SSE) is essential for real-time user experiences. The API supports streaming, returning tokens as they are generated. Token usage information is included in the last chunk of the stream, allowing you to track costs and context window usage in real time.

This is particularly useful for chat interfaces where users expect immediate feedback. Streaming reduces perceived latency compared to waiting for the full completion. It also allows your pipeline to process text incrementally, which can be beneficial for post-processing or extraction tasks.

Using JSON Mode for Structured Data

For pipelines that require structured data, use JSON mode by setting response_format to json_object. This forces the uncensored model to output valid JSON, making it easier to parse and integrate into downstream applications. This is ideal for extracting entities, generating structured scripts, or creating data objects from text prompts.

Ensure your prompt clearly defines the JSON schema you expect. The model is tuned to follow instructions closely, so providing a clear structure in the system prompt improves accuracy. This feature is part of the function calling capabilities, allowing you to define tools and specify tool_choice for more complex interactions.

Handling Errors and Rate Limits

Errors are free, meaning you are not charged for tokens if a request fails due to rate limits or invalid input. The rate limit is 300 requests per minute per key. If you exceed this, you will receive a 429 error. Concurrency is limited to 8 simultaneous requests per key.

Request bodies are capped at 8 MB. If you exceed these limits, implement exponential backoff in your client. The API does not offer SLA percentages, so plan for occasional variability in response times. Errors do not consume your prepaid credit, which is a significant advantage for testing and development.

Pricing and Cost Optimization

Pricing is straightforward: $0.15 per 1M input tokens and $0.50 per 1M output tokens. Credit is prepaid and charged by real token usage. Errors and refusals are free. There is no subscription, no monthly fee, and paid credit never expires.

Top-ups are crypto-only: USDT (TRC20) or USDC (Base). You can top up any whole amount from $20 to $500. Bonuses are available: +5% bonus credit from $50, +10% from $100, and +15% from $200. This makes bulk purchases more cost-effective. Refunds are not issued for credit, but double charges are fixed via the Support page.

  • Input: $0.15 / 1M tokens
  • Output: $0.50 / 1M tokens
  • Min top-up: $20
  • Max top-up: $500

Conclusion: Best Practices for Flux API Integration

The flux api offers a reliable, uncensored text engine for NSFW pipelines. By using OpenAI-compatible endpoints, you can integrate it with existing tools and SDKs. Focus on optimizing parameters like temperature and top_p to balance creativity and coherence. Use JSON mode for structured outputs and streaming for real-time experiences.

Monitor your token usage to optimize costs. Take advantage of crypto bonuses for bulk top-ups. Remember that the API is for text only; handle image, video, or audio generation in other parts of your pipeline. With proper configuration, the uncensored model provides a reliable foundation for adult content generation.

Questions and answers

Is the flux api compatible with OpenAI SDKs?

Yes, the flux api is fully OpenAI-compatible. You can use the official OpenAI SDKs or any OpenAI-compatible client by setting the base_url to https://api.nsfwflux.cc/v1 and providing your API key. The model id is 'uncensored'.

How do I top up my credit?

Top-ups are crypto-only. You can pay with USDT (TRC20) or USDC (Base) for any whole amount between $20 and $500. Bonuses of +5% from $50, +10% from $100, and +15% from $200 apply for larger top-ups. No credit cards or PayPal are accepted.

What is the context window size?

The context window is 100,000 tokens, which includes both the prompt and the completion. There is no separate output cap, and if max_tokens is not set the response can run to the end of the window.

Are errors charged?

No, errors and refusals are free. You are only charged for tokens that are successfully generated and returned in the response.

Your key is one form away

Create an account, copy the key, change the base URL. That is the whole setup.

Key points

  • The flux api is an OpenAI-compatible endpoint that returns pure text without filtering lawful adult content.
  • Configuration supports streaming, JSON mode, and function calling for complex pipeline integration.
  • Pricing is usage-based at $0.15 per million input tokens and $0.50 per million output tokens.
  • Top-ups require crypto (USDT or USDC) with no monthly fees or expiration on credit.

Start with trial credit

Email and password, key on screen right away.