Skip to main content
POST
https://searchcompany-main.up.railway.app
/
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 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

url
string
required
The business website URL to fetch the favicon from (e.g., https://stripe.com)

Response

success
boolean
Whether the logo generation succeeded
image_base64
string
Base64-encoded PNG image data
image_data_url
string
Data URL ready to use in <img src="..."> tags
original_favicon_url
string
URL of the original favicon that was found
error
string
Error message if generation failed

How It Works

  1. Fetch Favicon - Tries multiple locations: /favicon.ico, /favicon.png, HTML <link> tags
  2. Send to gpt-image-1.5 - Generates a 3D rendered version with depth, lighting, and materials
  3. 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

ErrorCause
Could not find favicon for this websiteNo favicon found at common locations
OpenAI errorsAPI rate limits, content policy, etc.