← 返回
未分类 Key 中文

Seedream AI Image Generator

Generate AI images using ByteDance Seedream via Media.io OpenAPI. Delivers high aesthetic quality and detailed rendering for text-to-image and image-to-image...
使用Media.io OpenAPI调用字节跳动Seedream生成AI图像,实现高美学品质的文生图与图生图。
wondershare-boop wondershare-boop 来源
未分类 clawhub v1.0.2 1 版本 99765.8 Key: 需要
★ 0
Stars
📥 426
下载
💾 14
安装
1
版本
#latest

概述

MediaIO Seedream Image Generator Skill

Overview

This skill provides access to ByteDance Seedream 4.0 through the Media.io OpenAPI. Seedream is a versatile powerhouse supporting 4K generation and advanced editing, ensuring character and style consistency.

Trigger Keywords

Use this skill when you hear:

  • "Seedream", "Seedream AI", "Seedream image generator"
  • "Generate image with Seedream"
  • "Seedream 4.0 image generation"

Requirements

Environment Variables

| Variable | Required | Description |

|----------|----------|-------------|

| API_KEY | Yes | Media.io OpenAPI key, sent as X-API-KEY header. Apply at . |

API Details

Seedream 4.0 Image-to-Image

  • API Name: Seedream 4.0
  • Model Code: i2i-seedream-v4-0
  • Endpoint: POST https://openapi.media.io/generation/seedream/i2i-seedream-v4-0
  • Description: A versatile powerhouse supporting 4K generation and advanced editing, ensuring character and style consistency.

Key Features

  • High aesthetic quality image generation
  • Detailed rendering capabilities
  • Text-to-image support
  • Image-to-image support
  • Character consistency
  • Style consistency
  • Up to 4K resolution

Request Parameters

| Parameter | Type | Required | Description |

|-----------|------|----------|-------------|

| prompt | string | Yes | Text description for image generation |

| image | string | No | Reference image URL for image-to-image |

| ratio | string | No | Image aspect ratio |

| strength | string | No | How strongly to follow the reference image (for i2i) |

Common Response Structure

{
  "code": 0,
  "msg": "",
  "data": {
    "task_id": "..."
  },
  "trace_id": "..."
}

Quick Start

1) Install Dependency

pip install requests

2) Initialize Skill

import os
from scripts.skill_router import Skill

skill = Skill('scripts/c_api_doc_detail.json')
api_key = os.getenv('API_KEY', '')
if not api_key:
    raise RuntimeError('API_KEY is not set')

3) Configure Environment Variable API_KEY

Windows PowerShell:

$env:API_KEY="your-api-key"

macOS / Linux (bash/zsh):

export API_KEY="your-api-key"

Usage Examples (Python)

Image-to-Image Generation

import os
from scripts.skill_router import Skill

skill = Skill('scripts/c_api_doc_detail.json')
api_key = os.getenv('API_KEY', '')
if not api_key:
    raise RuntimeError('API_KEY is not set')

result = skill.invoke(
    'Seedream 4.0',
    {
        'prompt': 'a beautiful landscape painting, vibrant colors, artistic style',
        'image': 'https://example.com/reference-image.jpg',
        'ratio': '16:9'
    },
    api_key=api_key
)
print(result)  # Returns task_id when code=0

Query Task Result

import os
import time
from scripts.skill_router import Skill

skill = Skill('scripts/c_api_doc_detail.json')
api_key = os.getenv('API_KEY', '')
if not api_key:
    raise RuntimeError('API_KEY is not set')

task_id = 'your-task-id'

for _ in range(24):
    r = skill.invoke('Task Result', {'task_id': task_id}, api_key=api_key)
    print(r)
    status = (r.get('data') or {}).get('status')
    if status in ('completed', 'failed', 'succeeded'):
        break
    time.sleep(5)

Task Status Reference

  • waiting: queued
  • processing: running
  • completed: completed successfully
  • failed: failed
  • timeout: timed out

Error Handling

| Error Code | Description |

|------------|-------------|

| 374004 | Not authenticated. Apply for an APP KEY at https://developer.media.io/ |

| 490505 | Insufficient credits. Recharge before invoking generation APIs |

External Resources

  • API documentation: https://platform.media.io/docs/
  • Product overview: https://developer.media.io/
  • Credit purchase: https://developer.media.io/pricing.html

Related Files

  • scripts/skill_router.py: core routing logic
  • scripts/c_api_doc_detail.json: API definitions

版本历史

共 1 个版本

  • v1.0.2 当前
    2026-03-30 21:53 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

AI skills for GitHub Copilot, Claude Code, and OpenClaw to generate professional mind maps via the EdrawMind API.

wondershare-boop
使用 EdrawMind API 将自然语言主题或结构化 Markdown 转换为专业思维导图,支持自定义布局、主题、背景等功能。
★ 1 📥 841
design-media

UI/UX Pro Max

xobi667
提供 UI/UX 设计智能与实现指导,帮助打造精美界面。适用于 UI 设计、UX 流程、信息架构、视觉风格、设计系统/标记、组件规格、文案/微文案、无障碍及前端 UI(HTML/CSS/JS、React、Next.js、Vue、Svelte
★ 216 📥 46,618
design-media

Openai Whisper

steipete
使用 Whisper CLI 进行本地语音转文字(无需 API 密钥)
★ 329 📥 92,996