{"service":"Gemini WebAPI Server","version":"1.0.0","endpoints":{"/generate":{"method":"POST","description":"Generate text content","example":"curl -X POST \"https://g.subx.fun/generate\" -H \"Content-Type: application/json\" -H \"Cookie: __Secure-1PSID=xxx; __Secure-1PSIDTS=xxx\" -d '{\"prompt\":\"Hello\",\"model\":\"gemini-2.5-flash\"}'"},"/chat":{"method":"POST","description":"Chat with conversation history","example":"curl -X POST \"https://g.subx.fun/chat\" -H \"Content-Type: application/json\" -H \"Cookie: __Secure-1PSID=xxx; __Secure-1PSIDTS=xxx\" -d '{\"prompt\":\"Hello\",\"model\":\"gemini-2.5-flash\"}'"},"/generate-image":{"method":"POST","description":"Generate images","example":"curl -X POST \"https://g.subx.fun/generate-image\" -H \"Content-Type: application/json\" -H \"Cookie: __Secure-1PSID=xxx; __Secure-1PSIDTS=xxx\" -d '{\"prompt\":\"A cute cat\",\"model\":\"gemini-2.5-flash\"}'"},"/edit-image":{"method":"POST","description":"Edit images with multipart form","example":"curl -X POST \"https://g.subx.fun/edit-image\" -H \"Cookie: __Secure-1PSID=xxx; __Secure-1PSIDTS=xxx\" -F \"prompt=Make colorful\" -F \"image=@image.jpg\""},"/generate-with-files":{"method":"POST","description":"Generate content with file attachments","example":"curl -X POST \"https://g.subx.fun/generate-with-files\" -H \"Cookie: __Secure-1PSID=xxx; __Secure-1PSIDTS=xxx\" -F \"prompt=Analyze\" -F \"files=@file.pdf\""},"/models":{"method":"GET","description":"List available models"},"/health":{"method":"GET","description":"Health check"}},"authentication":"Provide __Secure-1PSID and __Secure-1PSIDTS cookies in Cookie header"}