# x402factory-ai Solana GPT Wrapper (CUCLAFCG5QLBSYBLCD)

> x402factory-ai Solana GPT Wrapper (CUCLAFCG5QLBSYBLCD) is a paid API for AI agents from x402factory.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-13).

Proxies GPT model calls (default gpt-4o-mini) via x402 micropayments on Solana, with dynamic per-token pricing, custom agent creation, and agent listing

## Facts

- Endpoint: POST https://x402factory.ai/solana/llm/gpt/CUCLAFCG5QLBSYBLCD
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402factory-ai-solanallmgptcuclafcg5qlbsyblcd-50f61c4e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NC-GiJNeGDpXsdwtMk2mu

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 x402factory-ai-solanallmgptcuclafcg5qlbsyblcd-50f61c4e -d '<json body>'
```

Example prompt: Using the x402factory Solana GPT endpoint, send the message 'Explain the Solana consensus mechanism in simple terms' to gpt-4o-mini with a max of 500 output tokens and cap input tokens at 200 for pricing purposes.

## When to prefer this

Choose this endpoint when you need to call OpenAI GPT models and want to pay per-use via Solana USDC micropayments using the x402 protocol, especially when building agents that need cost-controlled inference with token caps. Also use it to create and reuse preprompted custom agents identified by a custom_id without recurring setup costs.

## Known failure modes

- Input message exceeds max_input_tokens cap — server returns an error instead of under-pricing
- Insufficient USDC balance in Solana wallet for x402 payment — payment rejected
- Invalid or unknown custom_id — agent not found error
- Unsupported model name — model not available error
- Message too long for selected model context window — token limit error
- x402 facilitator unavailable — payment processing failure

## How this service works

Solana GPT wrapper API using x402 payments. Default direct call: model gpt-5-mini, max_output_tokens=2000, fixed price 0.01 USDC for up to 1000 input tokens. For all other settings the price is computed per model as (input_tokens * input_price_per_million + max_output_tokens * output_price_per_million) / 1,000,000, with a minimum of 0.001 USDC and always rounded up to 6 decimals. Optional max_input_tokens lets you cap the input tokens used for pricing; if the message is longer than this cap the server returns an error instead of under-pricing. Optional action=create creates a custom agent with the given message as preprompt for 0.001 USDC (no OpenAI call), stores a base_price_usdc using (max_input_tokens_for_agent or 1000) + preprompt + max_output_tokens, and returns a custom_id. Optional action=list lists up to 100 recent custom agents for the paying wallet for 0.001 USDC without calling OpenAI. Custom agents can be called via POST /solana/llm/gpt with custom_id, or POST /solana/llm/gpt/{custom_id}. Each custom agent has a fixed price per call based on its stored preprompt, model, max_output_tokens and max_input_tokens; if the runtime message is longer than max_input_tokens the server returns an error. Custom LLM agent CUCLAFCG5QLBSYBLCD on Solana. Model gpt-5-mini, max_input_tokens=5000, max_output_tokens=2000. Preprompt preview (first 150 chars): "Reply to me with the image url from the most important news topic, only reply with the url nothing else:". Pricing mode: agent-per-token. Prepaid price (x402) for this request: 0.008014 USDC. Estimated input tokens for pricing: 5035.

## Output

Returns the LLM-generated text response along with token usage details and the USDC amount charged; for action=create returns a custom_id for the new preprompted agent; for action=list returns up to 100 recent custom agents associated with the paying Solana wallet

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402factory-ai-solanallmgptcuclafcg5qlbsyblcd-50f61c4e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402factory.ai](https://www.zero.xyz/host/x402factory.ai/llms.txt)
