# x402factory Solana GPT Wrapper (YXPJPFB26CSY6VTN3N)

> x402factory Solana GPT Wrapper (YXPJPFB26CSY6VTN3N) 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).

Accepts a user message and returns a GPT response via an x402 micropayment-gated API on Solana, with optional custom agent creation and listing.

## Facts

- Endpoint: POST https://x402factory.ai/solana/llm/gpt/YXPJPFB26CSY6VTN3N
- 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-solanallmgptyxpjpfb26csy6vtn3n-1fb25ad4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VyXNNsjAHcULBAkpO9mxy

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-solanallmgptyxpjpfb26csy6vtn3n-1fb25ad4 -d '<json body>'
```

Example prompt: Send the message 'Summarize the history of the Roman Empire in 3 paragraphs' to the GPT model gpt-4o with max 500 output tokens, paying with my Solana USDC wallet via x402.

## When to prefer this

Choose this endpoint when you need to call a GPT model and pay per-use with USDC on Solana via the x402 protocol, especially when building Solana-native AI agents or pay-per-call AI workflows. Also use it to create reusable preprompted custom agents stored on the platform.

## Known failure modes

- Message exceeds max_input_tokens cap — server returns an error instead of under-pricing
- Insufficient USDC balance for the x402 payment — payment rejected
- Invalid model name specified — API returns an error
- action parameter unrecognized — returns error
- Network or Solana RPC failure causing payment timeout

## 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 YXPJPFB26CSY6VTN3N on Solana. Model gpt-5.1, max_input_tokens=1000, max_output_tokens=2000. Preprompt preview (first 150 chars): "You are a professional voice-over scriptwriter for short audio newsflashes.  Task: Read the provided list of crypto-related topics and generate a conc". Pricing mode: agent-per-token. Prepaid price (x402) for this request: 0.032632 USDC. Estimated input tokens for pricing: 1316.

## Output

Returns a GPT-generated text response to the provided message, along with token usage details and the USDC amount charged. If action=create, returns a custom_id for the newly created agent. If action=list, returns up to 100 recent custom agents associated with the paying wallet.

## More

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