Crazyrouter-Demo / README.md
xujfcn's picture
Switch to utm_source/medium/campaign tracking for GA4
a86d998

A newer version of the Gradio SDK is available: 6.13.0

Upgrade
metadata
title: Crazyrouter Demo
emoji: πŸš€
colorFrom: blue
colorTo: purple
sdk: gradio
sdk_version: 5.14.0
app_file: app.py
pinned: true
license: mit
short_description: One API key, all AI models. 200+ models.
tags:
  - api
  - llm
  - openai
  - claude
  - gemini
  - deepseek
  - ai-gateway
  - crazyrouter

πŸš€ Crazyrouter β€” One API Key, All AI Models

The smartest way to access AI models. Cheaper than going direct.

What is Crazyrouter?

Crazyrouter is an AI API gateway that gives you access to 200+ models (GPT-4o, Claude, Gemini, DeepSeek, Llama, and more) through a single OpenAI-compatible API endpoint.

Why developers love it:

  • πŸ”‘ One API key for all providers
  • πŸ’° Up to 50% cheaper than direct API pricing
  • πŸ”„ Zero vendor lock-in β€” switch models by changing one string
  • ⚑ OpenAI-compatible β€” works with any OpenAI SDK
  • πŸ†“ Free tier to get started

Quick Start

from openai import OpenAI

client = OpenAI(
    base_url="https://crazyrouter.com/v1",
    api_key="your-crazyrouter-key"
)

response = client.chat.completions.create(
    model="gpt-4o",  # or claude-sonnet-4-20250514, gemini-2.0-flash, deepseek-chat...
    messages=[{"role": "user", "content": "Hello!"}]
)
print(response.choices[0].message.content)

Supported Models

Provider Models
OpenAI GPT-4o, GPT-4o-mini, o3-mini, o1
Anthropic Claude Sonnet 4, Claude Haiku 3.5
Google Gemini 2.0 Flash, Gemini Pro
DeepSeek DeepSeek-V3, DeepSeek-R1
Meta Llama 3.3, Llama 3.1
And more... 200+ models total

Links