EN ▾
grokapikey.com

Uncensored AI API for Grok users

https://api.grokapikey.com/v1uncensored

Grok API Key for n8n: Uncensored LLM Workflow Setup

If you want a Grok API key for n8n, note that n8n has no Grok-specific requirement: any OpenAI-compatible endpoint works through its OpenAI credential. Here is how to connect an uncensored text model, build a first workflow, and keep it inside the rate limits.

Updated

Connected workflow node cubes linked by glowing cables, one opening into a chat bubble, representing n8n automation

Key points

  • Grok API uses standard OpenAI-compatible endpoints like /v1/chat/completions for text generation.
  • An uncensored alternative offers a single model tuned for lawful adult content without usage restrictions.
  • Our API requires only an email and password, with no subscription lock-in or monthly fees.
  • Pricing is transparent at $0.15 per 1M input tokens and $0.50 per 1M output tokens.

What you are connecting

This service is a hosted, OpenAI-compatible text API. It is not xAI's Grok API and does not serve Grok models; it runs a single open-weight model, addressed as uncensored, tuned to answer without content refusals for lawful adult use. For n8n users the important property is the compatible interface. Anything in n8n that accepts an OpenAI credential and lets you change the base URL can talk to it.

That covers the most common automation patterns: summarising incoming text, drafting replies, classifying messages, extracting structured fields, and running an AI agent with tools. It does not cover images, audio, embeddings or fine-tuning, because the service is text only. If a workflow needs a vector store, use a different embedding provider for that step and this API for generation.

A practical way to start is to pick one small job that you currently do by hand, such as tagging inbound messages or drafting a first reply, and automate only that. Once it runs reliably for a week, add the next step. Small workflows are easier to debug, and their cost is easy to read from the usage numbers.

Pricing is prepaid: $0.15 per 1M input tokens and $0.50 per 1M output tokens, with no subscription. The pricing page lists the details.

Step 1: get a key

  1. Sign up with Google, or with email and password.
  2. Open the API key page. New users can claim $0.50 of trial credit with one click, one per person, valid for 7 days, no payment details.
  3. Copy the key. Treat it like a password; anyone holding it can spend your credit.

The trial key is limited to 2 concurrent requests and 60 per minute, which is enough to build and test a workflow. For production, a full key allows 8 concurrent and 300 per minute. Top-ups run from $20 to $500 in USDT on TRC20 or USDC on Base.

Step 2: add the credential in n8n

In n8n, open Credentials, create a new one, and pick the OpenAI type. Fill it in like this:

FieldValue
API Keyyour key from step 1
Base URLhttps://api.grokapikey.com/v1

The Base URL field is the one that matters. Left at its default, n8n would send your key to OpenAI. Set it, save, and run the credential test if your n8n version offers one. If the test fails but real requests work, that is common with compatible providers, because some versions of the test call endpoints a given service does not implement. Judge by a real run of a node.

The labels on credential screens shift between n8n releases, so if you cannot find the field, check the credential's advanced options.

Step 3: build a first workflow

A simple, useful test is a summariser. Add a Manual Trigger, a Set node that holds some sample text in a field called text, and an OpenAI Chat Model node attached to a Basic LLM Chain (or an AI Agent). In the model node choose your new credential and set the model to uncensored. If the dropdown only lists names it fetched itself, switch the field to an expression or manual entry and type the ID.

In the chain's prompt, reference the text with an expression such as {{ $json.text }} and add an instruction like "Summarise the following in three bullet points." Execute the workflow and check the output. You should see a normal chat completion.

Lower the temperature for extraction and classification jobs, around 0.2, and raise it to 0.8 or so for creative drafting. Both are options on the model node.

Alternative: the HTTP Request node

When a node does not expose a base URL, or you want full control of the payload, use an HTTP Request node. Set the method to POST and the URL to https://api.grokapikey.com/v1/chat/completions. Add a header Authorization with the value Bearer YOUR_KEY, or better, attach a Header Auth credential so the key is not stored in the workflow. Send a JSON body:

{
  "model": "uncensored",
  "messages": [
    {"role": "system", "content": "You classify support emails as billing, bug or other. Reply with one word."},
    {"role": "user", "content": "{{ $json.body }}"}
  ],
  "temperature": 0.1,
  "max_tokens": 5
}

The reply text sits at choices[0].message.content in the response. A Set node afterwards can pull it into a clean field. The same request from a terminal looks like this, which is handy for debugging outside n8n:

