Haven provides a familiar API for powerful open models.Build AI products without unpredictable pricing.
$ curl https://api.haven.dev/v1/messages \
-H "Authorization: Bearer $HAVEN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "haven-coder",
"messages": [
{
"role": "system",
"content": "You are a helpful coding assistant.",
},
{
"role": "user",
"content": "Explain how React's virtual DOM works.",
}
],
"max_tokens": 512,
"temperature": 0.2
}'