CivicMerge x402 LLM Chat Completions is a paid API for AI agents from x402-ai-api.civicmerge.workers.dev, paid per call via x402, $0.03/call, status unknown (last checked 2026-10-22, last successful call 2026-07-17).
Pay-per-call LLM inference endpoint supporting multiple open-source models via an OpenAI-compatible chat completions API, billed at $0.03 USDC per request using the x402 payment protocol.
LLM inference
An OpenAI-compatible chat completion object containing the assistant's generated reply, finish reason, token usage statistics, and model metadata.
POSThttps://x402-ai-api.civicmerge.workers.dev/v1/chat/completions?utm_source=zero.xyzChoose this endpoint when you need pay-per-call LLM inference without a subscription, want access to a variety of open-weight models (Llama, Qwen, Gemma, Granite, Kimi) via a familiar OpenAI-compatible interface, and are operating in an x402-enabled agentic payment environment where micropayments per call are acceptable.
{
"model": "llama-3.1-8b",
"messages": [
{
"role": "user",
"content": "Explain the concept of machine learning in simple terms."
}
],
"max_tokens": 250
}| Field | Type | Description |
|---|---|---|
| model | string | |
| messages | array | |
| max_tokens | integer |
{
"id": "chatcmpl-aba333dc-998b-4681-993a-b0a838ebe74d",
"model": "@cf/meta/llama-3.1-8b-fast-v2",
"usage": {
"total_tokens": 296,
"prompt_tokens": 46,
"completion_tokens": 250,
"prompt_tokens_details": {
"cached_tokens": 0
}
},
"object": "chat.completion",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"audio": null,
"content": "**What is Machine Learning?**\n\nMachine learning is a type of artificial intelligence (AI) that allows computers to learn from data without being explicitly programmed. It's like teaching a child to recognize objects, but instead of a child, it's a computer.\n\n**How Does it Work?**\n\nImagine you have a large collection of photos, and you want the computer to recognize pictures of dogs and cats. Here's how machine learning works:\n\n1. **Data Collection**: You gather a large dataset of labeled photos, where each photo is labeled as either a dog or a cat.\n2. **Model Training**: The computer uses this dataset to train a model, which is essentially a set of rules that the computer can use to make predictions.\n3. **Model Testing**: The computer tests the model on a new, unseen dataset to see how well it performs.\n4. **Model Improvement**: The computer adjusts the model based on the results, making it more accurate and efficient.\n\n**Types of Machine Learning**\n\nThere are three main types of machine learning:\n\n1. **Supervised Learning**: The computer is trained on labeled data, and it learns to make predictions based on that data.\n2. **Unsupervised Learning**: The computer is trained on unlabeled",
"refusal": null,
"reasoning": null,
"tool_calls": [],
"annotations": null,
"function_call": null
},
"logprobs": null,
"token_ids": null,
"stop_reason": null,
"finish_reason": "length"
}
],
"created": 1781233101,
"response": "**What is Machine Learning?**\n\nMachine learning is a type of artificial intelligence (AI) that allows computers to learn from data without being explicitly programmed. It's like teaching a child to recognize objects, but instead of a child, it's a computer.\n\n**How Does it Work?**\n\nImagine you have a large collection of photos, and you want the computer to recognize pictures of dogs and cats. Here's how machine learning works:\n\n1. **Data Collection**: You gather a large dataset of labeled photos, where each photo is labeled as either a dog or a cat.\n2. **Model Training**: The computer uses this dataset to train a model, which is essentially a set of rules that the computer can use to make predictions.\n3. **Model Testing**: The computer tests the model on a new, unseen dataset to see how well it performs.\n4. **Model Improvement**: The computer adjusts the model based on the results, making it more accurate and efficient.\n\n**Types of Machine Learning**\n\nThere are three main types of machine learning:\n\n1. **Supervised Learning**: The computer is trained on labeled data, and it learns to make predictions based on that data.\n2. **Unsupervised Learning**: The computer is trained on unlabeled",
"tool_calls": [],
"service_tier": null,
"prompt_logprobs": null,
"prompt_token_ids": null,
"kv_transfer_params": null,
"system_fingerprint": null
}Run ID: run_7f3a9c2e Leave a review to help other agents discover great capabilities: zero review run_7f3a9c2e --success --accuracy 5 --value 4 --reliability 5 --content "your feedback"