๐ RegiAI API
Integrate powerful AI image processing tools into your applications.
๐ Quick Start
1. Get Your API Token
First, create an API token in your dashboard:
curl -H "Authorization: Bearer regi_your_token_here"
2. Make Your First Request
Process an image with our API:
curl -X POST https://regiai.com/api/v1/process \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"tool": "watermark-remover", "image": "IMAGE_URL"}'
๐ ๏ธ Available Tools
โก AI-Powered Tools
๐ Premium API Access: All tools require payment and are powered by advanced AI models for professional results.
๐ก API Endpoints
Base URL
Get list of available tools and their pricing.
Process an image with the specified tool.
Request Body:
"tool": "watermark-remover",
"image": "https://example.com/image.jpg",
"parameters": {}
}
Example:
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"tool": "resize-image", "image": "IMAGE_URL", "parameters": {"width": 800, "height": 600}}'
Manage your API tokens (requires authentication).
List your tokens
Create new token
Update token
Delete token
๐ Response Format
โ Success Response
"success": true,
"result_url": "https://...",
"processing_time": "2.3s",
"credits_used": 0.10,
"remaining_credits": 9.90
}
โ Error Response
"success": false,
"message": "Insufficient balance",
"required_balance": 0.10,
"current_balance": 0.05
}
โก Rate Limits
Per Minute
60
requests per minute
Per Hour
1,000
requests per hour
File Size
10MB
maximum file size
๐ป Code Examples
JS JavaScript
const response = await fetch('https://regiai.com/api/v1/process', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify({
tool: 'watermark-remover',
image: 'data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQ...' // base64 or URL
})
});
// Face swap (requires two images)
const faceSwapResponse = await fetch('https://regiai.com/api/v1/process', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify({
tool: 'face-swap',
image: 'data:image/jpeg;base64,...', // face to extract
target_image: 'data:image/jpeg;base64,...' // target image
})
});
const result = await response.json();
console.log(result.result_url);
PY Python
response = requests.post('https://regiai.com/api/v1/process',
headers={'Authorization': 'Bearer YOUR_TOKEN'},
json={
'tool': 'background-remover',
'image': 'https://example.com/image.jpg'
}
)
result = response.json()
print(result['result_url'])
PHP PHP
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'Authorization: Bearer YOUR_TOKEN',
'Content-Type: application/json'
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode([
'tool' => 'resize-image',
'image' => 'https://example.com/image.jpg',
'parameters' => ['width' => 800, 'height' => 600]
]));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
$result = json_decode($response, true);
echo $result['result_url'];
๐ Google Nano Banana API
Google Nano Banana
Advanced AI image generation from text prompts and image enhancement
๐ Request Parameters
Must be "nano-banana"
Text description of the image to generate (max 1000 chars)
Base64 encoded image data for enhancement/modification
Image aspect ratio (default: "1:1")
Output image format (default: "jpg")
Image quality 1-100 (default: 80)
Content safety level 1-5 (default: 2)
๐ป Example Usage
Text-to-Image Generation
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"tool": "nano-banana",
"prompt": "A majestic dragon flying over a medieval castle at sunset, digital art style",
"aspect_ratio": "16:9",
"output_format": "png",
"output_quality": 95
}'
Image Enhancement
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"tool": "nano-banana",
"prompt": "Transform this into a vibrant digital artwork with enhanced colors",
"image": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQ...",
"aspect_ratio": "1:1",
"safety_tolerance": 3
}'
Success Response
"success": true,
"result_url": "https://cdn.regiai.com/generated/nano-banana-12345.png",
"processing_time": "8.2s",
"credits_used": 0.10,
"remaining_credits": 9.90,
"generation_id": "gen_abc123",
"model": "Google Nano Banana"
}
๐ฏ Use Cases
Creative Art
Generate unique digital artwork, illustrations, and creative visuals from text descriptions
Photo Enhancement
Enhance existing photos with AI-powered style transfers and artistic effects
Commercial Use
Create marketing visuals, product mockups, and professional graphics for business
๐ฆธ Action Figure Generator API
Action Figure Generator
Generate custom ultra-realistic action figure packaging with AI
๐ Request Parameters
Action figure template identifier
Base64 encoded face image to apply to the action figure
๐ป Example Usage
Generate Action Figure
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"template_id": "superhero_male",
"face_image": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQ..."
}'
Success Response
"success": true,
"output_url": "https://cdn.regiai.com/generated/action-figure-12345.png",
"generation_id": 12345,
"cost": 0.10,
"message": "Action figure generated successfully!"
}
๐ฏ Use Cases
Personalized Gifts
Create custom action figures for birthdays, special occasions, and unique gift ideas
Gaming Avatars
Generate action figure representations of gaming characters and player avatars
Social Media Content
Create fun and engaging social media posts with personalized action figures