AI
Pass

AI Logo Generator Agent Skill - AI Pass API

AI Logo Generator Agent Skill - AI Pass API

Add AI-powered logo generation to your agent using the AI Pass API. This skill enables your agent to create professional logos, brand identities, and visual assets.

Skill Overview

This skill allows your agent to:

  • Generate custom logos from brand names and descriptions
  • Create logos in various styles (minimalist, modern, vintage, playful)
  • Generate logos with specific color schemes
  • Create multiple logo variations for comparison
  • Suggest color palettes based on brand personality

Prerequisites

  1. Get your API Key: Visit the AI Pass Developer Dashboard to get your $AIPASS_API_KEY
  2. Credits: Get $1 free credit on signup, then pay as you go

API Authentication

export AIPASS_API_KEY="your_api_key_here"

Installation

Add this skill to your agent's skill registry.

Skill Implementation

import requests
import os

AIPASS_API_KEY = os.getenv("AIPASS_API_KEY")
AIPASS_BASE_URL = "https://aipass.one"

def generate_logo(brand_name, style="modern minimalist", colors="", industry=""):
    """
    Generate a professional logo for a brand.
    
    Args:
        brand_name (str): Name of the brand
        style (str): Logo style (modern minimalist, bold, elegant, playful, vintage, futuristic)
        colors (str): Optional color preferences
        industry (str): Industry context for better relevance
    
    Returns:
        str: URL of the generated logo image
    """
    prompt = f"Create a professional, memorable logo for a brand called '{brand_name}'. Style: {style}."
    if colors:
        prompt += f" Use these colors: {colors}."
    else:
        prompt += " Use a professional, appropriate color palette."
    if industry:
        prompt += f" Industry: {industry}."
    prompt += " The logo should be simple, versatile, and distinctive. Focus on creating a strong visual identity that works at any size. Keep the design clean and impactful."
    
    headers = {
        "Authorization": f"Bearer {AIPASS_API_KEY}",
        "Content-Type": "application/json"
    }
    
    payload = {
        "model": "flux-pro/v1.1",
        "prompt": prompt,
        "n": 1,
        "size": "1024x1024"
    }
    
    response = requests.post(
        f"{AIPASS_BASE_URL}/api/v1/images/generations",
        headers=headers,
        json=payload
    )
    
    if response.status_code == 200:
        data = response.json()
        return data["data"][0]["url"]
    else:
        raise Exception(f"API Error: {response.status_code} - {response.text}")

def generate_logo_variations(brand_name, style, colors, industry, count=4):
    """
    Generate multiple logo variations for comparison.
    
    Args:
        brand_name (str): Brand name
        style (str): Logo style
        colors (str): Color preferences
        industry (str): Industry context
        count (int): Number of variations to generate
    
    Returns:
        list: List of logo URLs with option numbers
    """
    logos = []
    
    for i in range(count):
        prompt = f"Design option {i + 1}: Create a unique, professional logo for '{brand_name}'. Style: {style}. {industry} industry. {colors} colors. Make this design distinctive from other options. Create a strong visual identity."
        
        headers = {
            "Authorization": f"Bearer {AIPASS_API_KEY}",
            "Content-Type": "application/json"
        }
        
        payload = {
            "model": "flux-pro/v1.1",
            "prompt": prompt,
            "n": 1,
            "size": "1024x1024"
        }
        
        response = requests.post(
            f"{AIPASS_BASE_URL}/api/v1/images/generations",
            headers=headers,
            json=payload
        )
        
        if response.status_code == 200:
            data = response.json()
            logos.append({
                "option": i + 1,
                "url": data["data"][0]["url"]
            })
        else:
            raise Exception(f"API Error: {response.status_code} - {response.text}")
    
    return logos

def suggest_color_palette(brand_name, brand_personality="", industry=""):
    """
    Suggest a professional color palette for a brand.
    
    Args:
        brand_name (str): Brand name
        brand_personality (str): Brand personality traits
        industry (str): Industry context
    
    Returns:
        str: Color palette suggestions with hex codes
    """
    prompt = f"Suggest a professional color palette (3 complementary colors in hex format) for a brand called '{brand_name}'."
    if brand_personality:
        prompt += f" Brand personality: {brand_personality}."
    if industry:
        prompt += f" Industry: {industry}."
    prompt += " Explain why these colors work well for this brand. Format each as: Color Name: #HEX - reason."
    
    headers = {
        "Authorization": f"Bearer {AIPASS_API_KEY}",
        "Content-Type": "application/json"
    }
    
    payload = {
        "model": "openai/gpt-4.1-mini",
        "messages": [
            {
                "role": "system",
                "content": "You are a professional brand designer and color theorist."
            },
            {
                "role": "user",
                "content": prompt
            }
        ],
        "temperature": 0.8,
        "max_tokens": 8000
    }
    
    response = requests.post(
        f"{AIPASS_BASE_URL}/api/v1/chat/completions",
        headers=headers,
        json=payload
    )
    
    if response.status_code == 200:
        data = response.json()
        return data["choices"][0]["message"]["content"]
    else:
        raise Exception(f"API Error: {response.status_code} - {response.text}")

