# x402factory.ai Solana GPT Wrapper (HFNPTD5QQQAMHB6NCF)

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

Provides GPT completions, custom agent creation, and agent listing via x402 USDC micropayments on Solana

## Facts

- Endpoint: POST https://x402factory.ai/solana/llm/gpt/HFNPTD5QQQAMHB6NCF
- 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/x402factory-ai-solanallmgpthfnptd5qqqamhb6ncf-f83c6a0d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PlyrcobAUhnaG-5AseL1U

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-solanallmgpthfnptd5qqqamhb6ncf-f83c6a0d -d '<json body>'
```

Example prompt: Using the Solana x402 GPT endpoint, send the message 'Summarize the key risks of DeFi investing in 3 bullet points' with model gpt-4o, max_output_tokens set to 500, and cap input tokens at 200.

## When to prefer this

Use this endpoint when you need pay-per-use GPT completions billed in USDC via Solana x402 micropayments, especially when building Solana-native AI agents or workflows that require programmable, on-chain payment for each LLM call. Prefer this over standard OpenAI API when you need blockchain-settled billing, want to create reusable custom agents with preprompts, or are operating in a Solana wallet-based environment.

## Known failure modes

- Input message exceeds max_input_tokens cap — server returns error instead of under-pricing
- Insufficient USDC balance for x402 payment — payment rejected before call is made
- Invalid model name specified — returns error from OpenAI or wrapper
- custom_id not found when calling a custom agent — returns not found error
- action parameter value not recognized — returns bad request
- OpenAI API downstream error — propagated as 5xx or error message

## 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=message (or omitting action) performs a direct GPT call with the given message. 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 HFNPTD5QQQAMHB6NCF on Solana. Model gpt-5.1, max_input_tokens=27000, max_output_tokens=12000. Preprompt preview (first 150 chars): "You are a professional content summarization agent.  Your task is to produce a true summary of a spoken-content transcription (such as a podcast, vide". Pricing mode: agent-per-token. Prepaid price (x402) for this request: 0.235294 USDC. Estimated input tokens for pricing: 27647.

## Output

Returns the GPT model's text completion for the given message, or a custom_id when creating an agent, or a list of up to 100 recently created custom agents for the paying wallet. Also includes pricing metadata and token usage details.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402factory-ai-solanallmgpthfnptd5qqqamhb6ncf-f83c6a0d/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)
