Fetches a websiteβs favicon and uses OpenAIβs 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
The business website URL to fetch the favicon from (e.g.,
https://stripe.com)
Response
Whether the logo generation succeeded
Base64-encoded PNG image data
Data URL ready to use in <img src="..."> tags
URL of the original favicon that was found
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
The generated image features:
- 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
This endpoint returns the PNG image bytes directly with 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. |