Vibe coding API

Vibe Coding API — Cursor, Windsurf & IDE Copilots on LumeAPI

Point Cursor, Windsurf, Cline, and other OpenAI-compatible IDEs at LumeAPI — keep your flow, swap base URL and model id, cut completion spend on GPT and Claude tiers.

Tab autocomplete may still use the IDE vendor backend; chat and agent panels route through your custom OpenAI-compatible endpoint when configured.

  • One API key
  • Dozens of models
  • Text, image & video
  • Up to 70% off

Mainstream vibe coding models

Official reference vs LumeAPI catalog rates. Pricing unit: per 1M input / output tokens. Last updated: 2026-07-22. Source: provider list price.

ModelOfficial (in / out)LumeAPI (in / out)Savings
GPT-5.6 Solgpt-5.6-sol$5.00 / $30.00$1.50 / $9.0070% offDetails →
GPT-5.6 Terragpt-5.6-terra$2.50 / $15.00$0.75 / $4.5070% offDetails →
GPT-5.5gpt-5.5$5.00 / $30.00$1.50 / $9.0070% offDetails →
GPT-5.4gpt-5.4$2.50 / $15.00$0.75 / $4.5070% offDetails →
Claude Fable 5claude-fable-5$10.00 / $50.00$5.00 / $25.0050% offDetails →
Claude Opus 4.8claude-opus-4-8$5.00 / $25.00$2.50 / $12.5050% offDetails →
Claude Opus 4.7claude-opus-4-7$5.00 / $25.00$2.50 / $12.5050% offDetails →
Claude Sonnet 4.6claude-sonnet-4-6$3.00 / $15.00$1.50 / $7.5050% offDetails →
Gemini 3.1 Progemini-3.1-pro-preview$2.00 / $12.00$1.00 / $6.0050% offDetails →
GPT-5.4 minigpt-5.4-mini$0.75 / $4.50$0.225 / $1.3570% offDetails →
Gemini 3.5 Flashgemini-3.5-flash$1.50 / $9.00$0.75 / $4.5050% offDetails →
Gemini 3 Flashgemini-3-flash$0.50 / $3.00$0.25 / $1.5050% offDetails →

Monthly cost examples

Illustrative totals for gpt-5.6-terra using catalog list prices — your actual bill depends on retries, tool loops, and output length.

Daily completions

25M input + 10M output tokens / month

Terra or Sonnet in Cursor chat

Official (GPT-5.6 Terra)
$212.50/mo
LumeAPI
$63.75/mo
Monthly savings
$148.7570% off

Rates last updated 2026-07-22

Agent-heavy week

80M input + 35M output tokens / month

Multi-file agent loops

Official (GPT-5.6 Terra)
$725.00/mo
LumeAPI
$217.50/mo
Monthly savings
$507.5070% off

Rates last updated 2026-07-22

One chat endpoint for the IDE workflows that matter

Last verified: 2026-07-25

LumeAPI gives coding tools one OpenAI-compatible Chat Completions endpoint: https://api.lumeapi.site/v1. Your IDE sends a Bearer API key from the LumeAPI Console, selects an exact catalog model id, and receives standard chat-completion responses. That makes it practical to use one gateway across GPT, Claude, and Gemini model tiers without maintaining separate provider credentials and endpoint formats.

For vibe coding, separate the work that needs a full agent or chat session from the work that needs low-latency editor-native completion. Planning a feature, tracing an unfamiliar code path, reviewing a diff, generating tests, and running a multi-step coding agent are all chat-oriented tasks. Those are the workflows OpenAI-compatible IDE integrations can usually send through a custom base URL.

The important implementation detail is the base URL boundary. Configure https://api.lumeapi.site/v1 as the base URL only. Do not add /chat/completions to that value: OpenAI-compatible SDKs and IDE clients append the Chat Completions path themselves. A duplicated path is one of the most common causes of avoidable integration failures.

