Skip to main content

Documentation Index

Fetch the complete documentation index at: https://usesapient.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

Targets are the runnable model choices available to API Performance evals. Use them to discover what you can pass to sapient api-performance config update --targets. Prompt tracking uses answer-engine platforms from sapient prompts config retrieve. API Performance uses targets because coding agents have both an execution platform and an underlying model.

Command

CommandDescription
sapient api-performance targets listList API Performance target options.

List targets

sapient api-performance targets list --output-format json
Example response:
{
  "text_models": [
    {
      "id": "openai/gpt-5-mini",
      "label": "GPT-5 Mini",
      "platform": "openai",
      "cost_per_1m_input": 0.25,
      "cost_per_1m_output": 2.0,
      "target": {
        "target_type": "text",
        "execution_platform": "openrouter",
        "model_id": "openai/gpt-5-mini"
      }
    }
  ],
  "coding_agents": [
    {
      "id": "codex",
      "label": "Codex CLI",
      "platform": "codex",
      "cost_estimate_per_eval": 0.03,
      "default_model_id": "gpt-5.4",
      "target": {
        "target_type": "agent",
        "execution_platform": "codex",
        "model_id": "gpt-5.4"
      },
      "models": [
        {
          "id": "gpt-5.4",
          "label": "GPT-5.4",
          "target": {
            "target_type": "agent",
            "execution_platform": "codex",
            "model_id": "gpt-5.4"
          }
        }
      ]
    }
  ],
  "frequencies": ["daily", "every_other_day", "weekly", "manual"],
  "meta": {
    "text_model_count": 1,
    "coding_agent_count": 1
  }
}

Use a target

Copy a target object into config update and add scheduling fields:
sapient api-performance config update \
  --targets '[{"target_type":"agent","execution_platform":"codex","model_id":"gpt-5.4","frequency":"daily","enabled":true}]'
Use frequency values from the response. Set frequency to manual when you want the target available without scheduling it.

Target types

TypeHow to configure
Text modelUse target_type text, execution_platform openrouter, and a model_id from text_models.
Coding agentUse target_type agent, an execution_platform from coding_agents.id, and a model_id from that agent’s models list.