RefGen API
Enterprise-grade API for integrating generative AI capabilities directly into your platform
API Methods
POST /generateGenerate images from text prompts using Gemini 3 Pro & Flux 2 PRO
POST /upscaleUpscale generated images (2x-8x) using Clarity & Crystal Upscalers
GET /statusCheck generation task status and retrieve results
Features
- RESTful API with JSON payloads
- Webhook support for async processing
- Batch processing up to 100 images
- Custom model fine-tuning (Enterprise)
- 99.9% uptime SLA
- Rate limiting: 1000 req/min (Standard)
Example Request
curl -X POST https://api.refgen.ai/v1/generate \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "a spherical portable speaker with fabric texture",
"model": "refgen-ai-main",
"upscale": true,
"upscale_factor": 4
}'Example Response
{
"success": true,
"task_id": "gen_abc123xyz",
"status": "completed",
"image_url": "https://cdn.refgen.ai/...",
"model_used": "refgen-ai-main",
"upscaled": true,
"created_at": "2026-02-03T10:30:00Z"
}Alpha Status
RefGen API is currently in closed alpha phase. Early access is available for enterprise partners.