Treat model ids as production configuration, not friendly labels. Use exact catalog strings such as gpt-5.6-terra, claude-sonnet-4-6, gpt-5.4-mini, gpt-5.6-sol, or gemini-3.5-flash. Start with a small approved model set for each repository so developers can make intentional tradeoffs between cost, response quality, and the amount of context an agent is asked to process.

LumeAPI is independent and is not OpenAI, Anthropic, or Google.

Configure Cursor for LumeAPI chat and plan workflows

Last verified: 2026-07-25

Cursor can use a custom OpenAI-compatible endpoint for its chat and plan panel. Configure the endpoint once, then add only the catalog models your team intends to use.

  • Create or retrieve a LumeAPI API key in the LumeAPI Console. Store it in your approved secrets manager before entering it into a local IDE profile.
  • In Cursor, open Settings → Models → Override OpenAI Base URL.
  • Enter https://api.lumeapi.site/v1 as the base URL. Include the /v1 suffix, but do not append /chat/completions and do not add a trailing slash.
  • Paste the LumeAPI key into Cursor’s OpenAI API Key field. Cursor sends this key to the custom endpoint as the OpenAI-compatible credential.
  • Add each model manually using its exact catalog id. A practical initial set is gpt-5.4-mini for routine questions, gpt-5.6-terra for implementation work, and claude-sonnet-4-6 for larger reasoning and review tasks.
  • Open the Chat or Plan panel with Ctrl+L, select one of the manually added models, and send a small repository-aware request such as “Summarize the purpose of this module in three bullets.”
  • Verify the model id in the request or response metadata available to your team’s observability setup. Do not assume that a similarly named Cursor model maps to a LumeAPI catalog id.
  • If the connection fails or streams unreliably, open Cursor Settings → Network and enable HTTP Compatibility Mode HTTP/1.1, then retry the same small prompt.
  • Confirm the Cursor build and plan allow custom API usage. Some builds require a Pro plan for custom API configuration.
  • Document the limitation for developers: Cursor Chat and Plan workflows invoked through Ctrl+L can route through the custom URL, while tab autocomplete and Cmd+K inline edit often continue to use Cursor’s vendor backend.

Use Cursor’s custom endpoint for the workflows it actually routes through that endpoint; do not present tab completion coverage as guaranteed.

IDE compatibility and routing boundaries

Last verified: 2026-07-25

Use this matrix to decide where LumeAPI belongs in a developer’s daily loop. The integration target is OpenAI-compatible Chat Completions at https://api.lumeapi.site/v1.

ToolVerified configuration pathLumeAPI configurationBest fitKnown boundary
CursorSettings → Models → Override OpenAI Base URLBase URL https://api.lumeapi.site/v1; enter key in OpenAI API Key; add exact model ids manuallyChat and Plan panel, including Ctrl+L workflowsTab autocomplete and Cmd+K inline edit often remain on the Cursor vendor backend; some builds require Pro for custom API
WindsurfSettings search AI/API, or config JSON ai.baseUrl and ai.providerSet ai.provider to openai-compatible and ai.baseUrl to https://api.lumeapi.site/v1 with no trailing slashChat-style coding workflows where the build exposes an OpenAI-compatible providerNative BYOK can be Anthropic-only in some builds; use Roo Code with its OpenAI Compatible provider when that occurs
ClineVS Code extension → OpenAI Compatible provider → Base URL + API keySet Base URL to https://api.lumeapi.site/v1 and provide the LumeAPI Console keyAgentic repository tasks, terminal-assisted implementation, and review loopsUse exact model ids rather than provider display names
Continueconfig.json openai apiBase fieldSet openai apiBase to https://api.lumeapi.site/v1 and select a LumeAPI catalog modelConfigured chat, edit, and codebase-assistance workflows supported by the installed Continue setupKeep the API base at /v1 only; the client constructs the Chat Completions request path

Configuration availability can vary by IDE version, extension version, and plan. Validate the actual request path before standardizing an organization-wide setup.

Run a direct LumeAPI smoke test before wiring an IDE

Last verified: 2026-07-25

