Overview
Base URL
Authentication
Getting started
import requests
response = requests.post(
'https://llm.onerouter.pro/v1/responses',
headers={
'Authorization': 'Bearer <API_KEY>',
'Content-Type': 'application/json',
},
json={
'model': 'o4-mini',
'input': 'Hello, world!',
}
)const response = await fetch('https://llm.onerouter.pro/v1/responses', {
method: 'POST',
headers: {
'Authorization': 'Bearer <API_KEY>',
'Content-Type': 'application/json',
},
body: JSON.stringify({
model: 'o4-mini',
input: 'Hello, world!',
}),
});Error handling
Common error codes
Error response format
Last updated