Skip to main content
n8n is a workflow automation platform with a visual editor and AI blocks (AI Agent, OpenAI, chains). RuAPI connects through an OpenAI credential with a changed Base URL — after that, all AI nodes route to us.

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

FieldValue
API Keysk-your-key
Base URLhttps://www.ruapi.ai/v1  — with /v1
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

  • The API Key must be a RuAPI token (sk-...).
  • Check the credential’s Base URL is https://www.ruapi.ai/v1 with /v1.
Expand the optional/additional fields in the OpenAI credential form. The field is available in current self-hosted and cloud n8n versions.
The list shows OpenAI models. Enter the model ID manually — it must match RuAPI verbatim.