---
url: 'https://docs.byesu.com/en/clients/n8n.md'
description: >-
  Configure byesu API in n8n OpenAI and Anthropic Chat Model nodes: run Claude
  5.5, GPT-6.2, Gemini 4, and DeepSeek V4 in automated AI Agent workflows.
---

# Connect n8n to byesu API

Point **n8n**'s built-in **OpenAI Chat Model** or **Anthropic Chat Model** credentials at **byesu** to power automated **AI Agent** tool-calling workflows, webhook pipelines, and structured output extractors with one pay-as-you-go API key.

::: tip Quick configuration

* **OpenAI API Credential Base URL**: `https://byesu.com/v1` (all vendors via OpenAI Chat Model node)
* **Anthropic API Credential Base URL**: `https://byesu.com` (native `/v1/messages` + `0.1x` cache reads)
* **API Key**: your byesu token (`sk-...`, created in the default `auto` group)
* **Recommended models**: `claude-sonnet-5-5`, `claude-opus-5-5`, `gpt-6.2-sol`, `deepseek-v4-pro`, `gemini-4-argon`
  :::

## Option 1: OpenAI Chat Model Node (Unified Multi-Vendor Setup)

1. Generate an `sk-...` token in the [byesu Console](https://byesu.com) under the default **`auto`** group (see [Choosing a Group](/en/guide/groups)).
2. In n8n, open **Credentials → Add Credential** and select **OpenAI API**:
   * **API Key**: paste your `sk-...` token
   * **Base URL**:
     ```text
     https://byesu.com/v1
     ```
3. Save the credential — n8n automatically tests `/v1/models` and confirms the connection.
4. On your workflow canvas, add an **AI Agent** node, click **+ Model**, and select **OpenAI Chat Model**.
5. Pick your byesu OpenAI credential, switch **Model** to **By ID** (or **Expression**), and enter any active model ID: `gpt-6.2-sol`, `gpt-6.2-astra`, `gpt-6.1-sol`, `claude-sonnet-5-5`, `claude-opus-5-5`, `gemini-4-argon`, `gemini-3.8-flash`, `deepseek-v4-pro`, `deepseek-v4.1-flash`, or `grok-4.7`.

## Option 2: Anthropic Chat Model Node (Native Claude & Caching)

For multi-step **AI Agent** loops on Claude 5.5 where the system prompt and tool schemas repeat on every tool iteration, use n8n's native **Anthropic Chat Model** sub-node:

1. Go to **Credentials → Add Credential → Anthropic API**:
   * **API Key**: your `sk-...` token
   * **Base URL**:
     ```text
     https://byesu.com
     ```
2. Connect an **Anthropic Chat Model** node to your **AI Agent** node and enter `claude-sonnet-5-5`, `claude-opus-5-5`, or `claude-haiku-5-5`.
3. Native `/v1/messages` preserves Anthropic tool-use blocks and `0.1x` prompt cache reads across agent iterations ([Prompt Caching](/en/guide/prompt-caching)).

## Engineering Tips for Reasoning & Claude 5.5 Nodes

* **GPT-6.2 & reasoning parameters**: When calling `gpt-6.2-sol`, `gpt-6.2-astra`, or `gpt-6.1-sol` through n8n's **OpenAI Chat Model** node, do **not** set `Temperature` alongside reasoning effort options, and avoid legacy `max_tokens` parameter overrides (leave **Maximum Number of Tokens** unset or use modern completion token options — see [unsupported `max_tokens`](/en/errors/openai-unsupported-parameter-max-tokens) and [`reasoning_effort` values](/en/errors/openai-reasoning-effort-unsupported-value)).
* **Avoid HTTP 400 on Claude 5.5 sampling**: Newer Claude 5.5 snapshots reject requests that pass both `temperature` and `top_p`. If your **Anthropic Chat Model** or **OpenAI Chat Model** node returns `400`, remove fixed **Top P** / **Temperature** overrides under **Options** so both are not sent simultaneously ([Claude 400 temperature + top\_p fix](/en/errors/claude-api-400-temperature-top-p-not-supported)).
* **Other groups & billing**: Create tokens in `Glm` (`glm-5.3`), `Kimi` (`kimi-k3`), or `media` (`gpt-image-2` / `gemini-3.1-flash-image-ultra` via `POST https://byesu.com/v1/images/generations`) when needed. Billing is pay-as-you-go per token with live rates visible in the [byesu Console](https://byesu.com) after sign-in.

## Troubleshooting & Benchmarks

* **401 invalid\_api\_key**: verify the credential **Base URL** (`https://byesu.com/v1` for OpenAI, `https://byesu.com` for Anthropic) and ensure no trailing whitespace on the `sk-...` key ([OpenAI 401 fix](/en/errors/openai-api-401-invalid-api-key)).
* **404 / no available channel**: confirm the model ID matches the console list and your token's group ([no available channel](/en/errors/no-available-channel-error)).
* **429 / benchmarks**: check [OpenAI 429 rate limit vs quota](/en/errors/openai-api-429-rate-limit-vs-quota) and [live production benchmarks](https://byesu.com/benchmarks).
