OpenAI-compatible API

Point an OpenAI-compatible client at https://llm.valefront.com/v1.

Chat completions

curl https://llm.valefront.com/v1/chat/completions \
  -H "Authorization: Bearer $VALEFRONT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"auto","messages":[{"role":"user","content":"Summarize this call"}]}'

Streaming

Set stream to true to receive server-sent event chunks from the chat completions endpoint.

curl https://llm.valefront.com/v1/chat/completions \
  -H "Authorization: Bearer $VALEFRONT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"auto","stream":true,"messages":[{"role":"user","content":"Count to three"}]}'

Models

curl https://llm.valefront.com/v1/models \
  -H "Authorization: Bearer $VALEFRONT_KEY"