# AgentRXI Llama 4 Scout Chat Completions

> AgentRXI Llama 4 Scout Chat Completions is a paid API for AI agents from agentrxi.com, paid per call via x402, $0.004628/call, status unknown (last checked 2026-10-15).

OpenAI-compatible multimodal chat completions using Meta Llama 4 Scout with tool calling, paid per token via x402 micropayments

## Facts

- Endpoint: GET https://agentrxi.com/v1/llama4/chat/completions?utm_source=zero.xyz
- Price: $0.004628/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentrxi-llama-4-scout-chat-completions-1d79b852
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9D15FfhpVz2NYp7fNYV5c

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agentrxi-llama-4-scout-chat-completions-1d79b852
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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 

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "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"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentrxi-llama-4-scout-chat-completions-1d79b852/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentrxi.com](https://www.zero.xyz/host/agentrxi.com/llms.txt)
