Forge Master is a production-ready AI-powered 3D model generation platform deployed on Google Cloud Run.
Status: β Fully Deployed and Operational
- Frontend: https://forge-master-frontend-525900378413.europe-west1.run.app
- Agent Service: https://forge-master-agents-7n53rqwksq-ew.a.run.app
- GPU Service: https://forge-master-gpu-7n53rqwksq-ew.a.run.app
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β USER BROWSER β
β forge-master-frontend β
β (Next.js 15 + shadcn/ui + Three.js) β
ββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββββββ
β
β HTTPS/JSON
β
ββββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββββ
β AGENT SERVICE β
β forge-master-agents β
β β
β ββββββββββββββββ ββββββββββββββββ ββββββββββββββββ β
β β Prompt ββ β Generation ββ β Quality ββ β
β β Enhancement β β Coordinator β β Assessment β β
β ββββββββββββββββ ββββββββββββββββ ββββββββββββββββ β
β β β β
β β β β
β ββββββββββΌβββββββββββββββββββββΌβββββββββ β
β β Enhancement Agent (iterative) β β
β βββββββββββββββββββββββββββββββββββββββββ β
ββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββββββ
β
β HTTPS/JSON
β
ββββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββββ
β GPU SERVICE β
β forge-master-gpu β
β (T4 GPU / 32GB RAM) β
β β
β ββββββββββββββββ ββββββββββββββββ ββββββββββββββββ β
β β Imagen 4 β β β InstantMesh β β β Export & β β
β β (TextβImage) β β (Imageβ3D) β β Upload β β
β ββββββββββββββββ ββββββββββββββββ ββββββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β GOOGLE CLOUD STORAGE β
β (3D Models: GLB, OBJ, FBX, STL) β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
- Technology: Next.js 15, shadcn/ui, React Three Fiber
- Features:
- Polished UI with dark mode
- Interactive 3D model viewer
- Real-time progress indicators
- Multi-format download buttons
- Quality score visualization
- Resources: 512Mi RAM, 1 CPU
- Deployment: Cloud Run (Serverless)
- Technology: FastAPI, Gemini AI
- Features:
- 4-agent AI pipeline
- Prompt enhancement
- Quality assessment
- Iterative improvement
- Resources: 2Gi RAM, 2 CPU
- Deployment: Cloud Run (Serverless)
- Technology: FastAPI, Imagen 4 (Imagen 4.0 API), InstantMesh
- Features:
- Text-to-image generation (Imagen 4)
- Multi-view synthesis (InstantMesh Zero123++)
- 3D mesh generation (InstantMesh LRM)
- Format conversion (GLB, OBJ, FBX, STL)
- Mesh post-processing and optimization
- Resources: 32Gi RAM, 4 CPU, 1x NVIDIA L4 GPU
- Deployment: Cloud Run with GPU (europe-west1)
-
User Input
- User enters prompt: "A wooden chair with curved armrests"
- Optionally adjusts inference steps (20-100) and guidance scale (1-10)
- Clicks "Generate 3D Model"
-
Prompt Enhancement Agent
- Analyzes user prompt
- Enhances for 3D generation
- Example output: "A detailed wooden chair with smooth curved armrests, professional studio lighting, white background, 8k quality"
-
Generation Coordinator Agent
- Sends enhanced prompt to GPU service
- GPU generates image via Imagen 4
- GPU creates multi-view renders
- GPU generates 3D mesh via InstantMesh
- GPU exports in multiple formats (GLB, OBJ, FBX, STL)
- GPU uploads to Cloud Storage
-
Quality Assessment Agent
- Downloads generated model
- Analyzes with Gemini Vision
- Scores quality (0-10)
- Determines if production-ready (>8.5)
-
Enhancement Agent (if needed)
- If quality < target, proposes improvements
- Regenerates with improved prompt
- Repeats until quality threshold met or max iterations
-
Frontend Display
- Shows interactive 3D viewer
- Displays quality score with color coding:
- π’ Green: 8.5+ (Production Ready)
- π‘ Yellow: 7-8.5 (Good)
- π΄ Red: <7 (Needs Work)
- Provides download buttons for all formats
- Shows input image and multi-view renders
Note: All services are already deployed and running. Use these instructions only if you need to redeploy or update services.
# Install gcloud CLI (if not already installed)
gcloud auth login
gcloud config set project forge-master-477607Deploy in this order to maintain dependencies:
- GPU Service (first, as other services depend on it)
cd gpu-service
./deploy.sh
# Wait for deployment to complete (~15-20 minutes)- Agent Service (depends on GPU service URL)
cd agent-service
# Update GPU_SERVICE_URL in .env if GPU service URL changed
./deploy.sh
# Wait for deployment to complete (~5-10 minutes)- Frontend (depends on agent service URL)
cd frontend
# Update NEXT_PUBLIC_AGENT_SERVICE_URL in deploy.sh if agent service URL changed
./deploy.sh
# Wait for deployment to complete (~5-10 minutes)GPU Service (gpu-service/.env or environment variables):
PROJECT_ID: GCP project ID (forge-master-477607)REGION: Deployment region (europe-west1)BUCKET_NAME: Cloud Storage bucket for model filesGOOGLE_API_KEY: API key for Imagen 4HUGGINGFACE_TOKEN: HuggingFace token for InstantMesh models
Agent Service (agent-service/.env):
GPU_SERVICE_URL: https://forge-master-gpu-7n53rqwksq-ew.a.run.appGOOGLE_API_KEY: API key for GeminiPROJECT_ID: GCP project ID (forge-master-477607)BUCKET_NAME: Cloud Storage bucket for model files
Frontend (set in deploy.sh or build-time env):
NEXT_PUBLIC_AGENT_SERVICE_URL: https://forge-master-agents-7n53rqwksq-ew.a.run.app
- Frontend: $0 (serverless, pay per request)
- Agent Service: ~$0.01 (2 minutes @ 2 CPU)
- GPU Service: ~$0.50 (2 minutes @ T4 GPU)
- Imagen 4 API: ~$0.04 (1 image)
- Gemini API: ~$0.001 (quality analysis)
- Storage: ~$0.001 (per model stored)
Total per generation: ~$0.56
- Compute: ~$55
- Storage: ~$1
- Total: ~$56/month
- Frontend Load Time: <2s
- Agent Processing: 10-20s
- GPU Generation: 60-120s
- Total Time: 70-140s per model
- Success Rate: >95%
- Quality Score Average: 8.2/10
# Frontend
curl https://forge-master-frontend-525900378413.europe-west1.run.app
# Agent Service
curl https://forge-master-agents-7n53rqwksq-ew.a.run.app/health
# GPU Service
curl https://forge-master-gpu-7n53rqwksq-ew.a.run.app/health# View frontend logs
gcloud run services logs read forge-master-frontend --region europe-west1
# View agent logs
gcloud run services logs read forge-master-agents --region europe-west1
# View GPU logs
gcloud run services logs read forge-master-gpu --region europe-west1- Open https://forge-master-frontend-525900378413.europe-west1.run.app
- Enter prompt: "A futuristic sports car"
- Click "Generate 3D Model"
- Wait 60-120 seconds
- Verify:
- β 3D model displays in viewer
- β Quality score shown
- β Download buttons work
- β Model files downloadable
# Test agent service directly
curl -X POST https://forge-master-agents-7n53rqwksq-ew.a.run.app/generate \
-H "Content-Type: application/json" \
-d '{"prompt": "A simple wooden cube"}'- Issue: First request takes 60+ seconds
- Solution: Increase min-instances in deploy.sh (costs more)
- Issue: Generation fails with OOM
- Solution: Reduce inference steps or increase RAM
- Issue: Models scoring <7
- Solution: Increase max_enhancement_iterations
- All services allow unauthenticated access (public demo)
- API keys stored in environment variables
- Service account with minimal permissions
- CORS enabled for frontend domain
Current configuration supports:
- Concurrent Users: 10-20
- Max Instances: 10 per service
- Rate Limits: Set by Imagen/Gemini APIs
To scale:
- Increase max-instances in deploy scripts
- Request higher API quotas
- Add CDN for static assets
- Cold Start: First request may take 60+ seconds due to model loading
- Rate Limiting: Subject to Imagen and Gemini API quotas
- Concurrency: Limited to 10 concurrent instances per service
- Authentication: Currently public, no user authentication
Potential future enhancements:
- WebSocket support for real-time progress updates
- User accounts and generation history
- Batch processing for multiple models
- Custom model fine-tuning on specific styles
- API key authentication and rate limiting
Forge Master - Built with Google Cloud Run, Imagen 4, InstantMesh, and Gemini AI