You're viewing a demo portfolio

Join the waitlist
PRSM

chat_completion

Active

Tool of LMX Cloud LLM Inference

declared in 0.4.0

Call LMX Cloud OpenAI-compatible chat completions. Prefers a pre-funded API key (Bearer / api_key); when omitted and x402 is enabled, requires a USDC pay-per-call payment. Optional image_url / images enable vision input (OpenAI content-parts format) — use a vision model such as llama-3.2-90b-vision, qwen-3.6-35b, or qwen-3.5-35b.

Parameters schema

{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "prompt"
  ],
  "properties": {
    "model": {
      "type": "string",
      "description": "Optional model name or alias. Uses default if omitted."
    },
    "images": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1
      },
      "description": "Optional additional images (https URLs or data:image/...;base64,... URIs). Requires a vision-capable model."
    },
    "prompt": {
      "type": "string",
      "minLength": 1,
      "description": "User prompt to send to the selected model."
    },
    "api_key": {
      "type": "string",
      "pattern": "^lmx_[0-9a-f]{32}$",
      "description": "Optional LMX API key (lmx_...). Prefer MCP client Authorization header or env; use this to override per call."
    },
    "image_url": {
      "type": "string",
      "minLength": 1,
      "description": "Optional image as an https URL or data:image/...;base64,... URI. Requires a vision-capable model."
    },
    "max_tokens": {
      "type": "integer",
      "maximum": 4096,
      "description": "Optional max completion tokens.",
      "exclusiveMinimum": 0
    },
    "temperature": {
      "type": "number",
      "maximum": 2,
      "minimum": 0,
      "description": "Optional sampling temperature."
    }
  },
  "additionalProperties": false
}

What this tool wraps· 1 endpoint

min confidence0.700.50

Parent server

LMX Cloud LLM Inference

1/7 registries
View full server →