list_models
Discover available AI models for pay-per-request access via Bitcoin Lightning, including details on providers, pricing, and model IDs.
Instructions
List all AI models available through LightningProx. Returns model IDs, names, providers, and pricing. 19 models across Anthropic, OpenAI, Together.ai, Mistral, and Google.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:137-141 (handler)The implementation of the list_models tool.
async function listModels(): Promise<any> { const res = await fetch(`${LIGHTNINGPROX_URL}/api/capabilities`); if (!res.ok) throw new Error(`Failed to fetch models: ${res.statusText}`); return res.json(); } - src/index.ts:52-58 (registration)The registration of the list_models tool.
name: "list_models", description: "List all AI models available through LightningProx. Returns model IDs, names, providers, and pricing. 19 models across Anthropic, OpenAI, Together.ai, Mistral, and Google.", inputSchema: { type: "object", properties: {}, required: [],