Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.crazyrouter.com/llms.txt

Use this file to discover all available pages before exploring further.

API Base URL

https://crazyrouter.com
China-optimized API route:
https://cn.crazyrouter.com
The China route is for API requests only. Account login, billing, and the dashboard still use:
https://crazyrouter.com

Which Base URL To Use

Use caseDefault global routeChina-optimized routeNotes
OpenAI-compatible SDKs / clientshttps://crazyrouter.com/v1https://cn.crazyrouter.com/v1The client appends paths such as /chat/completions and /models
Claude Code / Anthropic-native clientshttps://crazyrouter.comhttps://cn.crazyrouter.comThe client appends /v1/messages itself, so do not add /v1 manually
curl / raw HTTP requestsFull endpoint, for example https://crazyrouter.com/v1/chat/completionsFull endpoint, for example https://cn.crazyrouter.com/v1/chat/completionsRaw requests must include the full API path
If logs show /v1/v1/models, /v1/v1/messages, or /v1/messages/v1/messages, the client is duplicating API paths. For Claude Code / Anthropic-native clients, reset the base URL to the root domain. For OpenAI-compatible clients, keep only the /v1 base URL.

Main Endpoints

Chat API

EndpointMethodDescription
/v1/chat/completionsPOSTOpenAI Chat format
/v1/messagesPOSTAnthropic Claude format
/v1/responsesPOSTOpenAI Responses API
/v1/completionsPOSTLegacy Completions

Gemini Native Format

EndpointMethodDescription
/v1beta/models/{model}:generateContentPOSTContent generation
/v1beta/models/{model}:streamGenerateContentPOSTStreaming generation

Image API

EndpointMethodDescription
/v1/images/generationsPOSTOpenAI image generation
/v1/images/editsPOSTImage editing
/mj/submit/imaginePOSTMidjourney image generation
/ideogram/v1/ideogram-v3/generatePOSTIdeogram V3
/kling/v1/images/generationsPOSTKling image generation
/kling/v1/images/kolors-virtual-try-onPOSTKling virtual try-on

Video API

EndpointMethodDescription
/v1/video/createPOSTUnified video creation
/v1/video/queryGETUnified video query
/kling/v1/videos/text2videoPOSTKling text-to-video
/kling/v1/videos/image2videoPOSTKling image-to-video
/kling/v1/videos/multi-image2videoPOSTKling multi-image reference video
/kling/v1/videos/omni-videoPOSTKling omni-video
/jimeng/submit/videosPOSTJimeng video submit
/jimeng/fetch/{task_id}GETJimeng task query
/luma/generationsPOSTLuma video generation
/runwayml/v1/tasksPOSTRunway video generation

Audio API

EndpointMethodDescription
/v1/audio/speechPOSTText-to-Speech (TTS)
/v1/audio/transcriptionsPOSTSpeech-to-Text (STT)
/suno/submit/musicPOSTSuno music generation

Other APIs

EndpointMethodDescription
/v1/embeddingsPOSTEmbeddings
/v1/rerankPOSTReranking
/v1/modelsGETModel list
All endpoints support HTTPS. OpenAI-compatible clients use https://crazyrouter.com/v1 or https://cn.crazyrouter.com/v1; Claude Code and other Anthropic-native clients use the root domain, not a /v1 URL.