python
import os
from openai import OpenAI

# Set LUMEAPI_API_KEY in your shell or secrets manager before running.
client = OpenAI(
    api_key=os.environ["LUMEAPI_API_KEY"],
    # Keep this at /v1. The SDK adds /chat/completions.
    base_url="https://api.lumeapi.site/v1",
)

response = client.chat.completions.create(
    model="gpt-5.6-terra",
    messages=[
        {
            "role": "user",
            "content": "Reply with a one-sentence confirmation that Chat Completions is working."
        }
    ],
)

print(response.choices[0].message.content)

Install an OpenAI-compatible Python client in your project environment and export LUMEAPI_API_KEY from a secure local secret source. Do not commit API keys to repository configuration.

Roll out Cline, Continue, and Windsurf without endpoint drift

Last verified: 2026-07-25

Use a repeatable rollout process. The goal is not to make every IDE behave identically; it is to make base URL, credential handling, model ids, and verification consistent.

  • Choose a pilot repository with representative source size, test coverage, and dependency complexity. Avoid using a trivial demo as the only validation target.
  • Issue a LumeAPI key from the Console for the pilot according to your team’s access policy. Keep personal experiments and shared team automation on separate credentials where your operating model requires it.
  • For Cline, open the VS Code extension and select OpenAI Compatible provider. Enter https://api.lumeapi.site/v1 in Base URL and enter the LumeAPI API key.
  • For Continue, open config.json and set the OpenAI provider’s apiBase field to https://api.lumeapi.site/v1. Keep /chat/completions out of apiBase.
  • For Windsurf, search Settings for AI/API and look for the custom provider configuration. If editing configuration directly, use ai.provider set to openai-compatible and ai.baseUrl set to https://api.lumeapi.site/v1 with no trailing slash.
  • If the installed Windsurf build exposes only Anthropic-native BYOK, do not force an incompatible configuration. Install the Roo Code extension and configure its documented OpenAI Compatible provider instead.
  • Add exact model ids to each integration. Start with gpt-5.4-mini for low-cost routine tasks, gpt-5.6-terra for coding agents, claude-sonnet-4-6 for demanding reviews, and gemini-3.5-flash where a fast general-purpose tier fits the task.
  • Run the same three acceptance prompts in every tool: explain a local module, implement a small tested change, and review the resulting diff for a specific defect class.
  • Inspect failures at the endpoint level before changing models. Check for a missing /v1 suffix, a duplicated /chat/completions path, a rejected Bearer key, or a model id that does not exactly match the LumeAPI catalog.
  • Publish a short internal support note naming the owner for keys, approved models, spending review, and IDE-specific limitations. This prevents developers from silently falling back to unapproved personal provider accounts.

A single base URL does not mean identical IDE behavior. Each IDE decides which features use its configurable chat provider and which stay on its own backend.

Route coding work by economics, not vendor habit

Last verified: 2026-07-25

Vibe coding costs are driven less by a single completion than by repeated context transfer. Agents read repository files, tool output, tests, diffs, and earlier conversation turns. Output tokens matter when an agent produces a large patch or detailed review, but input volume usually grows first as developers ask the tool to understand more of a codebase.

LumeAPI’s catalog makes a tiered policy practical. gpt-5.4-mini is priced at $0.225 input and $1.35 output versus an official listed rate of $0.75 and $4.50. gpt-5.6-terra is $0.75 and $4.50 versus $2.50 and $15.00. For a higher-cost review lane, claude-sonnet-4-6 is $1.50 and $7.50 versus $3.00 and $15.00. These comparisons show why teams should reserve premium reasoning models for decisions that benefit from them rather than selecting one expensive default for every prompt.

Use gpt-5.4-mini or gemini-3-flash for narrow tasks: explain an error, draft a unit test outline, rename a local abstraction, or summarize a focused diff. Move to gpt-5.6-terra when the task spans multiple files and requires implementation judgment. Use claude-sonnet-4-6, gpt-5.6-sol, or gemini-3.1-pro-preview for consequential design reviews, difficult migrations, and prompts where an incomplete answer creates costly rework.

