LLM API
Text and image in, text out. OpenAI-compatible, so any OpenAI client works with the base URL below. Send your key as a Bearer token.
| POST | /v1/chat/completions | Chat, with image_url parts for vision |
| GET | /v1/models | Loaded models |
| POST | /api/chat | Ollama-native chat |
curl https://llm.weekendbuild.ing/v1/chat/completions \
-H 'Authorization: Bearer YOUR_KEY' -H 'Content-Type: application/json' \
-d '{"model":"gemma3:4b","messages":[{"role":"user","content":[
{"type":"text","text":"What is in this image?"},
{"type":"image_url","image_url":{"url":"data:image/jpeg;base64,..."}}]}]}'