def generate_brand_identity(brand_name, industry, brand_personality, tagline=""):
    """
    Generate a complete brand identity package.
    
    Args:
        brand_name (str): Brand name
        industry (str): Industry
        brand_personality (str): Brand personality
        tagline (str): Optional tagline to incorporate
    
    Returns:
        dict: Complete brand identity with logo, colors, and guidelines
    """
    # Generate logo
    logo_url = generate_logo(
        brand_name=brand_name,
        style="modern minimalist",
        industry=industry
    )
    
    # Get color palette
    palette = suggest_color_palette(
        brand_name=brand_name,
        brand_personality=brand_personality,
        industry=industry
    )
    
    # Generate brand guidelines
    prompt = f"Create a brief brand identity document for '{brand_name}'. Industry: {industry}. Brand personality: {brand_personality}. {tagline} Tagline: '{tagline}'. Include: brand voice, target audience, key values, and 3 brand adjectives."
    
    headers = {
        "Authorization": f"Bearer {AIPASS_API_KEY}",
        "Content-Type": "application/json"
    }
    
    payload = {
        "model": "openai/gpt-4.1-mini",
        "messages": [
            {
                "role": "system",
                "content": "You are a professional brand strategist."
            },
            {
                "role": "user",
                "content": prompt
            }
        ],
        "temperature": 0.7,
        "max_tokens": 8000
    }
    
    response = requests.post(
        f"{AIPASS_BASE_URL}/api/v1/chat/completions",
        headers=headers,
        json=payload
    )
    
    guidelines = ""
    if response.status_code == 200:
        data = response.json()
        guidelines = data["choices"][0]["message"]["content"]
    
    return {
        "brand_name": brand_name,
        "logo_url": logo_url,
        "color_palette": palette,
        "brand_guidelines": guidelines
    }

Skill Configuration

skills:
  logo_generator:
    name: "AI Logo Generator"
    description: "Generate professional logos and brand identities"
    version: "1.0.0"
    api_key_env: "AIPASS_API_KEY"
    functions:
      - generate_logo
      - generate_logo_variations
      - suggest_color_palette
      - generate_brand_identity

Usage Examples

Generate a Single Logo

# Generate a logo
logo = generate_logo(
    brand_name="TechFlow",
    style="modern minimalist",
    colors="blue and white",
    industry="technology"
)
print(f"Logo generated: {logo}")

Generate Multiple Options

# Generate 4 logo variations
variations = generate_logo_variations(
    brand_name="GreenLeaf",
    style="elegant natural",
    colors="green, white, earth tones",
    industry="healthcare",
    count=4
)
for logo in variations:
    print(f"Option {logo['option']}: {logo['url']}")

Complete Brand Identity

# Generate full brand package
brand = generate_brand_identity(
    brand_name="UrbanSparks",
    industry="fashion",
    brand_personality="bold, trendy, youthful",
    tagline="Ignite Your Style"
)
print(f"Brand: {brand['brand_name']}")
print(f"Logo: {brand['logo_url']}")
print(f"Colors: {brand['color_palette']}")
print(f"Guidelines: {brand['brand_guidelines']}")

Error Handling

try:
    logo = generate_logo("MyBrand", "modern")
    print(f"Success: {logo}")
except Exception as e:
    print(f"Logo generation failed: {e}")
    # Implement fallback or retry logic

Best Practices

  1. Be Specific: Provide clear style and industry context for better results
  2. Test Variations: Generate multiple options to find the best fit
  3. Consider Scalability: Ensure logos work at any size (favicon to billboard)
  4. Keep It Simple: Logos should be memorable and easy to recognize
  5. Color Psychology: Use colors that align with brand personality

API Reference

Image Generation: POST /api/v1/images/generations

{
  "model": "flux-pro/v1.1",
  "prompt": "logo prompt",
  "n": 1,
  "size": "1024x1024"
}

Text Generation: POST /api/v1/chat/completions

{
  "model": "openai/gpt-4.1-mini",
  "messages": [...],
  "temperature": 0.8,
  "max_tokens": 8000
}

Get Your API Key

Visit the AI Pass Developer Dashboard to get your API key.

Live Demo

Try the AI Logo Generator to see it in action.