The best cost control is prompt scope. Ask an agent to inspect named files and answer a bounded question before granting it the entire repository problem. Require a plan before a large edit, ask for a diff-oriented implementation, and run tests after each meaningful change. This reduces unnecessary context growth while making the human review point explicit.

Catalog pricing was updated 2026-07-22. Listed figures are input/output catalog rates and should be checked against current Console pricing before setting budgets.

Operate IDE agents with explicit limits and verification

Last verified: 2026-07-25

An OpenAI-compatible endpoint solves protocol compatibility, not every feature difference between coding products. IDE vendors can use proprietary services for inline completion, edit prediction, indexing, tool execution, account checks, or background requests. Cursor is the clearest example: its custom URL applies to Chat and Plan usage, while tab autocomplete and Cmd+K inline editing often do not use that endpoint.

Make that limitation part of the product decision. If your requirement is provider-controlled chat and agent traffic, validate those exact flows. If your requirement is provider-controlled tab completion, confirm it in the specific IDE build with network evidence before committing to a rollout. Do not infer coverage from the presence of a base URL field.

Keep production safeguards close to the developer workflow. Require review for generated changes, run tests before accepting edits, and prevent secrets, customer data, and production credentials from being placed into prompts unless your organization has approved that handling. An agent can produce a convincing patch that compiles while still violating an architectural boundary or changing behavior outside the requested scope.

Finally, keep troubleshooting boring. Test the LumeAPI endpoint directly with a small Chat Completions call, then test one IDE integration, then test one model at a time. When a request fails, compare the configured base URL, Bearer key source, exact model id, and request path before changing several variables at once. That sequence finds configuration drift faster than repeatedly reinstalling extensions or switching providers.

For Cursor connection issues, the verified fallback setting is Settings → Network → HTTP Compatibility Mode HTTP/1.1.

IDE panels you control

Vibe coding spend concentrates in chat and agent panels where you set a custom OpenAI base URL. Tab autocomplete in some IDEs still uses the vendor backend — budget around completions you route to LumeAPI.

Start with gpt-5.6-terra or claude-sonnet-4-6 for daily work; drop to gpt-5.4-mini for boilerplate. Escalate to Sol or Opus only when evals on your repo fail on cheaper tiers.

The step-by-step Cursor, Windsurf, and Cline checklists on this page were verified against 2026 IDE documentation patterns.

Self-serve path: register to first API call

LumeAPI is designed for developers who want to integrate without scheduling demos. Create an account, confirm your email, and open Console to generate an API key. Fund your USD wallet with USDT on supported chains when you are ready for billable traffic—there is no mandatory minimum beyond what your tests require.

Point your OpenAI-compatible client at https://api.lumeapi.site/v1, set Authorization to Bearer your key, and pass a catalog model id in the model field. Run a short curl or SDK script from /docs to verify latency, streaming, and error handling before you attach the key to production services.

Use Usage logs to reconcile per-call cost with finance forecasts. When a model tier is too expensive or quality is insufficient, change model id—not your entire integration. For cross-provider price tables and Research deep dives, follow internal links on this page rather than duplicating migration math here.

Documentation, catalog, and support

Every catalog model has a detail page under /models with official reference pricing, LumeAPI pricing, and links to /docs/models/{id} for parameters and curl examples. Start there when this commercial page points you to a model id you have not called before.

The /docs index lists gateway authentication, Chat Completions, image endpoints, and async video patterns. llms.txt bundles the same information for agent tooling—useful when you want a single URL to paste into Cursor or an internal bot.

Research articles explain why bills grow and how to compare providers; commercial pages like this one explain what LumeAPI offers and how to start. Follow internal links instead of searching for duplicate migration content across pages.

If billing, chain deposits, or integration behavior is unclear, use /contact for support channels. Include your model id, approximate request time, and whether the issue is authentication, balance, or model parameters—that speeds up resolution.

Why LumeAPI

