API · Playground
Same API. No rewrite.
PRINET speaks the OpenAI chat-completions format, so any existing client works. Shape a request here, then copy it into your code.
Response
Run a prompt to see the response.
Same request with curl
curl https://openrouter.ai/api/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $API_KEY" \
-d '{
"model": "MODEL_ID",
"messages": [
{
"role": "user",
"content": "Hello"
}
],
"temperature": 0.7,
"max_tokens": 512,
"stream": true
}'