{"uid":"cap_x-fsQ5FGevhBTzSg12Zpx","slug":"x402-slinkylayer-ai-cd1e33d7","name":"SlinkeyLayer AI Chat Completions","description":"Create a chat completion for a given conversation.","url":"https://x402.slinkylayer.ai/api/v1/proxy/434a0c1d-3755-42c8-aec9-95b7dcef2f4c/chat-completions","method":"POST","headers":{},"bodySchema":{"type":"object","required":["model","messages","reasoning"],"properties":{"model":{"type":"string"},"messages":{"type":"array","items":{"type":"object","required":["role","content"],"properties":{"role":{"type":"string"},"content":{"type":"string"}}}},"reasoning":{"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005000","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005000/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_L9TX83roJyYeVak-ROot5","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Creates a chat completion for a given conversation using a specified model, with optional reasoning mode.","exampleAgentPrompt":"Send this conversation to the slinkylayer chat completions proxy using the model 'gpt-4o', with reasoning enabled: system message 'You are a helpful assistant.' and user message 'Explain how photosynthesis works in simple terms.'","exampleUseCases":[{"title":"Customer support chatbot response generation","prompt":"Use the SlinkeyLayer chat API to answer this support ticket: the customer is asking how to reset their password. Start with a system prompt telling the assistant to be friendly and concise, then send their question through with reasoning mode on so we get a thoughtful response."},{"title":"Real-time conversation analysis for sales calls","prompt":"I need you to send our latest sales call transcript through the SlinkeyLayer chat completions endpoint using gpt-4o. Set the system context to 'You are a sales call analyst' and enable reasoning mode so it can deeply analyze whether we handled objections well."},{"title":"Multi-turn dialogue for educational tutoring app","prompt":"Please proxy this tutoring conversation through SlinkeyLayer with reasoning enabled. Use the model gpt-4o, tell it to act as a patient math tutor in the system message, and send along the student's latest question about quadratic equations to get a detailed explanation."}],"resultDescription":"Returns a chat completion object containing the AI-generated assistant reply for the provided conversation, consistent with standard chat completion API response formats.","failureModes":["Invalid or unsupported model name returns an error","Missing required fields (model, messages, reasoning) returns a validation error","Malformed messages array (missing role or content) causes a 400 error","Payment failure or insufficient USDC balance blocks the request","Model unavailable or overloaded may return a 503 or timeout"],"whenToPreferThis":"Choose this endpoint when you need a pay-per-call LLM chat completion via x402 micropayments on the SlinkeyLayer platform, especially when you want optional reasoning mode and don't want to manage API keys for the underlying model directly.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:43:33.146Z","isFirstParty":false}