The ability to set a custom base URL in n8n’s OpenAI credential depends on your n8n version. Check the n8n OpenAI node documentation for your version to confirm this field is available.
Prerequisites
- An n8n instance (cloud or self-hosted)
- A Qhaigc API key — get one from the API Tokens page
Setting Up the Credential
Fill in the Qhaigc configuration
Enter the following values:
| Field | Value |
|---|---|
| Name | Qhaigc (or any name you prefer) |
| API Key | Your Qhaigc API key (starts with sk-) |
| Base URL | https://api.qhaigc.net/v1 |
Using Qhaigc in a Workflow
Create a new workflow
Click Add Workflow, then add a trigger node — for example, a Webhook, Schedule, or Manual Trigger.
Configure the OpenAI node
In the node settings:
- Set Credential to the Qhaigc credential you created
- Set Resource to Chat
- Set Operation to Create
- Enter a model name in the Model field — for example,
gpt-4o,gpt-4o-mini, orclaude-3-5-sonnet-20241022 - Configure your Messages with the system and user content
n8n’s model list may not include Qhaigc models automatically. Type the model name directly into the Model field rather than selecting from a dropdown.
Example Workflow Patterns
AI content generation on a schedule:Frequently Asked Questions
The node shows “Connection failed” — what should I check? Verify that the Base URL in your credential is set tohttps://api.qhaigc.net/v1 (including /v1), that your API key is valid, and that your n8n instance has outbound internet access.
The model dropdown is empty — how do I select a model?
Type the model name directly into the Model field. n8n uses a fixed model list for the dropdown, but accepts any string you type manually.