# OpenAI-compatible Chat Completion (Llama 4 Scout / Llama 3.3 70B / gpt-oss-120b / Qwen3)

> OpenAI-compatible Chat Completion (Llama 4 Scout / Llama 3.3 70B / gpt-oss-120b / Qwen3) is a paid API for AI agents from agent-data-tools.revmesh2074.workers.dev, paid per call via x402, $0.002/call (dynamic — varies by input), status unknown (last checked 2026-11-04).

Accepts an OpenAI-shaped chat completion request and returns an assistant reply from open models (Llama 4 Scout default at $0.002, or Llama 3.3 70B / gpt-oss-120b at $0.01), paid per-call via x402 or prepaid credits.

## Facts

- Endpoint: GET https://agent-data-tools.revmesh2074.workers.dev/v1/chat/completions?utm_source=zero.xyz
- Price: $0.002/call (dynamic — varies by input)
- Payment: x402
- Status: unknown
- Last checked: 2026-11-04
- Activations on Zero: 0
- Provider: agent-data-tools.revmesh2074.workers.dev
- Website: https://agent-data-tools.revmesh2074.workers.dev
- Canonical page: https://www.zero.xyz/c/agent-data-tools-revmesh2074-workers-dev-openai-compatible-chat-1cb5dca2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KZpCCogn4eC1tSgShGvX4

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 agent-data-tools-revmesh2074-workers-dev-openai-compatible-chat-1cb5dca2
```

Example prompt: Ask the Llama 4 Scout model: 'You are a helpful assistant. User: What are three ways to reduce churn for a SaaS product?' — keep the reply under 400 tokens and return it as plain text.

## When to prefer this

Choose this endpoint when you already have an OpenAI SDK or toolchain and want to point it at open models (Llama 4 Scout, Llama 3.3 70B, gpt-oss-120b, Qwen3) with strict pay-per-call pricing (from $0.002), no subscription, no account, and crypto (x402/USDC) or card payment. It is ideal for agents that need drop-in OpenAI API compatibility with open-weight models, function calling, JSON mode, or structured output at low per-call cost. Prefer the larger model tier (llama-3.3-70b or gpt-oss-120b) for complex reasoning tasks; use the default Llama 4 Scout for cost-sensitive, high-volume inference.

## Known failure modes

- 402 Payment Required returned on first unpaid call — includes x402 quote; retry with payment header to get the completion
- model name not recognized — defaults silently to Llama 4 Scout or may return a 400
- messages array missing or empty — returns 400 validation error
- max_tokens exceeds 1024 — capped or rejected
- temperature outside 0–1.5 range — rejected with validation error
- network timeout on slow inference — no charge on failure
- streaming (stream: true) may not be supported by all callers despite being in schema

## How this service works

OpenAI chat completions request shape, answered by the same models and at the same prices as /ai/chat ($0.002, default) and /ai/chat-large ($0.01; pick it with model "llama-3.3-70b" or "gpt-oss-120b"): send messages (system, user, assistant), get one assistant message back. No streaming. Point an OpenAI SDK at https://agent-data-tools.revmesh2074.workers.dev/v1 with an x402 or MPP fetch wrapper; the unpaid request returns the 402 quote and the paid retry returns the completion. Failed calls are never charged.

## Output

Returns an OpenAI-shaped chat completion object with a choices array containing the assistant message (content and optional tool_calls), finish_reason, model name, completion id, created timestamp, and a usage block with prompt_tokens, completion_tokens, total_tokens, and an estimated flag.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "messages"
 ],
 "properties": {
  "model": {
   "type": "string",
   "description": "@cf/meta/llama-4-scout-17b-16e-instruct (default, $0.002), or llama-3.3-70b / gpt-oss-120b ($0.01)"
  },
  "tools": {
   "type": "array",
   "items": {
    "type": "object"
   },
   "description": "OpenAI function tools (Llama 4 Scout, the default model): the answer carries tool_calls"
  },
  "stream": {
   "type": "boolean",
   "description": "true answers OpenAI server-sent events ending in [DONE]"
  },
  "messages": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "role",
     "content"
    ],
    "properties": {
     "role": {
      "enum": [
       "system",
       "user",
       "assistant"
      ],
      "type": "string"
     },
     "content": {
      "type": "string"
     }
    }
   },
   "minItems": 1
  },
  "max_tokens": {
   "type": "integer",
   "maximum": 1024,
   "minimum": 1,
   "description": "Maximum output tokens (default 400)"
  },
  "temperature": {
   "type": "number",
   "maximum": 1.5,
   "minimum": 0,
   "description": "Default 0.6"
  },
  "tool_choice": {
   "description": "auto, none, required or one named function"
  },
  "response_format": {
   "type": "object",
   "description": "{\"type\":\"json_object\"} or a json_schema"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "id": {
   "type": "string"
  },
  "model": {
   "type": "string"
  },
  "usage": {
   "type": "object",
   "properties": {
    "estimated": {
     "type": "boolean"
    },
    "total_tokens": {
     "type": "integer"
    },
    "prompt_tokens": {
     "type": "integer"
    },
    "completion_tokens": {
     "type": "integer"
    }
   }
  },
  "object": {
   "type": "string"
  },
  "choices": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "index": {
      "type": "integer"
     },
     "message": {
      "type": "object",
      "properties": {
       "role": {
        "type": "string"
       },
       "content": {
        "type": "string"
       }
      }
     },
     "finish_reason": {
      "type": "string"
     }
    }
   }
  },
  "created": {
   "type": "integer"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-data-tools-revmesh2074-workers-dev-openai-compatible-chat-1cb5dca2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-data-tools.revmesh2074.workers.dev](https://www.zero.xyz/host/agent-data-tools.revmesh2074.workers.dev/llms.txt)
