Presets

Presets are reusable chat configurations. Manage them in Dashboard → Presets or through the presets API.

Create preset

{
  "slug": "support-replies",
  "models": ["mistral-small-latest", "mistral-medium-latest"],
  "system_prompt": "You are a concise support assistant.",
  "parameters": {
    "temperature": 0.3,
    "max_tokens": 500
  },
  "routing_strategy": "fallback",
  "description": "Short customer support replies with fallback model"
}

Apply preset

curl https://ozeye.ai/v1/chat/completions \
  -H "Authorization: Bearer $OZEYE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "X-Preset: support-replies" \
  -d '{
    "messages": [{"role": "user", "content": "Summarize this ticket."}]
  }'

Behavior

  • slug is required and must be lowercase letters/numbers/hyphens, 1–63 characters.
  • model or models supplies default chat model(s). With multiple models, the first model is primary and remaining models are preset fallbacks.
  • parameters accepts temperature, top_p, max_tokens, top_k, frequency_penalty, presence_penalty, stop, and seed.
  • routing_strategy can be cost, latency, availability, or fallback.
  • Updating a preset creates a new immutable version, and the 20 newest are kept. Deleting a preset removes all its versions.
  • An API key can change or delete only the presets that key created (otherwise 403). The signed-in dashboard can change any of them. Any key on the account can read and apply them.
  • A preset can hold a system_prompt of up to 64 KB, a description of up to 2 KB and up to 10 models. An account can have up to 50 presets.
  • In an API request, what you send wins: the preset’s system_prompt applies only when the request has no system message, and its models only when the request has no model.
  • In the chat, the preset’s system prompt comes before your own System Message, its fallbacks apply while you stay on its first model, and each chat remembers its preset.