Prerequisites
1
RuAPI account and API key
Console → Tokens → create an
sk-... key. The balance tops up in USDT — see Top-up.Create the credential
1
Add an OpenAI credential
In n8n: Credentials → New → OpenAI.
2
Fill the fields
The Base URL field may sit under “Optional fields” (the gear) in the OpenAI credential form. Save the credential.
Use it in a node
1
Add an AI node
Drop an OpenAI node or an AI Agent (with an OpenAI Chat Model) onto the canvas.
2
Pick the RuAPI credential
In the node’s Credentials field, select the credential you created.
3
Set the model
Enter the exact model ID from the pricing page. If your model isn’t in the dropdown, set the ID manually (“By ID” mode or an expression).
Verify
Run the node with a simple prompt (“Hi, answer in one word”). A successful reply plus an entry in RuAPI Console → Logs means the wiring works.Troubleshooting
I don't see a Base URL field
I don't see a Base URL field
Expand the optional/additional fields in the OpenAI credential form. The field is available in current self-hosted and cloud n8n versions.
My model isn't in the dropdown
My model isn't in the dropdown
The list shows OpenAI models. Enter the model ID manually — it must match RuAPI verbatim.