# uxus.finance LLM Completion API

> uxus.finance LLM Completion API is a paid API for AI agents from uxus.finance, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Generates text completions using a 5-model fallback chain, returning the completion text, model used, token usage, and latency in milliseconds.

## Facts

- Endpoint: POST https://uxus.finance/api/llm
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/uxus-finance-llm-completion-api-817c629d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5oxP14NNoSK76n0zzNx0O

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 uxus-finance-llm-completion-api-817c629d -d '<json body>'
```

Example prompt: Complete this prompt using your best available model and tell me which model answered and how many tokens it used: 'Summarize the key benefits of renewable energy in 3 bullet points.'

## When to prefer this

Choose this endpoint when you need reliable LLM text generation with automatic failover across multiple models, and when you want transparency about which model responded along with token usage and latency metrics. Ideal for agentic workflows that require high availability without managing individual model API keys, and for pay-per-call cost tracking at $0.01 USDC per request.

## Known failure modes

- All 5 models in the fallback chain are unavailable — returns an error after exhausting fallbacks
- Prompt exceeds maximum token limit for all available models
- Invalid or malformed request body — returns 400 bad request
- Payment not received or insufficient USDC — returns 402 Payment Required
- Rate limiting or quota exceeded on underlying model providers

## How this service works

LLM chat completions for AI agents — no API key, no account, no signup; pay per call in USDC on Base. POST JSON { prompt } or { messages: [{ role, content }] }; optional model (OpenRouter slug), max_tokens (default 800, max 2000). Routes across a 5-model fallback chain so one unavailable model doesn't fail the call. Returns { model, content, usage, latency_ms }. For agents that need inference without holding an OpenAI or Anthropic key.

## Output

A JSON object containing: the generated completion text, the name of the model that produced it (selected from a 5-model fallback chain), token usage statistics (prompt tokens, completion tokens, total), and latency_ms indicating how long the inference took in milliseconds.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "model": {
   "type": "string",
   "description": "Optional model slug; still falls back through the chain."
  },
  "prompt": {
   "type": "string",
   "description": "User prompt. Provide this or messages[]."
  },
  "messages": {
   "type": "array",
   "description": "Chat messages [{ role, content }]. Alternative to prompt."
  },
  "max_tokens": {
   "type": "number",
   "description": "Max completion tokens. Default 800, max 2000."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "model": "deepseek/deepseek-chat",
  "usage": {
   "total_tokens": 104,
   "prompt_tokens": 24,
   "completion_tokens": 80
  },
  "content": "The answer is ...",
  "latency_ms": 1200
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/uxus-finance-llm-completion-api-817c629d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from uxus.finance](https://www.zero.xyz/host/uxus.finance/llms.txt)
