Text Generation API
Turn a prompt into text with DrLarz models — simple or multi-turn.
The text generation API turns a prompt into text using DrLarz models. Use a simple prompt, or a full messages array for multi-turn conversations.
Endpoint
POST https://api.larzos.com/v1/generate
Parameters
| Field | Type | Notes |
|---|---|---|
| prompt | string | Your instruction. Use this or messages. |
| system | string | Optional persona / rules. |
| messages | array | Optional multi-turn [{role, content}]. |
| model | string | Default drlarz-chat. See models. |
| max_tokens | int | Clamped to your tier ceiling. |
| temperature | float | 0–1, default 0.7. |
Example
curl https://api.larzos.com/v1/generate \
-H "Larz-Api-Key: larz_sk_your_key" \
-H "Content-Type: application/json" \
-d '{"prompt":"Summarise this in one line: ...","model":"drlarz-smart"}'
Prefer a task-specific result with zero prompt work? Use the Tools API.