Skip to content

Request Builder

Build OpenRouter API requests with this interactive tool. Select a model, configure messages, parameters, and provider preferences, then generate code in your preferred language.

Model Selection

Select one or more models. Additional models will be used as fallbacks.

Messages

When enabled, the API will return a stream of tokens as they are generated.

Request Features

curl https://openrouter.ai/api/v1/chat/completions \
  -H "Authorization: Bearer $OPENROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "messages": [
        {
            "role": "user",
            "content": "If you built the world'\''s tallest skyscraper, what would you name it?"
        }
    ]
}'
OpenRouterOpenRouter
© 2026 OpenRouter, Inc

Product

  • Chat
  • Rankings
  • Apps
  • Models
  • Providers
  • Pricing
  • Enterprise
  • Labs

Company

  • About
  • Blog
  • Careers
    Hiring
  • Privacy
  • Terms of Service
  • Support
  • State of AI
  • Works With OR
  • Data

Developer

  • Documentation
  • API Reference
  • SDK
  • Status

Connect

  • Discord
  • GitHub
  • LinkedIn
  • X
  • YouTube