OneInfer Quantization API

The Quantization API from OneInfer — 6 operation(s) for quantization.

GitHub OpenAPI

Operations 7

GET /v1/developer/{developer_id}/quantize/schemes List Quantization Schemes #
POST /v1/developer/{developer_id}/quantize Start Quantization #
GET /v1/developer/{developer_id}/quantize/jobs List Quantization Jobs #
GET /v1/developer/{developer_id}/quantize/jobs/{job_id} Get Quantization Job Status #
DELETE /v1/developer/{developer_id}/quantize/jobs/{job_id} Cancel Quantization Job #
GET /v1/developer/{developer_id}/quantize/jobs/{job_id}/results Get Quantization Results #
POST /v1/quantization/webhook Quantization Webhook #

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/oneinfer-ai:oneinfer-ai-quantization-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

oneinfer-ai-quantization-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: OneInfer Quantization API
  description: Universal LLM APIs with Bearer Token Authentication
  version: 0.1.0
tags:
- name: Quantization
paths:
  /v1/developer/{developer_id}/quantize/schemes:
    get:
      tags:
      - Quantization
      summary: List Quantization Schemes
      description: List supported quantization schemes for v1 (GGUF/llama.cpp only).
      operationId: list_quantization_schemes_v1_developer__developer_id__quantize_schemes_get
      parameters:
      - name: developer_id
        in: path
        required: true
        schema:
          type: string
          title: Developer Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - BearerAuth: []
  /v1/developer/{developer_id}/quantize:
    post:
      tags:
      - Quantization
      summary: Start Quantization
      description: Start a new quantization job on an existing GPU instance.
      operationId: start_quantization_v1_developer__developer_id__quantize_post
      parameters:
      - name: developer_id
        in: path
        required: true
        schema:
          type: string
          title: Developer Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/StartQuantizationRequest'
      responses:
        '202':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - BearerAuth: []
  /v1/developer/{developer_id}/quantize/jobs:
    get:
      tags:
      - Quantization
      summary: List Quantization Jobs
      description: List all quantization jobs for a developer.
      operationId: list_quantization_jobs_v1_developer__developer_id__quantize_jobs_get
      parameters:
      - name: developer_id
        in: path
        required: true
        schema:
          type: string
          title: Developer Id
      - name: status_filter
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Status Filter
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          default: 20
          title: Limit
      - name: offset
        in: query
        required: false
        schema:
          type: integer
          default: 0
          title: Offset
      - name: project_id
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Project Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - BearerAuth: []
  /v1/developer/{developer_id}/quantize/jobs/{job_id}:
    get:
      tags:
      - Quantization
      summary: Get Quantization Job Status
      description: Get detailed status for a specific quantization job.
      operationId: get_quantization_job_status_v1_developer__developer_id__quantize_jobs__job_id__get
      parameters:
      - name: developer_id
        in: path
        required: true
        schema:
          type: string
          title: Developer Id
      - name: job_id
        in: path
        required: true
        schema:
          type: string
          title: Job Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - BearerAuth: []
    delete:
      tags:
      - Quantization
      summary: Cancel Quantization Job
      description: Cancel an ongoing quantization job and best-effort kill the remote process.
      operationId: cancel_quantization_job_v1_developer__developer_id__quantize_jobs__job_id__delete
      parameters:
      - name: developer_id
        in: path
        required: true
        schema:
          type: string
          title: Developer Id
      - name: job_id
        in: path
        required: true
        schema:
          type: string
          title: Job Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - BearerAuth: []
  /v1/developer/{developer_id}/quantize/jobs/{job_id}/results:
    get:
      tags:
      - Quantization
      summary: Get Quantization Results
      description: Get full results for a completed quantization job.
      operationId: get_quantization_results_v1_developer__developer_id__quantize_jobs__job_id__results_get
      parameters:
      - name: developer_id
        in: path
        required: true
        schema:
          type: string
          title: Developer Id
      - name: job_id
        in: path
        required: true
        schema:
          type: string
          title: Job Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - BearerAuth: []
  /v1/quantization/webhook:
    post:
      tags:
      - Quantization
      summary: Quantization Webhook
      description: Public webhook the remote runner script posts progress and final results to.
      operationId: quantization_webhook_v1_quantization_webhook_post
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: true
              type: object
              title: Request
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - BearerAuth: []
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ModelSource:
      type: string
      enum:
      - huggingface
      - catalog
      title: ModelSource
    RegionOverrideRequest:
      properties:
        region:
          $ref: '#/components/schemas/QuantizationRegion'
        override_scheme:
          type: string
          title: Override Scheme
        layer_start:
          anyOf:
          - type: integer
          - type: 'null'
          title: Layer Start
        layer_end:
          anyOf:
          - type: integer
          - type: 'null'
          title: Layer End
      type: object
      required:
      - region
      - override_scheme
      title: RegionOverrideRequest
      description: 'Mixed-precision request: quantize one tensor region to a different scheme

        than the rest of the model.'
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    QuantizationRegion:
      type: string
      enum:
      - embeddings
      - attention
      - attention_qkv
      - attention_o
      - mlp
      - mlp_gate_up
      - mlp_down
      - output
      title: QuantizationRegion
      description: 'Selectable GGUF tensor regions for mixed-precision (per-layer) quantization.


        Maps to llama.cpp GGUF tensor naming (token_embd.weight, blk.N.attn_*,

        blk.N.ffn_*, output.weight) via TENSOR_REGEX_BY_REGION in

        quantization_deploy.py, passed to `llama-quantize --tensor-type <regex>=<TYPE>`.'
    StartQuantizationRequest:
      properties:
        model_source:
          $ref: '#/components/schemas/ModelSource'
        hf_repo:
          anyOf:
          - type: string
          - type: 'null'
          title: Hf Repo
        model_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Model Id
        scheme:
          type: string
          title: Scheme
        dataset:
          type: string
          title: Dataset
          default: wikitext2
        prompt:
          type: string
          title: Prompt
          default: Explain gradient descent in one paragraph.
        instance_id:
          type: string
          title: Instance Id
        provider:
          type: string
          title: Provider
        region_override:
          anyOf:
          - $ref: '#/components/schemas/RegionOverrideRequest'
          - type: 'null'
      type: object
      required:
      - model_source
      - scheme
      - instance_id
      - provider
      title: StartQuantizationRequest
      description: Request body for starting a quantization job.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Enter your JWT access token (without 'Bearer ' prefix)