Strix LLM API

The LLM API from Strix — 3 operation(s) for llm.

GitHub OpenAPI

Operations 4

GET /llm-costs Get LLM costs overview #
GET /llm-costs/runs/{runType}/{runId} Get LLM usage for a run #
GET /llm-settings Get LLM model settings #
PUT /llm-settings Update LLM model settings #

Specifications

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/strix-ai:strix-ai-llm-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

strix-ai-llm-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Strix LLM API
  version: 1.0.0
  description: Public REST API for the Strix autonomous penetration testing platform. Manage scans, vulnerabilities, assets, schedules, API tokens, and webhooks. Intake-only workspaces can register repositories, manage domains, and manage or verify test users. Other operations return 403. Repository and domain responses in these workspaces omit scan, finding, and PR review fields.
servers:
- url: /api/v1
  description: Strix v1 API
security:
- BearerAuth: []
tags:
- name: LLM
paths:
  /llm-costs:
    get:
      operationId: getLlmCostsOverview
      summary: Get LLM costs overview
      description: 'Self-hosted installs and hosted organizations that run on their own LLM keys; returns 404 elsewhere. Full LLM spend analytics: KPIs with period deltas, month-to-date and projected burn, cost and token timelines, breakdowns by model/asset/member, most expensive runs, and cache efficiency. Requires an unrestricted token (tokens limited by rbac scopes are rejected).'
      tags:
      - LLM
      parameters:
      - description: Time window of the cost report. Use `custom` together with explicit start and end dates.
        name: range
        in: query
        required: false
        schema:
          type: string
          enum:
          - 7d
          - 30d
          - 90d
          - all
          - custom
          default: 30d
      - name: from
        in: query
        required: false
        description: Start date (ISO 8601), used when range=custom.
        schema:
          type: string
          format: date
      - name: to
        in: query
        required: false
        description: End date (ISO 8601), used when range=custom.
        schema:
          type: string
          format: date
      security:
      - BearerAuth:
        - llm:read
      responses:
        '200':
          description: LLM costs overview.
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalError'
  /llm-costs/runs/{runType}/{runId}:
    get:
      operationId: getRunLlmUsage
      summary: Get LLM usage for a run
      description: Self-hosted installs and hosted organizations that run on their own LLM keys; returns 404 elsewhere. Cost, token, and request totals recorded for a single scan, PR review, or chat run. `usage` is null until the run has reported cost. Requires an unrestricted token (tokens limited by rbac scopes are rejected).
      tags:
      - LLM
      parameters:
      - description: Kind of run to look up.
        name: runType
        in: path
        required: true
        schema:
          type: string
          enum:
          - scan
          - pr_review
          - chat
      - description: ID of the scan, PR review, or chat run.
        name: runId
        in: path
        required: true
        schema:
          type: string
      security:
      - BearerAuth:
        - llm:read
      responses:
        '200':
          description: Per-run LLM usage. A running pentest returns its launch-time model and effort with zero totals; otherwise null until usage is recorded.
          content:
            application/json:
              schema:
                type: object
                properties:
                  usage:
                    type:
                    - object
                    - 'null'
                    properties:
                      reasoningEffort:
                        type:
                        - string
                        - 'null'
                        enum:
                        - none
                        - minimal
                        - low
                        - medium
                        - high
                        - xhigh
                        - null
                        description: Reasoning effort at pentest launch. Strix returns null when the run has no recorded effort.
                      running:
                        type: boolean
                        description: True while the pentest is still running. Cost and token totals are reported when it finishes.
                    additionalProperties: true
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalError'
  /llm-settings:
    get:
      operationId: getLlmSettings
      summary: Get LLM model settings
      description: 'Self-hosted installs and hosted organizations that run on their own LLM keys; returns 404 elsewhere. Organization admins with an unrestricted token get named model configurations (API keys and extra headers are never returned, only whether they are set), per-purpose model assignments (default, scan, pr_review, chat, dedupe, app), env-fallback models per purpose, and current month-to-date spend per run type. Other members and asset-scoped tokens get a read-only view: each model config carries only `id`, `name` and `model` (key status, base URL, headers, tuning and pricing are cleared), plus the assignments and env-fallback models, and `mtdSpend` is omitted.'
      tags:
      - LLM
      security:
      - BearerAuth:
        - llm:read
      responses:
        '200':
          description: LLM settings and month-to-date spend.
          content:
            application/json:
              schema:
                type: object
                properties:
                  settings:
                    type: object
                    additionalProperties: true
                  mtdSpend:
                    type: object
                    additionalProperties:
                      type: number
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalError'
    put:
      operationId: updateLlmSettings
      summary: Update LLM model settings
      description: Self-hosted installs and hosted organizations that run on their own LLM keys; returns 404 elsewhere. Requires the organization admin role. Full-state save of model configurations and per-purpose assignments. Include `apiKey` on a model config to set or replace its key (stored encrypted). Omit it to keep the existing key. Same for `extraHeaders` (an empty string clears the stored value).
      tags:
      - LLM
      security:
      - BearerAuth:
        - llm:write
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - modelConfigs
              - assignments
              properties:
                modelConfigs:
                  description: Full list of model configurations. Configurations that are not in the list are deleted.
                  type: array
                  items:
                    type: object
                    required:
                    - id
                    - name
                    - model
                    properties:
                      id:
                        type: string
                        description: Existing config id, or any placeholder id for a new config.
                      name:
                        type: string
                      model:
                        type: string
                        description: LiteLLM provider/model identifier.
                      apiKey:
                        type: string
                        description: Set or replace the API key. Omit to keep the existing key, which only happens while apiBaseUrl is unchanged.
                      apiBaseUrl:
                        type: string
                        description: Destination the stored credentials belong to. Changing it (including omitting it for a config that has one) deletes the stored API key and extra headers unless replacements are sent in the same request.
                      extraHeaders:
                        type: string
                        description: JSON object of extra request headers, stored encrypted. Omit to keep the existing value while apiBaseUrl is unchanged. Send an empty string to clear it.
                      timeoutSeconds:
                        type:
                        - integer
                        - 'null'
                      reasoningEffort:
                        type:
                        - string
                        - 'null'
                        enum:
                        - none
                        - minimal
                        - low
                        - medium
                        - high
                        - xhigh
                        - null
                      apiType:
                        type:
                        - string
                        - 'null'
                        enum:
                        - responses
                        - chat_completions
                        - null
                        description: 'OpenAI endpoint used under apiBaseUrl: the Responses API or chat completions. Null lets the engine choose from the model.'
                      promptCache:
                        type:
                        - boolean
                        - 'null'
                      disableStreaming:
                        type:
                        - boolean
                        - 'null'
                      contextFallbackTokens:
                        type:
                        - integer
                        - 'null'
                      inputCostPerMTok:
                        type:
                        - number
                        - 'null'
                        minimum: 0
                        description: Custom input price in USD per 1M tokens. When any custom price is set, Strix computes run costs from these rates instead of the automatic estimate.
                      outputCostPerMTok:
                        type:
                        - number
                        - 'null'
                        minimum: 0
                        description: Custom output price in USD per 1M tokens.
                      cachedInputCostPerMTok:
                        type:
                        - number
                        - 'null'
                        minimum: 0
                        description: Custom cached-input price in USD per 1M tokens. When not set, cached input tokens use the input price.
                assignments:
                  type: object
                  description: Named config assigned to each purpose (config id or null). Unassigned purposes fall back to `default`, then to the deployment's STRIX_LLM_* environment.
                  properties:
                    default:
                      type:
                      - string
                      - 'null'
                    scan:
                      type:
                      - string
                      - 'null'
                    pr_review:
                      type:
                      - string
                      - 'null'
                    chat:
                      type:
                      - string
                      - 'null'
                    dedupe:
                      type:
                      - string
                      - 'null'
                    app:
                      type:
                      - string
                      - 'null'
      responses:
        '200':
          description: Persisted settings (server-assigned config ids, apiKeySet flags).
          content:
            application/json:
              schema:
                type: object
                properties:
                  settings:
                    type: object
                    additionalProperties: true
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalError'
components:
  responses:
    NotFound:
      description: Resource not found.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Unauthorized:
      description: Missing or invalid API token.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Forbidden:
      description: Insufficient permissions or missing scope. A missing scope returns the `insufficient_scope` code, the `required_scope` field, and a `hint` with the command or page that grants the scope, so a client can request the correct scope and retry.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    InternalError:
      description: Internal server error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    BadRequest:
      description: Bad request.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  schemas:
    ErrorResponse:
      type: object
      properties:
        detail:
          type: string
          description: Human-readable explanation of the error.
        code:
          type: string
          description: Stable machine-readable error code. `insufficient_scope` means the token does not hold the scope that this endpoint requires.
        required_scope:
          $ref: '#/components/schemas/ApiV1Scope'
          description: Scope that the caller must add to the token. Returned with the `insufficient_scope` code.
        docs:
          type: string
          format: uri
          description: Documentation page that explains how to resolve the error.
        hint:
          type: string
          description: One instruction that resolves the error. For `insufficient_scope`, a CLI session gets the `strix cloud session scopes set full` or `strix cloud login --scope-profile full` command, and an API token gets the settings page where the user creates a token with the scope. When the owner's role cannot hold the scope, the hint asks for a role change instead.
      required:
      - detail
    ApiV1Scope:
      type: string
      enum:
      - scans:read
      - scans:write
      - vulnerabilities:read
      - vulnerabilities:write
      - dependencies:read
      - schedules:read
      - schedules:write
      - assets:read
      - assets:write
      - organizations:read
      - organizations:write
      - members:read
      - members:write
      - invitations:read
      - invitations:write
      - webhooks:read
      - webhooks:write
      - tokens:write
      - audit:read
      - pr_reviews:read
      - pr_reviews:write
      - connectors:read
      - connectors:write
      - knowledge:read
      - knowledge:write
      - uploads:write
      - integrations:read
      - integrations:write
      - chat:read
      - chat:write
      - scans:message
      - analytics:read
      - llm:read
      - llm:write
      - test_users:read
      - test_users:write
      - discovery:read
      - discovery:write
      - license:read
      - supply_chain:read
      - supply_chain:write
      - billing:read
      - billing:write
      - containers:read
      - containers:write
      - logs:read
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: 'API token obtained from the Tokens endpoint or CLI device login. Include as `Authorization: Bearer <token>`. Requests made with a managed CLI session also include `X-Strix-Workspace: <organization_id>` to pin a process to the workspace it started in; recovery endpoints report the current workspace after a concurrent switch.'
    StrixAuthorization:
      type: apiKey
      in: header
      name: X-Strix-Authorization
      description: 'API token for operations where the standard Authorization header carries a protocol credential. Include as `X-Strix-Authorization: Bearer <token>`.'