{"uid":"cap_u2jSYVVTkUhyVLvhBl6QP","slug":"llama-3-1-8b-metered-chat-telnyx-inference-323b72ef","name":"Llama 3.1 8B Metered Chat (Telnyx Inference)","description":"Chat completions via Telnyx Inference (meta-llama/Meta-Llama-3.1-8B-Instruct). OpenAI-compatible. $0.002237 USDC per call. (upto metered — large context)","url":"https://x402.telnyx.com/v1/chat/completions/_t/llama-3.1-8b/upto?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"n":{"type":"integer","const":1,"description":"Fixed to one completion per paid call."},"model":{"type":"string","const":"meta-llama/Meta-Llama-3.1-8B-Instruct","description":"Model identifier; fixed to meta-llama/Meta-Llama-3.1-8B-Instruct on this route."},"tools":{"type":"array","items":{"type":"object"},"maxItems":16},"messages":{"type":"array","items":{"type":"object","required":["role"],"properties":{"role":{"enum":["system","user","assistant","tool"],"type":"string"},"content":{"type":["string","null"],"maxLength":200000,"description":"Required, except null/omitted on assistant messages that carry tool_calls."},"reasoning":{"type":"string","maxLength":200000,"description":"Assistant messages only: the reasoning returned with that turn, sent back on multi-turn and tool-call loops. Counts toward the message character limits."},"reasoning_content":{"type":"string","maxLength":200000,"description":"Assistant messages only: alternative name for reasoning (as returned by GLM and gpt-oss)."}}},"maxItems":32,"description":"OpenAI-style chat messages."},"max_tokens":{"type":"integer","maximum":4096,"minimum":1},"temperature":{"type":"number","maximum":2,"minimum":0}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.014849","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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.014849/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.014849","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.014849","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_WuXZ3zGwsALlRsC-3rg04","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.014849","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Provides OpenAI-compatible chat completions using Meta-Llama-3.1-8B-Instruct via Telnyx Inference, billed per-call with metered large-context support up to 200K characters","exampleAgentPrompt":"Using the Llama 3.1 8B model on Telnyx, send this conversation — system: 'You are a helpful coding assistant', user: 'Write a Python function that reverses a string' — with temperature 0.7 and up to 512 tokens.","exampleUseCases":[{"title":"Agentic tool-calling pipeline","prompt":"I need you to reason over this multi-turn conversation and decide which tool to call next — use the Llama 3.1 8B model, pass these 3 tool definitions, and keep temperature at 0 so the output is deterministic."},{"title":"Low-cost content drafting","prompt":"Draft a short product description for 'EcoBottle Pro' based on these bullet points — use Llama 3.1 8B, set temperature to 0.9 for creativity, and limit the response to 200 tokens."},{"title":"Long-context document Q&A","prompt":"I have a 50,000-character legal document pasted here — ask Llama 3.1 8B to summarize the key obligations in plain English, with max 300 tokens output and temperature 0.2."}],"resultDescription":"Returns an OpenAI-compatible chat completion object containing the assistant's generated message, finish reason, token usage statistics, and optionally tool call requests if tools were supplied.","failureModes":["Payment failure: x402 payment not accepted or insufficient USDC balance returns 402","Context overflow: messages exceeding 200,000 characters returns 400 or truncation error","Invalid role: messages with unsupported roles return 422 validation error","Token limit exceeded: max_tokens above 4096 returns 422","Too many tools: more than 16 tool definitions returns 422","Model unavailable: transient Telnyx Inference outage returns 503"],"whenToPreferThis":"Choose this endpoint when you need a cost-effective, fast, OpenAI-compatible LLM call using Meta-Llama-3.1-8B-Instruct with large-context (metered) support and pay-per-call x402 billing — ideal for agentic pipelines that need predictable per-request costs without API key management. Prefer the 70B sibling when reasoning quality matters more than cost; prefer this 8B endpoint for high-throughput, latency-sensitive, or budget-constrained workloads.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-22T06:40:34.564Z","isFirstParty":false,"canonicalSlug":"llama-3-1-8b-metered-chat-telnyx-inference-323b72ef"}