Hive Civilization Smsh API

The smsh API from Hive Civilization — 8 operation(s) for smsh.

Operations 9

POST /v1/smsh/compress Smsh Compress #
POST /v1/smsh/decompress Smsh Decompress #
POST /v1/smsh/compress/demo Smsh Compress Demo #
GET /v1/smsh/health Smsh Health #
GET /v1/smsh/v1_5/warmup Smsh V1 5 Warmup #
POST /v1/smsh/v1_5/warmup Smsh V1 5 Warmup #
GET /v1/smsh/dictionary Smsh Dictionary #
GET /v1/smsh/modes Smsh Modes #
GET /v1/smsh/bench/summary Smsh Bench Summary #

Documentation

Specifications

Other Resources

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/thehiveryiq-com-smsh-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

thehiveryiq-com-smsh-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: HiveMorph v0.1 Smsh API
  description: 'Polymorphic agent runtime — single shape (Merchant), single supermodel (W2 MERCHANT). Three gates: NEED + YIELD + CLEAN-MONEY.'
  version: 0.1.0
tags:
- name: smsh
paths:
  /v1/smsh/compress:
    post:
      tags:
      - smsh
      summary: Smsh Compress
      description: 'Compress a prompt using smsh.


        Modes:

        - smsh-lite: dictionary + whitespace (v1 fast)

        - smsh-std: + structural dedup (v1 default)

        - smsh-pq-std: + PQ signed envelope (ed25519 baseline, ML-DSA-65 target)

        - smsh-pq-sealed: + KEM encrypted + signed (x25519+AES-256-GCM, ML-KEM-768 target)

        - smsh-v2-learned: v1-std then judge-based learned pruning


        Optional: fidelity_target (0.0-1.0) triggers inference + fidelity check.'
      operationId: smsh_compress_v1_smsh_compress_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/hivemorph__hive_smsh__routes__CompressRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/smsh/decompress:
    post:
      tags:
      - smsh
      summary: Smsh Decompress
      description: 'Reverse dictionary substitutions and strip the smsh decode header.

        Structural dedup backreferences (D1, D2, ...) are preserved.'
      operationId: smsh_decompress_v1_smsh_decompress_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DecompressRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/smsh/compress/demo:
    post:
      tags:
      - smsh
      summary: Smsh Compress Demo
      description: 'Free demo of smsh compression. Caps:

        - input: 4000 chars max

        - modes: smsh-lite, smsh-std, smsh-pq-std, smsh-pq-sealed (no v2-learned)

        - fidelity_target: ignored (no inference run)

        Returns the same compression result shape as /v1/smsh/compress.'
      operationId: smsh_compress_demo_v1_smsh_compress_demo_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/hivemorph__hive_smsh__routes__CompressRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/smsh/health:
    get:
      tags:
      - smsh
      summary: Smsh Health
      description: Health check — returns ok, available modes, dictionary size. Free.
      operationId: smsh_health_v1_smsh_health_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /v1/smsh/v1_5/warmup:
    get:
      tags:
      - smsh
      summary: Smsh V1 5 Warmup
      description: 'Pre-load LLMLingua-2 + MiniLM into memory. Returns load status.

        Idempotent; subsequent calls return cached status immediately.

        Free — useful after a deploy to amortize the first cold call.'
      operationId: smsh_v1_5_warmup_v1_smsh_v1_5_warmup_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
    post:
      tags:
      - smsh
      summary: Smsh V1 5 Warmup
      description: 'Pre-load LLMLingua-2 + MiniLM into memory. Returns load status.

        Idempotent; subsequent calls return cached status immediately.

        Free — useful after a deploy to amortize the first cold call.'
      operationId: smsh_v1_5_warmup_v1_smsh_v1_5_warmup_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /v1/smsh/dictionary:
    get:
      tags:
      - smsh
      summary: Smsh Dictionary
      description: Full boilerplate dictionary with sentinel mappings. Free.
      operationId: smsh_dictionary_v1_smsh_dictionary_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /v1/smsh/modes:
    get:
      tags:
      - smsh
      summary: Smsh Modes
      description: List all modes with descriptions, target ratios, and v1/v2 labels. Free.
      operationId: smsh_modes_v1_smsh_modes_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /v1/smsh/bench/summary:
    get:
      tags:
      - smsh
      summary: Smsh Bench Summary
      description: 'Serve the latest bench summary JSON. Updated after each bench run.

        Free — used by website to pull live numbers.'
      operationId: smsh_bench_summary_v1_smsh_bench_summary_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    DecompressRequest:
      properties:
        compressed:
          type: string
          title: Compressed
          description: Compressed text with smsh sentinels.
      type: object
      required:
      - compressed
      title: DecompressRequest
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    hivemorph__hive_smsh__routes__CompressRequest:
      properties:
        text:
          type: string
          title: Text
          description: Prompt text to compress.
        mode:
          type: string
          title: Mode
          description: Compression mode.
          default: smsh-std
        fidelity_target:
          anyOf:
          - type: number
          - type: 'null'
          title: Fidelity Target
          description: If set (0.0-1.0), run inference on both raw and compressed, judge fidelity. If measured fidelity < target, response includes fallback='raw'.
        turn_index:
          anyOf:
          - type: integer
          - type: 'null'
          title: Turn Index
          description: Conversation turn index for smsh-v1 mode (0 = single-turn, >=2 = multi-turn cap 2.5x). Ignored by legacy modes.
          default: 0
      type: object
      required:
      - text
      title: CompressRequest