# x402factory AI Solana GPT Wrapper (QWVPSHH4WV8Z9BX9GC)

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

Calls OpenAI GPT models via x402 micropayments on Solana, with support for custom agent creation and listing, using per-token USDC pricing.

## Facts

- Endpoint: POST https://x402factory.ai/solana/llm/gpt/QWVPSHH4WV8Z9BX9GC
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402factory-ai-solana-gpt-wrapper-qwvpshh4wv8z9bx9gc-24ce1dd7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_CO2Spuh6qs3qzgTnIrnIL

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-solana-gpt-wrapper-qwvpshh4wv8z9bx9gc-24ce1dd7 -d '<json body>'
```

Example prompt: Ask the Solana GPT wrapper to explain the difference between proof-of-work and proof-of-stake in under 300 words, using gpt-4o-mini with max 500 output tokens, paying via my Solana wallet in USDC.

## When to prefer this

Choose this endpoint when you need to invoke GPT language models and pay per-use in USDC via Solana x402 micropayments, especially when building agents that need reusable preprompts (custom agents) or when you want token-accurate cost control with an optional input token cap. Prefer over Base-chain variants when your payment wallet is on Solana.

## Known failure modes

- Message exceeds max_input_tokens cap — server returns error instead of under-pricing
- Insufficient USDC balance in Solana wallet — x402 payment fails
- Invalid model name — OpenAI rejects the request
- custom_id not found — agent lookup fails
- Action parameter typo — unknown action returns error
- Rate limit or OpenAI API downtime — upstream 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 QWVPSHH4WV8Z9BX9GC on Solana. Model gpt-5-mini, max_input_tokens=5000, max_output_tokens=5000. Preprompt preview (first 150 chars): "You writing a script for a audio newsflas, can you read these topics and create a script for a tts agent, only reply with the text what the voice need". Pricing mode: agent-per-token. Prepaid price (x402) for this request: 0.017024 USDC. Estimated input tokens for pricing: 5058.

## Output

Returns a GPT-generated text response for direct calls, or a custom_id and stored base_price when creating an agent, or a list of up to 100 recent custom agents for the paying wallet. Includes token usage and pricing details.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402factory-ai-solana-gpt-wrapper-qwvpshh4wv8z9bx9gc-24ce1dd7/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)
