Chat completion (Llama 3.1 8B)

$0.003 per call · failed calls are never charged · no account or API key needed

Send a prompt, get an answer from Llama 3.1 8B Instruct, with an optional system prompt, up to 1,024 output tokens and adjustable temperature. Use for drafting, reasoning steps, Q&A and any quick LLM call without an AI provider account.

Run it free (25 free calls) Buy credits by card (from $5) Example result (JSON)

Inputs

NameTypeDescription
prompt (required)stringUser prompt, up to 8,000 characters
systemstringOptional system prompt, up to 2,000 characters
maxTokensintegerMaximum output tokens, 1-1024 (default 400)
temperaturenumber0-1.5 (default 0.6)

Request

Over HTTP, with a card key from /credits:

curl -H "Authorization: Bearer adt_…" "https://agent-data-tools.revmesh2074.workers.dev/ai/chat?prompt=Explain%20x402%20in%20one%20sentence."

Or one of your 25 free calls, no key:

curl "https://agent-data-tools.revmesh2074.workers.dev/ai/chat?prompt=Explain%20x402%20in%20one%20sentence.&trial=1"

Without a key, the same URL answers 402 Payment Required with x402 and MPP terms, so an agent with a wallet pays per call in USDC (Base, Polygon, Arbitrum, Monad, World Chain or Tempo) and retries.

Example result

{
  "model": "@cf/meta/llama-3.1-8b-instruct-fp8",
  "response": "x402 lets software pay for an HTTP request with a stablecoin by answering a 402 Payment Required challenge."
}

From an AI agent (MCP)

Add the MCP server to Claude, Cursor or any MCP client. This tool is ai_chat, and the first 25 successful calls are free:

https://agent-data-tools.revmesh2074.workers.dev/mcp

Related tools