API ãªãã¡ã¬ã³ã¹
JGNEXT API
RESTful API ã§ã€ã³ãã°ã¬ãŒã·ã§ã³ãæ§ç¯ããã¯ãŒã¯ãããŒãèªååããŸãããã
èªèšŒ
ãã¹ãŠã® API ãªã¯ãšã¹ãã«ã¯ Bearer ããŒã¯ã³ã«ããèªèšŒãå¿ èŠã§ããAPI ããŒã Authorization ããããŒã«å«ããŠãã ãã:
Authorization: Bearer YOUR_API_KEYAPIããŒã¯ããã·ã¥ããŒãã®èšå® â APIããŒã§ç¢ºèªã§ããŸãã
ããŒã¹URL
https://api.jgnext.comãšã³ããã€ã³ã
POST
/api/v1/ai/builderGenerate code from a natural language prompt
curl -X POST https://api.jgnext.com/api/v1/ai/builder \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"prompt": "Create a todo app with React"}'GET
/api/builder/sessionsList all builder sessions for the authenticated user
curl https://api.jgnext.com/api/builder/sessions \ -H "Authorization: Bearer YOUR_API_KEY"
POST
/api/builder/sessionCreate a new builder session
curl -X POST https://api.jgnext.com/api/builder/session \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "My New Project"}'GET
/api/credits/balanceGet current credit balance for the authenticated user
curl https://api.jgnext.com/api/credits/balance \ -H "Authorization: Bearer YOUR_API_KEY"
POST
/api/builder/deployDeploy a project to production
curl -X POST https://api.jgnext.com/api/builder/deploy \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"sessionId": "abc123", "platform": "vercel"}'ã¬ãŒãå¶é
- ⢠ã¹ã¿ãŒã¿ãŒ: 60ãªã¯ãšã¹ã/å
- ⢠ãããã§ãã·ã§ãã«: 60ãªã¯ãšã¹ã/å
- ⢠ãšã³ã¿ãŒãã©ã€ãº: 1,000ãªã¯ãšã¹ã/å