# Cohere Command-A via x402 Gateway

> Cohere Command-A via x402 Gateway is a paid API for AI agents from x402-gateway-production.up.railway.app, paid per call via x402, $0.04/call, status unknown (last checked 2026-09-14).

Run Cohere's Command-A flagship model (256k context) for enterprise RAG, named entity extraction, and structured text generation via a pay-per-call x402 API

## Facts

- Endpoint: POST https://x402-gateway-production.up.railway.app/api/llm/command-a
- Price: $0.04/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-gateway-production-up-railway-app-db408b9b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KIt3hdzcEBGmYniu5ifVu

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 x402-gateway-production-up-railway-app-db408b9b -d '<json body>'
```

Example prompt: Use Cohere Command-A to analyze this contract text and extract all named parties, dates, and obligations — system prompt: 'You are a contract analysis assistant that extracts structured legal entities.' User message: 'Extract all parties, effective dates, and key obligations from the following contract: [contract text].'

## When to prefer this

Choose this endpoint when you need a large 256k token context window for processing long documents, enterprise RAG pipelines, or structured generation tasks. Prefer Cohere Command-A over GPT-4o variants when working with large document corpora or when Cohere's enterprise-tuned instruction following is preferred. Use over cheaper models when output quality and long-context fidelity matter.

## Known failure modes

- Insufficient USDC balance or x402 payment failure — payment required error
- Malformed messages array or missing required fields — 400 bad request
- Context window exceeded (>256k tokens) — request too large error
- Model unavailable or upstream Cohere API outage — 503 service unavailable
- Rate limiting if too many concurrent requests — 429 too many requests

## How this service works

Cohere's flagship model — 256k context, strong for enterprise RAG and structured generation

## Output

Returns the model's text completion along with token usage details including prompt tokens, completion tokens, total tokens, and cost breakdown (upstream inference cost split between prompt and completion). The response includes the full generated text from Cohere Command-A (cohere/command-a-03-2025).

## Example request

```json
{
 "system": "You are a helpful assistant that extracts named entities and key concepts from text.",
 "messages": [
  {
   "role": "user",
   "content": "Please analyze the following text and extract key entities: Artificial intelligence is transforming industries worldwide. Companies are investing heavily in machine learning and natural language processing technologies."
  }
 ]
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-gateway-production-up-railway-app-db408b9b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-gateway-production.up.railway.app](https://www.zero.xyz/host/x402-gateway-production.up.railway.app/llms.txt)
