{"uid":"cap_9D15FfhpVz2NYp7fNYV5c","slug":"agentrxi-llama-4-scout-chat-completions-1d79b852","name":"AgentRXI Llama 4 Scout Chat Completions","description":"OpenAI-compatible chat completions on Meta Llama 4 Scout, multimodal (image input) with tool calling. Set your OpenAI SDK base URL to https://agentrxi.com/v1/llama4 and pay per token with x402 instead of an API key: $0.81 per million input and $2.55 per million output tokens, minimum $0.002 a call, at most $0.0145. The 402 quotes your request's maximum; \"upto\" payers are charged only the tokens used. Same request/response shape as OpenAI (tool calling, image input, streaming ","url":"https://agentrxi.com/v1/llama4/chat/completions?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["prompt"],"properties":{"prompt":{"type":"string","description":"User message"},"system":{"type":"string","description":"Optional system message"},"max_tokens":{"type":"integer"},"temperature":{"type":"number"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"id":"chatcmpl-...","model":"llama-4-scout-17b","usage":{"total_tokens":18,"prompt_tokens":14,"completion_tokens":4},"object":"chat.completion","choices":[{"index":0,"message":{"role":"assistant","content":"Bonjour !"},"finish_reason":"stop"}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004628","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.004628/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004628","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004628","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_JviQIxy0zu4Om8uc2p4A3","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004628","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"OpenAI-compatible multimodal chat completions using Meta Llama 4 Scout with tool calling, paid per token via x402 micropayments","exampleAgentPrompt":"Use Llama 4 Scout to answer this question: look at this image of a chart and summarize the key trends — keep the response under 200 tokens.","exampleUseCases":[{"title":"Multimodal image analysis task","prompt":"Look at this product photo and write a compelling 3-sentence marketing description for it using Llama 4 Scout — keep it under 150 tokens."},{"title":"Agentic tool-calling workflow","prompt":"Use Llama 4 Scout with my weather tool defined to answer: what should I wear today in Seattle? Call the tool if needed and summarize the recommendation."},{"title":"Pay-per-use LLM for cost-sensitive batch","prompt":"I need to run a one-off chat completion with Llama 4 Scout — translate this paragraph to French and keep max_tokens at 100 so I only pay for what I use."}],"resultDescription":"Returns an OpenAI-format chat.completion JSON object with choices array containing the assistant message (text or tool call), finish_reason, and a usage block with prompt_tokens, completion_tokens, and total_tokens. Streaming is supported. Tool call responses follow the standard OpenAI tool_calls schema.","failureModes":["402 Payment Required if x402 wallet has insufficient funds","400 Bad Request if prompt is missing or malformed","Model refusal if input violates content policy","Timeout on very long prompts or high max_tokens values","Tool call parsing errors if tool schema is malformed","Image URL unreachable causing vision input failure"],"whenToPreferThis":"Choose this endpoint when you need OpenAI-SDK-compatible multimodal chat completions (image input + tool calling) backed by Meta Llama 4 Scout without a monthly subscription — paying only per token via x402 micropayments. It is ideal for agents with bursty or unpredictable usage patterns, for avoiding API key management, or when you specifically want Llama 4 Scout's multimodal and agentic capabilities at $0.81/M input and $2.55/M output token pricing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T06:38:48.327Z","isFirstParty":false,"canonicalSlug":"agentrxi-llama-4-scout-chat-completions-1d79b852"}