Call Redline with curl
No SDK needed. Redline's chat completions endpoint takes an ordinary POST with a bearer key, so curl is enough to test a key or a model.
POST /v1/chat/completions
curl https://redline-gateway.pages.dev/v1/chat/completions \
-H "Authorization: Bearer rl-..." \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek/deepseek-chat-v3.1",
"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-Redline-Receipt response header.