Use a model ID in the model field of your request.
Lucas 1
Multi-step reasoning, long-form writing, and extracting structured data.
lucas-1
Context window
128,000 tokens
Max output
8,192 tokens
Lucas 1 Mini
Short replies, summarization, and everyday classification tasks.
lucas-1-mini
Context window
32,000 tokens
Max output
4,096 tokens
Lucas Embed 1
Text vectors for ranking results, clustering, and semantic search.
lucas-embed-1
Max input per item
8,192 tokens
Vector dimensions
768
For chat models, the context window includes the input messages and generated output. Set max_tokens to budget for the reply. List models via the API ↗
API reference
All paths are relative to https://api.lucasai.cc/v1.
Generate an assistant reply from a list of messages.
modelstring · required
lucas-1 or lucas-1-mini.
messagesarray · required
Ordered messages with text content and a system, user, or assistant role.
max_tokensinteger · optional
Maximum number of generated tokens, within the model’s output limit.
streamboolean · default false
Use true to receive partial responses as server-sent events.
response_formatobject · optional
Use {"type":"json_object"} for a JSON object inside the message content.
Response
In a non-streaming response, read choices[0].message.content for the generated text. A finish_reason of length means the reply reached its token budget. usage reports the input and output token counts.