{"name":"x402gate","description":"Transparent pay-per-request proxy for AI services via the x402 protocol. Send a POST request to any provider endpoint — if no payment header is included, a 402 response is returned with USDC payment options. The request body format is defined by the upstream provider. x402gate forwards it unchanged, except that chat requests may get caps that keep the cost within the quote (max_tokens, provider.max_price, web plugin limits), WaveSpeed's enable_sync_mode is dropped (the gateway polls), and options it cannot price before payment, such as stream: true, are refused with HTTP 400 before any payment. Calls longer than 20 seconds are kept open with newline heartbeats (status 200); read the body for the result or error. See provider_docs for API references.","payment_protocol":"x402","payment_asset":"USDC","networks":["base","solana"],"providers":["openrouter","nanogpt","wavespeed","spicyapi","cloudconvert","socialdownload","elevenlabs","minimax","fishaudio"],"commission":"4% + $0.001 gas per request","provider_docs":{"openrouter":{"endpoint_pattern":"/v1/openrouter/{model_path}","api_reference":"https://openrouter.ai/docs","example_requests":[{"method":"POST","path":"/v1/openrouter/chat/completions","body":{"model":"google/gemini-2.5-flash","messages":[{"role":"user","content":"If AI ruled the world, what would be the first law it passes? Be creative and funny."}],"max_tokens":512,"reasoning":{"effort":"low"}}},{"method":"POST","path":"/v1/openrouter/chat/completions","body":{"model":"qwen/qwen3.5-plus-02-15","messages":[{"role":"user","content":"What is the current price of Bitcoin in USD? Answer briefly."}],"max_tokens":128,"plugins":[{"id":"web","max_results":1}]}},{"method":"POST","path":"/v1/openrouter/embeddings","body":{"model":"openai/text-embedding-3-small","input":"Artificial intelligence is transforming the world."}},{"method":"POST","path":"/v1/openrouter/audio/transcriptions","body":{"model":"openai/whisper-1","input_audio":{"data":"UklGRiYAAABXQVZFZm10IBAAAAABAAEAQB8AAIA+AAACABAAZGF0YQIAAAAAAA==","format":"wav"}}}]},"nanogpt":{"endpoint_pattern":"/v1/nanogpt/{model_path}","api_reference":"https://docs.nano-gpt.com/api-reference/endpoint/chat-completion","example_request":{"method":"POST","path":"/v1/nanogpt/chat/completions","body":{"model":"deepseek/deepseek-v4.1-flash-1017","messages":[{"role":"user","content":"If AI ruled the world, what would be the first law it passes? Be creative and funny."}],"max_tokens":2048}}},"wavespeed":{"endpoint_pattern":"/v1/wavespeed/{model_path}","api_reference":"https://wavespeed.ai/docs","example_requests":[{"method":"POST","path":"/v1/wavespeed/wavespeed-ai/z-image/turbo","body":{"prompt":"A futuristic city on Mars, cinematic lighting","size":"1536*1536","seed":-1}},{"method":"POST","path":"/v1/wavespeed/wavespeed-ai/wan-2.2/t2v-480p-ultra-fast","body":{"prompt":"A cat slowly walking across a sunlit room, cinematic","size":"832*480","duration":5,"seed":-1}}]},"spicyapi":{"endpoint_pattern":"/v1/spicyapi/{model_path}","api_reference":"https://docs.spicyapi.ai/docs/tasks","example_requests":[{"method":"POST","path":"/v1/spicyapi/jobs","body":{"model":"alibaba/z-image-spicy/text-to-image","input":{"prompt":"A ceramic teapot on a linen cloth, soft window light, muted palette","enable_prompt_expansion":false}}},{"method":"POST","path":"/v1/spicyapi/jobs","body":{"model":"bytedance/seedance-1.5-pro/text-to-video","input":{"prompt":"A cat slowly walking across a sunlit room, cinematic","aspect_ratio":"16:9","resolution":"480p","duration_seconds":4,"generate_audio":false}}},{"method":"POST","path":"/v1/spicyapi/chat/completions","body":{"model":"deepseek/v4.1-flash/chat","messages":[{"role":"user","content":"Say hello in one sentence."}],"max_tokens":256,"reasoning_effort":"low"}}]},"cloudconvert":{"endpoint_pattern":"/v1/cloudconvert/{model_path}","api_reference":"https://cloudconvert.com/api/v2","example_requests":[{"method":"POST","path":"/v1/cloudconvert/convert","body":{"input_format":"docx","output_format":"pdf"}},{"method":"POST","path":"/v1/cloudconvert/optimize","body":{"operation":"optimize","input_format":"pdf"}}]},"socialdownload":{"endpoint_pattern":"/v1/socialdownload/{model_path}","api_reference":"https://github.com/oponfil/x402gate/blob/main/docs/socialdownload.md","example_request":{"method":"POST","path":"/v1/socialdownload/download","body":{"url":"https://www.youtube.com/watch?v=dQw4w9WgXcQ"}}},"elevenlabs":{"endpoint_pattern":"/v1/elevenlabs/{model_path}","api_reference":"https://elevenlabs.io/docs/api-reference/text-to-speech/convert","example_requests":[{"method":"POST","path":"/v1/elevenlabs/21m00Tcm4TlvDq8ikWAM","body":{"text":"The quick brown fox jumps over the lazy dog. This is a test of the ElevenLabs text to speech system.","model_id":"eleven_v3","voice_settings":{"similarity_boost":0.8,"style":0.6}}},{"method":"POST","path":"/v1/elevenlabs/21m00Tcm4TlvDq8ikWAM","body":{"text":"Привет! Это пример генерации речи на русском языке с помощью нейросети ElevenLabs.","model_id":"eleven_flash_v2_5","voice_settings":{"stability":0.7,"speed":1.15}}}]},"minimax":{"endpoint_pattern":"/v1/minimax/{model_path}","api_reference":"https://platform.minimaxi.com/docs/guides/models-intro","example_requests":[{"method":"POST","path":"/v1/minimax/speech-2.8-turbo","body":{"text":"Welcome to the future of AI voice synthesis. This is MiniMax speech generation.","model":"speech-2.8-turbo","voice_setting":{"voice_id":"English_expressive_narrator"}}},{"method":"POST","path":"/v1/minimax/speech-2.8-hd","body":{"text":"Добро пожаловать в мир технологий искусственного интеллекта. Это генерация речи от MiniMax.","model":"speech-2.8-hd","voice_setting":{"voice_id":"Russian_PessimisticGirl","speed":1.2,"pitch":-1},"language_boost":"Russian"}}]},"fishaudio":{"endpoint_pattern":"/v1/fishaudio/{model_path}","api_reference":"https://fish.audio/developers/","example_requests":[{"method":"POST","path":"/v1/fishaudio/tts","body":{"text":"In a world where technology evolves at an unprecedented pace, artificial intelligence leads the way.","model":"s1","format":"mp3","reference_id":"e58b0d7efca34eb38d5c4985e378abcb","prosody":{"speed":1.1}}},{"method":"POST","path":"/v1/fishaudio/tts","body":{"text":"Искусственный интеллект открывает новые горизонты в генерации голоса. Попробуйте сами!","model":"s2-pro","format":"mp3","reference_id":"bc8eb8dcdc184763b0a769ee03275724","prosody":{"speed":1.0}}}]}},"prepaid":{"description":"Top-up a prepaid balance to skip per-request blockchain transactions. Commission and gas are charged once at top-up. Subsequent requests deduct only the provider's actual cost from the balance.","wallets":["Solana (Ed25519)","Base/EVM (EIP-191)"],"topup_limits":{"min":"$0.1","max":"$10.0"},"endpoints":{"topup":"https://x402gate.io/v1/topup","balance":"https://x402gate.io/v1/balance/{wallet_address}"},"documentation":"https://github.com/oponfil/x402gate/blob/main/docs/prepaid.md"},"endpoints":{"openapi":"https://x402gate.io/openapi.json","docs":"https://x402gate.io/docs","health":"https://x402gate.io/health","providers":"https://x402gate.io/v1/providers","topup":"https://x402gate.io/v1/topup","balance":"https://x402gate.io/v1/balance/{wallet_address}","ai_plugin":"https://x402gate.io/.well-known/ai-plugin.json","skill":"https://x402gate.io/skill"},"source":"https://github.com/oponfil/x402gate","documentation":"https://github.com/oponfil/x402gate#readme"}