FreshRouter
PricingDocs
Log inGet API key

Get started

  • Quick start

Tools

  • Claude Code
  • Codex
  • Pi
  • Grok Build
  • Cursor
  • Cline, Roo Code, Kilo Code
  • Open WebUI
  • LibreChat
  • Chatbox
  • n8n

Reference

  • SDKs
  • API reference
  • Prompt caching
  • Tool calling and images
  • Limits
  • Errors

Get started

  • Quick start

Tools

  • Claude Code
  • Codex
  • Pi
  • Grok Build
  • Cursor
  • Cline, Roo Code, Kilo Code
  • Open WebUI
  • LibreChat
  • Chatbox
  • n8n

Reference

  • SDKs
  • API reference
  • Prompt caching
  • Tool calling and images
  • Limits
  • Errors
FreshRouter

One key for every top AI model. Pay only for what you use.

Product

  • Pricing
  • Console

Resources

  • Quick start
  • Documentation

Legal

  • Terms of Service
  • Privacy Policy

© 2026 FreshRouter. All rights reserved.

API reference

Endpoints, authentication and streaming.

All endpoints live under https://freshrouter.com and follow the request and response formats of the original APIs.

Endpoints

MethodPathFormat
POST/v1/chat/completionsOpenAI Chat Completions
POST/v1/responsesOpenAI Responses
POST/v1/messagesAnthropic Messages
POST/v1beta/models/{model}:generateContentGemini
POST/v1/images/generationsImages
GET/v1/modelsModels

Authentication

Send your key as Authorization: Bearer sk-…. For Anthropic Messages you can use x-api-key, and for Gemini x-goog-api-key.

Streaming

Set "stream": true to receive server-sent events, exactly as with the original API:

curl
curl https://freshrouter.com/v1/messages \
  -H "x-api-key: sk-your-freshrouter-key" \
  -H "anthropic-version: 2023-06-01" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-sonnet-5-5",
    "max_tokens": 1024,
    "stream": true,
    "messages": [{"role": "user", "content": "Hello!"}]
  }'
PreviousSDKsNextPrompt caching