मुख्य सामग्री पर जाएँ
Skillpedia
इमेज और आइकन51k · #3465

generate-image

यह क्या करती है

यह टूल AI का इस्तेमाल करके टेक्स्ट के विवरण के आधार पर इमेज बनाता है या उसमें बदलाव करता है। आप फोटो, इलस्ट्रेशन, लोगो और भी बहुत कुछ मांग सकते हैं।

कब इस्तेमाल करें

  • ✓प्रेजेंटेशन के लिए कोई इमेज बनाना।
  • ✓किसी नए प्रोजेक्ट के लिए लोगो डिज़ाइन करना।
  • ✓मौजूदा फोटो को एडिट करना, जैसे उसके रंग बदलना।

Skill का लिंक

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

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/generate-image/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“अंतरिक्ष में, पृथ्वी की पृष्ठभूमि के साथ तैरती हुई एक बिल्ली अंतरिक्ष यात्री की इमेज बनाओ।”

हर हफ़्ते 5 नई skills, 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 key चाहिए?

हाँ, आपको OpenRouter API key चाहिए। इसे कैसे पाएं, इसकी जानकारी डॉक्यूमेंटेशन में दी गई है।

मुझे कौन सा AI model इस्तेमाल करना चाहिए, यह कैसे पता चलेगा?

कई तरह के model उपलब्ध हैं और हर एक की अपनी खासियत है। कुछ असली जैसी फोटो के लिए बेहतर हैं, कुछ वेक्टर इलस्ट्रेशन के लिए, और कुछ एक साथ कई इमेज बनाने के लिए। सारे विकल्प डॉक्यूमेंटेशन में लिखे हैं।

जानकारी

लेखक का मूल विवरण

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

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

13c-metabolic-flux

51k

कार्बन-13 आइसोटोप ट्रेसिंग डेटा से मेटाबोलिक फ़्लक्स का अनुमान लगाता है। कोशिका के मेटाबॉलिज़्म और बायोकेमिकल मार्गों का विश्लेषण करने के लिए यह उपयोगी है।

AI और एजेंटएजेंट

adaptyv

51k

Adaptyv API का उपयोग करके प्रोटीन कैरेक्टराइज़ेशन प्रयोग डिज़ाइन करता है। लागत का अनुमान लगाने, सीक्वेंस सबमिट करने और लैब के नतीजों पर नज़र रखने में मदद करता है।

AI और एजेंटएजेंट

aeon

51k

टाइम सीरीज़ डेटा पर मशीन लर्निंग के काम करता है। क्रमबद्ध डेटा में वर्गीकरण, पूर्वानुमान, एनोमली डिटेक्शन और पैटर्न खोजने के लिए यह उपयोगी है।

AI और एजेंटएजेंट

alphagenome

51k

जेनेटिक वेरिएंट्स के पहले से गणना किए गए जीनोमिक प्रभाव देखता है। वेरिएंट का जीनोम पर असर समझने के लिए स्कोर और स्पष्टीकरण देता है।

डेटामशीन लर्निंग

मिलती-जुलती skills