HomeDevelopers

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

FieldTypeNotes
promptstringYour instruction. Use this or messages.
systemstringOptional persona / rules.
messagesarrayOptional multi-turn [{role, content}].
modelstringDefault drlarz-chat. See models.
max_tokensintClamped to your tier ceiling.
temperaturefloat0–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.

Get an API keyQuickstart