Quickstart
You’ll have a working chat completion in three steps.
1. Get an API key
Sign up at console.mixlayer.com and create an API key from the API Keys page in the console. Export it in your shell:
export MIXLAYER_API_KEY="..."2. Send your first request
Mixlayer is OpenAI-compatible. The base URL is https://models.mixlayer.ai/v1.
curl https://models.mixlayer.ai/v1/chat/completions \
-H "Authorization: Bearer $MIXLAYER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen/qwen3.5-4b-free",
"messages": [
{"role": "user", "content": "Tell me a fun fact about chihuahuas."}
]
}'qwen/qwen3.5-4b-free is on the free tier and great for trying
things out. See the Models page for the full catalog.
3. Go deeper
- Client Libraries — install instructions and examples for Python, TypeScript, Rust, and curl
- Chat Completions — full reference for every supported request parameter
- Tool Calling — let the model invoke your functions
- Reasoning — read the model’s chain of thought