본문으로 건너뛰기
Skillpedia
이미지 및 아이콘51k · #3465

generate-image

하는 일

이 도구는 AI를 사용해 텍스트 설명에 따라 이미지를 만들거나 수정합니다. 사진, 일러스트, 로고 등을 요청할 수 있습니다.

사용하는 경우

  • ✓발표 자료에 쓸 이미지를 만들 때.
  • ✓새 프로젝트의 로고를 디자인할 때.
  • ✓기존 사진을 편집하고 싶을 때, 예를 들어 색상을 바꿀 때.

스킬 링크

https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/generate-image/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/generate-image/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“우주에 떠 있는 고양이 우주비행사와 뒤에 지구가 보이는 이미지를 만들어 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

원하는 이미지를 설명하면 AI가 이미지를 만듭니다. 기존 이미지가 있다면 하늘을 보라색으로 바꾸는 등 편집을 요청할 수 있습니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Generate Image

Generate and edit images through OpenRouter's Image API, which reaches Gemini, Seedream, Recraft, GPT-Image, Riverflow, and other models behind one request shape.

When to use

Use this skill for: photos and photorealistic images, illustrations and artwork, concept art, presentation and poster visuals, logos and vector marks, image editing, and compositing from reference images.

Use scientific-schematics instead for: flowcharts, circuit diagrams, biological pathways, system architecture diagrams, CONSORT diagrams, and other technical schematics.

API key

Generation requires an OpenRouter key. The script resolves it in this order:

  1. --api-key
  2. the OPENROUTER_API_KEY environment variable
  3. OPENROUTER_API_KEY= in a .env file, searching the working directory upward, then the script's own directory

If none is present the script exits with setup instructions. Keys: https://openrouter.ai/keys

--list-models, --model-info, and --dry-run need no key.

Quick start

# Generate
python scripts/generate_image.py "A beautiful sunset over mountains"

# Edit an existing image
python scripts/generate_image.py "Make the sky purple" -i photo.jpg -o edited.png

Run these commands from the skill directory; input and output paths resolve from the working directory. Output defaults to generated_image.<ext>, using each image's returned media type (or .bin when unknown). An explicit output suffix is kept, with a warning on mismatch; the script does not transcode. OpenRouter and upstream costs are printed separately when supplied.

Then look at the image. Read the file back and check it before using it anywhere: composition, aspect ratio, and any text are all things models get wrong silently.

Choosing a model

Default: google/gemini-3.1-flash-image.

Need Model
General quality, prompt adherence google/gemini-3.1-flash-image
Highest Gemini tier google/gemini-3-pro-image
Cheap iteration google/gemini-3.1-flash-lite-image (1K only), openai/gpt-image-1-mini
Photoreal control, seeded generation bytedance-seed/seedream-4.5
Several images per request bytedance-seed/seedream-4.5, openai/gpt-image-2 (up to 10)
Vector / SVG output recraft/recraft-v4.1-vector
Transparent background openai/gpt-image-1 with --background transparent
Legible text inside the image recraft/recraft-v4.1, sourceful/riverflow-v2.5-pro — see the caveat below

references/models.md carries the reviewed capability and pricing snapshot. The live listing is authoritative and free:

python scripts/generate_image.py --list-models            # every model and its allowed values
python scripts/generate_image.py --list-models gemini     # filtered by substring
python scripts/generate_image.py --model-info openai/gpt-image-1   # one model, plus pricing

Parameter support varies by model

This is the main thing to get right. Models advertise different parameter sets and different allowed values. The CLI conservatively rejects unadvertised options; individual providers may ignore or normalize some fields. The generic guide can lag the discovery records.

The script checks the model catalogue and requires at least one provider endpoint to accept the complete combination before generation. Model capabilities are a union across endpoints, not a promise that every provider supports them. Unsupported requests fail locally with legal values:

$ python scripts/generate_image.py "abstract pattern" -m openai/gpt-image-2 --background transparent
Error: Request rejected before billing (1 problem):
  - background=transparent is not allowed; this model accepts: auto, opaque

Current examples of capability differences (reviewed 2026-09-30):

  • --resolution: Gemini 3.1 Flash accepts 512, 1K, 2K, 4K; Flash Lite and Krea accept only 1K. Seedream 5.0 Lite accepts 2K/4K, while 5.0 Pro accepts 1K/2K.
  • --output-format: Riverflow 2.5 Pro accepts png/jpeg/webp; its Fast variant accepts only jpeg. Recraft vector models accept svg. OpenAI models do not advertise this flag.
  • --quality: GPT Image 2.5 Flare/Sunburst also accept xhigh/max; Grok 2.0 accepts only low/medium. Inspect the specific model before selecting a quality value.
  • --background transparent is not available on gpt-image-2 or gpt-5.4-image-2.

…

자주 묻는 질문

어떤 종류의 이미지든 만들 수 있나요?

사진, 일러스트, 컨셉 아트, 로고를 만들고 기존 이미지를 편집할 수 있습니다. 순서도 같은 기술 도표에는 다른 도구를 사용하는 것이 좋습니다.

이 도구를 쓰려면 API 키가 필요한가요?

네, OpenRouter API 키가 필요합니다. 발급 방법은 문서에 나와 있습니다.

어떤 AI 모델을 써야 할지 어떻게 알 수 있나요?

여러 모델이 있으며 각각 장점이 다릅니다. 어떤 모델은 사실적인 사진에, 어떤 모델은 벡터 일러스트에, 어떤 모델은 여러 이미지를 한꺼번에 만드는 데 더 적합합니다. 문서에 옵션이 나와 있습니다.

상세 정보

작성자의 원본 설명

Generates or edits images with AI models through the OpenRouter Image API (Gemini, Seedream, Recraft, GPT-Image, Riverflow). Use for photos, illustrations, artwork, concept art, visual assets, logos, and image editing or compositing from reference images. For flowcharts, circuits, pathways, and other technical diagrams, use the scientific-schematics skill instead.

repo: K-Dense-AI/scientific-agent-skills

인기도

GitHub 스타
51k
순위
#3465
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