Guides
System instructions
This is not available on this model yet. The model object's capabilities.system turns true when it is.
What it is for
A system instruction sets the way Antarya answers for every turn: the role she plays, the tone, the format. Put it in system, not in a user message, so it applies without being repeated in the conversation.
Add an instruction
curl https://antarya.ai/v1/chat \
-H "Authorization: Bearer $ANTARYA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"system": "You are a careful contracts assistant. Answer in plain English and keep it under 120 words.",
"messages": [
{"role": "user", "content": "Summarise this contract'"'"'s termination clause."}
]
}'Output
{
"id": "req_04",
"content": [
{"type": "text", "text": "Either side can end the agreement by giving 30 days of written notice..."}
],
"stop_reason": "end_turn",
"usage": {"input_tokens": 41, "output_tokens": 52}
}Writing a good instruction
State what you want, not what you fear. "Answer in plain English" works better than a list of things to avoid. Give the role once, then the format. If the answer feeds another program, say so and ask for the exact shape; for strict shapes use Structured output instead.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
system | text | No | Instructions that apply to the whole conversation. Send it again with every request, since Antarya keeps nothing between requests. |
messages | array | YesRequired | The conversation, as in any chat request. |