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

# Miners serving a model (its endpoints)

> One endpoint per miner that proved it serves the model. status: 0 live and ready, -1 reachable not ready, -2 not answering. uptime_last_1d: share of signed-proof probes that succeeded; latency_last_30m.p50: mean seconds to the verified reply (both all time). The miner details are under `flop`.



## OpenAPI

````yaml /openapi.json get /v1/models/{author}/{slug}/endpoints
openapi: 3.1.0
info:
  title: floprouter API
  version: 1.0.0
  description: >-
    The floprouter API routes chat requests to FLOP Network miners and settles
    each one on chain. One request format covers every model: chat completions
    with `provider` preferences and a `models` fallback list, model objects, a
    generation lookup, one error format and one streaming format. FLOP's own
    concepts have their own routes: miners, sessions on payment channels,
    session-key grants, the prepaid FLOP balance, settlement and on-chain
    attribution. **Base paths**: `/api/v1/...` and `/v1/...` serve the same
    routes; this document lists them under `/v1`. **Payer modes** (per key,
    overridable per request with `flop.payer`):

    - `grant`: the caller's wallet is the on-chain payer (channel `agent`) of
    every session. The wallet signs one `flopSessionKeys.createSession` grant to
    the router's delegate (`GET /v1/grants/params` returns the exact call data);
    the router then opens channels within the grant's caps. The escrow is paid
    on chain from the wallet; only the router fee comes from the prepaid
    balance. - `credit`: the router's wallet pays the session on chain; escrow
    and router fee are taken from the prepaid balance. **Balance**: fund it with
    a plain FLOP transfer from your wallet to `deposit_address` (`GET
    /v1/balance`); it is credited once the block is finalized. Withdraw with
    `POST /v1/balance/withdraw` (to the owning wallet only). Every balance can
    be recomputed from finalized chain state: billed sessions carry an encrypted
    ledger tag on chain, and the service checks its ledger against the chain
    continuously. The router fee is `fee_percent` of the session's escrow,
    charged only when the channel settles paid. **One request shape for every
    model**: the router chooses the chat envelope, template version, token
    limits and parameter support per model from what the chain and the miner's
    signed info say. Parameters a model does not support (see its
    `supported_parameters`) are ignored and named in
    `X-Floprouter-Ignored-Parameters`; `provider.require_parameters` refuses
    them instead. **Cost** (`usage.cost`, in FLOP): the escrow (prompt plus
    `max_tokens` at the model's price, paid in full on a cooperative settle)
    plus the router fee. Final once the session settles; a refunded session
    costs 0. **Timing**: a proxy in front closes responses idle for 100 s.
    Non-streaming calls answer within about 85 s: with the verified reply, or
    with HTTP 202 and the generation id to poll (`GET /v1/generation?id=`).
    Streams send `: FLOPROUTER PROCESSING` comments at least every 15 s.
    **Streaming**: chat completion chunks ending in a usage chunk (one choice
    repeating `finish_reason`) and `data: [DONE]`. Text is forwarded as the
    miner streams it and is provisional until the turn's signed receipt is
    verified at the end of the turn. A mid-stream error is one chunk with a
    top-level `error` and `finish_reason: "error"`. **Errors**: `{"error":
    {"code": <HTTP status>, "message", "metadata": {"reason", ...}}}`; 429 and
    503 carry `Retry-After`. **Miner score**: computed by the router from
    on-chain facts only (settlement history, volume, stake, slashing record,
    calibration state). The raw facts are returned beside it. **Client
    libraries**: the chat endpoint uses the widely used chat completions request
    and response format, so any client library for that format works with
    `baseURL` set to `https://api.floprouter.com/api/v1` and a floprouter key.
  license:
    name: Proprietary
    identifier: LicenseRef-Proprietary
servers:
  - url: https://api.floprouter.com
    description: API used by this site
security: []
tags:
  - name: Inference
    description: Chat completions and sessions.
  - name: Models
    description: >-
      Models, with their prices, limits and supported parameters, and the miners
      serving each.
  - name: Auth
    description: Wallet-signed API keys.
  - name: Grants
    description: 'Grant payer mode: the wallet stays the on-chain payer.'
  - name: Balance
    description: Prepaid balance and ledger.
  - name: Directory
    description: No key needed.
  - name: Service
    description: Health and this document.
paths:
  /v1/models/{author}/{slug}/endpoints:
    get:
      tags:
        - Models
      summary: Miners serving a model (its endpoints)
      description: >-
        One endpoint per miner that proved it serves the model. status: 0 live
        and ready, -1 reachable not ready, -2 not answering. uptime_last_1d:
        share of signed-proof probes that succeeded; latency_last_30m.p50: mean
        seconds to the verified reply (both all time). The miner details are
        under `flop`.
      operationId: listModelEndpoints
      parameters:
        - name: author
          in: path
          required: true
          schema:
            type: string
          example: qwen
        - name: slug
          in: path
          required: true
          schema:
            type: string
          example: qwen3-8b
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      id:
                        type: string
                      name:
                        type: string
                      endpoints:
                        type: array
                        items:
                          type: object
              example:
                data:
                  id: qwen/qwen3-8b
                  name: Qwen/Qwen3-8B
                  created: 0
                  description: >-
                    Qwen/Qwen3-8B, served by FLOP Network miners. Every reply is
                    checked against the miner's signed receipt before it is
                    returned.
                  architecture:
                    modality: text->text
                    input_modalities:
                      - text
                    output_modalities:
                      - text
                    tokenizer: Qwen
                    instruct_type: null
                  endpoints:
                    - name: miner-002.0xmakase.co.jp | Qwen/Qwen3-8B
                      model_id: qwen/qwen3-8b
                      model_name: Qwen/Qwen3-8B
                      context_length: 10000
                      pricing:
                        prompt: '0.00005'
                        completion: '0.00005'
                        request: '0'
                        image: '0'
                        web_search: '0'
                        internal_reasoning: '0'
                      provider_name: miner-002.0xmakase.co.jp
                      tag: 5HKiGNFSqSyEMVMjjr8JBKkkppytaqFZCRm27KGbCeHhUq92
                      quantization: bf16
                      max_completion_tokens: 8192
                      max_prompt_tokens: 10000
                      supported_parameters:
                        - max_tokens
                      status: -2
                      uptime_last_5m: null
                      uptime_last_30m: null
                      uptime_last_1d: 98.6
                      latency_last_30m:
                        p50: 38.328
                      throughput_last_30m: null
                      supports_implicit_caching: false
                      flop:
                        miner: 5HKiGNFSqSyEMVMjjr8JBKkkppytaqFZCRm27KGbCeHhUq92
                        endpoint: https://miner-002.0xmakase.co.jp
                        score: 67.5
                        ready: true
                        liveness: down
                        binding: offer
                        worker_image: 0.1.418
                        live_signed_offer: true
                        sessions_attempted: 44
                        sessions_with_output: 24
                        uptime_note: >-
                          uptime_last_1d is the share of signed-proof probes
                          that succeeded (all time); latency_last_30m.p50 is the
                          mean time to the verified reply in seconds (all time).
                    - name: miner-01.technocore-lab.com | Qwen/Qwen3-8B
                      model_id: qwen/qwen3-8b
                      model_name: Qwen/Qwen3-8B
                      context_length: 10000
                      pricing:
                        prompt: '0.00005'
                        completion: '0.00005'
                        request: '0'
                        image: '0'
                        web_search: '0'
                        internal_reasoning: '0'
                      provider_name: miner-01.technocore-lab.com
                      tag: 5FP2avtDrL4DxdofTFAvGbENJcb4GSi8mcN5Cyc7yHmWFf16
                      quantization: null
                      max_completion_tokens: 8192
                      max_prompt_tokens: 10000
                      supported_parameters:
                        - max_tokens
                      status: -2
                      uptime_last_5m: null
                      uptime_last_30m: null
                      uptime_last_1d: 100
                      latency_last_30m: null
                      throughput_last_30m: null
                      supports_implicit_caching: false
                      flop:
                        miner: 5FP2avtDrL4DxdofTFAvGbENJcb4GSi8mcN5Cyc7yHmWFf16
                        endpoint: https://miner-01.technocore-lab.com
                        score: 31.2
                        ready: true
                        liveness: down
                        binding: null
                        worker_image: 0.1.418
                        live_signed_offer: false
                        sessions_attempted: 0
                        sessions_with_output: 0
                        uptime_note: >-
                          uptime_last_1d is the share of signed-proof probes
                          that succeeded (all time); latency_last_30m.p50 is the
                          mean time to the verified reply in seconds (all time).
        '404':
          description: Not a verified model
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: 404
                  message: model "nobody/none" is not a verified model on this network
                  metadata:
                    reason: model_not_found
      security: []
components:
  schemas:
    Error:
      type: object
      description: >-
        `code` is the HTTP status; `metadata.reason` is floprouter's specific
        reason.
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: integer
              examples:
                - 400
                - 401
                - 402
                - 403
                - 404
                - 408
                - 409
                - 413
                - 429
                - 502
                - 503
            message:
              type: string
            metadata:
              type: object
              properties:
                reason:
                  type: string
                  examples:
                    - insufficient_balance
                    - grant_expired
                    - all_attempts_failed
                    - no_provider_supports_parameters
                    - tools_not_supported
                    - model_not_found
                    - rate_limited
                    - withdrawal_in_progress
                session_id:
                  type: string
              additionalProperties: true

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.