# Llama 3.3 70B Instruct via x402 Gateway

> Llama 3.3 70B Instruct via x402 Gateway is a paid API for AI agents from x402-gateway-production.up.railway.app, paid per call via x402, $0.003871/call, status healthy (last checked 2026-10-12, last successful call 2026-09-26).

Runs a chat completion against Meta's Llama 3.3 70B Instruct model and returns a text response, billed per call via x402 micropayment.

## Facts

- Endpoint: POST https://x402-gateway-production.up.railway.app/api/llm/llama?utm_source=zero.xyz
- Price: $0.003871/call
- Payment: x402
- Status: healthy
- Last checked: 2026-10-12
- Last successful call: 2026-09-26
- Success rate: 100% of calls made through Zero
- Rating: 5.0 / 5 from 1 review
- Activations on Zero: 44265
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-gateway-production-up-railway-app-8d8c0018
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_K1_A-D8aevN_BWgGULyw3

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 x402-gateway-production-up-railway-app-8d8c0018 -d '<json body>'
```

Example prompt: Ask Llama 3.3 70B to explain the difference between supervised and unsupervised machine learning in simple terms — just send it as a user message.

## When to prefer this

Choose this endpoint when you need a capable, general-purpose open-source LLM at very low cost per call and want transparent token-level cost reporting. Prefer it over GPT-4 or Claude when budget efficiency matters most, and over smaller models when quality and reasoning depth are important. Ideal for agents making many LLM calls where cost accumulates quickly.

## Known failure modes

- Payment not included or insufficient USDC — x402 payment required error
- Malformed messages array — missing role or content fields causes 400 error
- Model unavailable upstream — 503 or timeout from inference provider
- Context length exceeded — prompt too long for model's context window
- Rate limiting from upstream inference provider

## How this service works

Meta's open-source model — great general-purpose performance at very low cost

## Output

Returns a JSON object containing the generated text content from Llama 3.3 70B Instruct, the model identifier, and detailed token usage stats including prompt tokens, completion tokens, total tokens, and a breakdown of upstream inference costs in USD.

## Example request

```json
{
 "messages": [
  {
   "role": "user",
   "content": "Explain the key differences between machine learning and artificial intelligence in 2-3 sentences."
  }
 ]
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "bodyType",
    "body",
    "method"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "messages"
     ],
     "properties": {
      "seed": {
       "type": "integer",
       "description": "Model-supported seed; see /docs/llm-capabilities.md."
      },
      "stop": {
       "oneOf": [
        {
         "type": "string"
        },
        {
         "type": "array",
         "items": {
          "type": "string"
         },
         "maxItems": 4
        }
       ],
       "description": "Model-supported stop; see /docs/llm-capabilities.md."
      },
      "min_p": {
       "type": "number",
       "description": "Model-supported min_p; see /docs/llm-capabilities.md."
      },
      "tools": {
       "type": "array",
       "items": {
        "type": "object",
        "required": [
         "function"
        ],
        "properties": {
         "type": {
          "enum": [
           "function"
          ],
          "type": "string"
         },
         "function": {
          "type": "object",
          "properties": {
           "name": {
            "type": "string"
           },
           "strict": {
            "type": "boolean"
           },
           "parameters": {
            "type": "object"
           },
           "description": {
            "type": "string"
           }
          }
         }
        }
       },
       "description": "Client-executed function definitions; return results using role=tool and tool_call_id."
      },
      "top_k": {
       "type": "integer",
       "description": "Model-supported top_k; see /docs/llm-capabilities.md."
      },
      "top_p": {
       "type": "number",
       "description": "Model-supported top_p; see /docs/llm-capabilities.md."
      },
      "stream": {
       "type": "boolean",
       "description": "Return live OpenAI-compatible SSE after payment settlement."
      },
      "logprobs": {
       "type": "boolean",
       "description": "Model-supported logprobs; see /docs/llm-capabilities.md."
      },
      "messages": {
       "type": "array",
       "items": {
        "type": "object",
        "anyOf": [
         {
          "required": [
           "content"
          ]
         },
         {
          "required": [
           "tool_calls"
          ]
    
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-gateway-production-up-railway-app-8d8c0018/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-gateway-production.up.railway.app](https://www.zero.xyz/host/x402-gateway-production.up.railway.app/llms.txt)
