Skip to content

About

Crazyrouter integration guide and API examples for openai-python; current models, endpoints and pricing references.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

🐍 Python OpenAI SDK + Crazyrouter Examples

Complete examples for using OpenAI Python SDK with Crazyrouter — Chat, Streaming, Function Calling, Vision, and more.

Crazyrouter — One API key, model-specific API access.

Current prices

See the current model-specific prices. Input, output, cache, account group and billing unit affect charges.

⚡ Quick Start

pip install openai
export OPENAI_API_KEY=sk-your-crazyrouter-key
export OPENAI_BASE_URL=https://crazyrouter.com/v1
python examples/chat.py

📁 Examples

File Description
examples/chat.py Basic chat completion
examples/streaming.py Streaming responses
examples/function_calling.py Function calling / tool use
examples/vision.py Image understanding
examples/embedding.py Text embeddings
examples/multi_model.py Switch between GPT/Claude/Gemini

🔗 Links

📄 License

MIT

About

Crazyrouter integration guide and API examples for openai-python; current models, endpoints and pricing references.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors