A small chat API that answers.
Send messages, get a reply. Streaming when you want it, one JSON object when you don't. Pictures travel inside the message, so you can ask about an image the same way you ask about anything else.
the whole idea, in one request
curl -N https://www.ai.latdlabs.in/api/v1/chat \
-H "content-type: application/json" \
-d '{
"messages": [
{ "role": "user", "content": "Explain a rainbow in two lines." }
],
"stream": true
}'
What you get
No SDK, no key, no account.
Messages, not prompts
system, user and assistant turns — the shape you already know.
Streams or not
Server-sent events by default. "stream": false returns one JSON object.
Pictures inside
Base64, a data: URL or a link — in the message, not as an upload.
Working in a minute
Run this as written. Nothing to install.
curl -X POST https://www.ai.latdlabs.in/api/v1/chat \
-H "content-type: application/json" \
-d '{"messages":[{"role":"user","content":"Say hello in five words."}],"stream":false}'