puntorigen/avatar-skills / gpt-image-2
gpt-image-2
VerifiedGenerate and edit images with OpenAI GPT Image 2 (openai/gpt-image-2) on Replicate. Excels at precise instruction-following, in-image text, photorealism, and character consistency across images using reference pictures. Use to generate images with gpt-image-2, edit/compose images from references, build character reference sheets / turnarounds from 1-3 reference pictures, build product reference sheets (4-view) from a product or product photo, or produce multi-panel storyboard sheets from a story. Defaults to high quality (the model's native maximum resolution) and 16:9. Trigger when the user mentions gpt-image-2, gpt image 2, a character sheet, character turnaround, a product sheet / product reference sheet, or a storyboard sheet, or asks to generate/edit images via Replicate.
| File | Kind | Size |
|---|---|---|
| REFERENCE.md | markdown | 6.6 KB |
| SKILL.md | skill md | 12.2 KB |
| prompts/character_sheet_framework.md | markdown | 3.5 KB |
| prompts/product_sheet_framework.md | markdown | 4.6 KB |
| prompts/storyboard_framework.md | markdown | 19.1 KB |
| scripts/_common.py | script | 12.2 KB |
| scripts/character_sheet.py | script | 7.7 KB |
| scripts/generate_image.py | script | 7.7 KB |
| scripts/product_sheet.py | script | 7.8 KB |
| scripts/requirements.txt | manifest | 196 B |
| scripts/setup_key.py | script | 1.6 KB |
scripts/setup_key.py
View on GitHub#!/usr/bin/env python3
"""Store the Replicate API token for the gpt-image-2 skill.
Usage:
python3 setup_key.py YOUR_REPLICATE_API_TOKEN
python3 setup_key.py --show
The token is shared with the other Replicate-based skills. If any sibling
skill (avatar-video-reel, brand-asset-studio, bg-music, sound-effects, ...)
already has a valid token configured, this skill discovers it automatically
and you do not need to run this. Run it only to set or refresh the token.
"""
import json
import sys
from pathlib import Path
CONFIG_FILE = Path(__file__).parent.parent / "config.json"
def load():
if CONFIG_FILE.exists():
try:
return json.loads(CONFIG_FILE.read_text(encoding="utf-8"))
except json.JSONDecodeError:
return {}
return {}
def save(config):
CONFIG_FILE.write_text(json.dumps(config, indent=2) + "\n", encoding="utf-8")
def main():
if len(sys.argv) < 2:
print(__doc__)
sys.exit(1)
if sys.argv[1] == "--show":
config = load()
tok = config.get("replicate_api_token", "")
if tok:
print(f"replicate_api_token: {tok[:6]}...{tok[-3:]} (len {len(tok)})")
else:
print("No token stored in this skill's config (it may be inherited from a sibling skill).")
return
token = sys.argv[1].strip()
if not token.startswith("r8_"):
print("Warning: Replicate tokens usually start with 'r8_'. Proceeding anyway.", file=sys.stderr)
config = load()
config["replicate_api_token"] = token
save(config)
print(f"Replicate API token saved to {CONFIG_FILE}")
if __name__ == "__main__":
main()
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |