VS Code와 n8n에 OpenAI API 키를 설정하는 방법
Add RunAPI's OpenAI-compatible key to Continue, Cody, or any VS Code AI extension in under 2 minutes. The same key works in n8n's OpenAI node. One key, one credit balance — GPT-4o, Claude, Gemini, and 210+ models at 50% off the direct price. No ChatGPT subscription needed.
이 가이드는 무엇을 다루나요?
VS Code AI extensions and n8n both accept an OpenAI-compatible base URL and API key. RunAPI provides exactly that interface at runapi.ai/v1. You sign up once, generate a key, add credits, and paste the key into your tool of choice. Every call is billed per token at half the direct price — no subscription, no minimum spend, and no separate account per model. One thing to know upfront if you are also setting up OpenAI directly: a ChatGPT subscription does not grant API access. You need a separate API credit balance, and 429 errors almost always mean that balance is zero.
settings.json에서 openai.apiKey 또는 사용자 지정 기본 URL을 읽는 모든 확장 프로그램은 코드 변경 없이 RunAPI로 연결할 수 있습니다.
Continue의 config.yaml은 사용자 지정 apiBase와 함께 provider: openai를 허용합니다. runapi.ai/v1과 RunAPI 키를 입력하면 됩니다.
n8n's OpenAI credential lets you override the base URL. Enter runapi.ai/v1 and your RunAPI key — all existing workflows keep working.
OpenAI를 통한 GPT-4o 입력 비용은 100만 토큰당 $2.50입니다. RunAPI를 통하면 $1.25입니다. 동일한 할인이 Claude, Gemini, DeepSeek에도 적용됩니다.
VS Code settings.json에서 API 키 설정
Open Command Palette (Cmd+Shift+P on macOS, Ctrl+Shift+P on Windows/Linux) and select Preferences: Open User Settings (JSON). Add or update the following block. Replace YOUR_RUNAPI_KEY with the key from your RunAPI dashboard. If your extension stores its key in its own settings panel (not in openai.apiKey), check the extension README for the exact field name — the base URL field is usually labeled apiBase or baseURL.
Continue 확장 프로그램에 RunAPI 추가하기
Continue is a popular open-source AI coding assistant for VS Code and JetBrains. It stores its config in ~/.continue/config.yaml (or config.json for older versions). Pointing it to RunAPI gives you access to every model in the catalog through the same familiar chat and autocomplete interface. After saving the file, restart VS Code so Continue picks up the new config — the model you added will then appear in the Continue model picker.
n8n에 OpenAI API 키를 추가하는 방법
n8n's OpenAI node uses a credential called OpenAI API. That credential has a Base URL field (hidden by default under Additional Fields) that lets you redirect all calls to any OpenAI-compatible endpoint. Set it to RunAPI and every workflow that calls the OpenAI node routes through RunAPI automatically — no other changes needed.
RunAPI 대 직접 연결 시 모델별 지불 금액
RunAPI charges 50% of the official vendor price for all LLM models. There is no monthly fee or subscription. You top up credits and pay only for what you use — failed requests are not charged. A ChatGPT Plus subscription is not required and does not grant API access; the API has separate billing regardless of which provider you use.
표시된 가격은 입력 토큰 기준입니다. 출력 토큰 가격도 50% 할인됩니다. 전체 목록은 runapi.ai/pricing을 참조하세요.
RunAPI 키를 발급받고 연결하는 방법
무료 RunAPI 계정 만들기
runapi.ai로 이동하여 이메일로 가입합니다. 계정 생성 또는 API 키 발급에 신용카드가 필요하지 않습니다.
API 키 발급
Open your dashboard and navigate to API Keys. Click New Key, give it a name (e.g. vscode-dev), and copy the key immediately — it starts with rp- and is shown only once. Save it somewhere safe before closing the dialog.
크레딧 추가
Go to Billing and add a small top-up — $5 is enough to start. Credits never expire and you are only charged for successful API calls. Without a credit balance, API calls return a 429 error.
VS Code 설정
VS Code settings.json을 엽니다(Cmd+Shift+P > Preferences: Open User Settings (JSON)). openai.baseURL을 https://runapi.ai/v1로, openai.apiKey를 RunAPI 키로 설정합니다.
Continue 설정 (선택 사항)
Continue 확장 프로그램을 사용하는 경우 ~/.continue/config.yaml을 열고 provider: openai, apiBase: https://runapi.ai/v1, 그리고 apiKey를 포함한 모델 항목을 추가합니다.
n8n 설정 (선택 사항)
n8n에서 설정 > 자격 증명 > OpenAI API를 엽니다. API 키 필드에 RunAPI 키를 붙여넣고, 추가 필드 아래의 기본 URL 필드에 https://runapi.ai/v1을 입력합니다.
테스트 호출로 확인
Ask your VS Code extension a question or trigger an n8n workflow. Check your RunAPI dashboard under Usage to confirm the call went through.
VS Code 및 n8n API 설정 FAQ
Can I use my paid ChatGPT subscription instead of buying API credits?
No. A ChatGPT Plus or GPT-4 subscription gives you access to the chat interface only — it does not grant API access. The API has separate billing. You add a credit balance at platform.openai.com/billing and pay per call. If you skip that step, every API call comes back as a 429 error even though your subscription is active.
I set everything up but I keep getting a 429 error. What's wrong?
That means your credit balance is zero. OpenAI requires a billing credit balance above zero before any API call will go through — having an account and a valid key is not enough. Go to platform.openai.com/billing, add at least $5, and the 429 error stops. Through RunAPI you top up once and use any model with the same key.
I created an API key but forgot to save it. Can I see it again?
You cannot. The key is shown exactly once when you create it. Close the dialog before copying and it is gone — you will need to create a new key. Go back to the API Keys page, delete the old one, and create a fresh key. Copy it immediately and save it somewhere safe before closing the dialog.
Why does my API key have the word "project" in it? Is that normal?
Keys that show the word "project" in the name are project-scoped keys, which are the default type OpenAI now creates. They work exactly the same as personal keys for making API calls. The difference is they are tied to a specific OpenAI project in your dashboard rather than to your user account. Either type works fine — just copy and use it.
Can I use the same RunAPI key in both VS Code and n8n?
Yes. One RunAPI key works across all tools that accept an OpenAI-compatible API key and base URL. You can use the same key in VS Code extensions, n8n, Cursor, Claude Code, and any other OpenAI-compatible client without generating separate keys.
Which VS Code AI extensions work with a custom base URL?
Continue, Cody (via proxy mode), and most extensions that expose an openai.baseURL or equivalent setting work. GitHub Copilot does not support a custom base URL — it is locked to GitHub's endpoint. Copilot requires a paid GitHub subscription; there is no way to plug your own API key into it. For a Copilot alternative that accepts a custom key, Continue or Cody are the most common choices.
What model names do I use in VS Code or n8n?
Use the exact model IDs from RunAPI's catalog — for example gpt-4o, gpt-4o-mini, claude-sonnet-4-5, or gemini-2.0-flash. These identifiers match what you would pass to the OpenAI API directly. If a model ID is wrong, the API returns a 404. The complete list with per-token pricing is at runapi.ai/models.
VS Code에서 RunAPI를 통해 GPT-4o를 하루 종일 사용하면 비용이 얼마나 드나요?
일반적인 코딩 세션은 약 50,000~200,000개의 입력 토큰을 생성합니다. RunAPI의 GPT-4o 입력 요금인 100만 토큰당 $1.25 기준으로, 하루에 약 $0.06~$0.25가 됩니다. 출력 토큰과 확장 프로그램이 보내는 추가 컨텍스트는 동일하게 OpenAI 공식 요금 대비 50% 할인된 가격으로 별도 청구됩니다.
더 알아보기
2분 안에 API 키 설정하기
무료 RunAPI 계정을 만들고, 키를 발급받아 VS Code 또는 n8n에 붙여넣으세요. 210+ 모델을 50% 할인된 가격으로—구독 없음, 최소 지출 없음.