メインコンテンツへスキップ
更新日: 2026-06-23

Getting Started

This page only documents starter paths that were revalidated against Crazyrouter production on 2026-03-23. For the fastest start, separate the integration styles first:
  • OpenAI-compatible: https://api.crazyrouter.com/v1
  • Anthropic native: https://api.crazyrouter.com
  • Gemini native: https://api.crazyrouter.com/v1beta/models/...

Shortest migration rule

When migrating from an OpenAI-compatible client, you usually only change two things:
  1. set base_url to https://api.crazyrouter.com/v1
  2. replace the key with your Crazyrouter sk-xxx

Migrating from OpenAI

This production recheck confirmed that:
  • gpt-5.5 works through /v1/chat/completions
  • if you need reasoning summaries or OpenAI-style web search, you should prefer /v1/responses
Related pages:

Migrating from Anthropic

Option A: stay on the OpenAI-compatible layer

Option B: use native Anthropic Messages

If you need:
  • standard Claude chat: prefer claude-opus-4-8
  • an explicit thinking block: prefer claude-opus-4-8
Related page:

Migrating from Gemini

Option A: OpenAI-compatible layer

Option B: Gemini native

If you need:
  • simple reuse of existing OpenAI SDK code: start with the compatibility layer
  • structured outputs, Google Search, or thinking: prefer Gemini native
Related pages:

Environment variables

If you use the OpenAI-compatible route, a good default is:
Then your code can be:

Starter recommendations

Crazyrouter supports OpenAI, Anthropic, and Gemini protocols at the same time. In practice, the more reliable approach is usually not forcing every model through one protocol, but choosing the route that best matches the capability you need.