LocalAI P2 P API

The P2 P API from LocalAI — 2 operation(s) for p2 p.

Operations 2

GET /api/p2p Returns available P2P nodes #
GET /api/p2p/token Show the P2P token #

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/localai-p2-p-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

localai-p2-p-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: The LocalAI Rest API.
  title: LocalAI P2p API
  contact:
    name: LocalAI
    url: https://localai.io
  license:
    name: MIT
    url: https://raw.githubusercontent.com/mudler/LocalAI/master/LICENSE
  version: 2.0.0
servers:
- url: /
tags:
- name: P2 P
paths:
  /api/p2p:
    get:
      tags:
      - P2 P
      summary: Returns available P2P nodes
      responses:
        '200':
          description: Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/schema.P2PNodesResponse'
      operationId: getApiP2p
      x-operation-id-source: derived
  /api/p2p/token:
    get:
      tags:
      - P2 P
      summary: Show the P2P token
      responses:
        '200':
          description: Response
          content:
            application/json:
              schema:
                type: string
      operationId: getApiP2pToken
      x-operation-id-source: derived
components:
  schemas:
    schema.NodeData:
      type: object
      properties:
        id:
          type: string
        lastSeen:
          type: string
        name:
          type: string
        serviceID:
          type: string
        tunnelAddress:
          type: string
    schema.P2PNodesResponse:
      type: object
      properties:
        federated_nodes:
          type: array
          items:
            $ref: '#/components/schemas/schema.NodeData'
        llama_cpp_nodes:
          type: array
          items:
            $ref: '#/components/schemas/schema.NodeData'
        mlx_nodes:
          type: array
          items:
            $ref: '#/components/schemas/schema.NodeData'
  securitySchemes:
    BearerAuth:
      type: apiKey
      name: Authorization
      in: header