"https://searchcompany-main.up.railway.app/api/enhanced-logo?url=https://stripe.com"
{
"success": true,
"image_base64": "iVBORw0KGgoAAAANSUhEUgAA...",
"image_data_url": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA...",
"original_favicon_url": "https://stripe.com/favicon.ico"
}
π΅ POST - Enhanced Logo
Generate Enhanced Logo
Generate an enhanced version of a websiteβs favicon
POST
/
api
/
enhanced-logo
"https://searchcompany-main.up.railway.app/api/enhanced-logo?url=https://stripe.com"
{
"success": true,
"image_base64": "iVBORw0KGgoAAAANSUhEUgAA...",
"image_data_url": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA...",
"original_favicon_url": "https://stripe.com/favicon.ico"
}
Fetches a websiteβs favicon and uses OpenAIβs
This endpoint returns the PNG image bytes directly with
gpt-image-1.5 model to create a stunning version with professional depth, lighting, and materials.
This is a public endpoint - no authentication required.
Query Parameters
string
required
The business website URL to fetch the favicon from (e.g.,
https://stripe.com)Response
boolean
Whether the logo generation succeeded
string
Base64-encoded PNG image data
string
Data URL ready to use in
<img src="..."> tagsstring
URL of the original favicon that was found
string
Error message if generation failed
How It Works
- Fetch Favicon - Tries multiple locations:
/favicon.ico,/favicon.png, HTML<link>tags - Send to gpt-image-1.5 - Generates a 3D rendered version with depth, lighting, and materials
- Return Base64 - Provides the image as base64 and data URL
- Professional depth and dimension
- Metallic or glass-like materials
- Soft ambient lighting with shadows
- Clean, modern aesthetic
- Original colors preserved
"https://searchcompany-main.up.railway.app/api/enhanced-logo?url=https://stripe.com"
{
"success": true,
"image_base64": "iVBORw0KGgoAAAANSUhEUgAA...",
"image_data_url": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA...",
"original_favicon_url": "https://stripe.com/favicon.ico"
}
Direct Image Display
To get the image directly in a browser, use the image endpoint:POST /api/enhanced-logo/image?url=https://stripe.com
Content-Type: image/png.
Rate Limits
- 3 requests per minute per IP address
- This is an expensive operation (uses OpenAI gpt-image-1.5 credits)
Error Cases
| Error | Cause |
|---|---|
Could not find favicon for this website | No favicon found at common locations |
| OpenAI errors | API rate limits, content policy, etc. |