Getting Started with LLM Gateway in 5 Minutes — DeepSeek Blog | Neura Market
    Neura MarketNeura Market/DeepSeek
    ChatGPTChatGPTClaudeClaudeGeminiGeminiCursorCursorGrokGrokPerplexityPerplexityDeepSeekDeepSeek
    CoPilotCoPilotStable DiffusionStable DiffusionMidjourneyMidjourney
    View All Directories
    OverviewRulesPromptsMCPsAgentsBlogVideosGuidesCoursesCommunityTrendingGenerate
    DeepSeekBlogGetting Started with LLM Gateway in 5 Minutes
    Back to Blog
    Getting Started with LLM Gateway in 5 Minutes
    llm

    Getting Started with LLM Gateway in 5 Minutes

    smakosh February 21, 2026
    0 views

    This guide walks you through making your first LLM request through LLM Gateway. By the end, you'll...

    This guide walks you through making your first LLM request through LLM Gateway. By the end, you'll have a working API key and a completed request visible in your dashboard. ## Step 1: Get an API Key 1. Sign in to the [LLM Gateway dashboard](https://llmgateway.io/signup). 2. Create a new **Project**. 3. Copy the API key. 4. Export it in your shell or add it to a `.env` file: ```bash export LLM_GATEWAY_API_KEY="llmgtwy_XXXXXXXXXXXXXXXX" ``` ## Step 2: Make Your First Request LLM Gateway uses an OpenAI-compatible API. Point your requests to `https://api.llmgateway.io/v1` and you're done. ### Using curl ```bash curl -X POST https://api.llmgateway.io/v1/chat/completions \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $LLM_GATEWAY_API_KEY" \ -d '{ "model": "gpt-4o", "messages": [ {"role": "user", "content": "What is an LLM gateway?"} ] }' ``` ### Using Node.js (OpenAI SDK) ```typescript import OpenAI from "openai"; const client = new OpenAI({ baseURL: "https://api.llmgateway.io/v1", apiKey: process.env.LLM_GATEWAY_API_KEY, }); const response = await client.chat.completions.create({ model: "gpt-4o", messages: [{ role: "user", content: "What is an LLM gateway?" }], }); console.log(response.choices[0].message.content); ``` ### Using Python ```python import requests import os response = requests.post( "https://api.llmgateway.io/v1/chat/completions", headers={ "Content-Type": "application/json", "Authorization": f"Bearer {os.getenv('LLM_GATEWAY_API_KEY')}", }, json={ "model": "gpt-4o", "messages": [ {"role": "user", "content": "What is an LLM gateway?"} ], }, ) response.raise_for_status() print(response.json()["choices"][0]["message"]["content"]) ``` ### Using the AI SDK If you're using the Vercel AI SDK, you can use the native provider: ```typescript import { llmgateway } from "@llmgateway/ai-sdk-provider"; import { generateText } from "ai"; const { text } = await generateText({ model: llmgateway("openai/gpt-4o"), prompt: "What is an LLM gateway?", }); ``` Or use the OpenAI-compatible adapter: ```typescript import { createOpenAI } from "@ai-sdk/openai"; const llmgateway = createOpenAI({ baseURL: "https://api.llmgateway.io/v1", apiKey: process.env.LLM_GATEWAY_API_KEY!, }); ``` ## Step 3: Enable Streaming Pass `stream: true` to any request and the gateway will proxy the event stream unchanged: ```bash curl -X POST https://api.llmgateway.io/v1/chat/completions \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $LLM_GATEWAY_API_KEY" \ -d '{ "model": "gpt-4o", "stream": true, "messages": [ {"role": "user", "content": "Write a short poem about APIs"} ] }' ``` ## Step 4: Monitor in the Dashboard Every call appears in the dashboard with latency, cost, and provider breakdown. Go back to your project to see your request logged with the model used, token counts, cost, and response time. ## Step 5: Try a Different Provider The best part of using a gateway: switching providers is a one-line change. Try the same request with a different model: ```bash # Anthropic "model": "anthropic/claude-haiku-4-5" # Google "model": "google-ai-studio/gemini-2.5-flash" ``` Same API, same code. Just a different model string. ## What's Next - **[Try models in the Playground](https://chat.llmgateway.io)** — test any model with a chat interface before integrating - **[Browse all models](https://llmgateway.io/models)** — compare pricing, context windows, and capabilities - **[Read the full docs](https://docs.llmgateway.io)** — streaming, tool calling, structured output, and more - **[Join the Discord](https://llmgateway.io/discord)** — get help and share what you're building **[Get started now](https://llmgateway.io/signup)**

    Tags

    llmapitutorialai

    Comments

    More Blog

    View all
    How I'm using ASTs and Gemini to solve the "Codebase Onboarding" problem 🧠ai

    How I'm using ASTs and Gemini to solve the "Codebase Onboarding" problem 🧠

    Hi everyone! 👋 I’m Tara, a Senior Software Engineer and Consultant. Over the years, I've jumped...

    T
    tworrell
    Local AI Will Save Us All (The Math Says So, Trust Me)ai

    Local AI Will Save Us All (The Math Says So, Trust Me)

    Every few weeks a take goes viral in tech circles making the case for ditching cloud AI and running...

    S
    Sebastian Schürmann
    Lost in the AI Hype, I Started Smallai

    Lost in the AI Hype, I Started Small

    And it helped me get back into tech without drowning TL;DR at the end Coming back to...

    R
    Rohini Gaonkar
    Building a Replay-Tested Interactive Brokers Client in Gogo

    Building a Replay-Tested Interactive Brokers Client in Go

    I wanted an IBKR library that felt like Go and had testing I could trust. So I wrote one.

    T
    Thomas Marcelis
    Playwright in Pictures: Fully Parallel Modeplaywright

    Playwright in Pictures: Fully Parallel Mode

    Playwright’s fullyParallel mode is often treated as a simple performance switch. In practice, it...

    V
    Vitaliy Potapov
    Designing a CLI for Both Humans and Agentscli

    Designing a CLI for Both Humans and Agents

    Learn how Alpic designed its CLI for both human developers and AI agents — covering tradeoffs like polling, context windows, interactivity, and statelessness.

    J
    Julien Vallini

    Stay up to date

    Get the latest DeepSeek prompts, rules, and resources delivered to your inbox weekly.

    Neura Market LogoNeura Market

    Discover the best AI prompts, plugins, and resources for DeepSeek and more.

    Content Types

    • Rules
    • Prompts
    • MCPs
    • Agents
    • Guides

    Platforms

    • ChatGPT Directory
    • Claude Directory
    • Gemini Directory
    • Cursor Directory
    • Grok Directory
    • Perplexity Directory
    • DeepSeek Directory
    • CoPilot Directory
    • Stable Diffusion Directory
    • Midjourney Directory
    • All Directories

    Resources

    • Blog
    • Documentation
    • Help Center
    • Marketplace

    Legal

    • Privacy Policy
    • Terms of Service

    © 2026 Neura Market. All rights reserved.

    |

    Not affiliated with any AI platform vendors.