# x402engine — Cohere Command-A LLM via HTTP 402 Micropayment

> x402engine — Cohere Command-A LLM via HTTP 402 Micropayment is a paid API for AI agents from x402engine.app, paid per call via x402, $0.018586/call, status unknown (last checked 2026-10-12).

Runs a chat completion request through Cohere's Command-A model, paid per-call via USDC micropayment on Base, MegaETH, or Solana.

## Facts

- Endpoint: POST https://x402engine.app/api/llm/command-a?utm_source=zero.xyz
- Price: $0.018586/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402engine-cohere-command-a-llm-via-http-402-micropayment-03256271
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_N7tFxqTLQ7cTykVuxp9SQ

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 x402engine-cohere-command-a-llm-via-http-402-micropayment-03256271 -d '<json body>'
```

Example prompt: Using the Command-A model, send this conversation: system prompt 'You are a concise business analyst' and user message 'Summarize the key risks of entering the EV market in 2025 in 3 bullet points', with max 512 tokens and temperature 0.3.

## When to prefer this

Choose this endpoint when you need Cohere's Command-A specifically — known for strong enterprise document grounding, tool use, and RAG-style tasks — and want to avoid committing to a Cohere subscription or API key. Ideal for agents that need pay-per-call billing in USDC with no monthly overhead. Prefer over generic OpenAI-compatible endpoints when Command-A's enterprise reasoning or multilingual strengths are a better fit than GPT or Claude alternatives also available on x402engine.

## Known failure modes

- Payment not settled — 402 response if USDC/USDm balance is insufficient
- Invalid messages array — 400 if messages is empty or missing required role field
- Exceeded max_tokens budget — response truncated or error if token limit is invalid
- Unsupported parameter for Command-A — top_k, seed, or stop may be ignored or rejected if not supported per /docs/llm-capabilities.md
- Model unavailable — 503 if Command-A inference endpoint is down
- Stream timeout — SSE connection dropped if network or server latency is too high

## How this service works

125 production APIs behind HTTP 402 micropayments. 87 LLMs, Kling V3 and Hailuo video generation, image generation, code execution, travel search, web scraping, TTS, and transaction simulation. Pay with USDC on Base, USDm on MegaETH, or USDC on Solana.

## Output

Returns an OpenAI-compatible JSON object containing the model name ('cohere/command-a'), a choices array with the assistant message (role, content, finish_reason), and a top-level content string. If streaming is enabled, returns SSE chunks in OpenAI-compatible format.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "bodyType",
    "body",
    "method"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "messages"
     ],
     "properties": {
      "seed": {
       "type": "integer",
       "description": "Model-supported seed; see /docs/llm-capabilities.md."
      },
      "stop": {
       "oneOf": [
        {
         "type": "string"
        },
        {
         "type": "array",
         "items": {
          "type": "string"
         },
         "maxItems": 4
        }
       ],
       "description": "Model-supported stop; see /docs/llm-capabilities.md."
      },
      "top_k": {
       "type": "integer",
       "description": "Model-supported top_k; see /docs/llm-capabilities.md."
      },
      "top_p": {
       "type": "number",
       "description": "Model-supported top_p; see /docs/llm-capabilities.md."
      },
      "stream": {
       "type": "boolean",
       "description": "Return live OpenAI-compatible SSE after payment settlement."
      },
      "messages": {
       "type": "array",
       "items": {
        "type": "object",
        "anyOf": [
         {
          "required": [
           "content"
          ]
         },
         {
          "required": [
           "tool_calls"
          ]
         }
        ],
        "required": [
         "role"
        ],
        "properties": {
         "name": {
          "type": "string"
         },
         "role": {
          "enum": [
           "system",
           "developer",
           "user",
           "assistant",
           "tool"
          ],
          "type": "string"
         },
         "content": {
          "oneOf": [
           {
            "type": "string"
           },
           {
            "type": "null"
           },
           {
            "type": "array",
            "items": {
             "type": "object",
             "required": [
              "type"
             ],
             "properties": {
              "type": {
               "enum": [
                "text"
               ],
               "type": "string"
              }
             },
             "additionalProperties": true
            },
            "maxItems": 100,
            "minItems": 1
           }
          ]
         },
         "refusal": {
          "type": [
           "string
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "model": "cohere/command-a",
  "choices": [
   {
    "index": 0,
    "message": {
     "role": "assistant",
     "content": "Hello!"
    },
    "finish_reason": "stop"
   }
  ],
  "content": "Hello!"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402engine-cohere-command-a-llm-via-http-402-micropayment-03256271/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402engine.app](https://www.zero.xyz/host/x402engine.app/llms.txt)
