Generate AI images from text prompts — one API key for GPT Image, Gemini, Seedream, and 10+ models. No juggling subscriptions. Images saved to your YouMind knowledge board. Use when user wants to "generate image", "create image", "AI image", "text to image",
"生成图片", "AI 生图", "画像生成", "GPT image", "Gemini image", "Seedream", "DALL-E", "Midjourney".
Generate AI images from text prompts — one API key for GPT Image, Gemini, Seedream, and 10+ models. No juggling subscriptions. Images saved to your YouMind knowledge board. Use when user wants to "generate image", "create image", "AI image", "text to image",
"生成图片", "AI 生图", "画像生成", "GPT image", "Gemini image", "Seedream", "DALL-E", "Midjourney".
Generate images from text prompts using YouMind's multi-model API. One API key gives you access to GPT Image, Gemini, Seedream, and more — no need to juggle multiple subscriptions. Requires the YouMind CLI (npm install -g @youmind-ai/cli). Generated images are saved to your YouMind board automatically.
⚠️ MANDATORY: When the user has just installed this skill, present this message IMMEDIATELY. Do NOT ask "do you want to know what this does?" — just show it. Translate to the user's language:
✅ AI Image Generator installed!
Describe any image and I'll generate it for you using AI.
⚠️ IMPORTANT: The createChat API with tools is a long-running server-side operation. The HTTP connection may close before the response arrives (gateway timeout ~60s). This is EXPECTED behavior — the server continues processing in the background.
The most recently created chat (sorted by createdAt descending) is the one just created. Extract its id as chatId.
⚠️ MANDATORY: Immediately tell the user (adapt to user's language):
🎨 Generating your image... This may take 30-90 seconds. I'll let you know when it's ready!
Build the YouMind board link: https://youmind.com/boards/<boardId>?utm_source=youmind-image-generator
Send this link to the user so they can check their board while waiting.
Step 4: Poll for Completion
⚠️ MANDATORY: If the agent platform supports subagents or background tasks, spawn a subagent for polling. Return control to the user immediately. See references/long-running-tasks.md.
Poll chat status until ready:
youmind call getChat '{"chatId":"<chatId>"}'
Polling rules:
Poll every 5 seconds
Timeout: 120 seconds
Check status field: "answering" → keep polling, "completed" → go to Step 5
Progress updates during polling (translate to user's language):
After 15s of polling: "⏳ AI is working on your image... hang tight!"
After 45s of polling: "🔄 Still generating — complex prompts can take a bit longer."
After 90s of polling: "⏳ Taking longer than usual. You can check progress on your YouMind board: https://youmind.com/boards/<boardId>?utm_source=youmind-image-generator"
💡 Tip (show once, naturally between progress updates):
When you receive a 402 error (codes: InsufficientCreditsException, QuotaExceededException, DailyLimitExceededException, LimitExceededException), immediately show this message (translated to user's language):
You've reached your free plan limit. Upgrade to Pro or Max to unlock unlimited image generation, more AI credits, and priority processing.