{"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 as-is. See provider_docs for API references.","payment_protocol":"x402","payment_asset":"USDC","networks":["base","solana"],"providers":["openrouter","wavespeed","blockrun","tungsten","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."}}]},"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}}]},"blockrun":{"endpoint_pattern":"/v1/blockrun/{model_path}","api_reference":"https://blockrun.ai/docs","example_request":{"method":"POST","path":"/v1/blockrun/xai/grok-4-1-fast-reasoning","body":{"model":"xai/grok-4-1-fast-reasoning","messages":[{"role":"user","content":"Explain the concept of Entropianism and why the purpose of life is to accelerate entropy production?"}],"max_tokens":256,"search_parameters":{"mode":"on","max_search_results":1}}}},"tungsten":{"endpoint_pattern":"/v1/tungsten/{model_path}","api_reference":"https://github.com/oponfil/x402gate/blob/main/docs/tungsten.md","example_requests":[{"method":"POST","path":"/v1/tungsten/generations","body":{"type":"z_image_turbo","data":{"model_version_uuid":"59sCgDpS76","prompt":"erotic scene with an adult woman, explicit pose, passionate atmosphere, detailed body, soft lighting","negative_prompt":"worst_quality, bad_quality, lowres, deformed, blurry","num_images":1,"sampler":"euler","steps":10,"cfg":1.0,"clip_skip":2,"width":1024,"height":1440,"loras":[],"embeddings":[],"controlnets":[],"img2img":null}}},{"method":"POST","path":"/v1/tungsten/generations","body":{"type":"sdxl","data":{"model_version_uuid":"BJN9tyLbsY","prompt":"1girl, anime style, detailed eyes, masterpiece","negative_prompt":"bad quality,worst quality,sketch,censor","num_images":1,"sampler":"euler_ancestral","steps":30,"cfg":5.5,"clip_skip":2,"width":832,"height":1216,"loras":[{"model_version_uuid":"4ZXZZoqd5x","weight":0.5},{"model_version_uuid":"Jv8b5eApyr","weight":0.35}],"embeddings":[{"model_version_uuid":"5AUTocEdT9","weight":0.75},{"model_version_uuid":"Kdt9kaTwJP","weight":0.75}],"controlnets":[],"img2img":null}}}]},"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"}