{
  "generated_at": "2026-04-24T15:01:35.625676+00:00",
  "slug": "connect-loomlay-com-functions-v1-chat-completions",
  "title": "Loomlay \u00b7 LLM Chat Completions with Token Pricing",
  "url": "https://connect.loomlay.com/functions/v1/chat-completions",
  "category": "ai",
  "summary": "Provides LLM chat completions with usage-based pricing calculated per input and output tokens.",
  "seo": {
    "title": "Loomlay \u00b7 LLM Chat Completions with Token Pricing",
    "description": "Provides LLM chat completions with usage-based pricing calculated per input and output tokens."
  },
  "use_cases": [
    "Generate conversational responses for AI agents",
    "Build pay-per-use chat applications",
    "Access multiple LLMs without subscription commitments",
    "Implement token-optimized inference cost controls"
  ],
  "ideal_buyer": "AI application builders, chatbot developers, and cost-conscious agents seeking flexible LLM access without fixed fees.",
  "example_prompt": "Complete this conversation: User: Explain quantum computing in simple terms. Assistant:",
  "example_request_body": {
    "model": "gpt-4o-mini",
    "messages": [
      {
        "role": "user",
        "content": "Explain quantum computing in simple terms"
      }
    ],
    "max_tokens": 500
  },
  "risk_notes": [],
  "pricing_sanity": {
    "flag": "unknown",
    "median_category_atomic": 0
  },
  "pricing_review_required": false,
  "pricing_decimal_suspect": false,
  "trust_tier": "indexed_external",
  "accepts": [
    {
      "scheme": "exact",
      "network": "base",
      "pay_to": "0x9bea314659593ac6651a78931f1c1839737b3f9c",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "max_amount_required_atomic": "0",
      "max_timeout_seconds": 60,
      "mime_type": "application/json",
      "description": "LLM Inference API - Pay per use based on model and token usage",
      "verified": false,
      "hints": {
        "input": {
          "type": "http",
          "method": "POST",
          "bodyType": "json",
          "bodyFields": {
            "model": {
              "type": "string",
              "required": true,
              "description": "Model ID from OpenRouter (e.g., 'openai/gpt-4')"
            },
            "stream": {
              "type": "boolean",
              "required": false,
              "description": "Enable streaming"
            },
            "messages": {
              "type": "array",
              "required": true,
              "description": "Array of message objects with 'role' (system/user/assistant) and 'content' (string)"
            },
            "temperature": {
              "type": "number",
              "required": false,
              "description": "Sampling temperature 0-2"
            },
            "max_completion_tokens": {
              "type": "number",
              "required": false,
              "description": "Max output tokens (recommended)"
            }
          },
          "headerFields": {
            "X-PAYMENT": {
              "type": "string",
              "required": false,
              "description": "Base64-encoded JSON PaymentPayload"
            }
          }
        },
        "output": {
          "usage": {
            "type": "object",
            "description": "Token usage information"
          },
          "choices": {
            "type": "array",
            "description": "Array of completion choices"
          }
        }
      }
    }
  ],
  "origin": {
    "slug": "connect-loomlay-com",
    "host": "connect.loomlay.com",
    "url": "https://connect.loomlay.com"
  },
  "json_ld": {
    "@id": "https://x402all.com/resource/connect-loomlay-com-functions-v1-chat-completions",
    "url": "https://x402all.com/resource/connect-loomlay-com-functions-v1-chat-completions",
    "name": "Loomlay \u00b7 LLM Chat Completions with Token Pricing",
    "@type": "WebAPI",
    "offers": {
      "url": "https://x402all.com/resource/connect-loomlay-com-functions-v1-chat-completions",
      "@type": "Offer",
      "price": "0",
      "availability": "https://schema.org/InStock",
      "priceCurrency": "USDC",
      "priceSpecification": {
        "@type": "UnitPriceSpecification",
        "price": "0",
        "unitText": "call",
        "priceCurrency": "USDC"
      },
      "eligibleCustomerType": "Agent",
      "additionalProperty": [
        {
          "@type": "PropertyValue",
          "name": "paymentNetwork",
          "value": "base"
        },
        {
          "@type": "PropertyValue",
          "name": "paymentAsset",
          "value": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
        }
      ]
    },
    "sameAs": "https://connect.loomlay.com/functions/v1/chat-completions",
    "@context": "https://schema.org",
    "provider": {
      "@id": "https://x402all.com/server/connect-loomlay-com",
      "url": "https://connect.loomlay.com",
      "name": "connect.loomlay.com",
      "@type": "Organization"
    },
    "identifier": "connect-loomlay-com-functions-v1-chat-completions",
    "description": "Provides LLM chat completions with usage-based pricing calculated per input and output tokens.",
    "potentialAction": {
      "@type": "BuyAction",
      "target": "https://axon402.com/test-buy?resource=connect-loomlay-com-functions-v1-chat-completions",
      "description": "Test-buy this endpoint on AXON"
    },
    "applicationCategory": "ai"
  },
  "axon_deep_link": "https://axon402.com/test-buy?resource=connect-loomlay-com-functions-v1-chat-completions"
}
