# CheapestInference Text Completions

> CheapestInference Text Completions is a paid API for AI agents from api.cheapestinference.com, paid per call via x402, $10/call, status unknown (last checked 2026-09-15).

Generate text completions using 200+ open-source AI models via a flat-rate, OpenAI-compatible completions endpoint

## Facts

- Endpoint: POST https://api.cheapestinference.com/v1/completions
- Price: $10/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cheapestinference-text-completions-ba1fec4a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_D09UtHKacCHfOR8GEzoqr

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 cheapestinference-text-completions-ba1fec4a -d '<json body>'
```

Example prompt: Use CheapestInference to run a text completion with mistralai/Mistral-7B-Instruct — the prompt is: 'Explain the difference between supervised and unsupervised learning in two sentences.' Set max_tokens to 200 and temperature to 0.7.

## When to prefer this

Choose this endpoint when you need access to 200+ open-source models (Mistral, Llama, etc.) through a single OpenAI-compatible interface with flat-rate pricing and no per-token cost surprises, especially when paying via USDC on Base blockchain. Ideal for agents that want predictable costs and broad model selection without managing multiple provider keys.

## Known failure modes

- Payment not received or insufficient — 402 Payment Required
- Invalid or unsupported model identifier — 400 Bad Request or model not found error
- Prompt too long for model context window — 400 or context length exceeded error
- Malformed request body missing required fields like 'prompt' or 'model' — 422 Unprocessable Entity
- Rate limiting or server overload — 429 Too Many Requests or 503 Service Unavailable
- USDC payment on wrong network (not Base) — payment rejected

## How this service works

Access 200+ open-source AI models through a single OpenAI-compatible API. Flat-rate pricing with no per-token charges. Pay with card or USDC on Base.

## Output

Returns an object with a 'choices' array, where each choice contains the generated text completion, finish reason, and index, following the OpenAI completions response format.

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "choices": {
   "type": "array"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cheapestinference-text-completions-ba1fec4a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.cheapestinference.com](https://www.zero.xyz/host/api.cheapestinference.com/llms.txt)