curl https://api.grokapikey.com/v1/chat/completions \
  -H "Authorization: Bearer YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"uncensored","messages":[{"role":"user","content":"Reply with the word ok."}],"max_tokens":5}'

For structured data, add "response_format": {"type": "json_object"} to the body and ask for JSON in the prompt. Then parse it in the next node and handle the case where a field is missing.

Staying inside rate limits

Automation tools tend to fire many items at once, so limits matter more here than in a chat app. A full key allows 8 concurrent requests and 300 per minute. Past a limit the API returns HTTP 429. The error code rate_limited means too many per minute, concurrency means too many simultaneous, and a Retry-After: 5 header marks temporary overload.

  • In the HTTP Request node, open Options and use Batching to set a batch size of 8 or fewer, with an interval between batches.
  • Turn on Retry On Fail in the node settings, with a wait of at least 5 seconds between tries, to match the Retry-After value.
  • Keep n8n's own workflow concurrency in mind: several executions running the same node multiply the in-flight count.
  • Streaming holds a concurrency slot until it ends, so avoid streaming in bulk jobs where you only need the final text.

Failed or refused requests are not charged, so retries do not cost you credit for failed work.

Common problems in n8n

  • The node still calls OpenAI. The base URL was left blank or reverted. Reopen the credential and check the field, then re-select the credential in the node.
  • Model not found. The model name must be exactly uncensored, in lower case, with no spaces.
  • Unauthorized. The key has a trailing space or newline from copying. Paste it again and trim it.
  • Empty output in an agent. Agents send tool definitions and long histories, which raise input tokens. Check the context size and trim the memory window if runs grow slow or costly.
  • Expressions not resolving. A prompt field set to fixed text will print {{ $json.text }} literally. Switch the field to expression mode.

If an agent uses tools, the service supports tool calling in the standard format, and results are returned as role: "tool" messages, which is what n8n's agent node produces. Test with a single simple tool first. Agent loops make several model calls per run, so multiply the per-call cost accordingly.

What a run costs

Take a workflow that summarises one article per run: 3,000 input tokens (the article plus instructions) and 400 output tokens. Input costs 3,000 x $0.15 / 1M = $0.00045. Output costs 400 x $0.50 / 1M = $0.0002. One run costs $0.00065.

At 1,000 runs a day that is $0.65 a day, or $19.50 over 30 days. If you classify short messages instead, at 300 tokens in and 5 out, a run costs $0.000045 + $0.0000025 = $0.0000475, so 100,000 runs come to $4.75. Numbers like these are why per-token billing suits automation: you pay for the work, not for idle time.

Watch the X-Balance-USD header if you use the HTTP Request node; with a full response option enabled you can alert yourself from the workflow when the balance falls below a threshold. For API specifics beyond n8n, see the documentation. Prompts are not used for training, which matters when workflows process customer text.

Frequently Asked Questions

Is the uncensored model truly without content filters?

Yes, the model is tuned to answer without content refusals for lawful adult use. The only hard limit is that sexual content involving minors is always blocked. This makes it suitable for creative and adult content generation without unexpected restrictions.

Can I use the official OpenAI SDKs with this API?

Absolutely. Our API is fully OpenAI-compatible. You can use the same SDKs and client libraries, simply by updating the base URL and API key in your configuration. This ensures a smooth transition for developers already familiar with OpenAI’s ecosystem.

How does the prepaid credit system work?

You purchase credit starting from $20, which never expires. You pay only for the tokens you use, with no monthly fees or subscription lock-in. Bonuses are applied for larger purchases, enhancing the value of your investment.

Is my data used for training?

No, prompts are not used for training. Your data remains private, and an account requires only an email and password. This ensures that your content and usage patterns are not leveraged for model improvement without your consent.

Questions and answers

Does n8n have a built-in Grok node?

Check your n8n version for the current list of nodes. You do not need one to use this service, because the OpenAI credential and the HTTP Request node both accept a custom base URL.

What model name do I enter in n8n?

Enter uncensored. If the node only shows a dropdown, switch the field to manual or expression entry.

Why do I get a 429 error in my workflow?

You passed the limit of 8 concurrent or 300 per-minute requests on a full key (2 and 60 on a trial key). Batch the items and enable retry with a wait of 5 seconds.

Is this the official xAI Grok API?

No. It is a separate OpenAI-compatible text API running one open-weight model.

Can n8n stream the response?

The API supports streaming, but most n8n workflows only need the final text, so a normal non-streamed request is simpler and avoids holding a concurrency slot.

Your key is one form away

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