Getting Started with LLM Gateway in 5 Minutes — DeepSeek…
    Neura MarketNeura Market/DeepSeek
    ChatGPTChatGPTClaudeClaudeGeminiGeminiCursorCursorGrokGrokPerplexityPerplexityDeepSeekDeepSeek
    CoPilotCoPilotStable DiffusionStable DiffusionMidjourneyMidjourney
    View All Directories
    OverviewRulesPromptsMCPsAgentsGamesBlogVideosGuidesCoursesCommunityTrending
    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.
    2. Create a new Project.
    3. Copy the API key.
    4. Export it in your shell or add it to a .env file:
    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

    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)

    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

    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:

    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:

    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:

    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:

    # 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 — test any model with a chat interface before integrating
    • Browse all models — compare pricing, context windows, and capabilities
    • Read the full docs — streaming, tool calling, structured output, and more
    • Join the Discord — get help and share what you're building

    Get started now

    Tags

    llmapitutorialai

    Comments

    More Blog

    View all
    Five Gemma-4 models, one accelerator: what porting E2B 31B to AWS Inferentia2 taught megemma

    Five Gemma-4 models, one accelerator: what porting E2B 31B to AWS Inferentia2 taught me

    I ported the whole Gemma-4 family — E2B, E4B, 12B, 31B, and the 26B-A4B MoE — to run on...

    X
    xbill
    Hey DEV, I'm Tobore. Let's actually connect.community

    Hey DEV, I'm Tobore. Let's actually connect.

    Hey DEV, I'm Tobore. Let's actually connect. I've been on here for a while now, mostly writing and...

    L
    Laurina Ayarah
    I burned through thousands of AI tokens. Then a friend did it for freeai

    I burned through thousands of AI tokens. Then a friend did it for free

    (yep, kinda clickbait, just for the funsies 😊) At the beginning of the year, I relaunched my...

    P
    Paulo Henrique
    Claude might be saturating your machineai

    Claude might be saturating your machine

    My laptop was sitting idle with the fan at full tilt. Nothing was running that I knew of. The culprit...

    S
    Sidhant Panda
    Automated GitHub Code Reviews Using Google Geminigithubactions

    Automated GitHub Code Reviews Using Google Gemini

    I Built a Thing! TL;DR — Google Gemini-based Pull Request reviews and Issue Triaging for...

    D
    Darren "Dazbo" Lester
    What is an "agentic harness," actually?ai

    What is an "agentic harness," actually?

    I've been hearing the word "harness" thrown around a lot lately. I assumed it just meant "the IDE" or...

    T
    Tilde A. Thurium

    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.

    Neura Market

    Custom AI Systems & Services

    Our team of experienced AI builders will help build custom AI systems, workflows, and solutions for your business.

    Request custom work

    Ready-made automations for this

    Workflows from the Neura Market marketplace related to this DeepSeek resource

    • Automate Blog Content Creation with Notion MCP, DeepSeek AI, and WordPressn8n · $9.99 · Related topic
    • Deploy a Customizable AI Chatbot with DeepSeek Integration on Your Websiten8n · $4.99 · Related topic
    • Generate AI Videos from Scripts with DeepSeek, Synthesia, and Together.ain8n · $24.99 · Related topic
    • Compare Multi-Period Financial Data from Google Sheets with DeepSeek AI Analysisn8n · $14.99 · Related topic
    Browse all workflows