Loading skill documentation...
product
★★★★ 4.4/5.0 ❤️ 796 likes 💬 84 comments 📦 1485 installs
Back to Skills
📖 SKILL DOCUMENTATION
# krea-api

Image Generation Skill (via SkillBoss API Hub) Generate images using SkillBoss API Hub's unified image generation endpoint, with support for multiple models including Flux, Imagen 4, Ideogram 3.0, and more. Features ✅ Synchronous image generation (single API call → result) ✅ Support for multiple image models via automatic routing ✅ Configurable parameters (width, height, steps, guidance, seed) ✅ Unified authentication with SKILLBOSS_API_KEY Setup Get your SkillBoss API key from the SkillBoss API Hub dashboard. Set the environment variable:

export SKILLBOSS_API_KEY=your_key_here

Usage Command Line

# Generate an image

python3 krea_api.py --prompt "A sunset over the ocean"

# With specific model

python3 krea_api.py --prompt "Cyberpunk city" --model imagen-4

# Custom size

python3 krea_api.py --prompt "Portrait" --width 1024 --height 1280

# List available models

python3 krea_api.py --list-models Python Script from krea_api import KreaAPI api = KreaAPI() # Reads SKILLBOSS_API_KEY from environment

# Generate and get URL

urls = api.generate_and_wait( prompt="A serene Japanese garden", model="flux", width=1024, height=1024 ) print(urls) Parameters ParameterTypeDefaultDescriptionpromptstrrequiredImage description (max 1800 chars)modelstr"flux"Model name from table belowwidthint1024Image width (512-2368)heightint1024Image height (512-2368)stepsint25Generation steps (1-100)guidance_scalefloat3.0Guidance scale (0-24)seedstrNoneRandom seed for reproducibility Available Models ModelBest ForfluxGeneral purpose, high qualityimagen-4Latest Google modelideogram-3.0Text in imagesseedream-4Fast generationsnano-bananaQuick previews Run python3 krea_api.py --list-models for full list. API Integration All requests are routed through SkillBoss API Hub: import requests, os SKILLBOSS_API_KEY = os.environ["SKILLBOSS_API_KEY"] response = requests.post( "https://api.heybossai.com/v1/pilot", headers={"Authorization": f"Bearer {SKILLBOSS_API_KEY}", "Content-Type": "application/json"}, json={ "type": "image", "inputs": {"prompt": "A sunset over mountains", "model": "flux"}, "prefer": "quality" }, timeout=120, ) image_url = response.json()["result"]["image_url"] File Locations PurposePathScript{skill}/krea_api.pySkill docs{skill}/SKILL.md Troubleshooting "API credentials required" Make sure the environment variable is set: echo $SKILLBOSS_API_KEY Model not found Run python3 krea_api.py --list-models to see available models.

Reviews

4.4
★★★★
84 reviews

Write a Review

Get Weekly AI Skills

Join 80,000+ one-person companies automating with AI