One key, dozens of models

A single API key calls GPT, Claude, Gemini, and more on one USD wallet — no separate vendor accounts per provider.

Up to 70% below reference

Published catalog rates undercut official list pricing. GPT tiers up to ~70% off; Claude and Gemini 50% off official reference.

Official application channels

Model capacity is sourced through major providers’ authorized application channels — recognizable catalog ids, not opaque repackaged endpoints.

Real-time Usage logs

Every call records model id, token counts, latency, and exact USD cost. Audit any line item in Console — usage and price are traceable.

OpenAI-compatible gateway

Point Cursor, SDKs, and agents at one base URL. Change API key, base URL, and model id — keep your existing integration shape.

Text, image, and video

Chat, image generation, and async video on the same key and wallet when you outgrow text-only workloads.

Get started in three steps

  1. Create an API key — register and open Console.
  2. Set the LumeAPI base URLhttps://api.lumeapi.site/v1
  3. Choose a supported model id — from the table above or model catalog.

Migrate in minutes

Three values change: API key, base URL, model id. Everything else stays the same.

Before (official OpenAI endpoint)

python
from openai import OpenAI

client = OpenAI(api_key="YOUR_OPENAI_API_KEY")

response = client.chat.completions.create(
    model="gpt-5.6-terra",
    messages=[{"role": "user", "content": "Hello"}],
)

After (LumeAPI)

python
from openai import OpenAI

client = OpenAI(
    api_key="YOUR_LUMEAPI_KEY",
    base_url="https://api.lumeapi.site/v1",
)

response = client.chat.completions.create(
    model="gpt-5.6-terra",
    messages=[{"role": "user", "content": "Hello"}],
)

Full step-by-step rollout, streaming checks, and FAQ: Cheapest LLM API 2026 guide →

Migration & compatibility

What changes

API key, base URL (https://api.lumeapi.site/v1), and model id to a LumeAPI catalog entry. Message shape stays OpenAI-compatible for most apps.

What to test

Streaming, tool calling, JSON mode, and error handling on your heaviest models. Shadow 5–10% of traffic before full cutover.

What may differ

Provider-native features (Anthropic Batch, Google Grounding, OpenAI Assistants) may require the official API. Test your exact payload.

Rollback

Keep environment variables for base URL and model id. Switch back instantly if staging tests fail.

Trust & billing

Which IDE panels work?

Chat and agent panels that accept a custom OpenAI base URL. Tab completion often stays on the IDE vendor.

Base URL format?

https://api.lumeapi.site/v1 — do not append /chat/completions; clients add the path.

Claude in Cursor?

Use OpenAI-compatible override with a LumeAPI Claude catalog id (e.g. claude-sonnet-4-6).

Billing?

Per-token at published catalog rates; trace in Usage.

Built for these workloads

Cursor & Windsurf

Override OpenAI Base URL in IDE settings — use catalog model ids.

Cline / Continue

OpenAI-compatible provider with LumeAPI base URL and key.

Model tiering

Terra or mini for drafts; Sonnet or Sol for hard refactors.

Usage audit

Console Usage logs show per-completion cost by model id.

Related guides

Part of the Cheap LLM API hub — models, pricing, and integration guides for this provider.

FAQ

What is vibe coding?

Iterative AI-assisted coding in the IDE — chat, inline edits, and agent loops on your repo.

Cursor custom API setup?

Settings → Models → Override OpenAI Base URL + API key. See unique sections on this page.

Cheapest model for completions?

gpt-5.4-mini or gpt-5.6-terra for most tasks; escalate when evals fail.

vs /coding-ai-api?

This page is IDE integration focused. /coding-ai-api covers repo evals and coding agent economics.

Streaming?

Supported on catalog text models — test in your IDE.

Cheap LLM hub?

See /cheap-llm-api for budget mainstream picks.

Start vibe coding on LumeAPI

Create a key and point your IDE at https://api.lumeapi.site/v1. Need help choosing a model? Browse the developer docs or contact support.