Developer Console
Test an OpenAI-compatible chat request, inspect usage, and copy starter code for the selected model.
Prompt and response payloads are not retained by default; debug log controls stay behind the operator rollout.
Prompt tokens
-
Completion tokens
-
Total tokens
-
Estimated cost
-
openai/gpt-4.1-mini
curl https://api.wlrouter.com/v1/chat/completions \
-H "Authorization: Bearer $WLROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/gpt-4.1-mini",
"messages": [
{ "role": "system", "content": "You are a precise API assistant. Keep answers concise and implementation-ready." },
{ "role": "user", "content": "Draft a short JSON schema for logging a chat completion request." }
],
"temperature": 0.7,
"max_tokens": 512,
"stream": false
}'