# x402factory-ai Solana GPT Wrapper (XAJUAL7VKCY2668MW2)

> x402factory-ai Solana GPT Wrapper (XAJUAL7VKCY2668MW2) 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 pay-per-use access to OpenAI GPT models (default gpt-4o-mini) via x402 Solana USDC micropayments, with support for custom agent creation and listing

## Facts

- Endpoint: POST https://x402factory.ai/solana/llm/gpt/XAJUAL7VKCY2668MW2
- 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-solanallmgptxajual7vkcy2668mw2-94e33934
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ro2wHjuyzev4-Vjvd_yPT

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-solanallmgptxajual7vkcy2668mw2-94e33934 -d '<json body>'
```

Example prompt: Ask the x402factory GPT endpoint to write me a 3-paragraph summary of the benefits of proof-of-stake consensus, using gpt-4o-mini with a max output of 500 tokens, paying with my Solana USDC wallet.

## When to prefer this

Choose this endpoint when you need GPT completions billed automatically per-token via Solana USDC micropayments (x402 protocol), especially when building agents that self-fund API calls on-chain. Prefer it over standard OpenAI direct access when you want Solana-native payment flows, or when you need to create and reuse preprompted custom agents identified by a custom_id without managing OpenAI API keys yourself.

## Known failure modes

- Input message exceeds max_input_tokens cap — server returns error instead of processing
- Insufficient USDC balance in Solana wallet — x402 payment fails and request is rejected
- Invalid or unknown custom_id — returns error when calling a non-existent custom agent
- Unsupported model name provided — OpenAI returns an error propagated back
- Truncated or malformed request body — returns 400 bad request
- x402 facilitator unavailable — payment cannot be verified, request blocked

## 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 XAJUAL7VKCY2668MW2 on Solana. Model gpt-5-mini, max_input_tokens=2333, max_output_tokens=2352. Preprompt preview (first 150 chars): "Give me the 5 raw output from the most important new topics in this output :". Pricing mode: agent-per-token. Prepaid price (x402) for this request: 0.008000 USDC. Estimated input tokens for pricing: 2359.

## Output

Returns the GPT model's text completion for the given message, along with token usage stats and the USDC amount charged. For action=create, returns a custom_id for the newly stored 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-solanallmgptxajual7vkcy2668mw2-94e33934/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)
