media-generation

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Media Generation with StableStudio

借助StableStudio进行媒体生成

Generate images and videos via x402 payments at
https://stablestudio.io
.
通过x402支付在
https://stablestudio.io
生成图片和视频。

Quick Reference

快速参考

TaskEndpointCostTime
Image (default)
/api/x402/nano-banana-pro/generate
$0.13-0.24~10s
Image (budget)
/api/x402/nano-banana/generate
$0.039~5s
Video (default)
/api/x402/veo-3.1/generate
$1.60-3.201-2min
Video (budget)
/api/x402/wan-2.5/t2v
$0.34-1.022-5min
Image edit
/api/x402/nano-banana-pro/edit
$0.13-0.24~10s
任务接口费用时间
图片(默认)
/api/x402/nano-banana-pro/generate
$0.13-0.24约10秒
图片(经济型)
/api/x402/nano-banana/generate
$0.039约5秒
视频(默认)
/api/x402/veo-3.1/generate
$1.60-3.201-2分钟
视频(经济型)
/api/x402/wan-2.5/t2v
$0.34-1.022-5分钟
图片编辑
/api/x402/nano-banana-pro/edit
$0.13-0.24约10秒

Image Generation

图片生成

Recommended: nano-banana-pro (best quality/cost)
mcp
x402.fetch(
  url="https://stablestudio.io/api/x402/nano-banana-pro/generate",
  method="POST",
  body={
    "prompt": "a cat wearing a space helmet, photorealistic",
    "aspectRatio": "16:9",
    "imageSize": "2K"
  }
)
Options:
  • aspectRatio
    : "1:1", "16:9", "9:16"
  • imageSize
    : "1K", "2K", "4K" (nano-banana-pro only)
推荐:nano-banana-pro(最佳性价比)
mcp
x402.fetch(
  url="https://stablestudio.io/api/x402/nano-banana-pro/generate",
  method="POST",
  body={
    "prompt": "a cat wearing a space helmet, photorealistic",
    "aspectRatio": "16:9",
    "imageSize": "2K"
  }
)
可选参数:
  • aspectRatio
    : "1:1", "16:9", "9:16"
  • imageSize
    : "1K", "2K", "4K" (nano-banana-pro only)

Video Generation

视频生成

Recommended: veo-3.1 (best quality/cost)
mcp
x402.fetch(
  url="https://stablestudio.io/api/x402/veo-3.1/generate",
  method="POST",
  body={
    "prompt": "a timelapse of clouds moving over mountains",
    "durationSeconds": "6",
    "aspectRatio": "16:9"
  }
)
Options:
  • durationSeconds
    : "4", "6", "8"
  • aspectRatio
    : "16:9", "9:16"
推荐:veo-3.1(最佳性价比)
mcp
x402.fetch(
  url="https://stablestudio.io/api/x402/veo-3.1/generate",
  method="POST",
  body={
    "prompt": "a timelapse of clouds moving over mountains",
    "durationSeconds": "6",
    "aspectRatio": "16:9"
  }
)
可选参数:
  • durationSeconds
    : "4", "6", "8"
  • aspectRatio
    : "16:9", "9:16"

Job Polling

任务轮询

Generation returns a
jobId
. Poll until complete:
mcp
x402.fetch_with_auth(
  url="https://stablestudio.io/api/x402/jobs/{jobId}"
)
Poll images every 3s, videos every 10s. Result contains
imageUrl
or
videoUrl
.
生成操作会返回一个
jobId
。需要轮询直至任务完成:
mcp
x402.fetch_with_auth(
  url="https://stablestudio.io/api/x402/jobs/{jobId}"
)
图片每3秒轮询一次,视频每10秒轮询一次。返回结果包含
imageUrl
videoUrl

Image Editing

图片编辑

Requires uploading the source image first. See rules/uploads.md.
mcp
x402.fetch(
  url="https://stablestudio.io/api/x402/nano-banana-pro/edit",
  method="POST",
  body={
    "prompt": "change the background to a beach sunset",
    "images": ["https://...blob-url..."]
  }
)
需要先上传源图片。请查看rules/uploads.md
mcp
x402.fetch(
  url="https://stablestudio.io/api/x402/nano-banana-pro/edit",
  method="POST",
  body={
    "prompt": "change the background to a beach sunset",
    "images": ["https://...blob-url..."]
  }
)

Model Comparison

模型对比

ModelTypeBest For
nano-banana-proImageGeneral purpose, up to 4K
nano-bananaImageQuick drafts, budget
gpt-image-1.5ImageFast, variable quality
veo-3.1VideoHigh quality, 1080p
wan-2.5VideoBudget, text or image input
sora-2VideoPremium quality
模型类型适用场景
nano-banana-pro图片通用场景,最高支持4K
nano-banana图片快速草稿,经济型
gpt-image-1.5图片速度快,画质可变
veo-3.1视频高品质,1080p
wan-2.5视频经济型,支持文本或图片输入
sora-2视频高端品质