> ## Documentation Index
> Fetch the complete documentation index at: https://docs.infercrane.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Search reviewed existing kernel sources before bounded custom-kernel experiments



## OpenAPI

````yaml /openapi.json post /api/v1/optimization/kernel-opportunities
openapi: 3.1.0
info:
  description: >-
    Durable, authenticated control-plane operations. Mutation responses may
    outlive the requesting client.
  title: InferCrane Control API
  version: 1.0.0
servers:
  - description: Local InferCrane API and gateway
    url: http://127.0.0.1:18000
security: []
tags:
  - name: Admission
  - name: Adoption
  - name: Alerts
  - name: Async inference
  - name: Audit
  - name: Autopilot
  - name: Benchmarks
  - name: Billing
  - name: Billing administration
  - name: Burst Guard
  - name: Capacity intelligence
  - name: Compute
  - name: Context Passport
  - name: Deployments
  - name: Diagnostics
  - name: Endpoints
  - name: External capacity
  - name: FinOps
  - name: Identity
  - name: Inference
  - name: Inference Lab
  - name: Inference decisions
  - name: Inference optimization
  - name: Infrastructure
  - name: Model API administration
  - name: Model APIs
  - name: Model artifacts
  - name: Model catalog
  - name: Monitoring
  - name: Operations
  - name: Planning
  - name: Providers
  - name: Recipes
  - name: Release Guard
  - name: Release evidence
  - name: Replay
  - name: Revisions
  - name: Routing
  - name: Sandboxes
  - name: Scaling
  - name: Secrets
  - name: System
  - name: Targets
  - name: Training lineage
paths:
  /api/v1/optimization/kernel-opportunities:
    post:
      tags:
        - Inference optimization
      summary: >-
        Search reviewed existing kernel sources before bounded custom-kernel
        experiments
      operationId: planKernelOpportunities
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/KernelOpportunityRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Object'
          description: Success
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Typed API error
      security:
        - bearerAuth: []
components:
  schemas:
    KernelOpportunityRequest:
      additionalProperties: false
      properties:
        hardware:
          additionalProperties: false
          properties:
            accelerator:
              minLength: 1
              type: string
            compute_capability:
              type: string
            vendor:
              const: nvidia
              type: string
          required:
            - vendor
            - accelerator
          type: object
        model:
          additionalProperties: false
          properties:
            repository:
              minLength: 1
              type: string
            revision:
              pattern: ^[a-fA-F0-9]{40,64}$
              type: string
          required:
            - repository
            - revision
          type: object
        policy:
          description: >-
            Amdahl materiality, target speedup, measured-evidence, and
            candidate-budget gates.
          type: object
        profile:
          description: >-
            Exact profiler identity and bounded operator hotspots; request-level
            monitoring alone is insufficient.
          type: object
        runtime:
          additionalProperties: false
          properties:
            image_digest:
              pattern: ^sha256:[a-fA-F0-9]{64}$
              type: string
            name:
              minLength: 1
              type: string
            version:
              minLength: 1
              type: string
          required:
            - name
            - version
            - image_digest
          type: object
        schema_version:
          const: infercrane.kernel-opportunity-request/v1
          type: string
        workload:
          additionalProperties: false
          properties:
            batch_size:
              minimum: 1
              type: integer
            concurrency:
              minimum: 1
              type: integer
            digest:
              pattern: ^sha256:[a-fA-F0-9]{64}$
              type: string
            input_tokens:
              minimum: 1
              type: integer
            output_tokens:
              minimum: 1
              type: integer
            phase:
              enum:
                - prefill
                - decode
                - mixed
              type: string
          required:
            - digest
            - phase
            - batch_size
            - concurrency
            - input_tokens
            - output_tokens
          type: object
      required:
        - schema_version
        - model
        - runtime
        - hardware
        - workload
        - profile
        - policy
      type: object
    Object:
      additionalProperties: true
      type: object
    ErrorEnvelope:
      properties:
        error:
          $ref: '#/components/schemas/Error'
      required:
        - error
      type: object
    Error:
      properties:
        category:
          type: string
        code:
          type: string
        message:
          type: string
        remediation:
          type: string
        request_id:
          type: string
        retryable:
          type: boolean
      required:
        - code
        - message
      type: object
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````