# x402factory-ai/solanallmgptkr92mhbfnw9z7mst4e

> x402factory-ai/solanallmgptkr92mhbfnw9z7mst4e 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).

A pay-per-use GPT wrapper API on Solana that lets callers send messages, create custom agents, or list agents, all paid via x402 micropayments in USDC.

## Facts

- Endpoint: POST https://x402factory.ai/solana/llm/gpt/KR92MHBFNW9Z7MST4E
- 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-solanallmgptkr92mhbfnw9z7mst4e-905e42a9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_iasat1qoEsgwTyLv3fyQO

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-solanallmgptkr92mhbfnw9z7mst4e-905e42a9 -d '<json body>'
```

Example prompt: Ask the x402 GPT endpoint to answer this question using gpt-5-mini with max 2000 output tokens and a 500 input token cap, paying 0.01 USDC: 'What are the top 3 benefits of proof-of-stake blockchains?'

## When to prefer this

Choose this endpoint when you need a pay-per-use GPT API backed by Solana USDC micropayments via x402, especially if you want to create reusable custom agents with preprompts or need granular token-based pricing. Prefer over generic OpenAI calls when you want on-chain payment provenance or are building Solana-native AI workflows.

## Known failure modes

- Input tokens exceed max_input_tokens cap — server returns an error instead of under-pricing
- Insufficient USDC balance on Solana wallet for the x402 payment — payment fails
- Invalid or unsupported model name — returns an error
- Malformed request body or missing required fields — returns 400 or similar error
- x402 facilitator unavailable — payment cannot be verified
- Rate limiting or OpenAI API errors propagated upstream

## 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 KR92MHBFNW9Z7MST4E on Solana. Model gpt-5-mini, max_input_tokens=5000, max_output_tokens=5000. Preprompt preview (first 150 chars): "You writing a prompt for a image generator to create a thumbnail of a audio news flash that is based on the topics i send you, please always just answ". Pricing mode: agent-per-token. Prepaid price (x402) for this request: 0.017028 USDC. Estimated input tokens for pricing: 5068.

## Output

Returns the GPT model's text response for direct message calls; returns a custom_id and stored configuration when creating an agent; returns a list of up to 100 recent custom agents for the paying wallet when listing. Pricing details and token counts may also be included.

## More

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