Skip to main content
See every side of every news story
Published • loading... • Updated

Send one prompt to GPT, Claude, Gemini and Grok with 40 lines of Node (and the reasoning-token trap I hit)

Summary by DEV Community
I build Bison, a chat app that compares AI models side by side. Today I wrote the small script behind our public comparison pages, and it is useful on its own: one prompt, four models, all answers in parallel. This is the core of it, tested with Node 20+ and OpenRouter (one API key, many providers). const KEY = process.env.OPENROUTER_API_KEY; const MODELS = [ { id: "openai/gpt-6.2-sol", name: "GPT" }, { id: "anthropic/claude-sonnet-5.5", name: …
DisclaimerThis story is only covered by news sources that have yet to be evaluated by the independent media monitoring agencies we use to assess the quality and reliability of news outlets on our platform. Learn more here.

Bias Distribution

  • There is no tracked Bias information for the sources covering this story.

Factuality Info Icon

To view factuality data please Upgrade to Premium

Ownership

Info Icon

To view ownership data please Upgrade to Vantage

DEV Community broke the news on Thursday, November 19, 2026.
Too Big Arrow Icon
Sources are mostly out of (0)
News
Feed Dots Icon
For You
Search Icon
Search
Blindspot LogoBlindspotLocal