Skillpedia
الصور والأيقونات51k · #3465

generate-image

ما الذي تفعله

تستخدم هذه المهارة الذكاء الاصطناعي لإنشاء الصور أو تعديلها اعتمادًا على أوصاف نصية. يمكنك طلب صور فوتوغرافية ورسوم توضيحية وشعارات وغيرها.

متى تستخدمها

  • ✓عندما تريد إنشاء صورة لعرض تقديمي.
  • ✓عندما تريد تصميم شعار لمشروع جديد.
  • ✓عندما تريد تعديل صورة موجودة، مثل تغيير الألوان.

رابط المهارة

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

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/generate-image/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“أنشئ صورة لقط رائد فضاء يطفو في الفضاء، والأرض في الخلفية.”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

تصف الصورة التي تريدها، فيُنشئها الذكاء الاصطناعي. وإذا كانت لديك صورة موجودة، يمكنك طلب تعديلها، مثل تغيير لون السماء إلى البنفسجي.

المحتوى التقني (ملف 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. وتوجد التعليمات الخاصة بالحصول عليه في التوثيق.

كيف أعرف أي نموذج ذكاء اصطناعي أستخدم؟

توجد نماذج متعددة لكل منها تخصصه. بعضها أفضل للصور الواقعية، وبعضها للرسوم المتجهة، وبعضها لتوليد عدة صور دفعة واحدة. ويعرض التوثيق الخيارات المتاحة.

التفاصيل

الوصف الأصلي من المؤلف

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
آخر تحديث
15‏/10‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة