Call MagmaRouter with curl

No SDK needed. MagmaRouter's chat completions endpoint takes an ordinary POST with a bearer key, so curl is enough to test a key or a model.
- Base URL
- https://api.magmarouter.com/v1
- API key
- Get one, starts sk-mr-
- Example model
- glm-5.3-xploded
POST /v1/chat/completions
Shell
curl https://api.magmarouter.com/v1/chat/completions \ -H "Authorization: Bearer sk-mr-..." \ -H "Content-Type: application/json" \ -d '{ "model": "glm-5.3-xploded", "messages": [{"role": "user", "content": "Hello"}] }'
Add "stream": true to the body for a server-sent event stream. The signed receipt comes back in the X-MagmaRouter-Receipt response header.