{"auto_groups":["default"],"data":[{"model_name":"wan3-1080p","description":"Wan 3：wan3-1080p\n\n固定 1080p · 2–30 秒。支持文生视频与参考生成：参考图最多 10 张、参考视频最多 5 段、参考音频最多 5 段。任务计费（按次），本站售价 4.50 元/次，每个任务固定扣一次，与生成时长、素材数量无关。\n\n接口与鉴权\n- 接口地址：https://shenmeai.vip\n- 请求头：Authorization: Bearer 你的API_KEY\n- 创建任务使用 JSON：Content-Type: application/json\n- 查询与下载使用同一账号的 Bearer API Key。\n\n模型与参数\n- model 为 wan3-1080p。\n- prompt 为非空视频描述，文生视频与参考生成都必填。\n- duration（或 seconds）为 2–30 秒的整数，不传默认 2 秒。\n- resolution 固定 1080p，本卡只有这一档，不传也按 1080p 出片；传 720p / 480p 会被拒绝。\n- ratio 为画面比例，支持 16:9、9:16、4:3、3:4、1:1；不传默认 16:9。\n- count 固定为 1，不能传其他值；本模型每次只出一条视频。\n- referenceImages / referenceVideos / referenceAudios 为公开 HTTPS 图片/视频/音频直链数组，分别对应参考图、参考视频、参考音频，可同时混用。\n- 不支持首尾帧（first_frame / last_frame）、不支持 generation_mode；不要用 aspect_ratio 代替 ratio。\n- 上游映射：本站字段与上游不同名，务必按上表传参：本站 duration→上游 duration（同名字段）、ratio→上游 ratio（同名字段）、resolution→上游 resolution；参考素材本站用驼峰 referenceImages / referenceVideos / referenceAudios，插件转成上游同名字段后提交到 POST /v1/videos。生成走异步任务，提交后返回任务号，再查询任务状态与成片。参考素材上限按同族 Wan 3.0 卡取保守值（10 图 / 5 视频 / 5 音频），未单独核实本档更高上限；如上游返回素材超限，减少数量重试即可。不要传 width / height / fps / seed / metadata 等未公开字段。\n参考素材上限：\n- referenceImages：最多 10 张。\n- referenceVideos：最多 5 段。\n- referenceAudios：最多 5 段。\n\n上传参考图\n参考素材必须是公开可访问的 HTTPS URL。如图片在本地，请先上传到公开图床，再把地址填入参考图参数；本站不保存参考素材。\n\n创建任务\nPOST /v1/videos\n\ncurl https://shenmeai.vip/v1/videos \\\n  -H \"Authorization: Bearer $API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n        \"model\": \"wan3-1080p\",\n        \"prompt\": \"视频描述\",\n        \"duration\": 30,\n        \"resolution\": \"720p\",\n        \"ratio\": \"16:9\",\n        \"referenceImages\": [\"https://example.com/ref-1.png\"]\n    }'\n\n查询和轮询\nGET /v1/videos/{task_id}。保存创建响应中的 id，每 10–15 秒查询；queued 表示排队，in_progress 表示生成中，completed 表示完成，failed 表示失败。查询异常时保留原任务 ID，不重复提交。\n\ncurl \"https://shenmeai.vip/v1/videos/你的任务ID\" \\\n  -H \"Authorization: Bearer $API_KEY\"\n\n下载\n任务完成后请求 GET /v1/videos/{task_id}/content，使用同一账号的 Bearer API Key。\n\n查询结果如包含 video_url 和 result_url，可直接使用该地址下载，无需 Authorization；两个字段指向相同视频。地址支持 GET、HEAD 和 Range；expires_at 为链接失效的 Unix 秒时间戳。\n\ncurl --fail -L \"https://shenmeai.vip/v1/videos/你的任务ID/content\" \\\n  -H \"Authorization: Bearer $API_KEY\" \\\n  -o video.mp4\n\n若返回 video_archive_pending，按响应的 Retry-After 等待并重试下载。\n\n计费\n- 任务计费（按次）：本站售价 4.50 元/次，每个任务固定扣一次，与生成时长、分辨率、素材数量无关\n\nPython 完整示例：提交、轮询、下载\n将 API_KEY 环境变量设为自己的本站 API Key；按需修改请求参数。\n\nimport json\nimport os\nimport time\nfrom urllib.error import HTTPError, URLError\nfrom urllib.parse import quote\nfrom urllib.request import Request, urlopen\n\nBASE = \"https://shenmeai.vip\"\nAPI_KEY = os.environ[\"API_KEY\"]\nMODEL = \"wan3-1080p\"\nHEADERS = {\"Authorization\": f\"Bearer {API_KEY}\"}\n\npayload = {\n        \"model\": \"wan3-1080p\",\n        \"prompt\": \"视频描述\",\n        \"duration\": 30,\n        \"resolution\": \"720p\",\n        \"ratio\": \"16:9\",\n        \"referenceImages\": [\"https://example.com/ref-1.png\"]\n    }\n\n# 只提交一次。提交结果不明确时不自动重试。\nrequest = Request(\n    f\"{BASE}/v1/videos\",\n    data=json.dumps(payload, ensure_ascii=False).encode(\"utf-8\"),\n    headers={**HEADERS, \"Content-Type\": \"application/json\"},\n    method=\"POST\",\n)\nwith urlopen(request, timeout=720) as response:\n    created = json.load(response)\n\ntask_id = created[\"id\"]\nprint(\"任务 ID：\", task_id, flush=True)\ntask_url = f\"{BASE}/v1/videos/{quote(task_id, safe='')}\"\n\n# 总轮询时间可按需要调整；超时后保留 task_id，稍后继续查询。\ndeadline = time.monotonic() + 3600\nwhile time.monotonic() \u003c deadline:\n    try:\n        with urlopen(Request(task_url, headers=HEADERS), timeout=30) as response:\n            task = json.load(response)\n    except HTTPError as exc:\n        if exc.code == 429 or 500 \u003c= exc.code \u003c 600:\n            time.sleep(15)\n            continue\n        raise\n    except (URLError, TimeoutError):\n        time.sleep(15)\n        continue\n\n    status = task.get(\"status\")\n    print(\"状态：\", status, \"进度：\", task.get(\"progress\"), flush=True)\n    if status == \"completed\":\n        break\n    if status == \"failed\":\n        raise RuntimeError(f\"视频生成失败：{task.get('error')}\")\n    time.sleep(15)\nelse:\n    raise TimeoutError(f\"查询超时，请稍后继续查询任务 {task_id}\")\n\n# 只重试下载，不重新提交生成。\ndownload_url = f\"{task_url}/content\"\ndownload_deadline = time.monotonic() + 600\nwhile time.monotonic() \u003c download_deadline:\n    try:\n        with urlopen(Request(download_url, headers=HEADERS), timeout=120) as response:\n            with open(\"video.mp4\", \"wb\") as output:\n                while True:\n                    chunk = response.read(1024 * 1024)\n                    if not chunk:\n                        break\n                    output.write(chunk)\n        print(\"已保存 video.mp4\")\n        break\n    except HTTPError as exc:\n        if exc.code == 503:\n            retry_after = exc.headers.get(\"Retry-After\", \"10\")\n            time.sleep(int(retry_after) if retry_after.isdigit() else 10)\n            continue\n        raise\n    except (URLError, TimeoutError):\n        time.sleep(10)\nelse:\n    raise TimeoutError(f\"视频尚未下载，请稍后继续下载任务 {task_id}\")","tags":"video,wan","quota_type":1,"model_ratio":0,"model_price":0.616438356164,"owner_by":"","completion_ratio":0,"enable_groups":["default"],"supported_endpoint_types":["openai","openai-response","openai-response-compact","anthropic","gemini","openai-alpha-search"],"billing_mode":"tiered_expr","billing_expr":"tier(\"base\", u(\"count\") * 0.616438356164)","billing_usage_schema":{"count":{"type":"number","unit":"count","description":{"en":"Output count","zh":"生成数量"}},"resolution":{"enum":["1080p"],"description":{"en":"Output resolution","zh":"输出分辨率"}}},"pricing_version":"5a90f2b86c08bd983a9a2e6d66c255f4eaef9c4bc934386d2b6ae84ef0ff1f1f"},{"model_name":"Magi-2.0-创世者-1080p","description":"1080p · 按次计费 · 1–30 秒 · 比例 16:9/9:16/1:1/auto · 9图/3视频/3音频，失败可重试\n\n接口与鉴权\n- 接口地址：https://shenmeai.vip\n- 请求头：Authorization: Bearer 你的API_KEY\n- 创建任务使用 JSON：Content-Type: application/json\n- 查询与下载使用同一账号的 Bearer API Key。\n模型与参数\n- model 为 Magi-2.0-创世者-1080p。\n- prompt 为非空视频描述。\n- duration 为必填参数，取值 1–30 的整数（本站不读取 seconds 字段；上游默认并建议 12 秒）。\n- ratio 为画面比例，支持 16:9、9:16、1:1、auto。\n- 本卡固定输出 1080p，本站已锁定档位：调用方不需要传 resolution，传了也会被强制成本档。\n- reference_images / reference_videos / reference_audios 为公开 HTTP(S) URL 数组，分别对应参考图、参考视频、参考音频。\n参考素材上限：\n- reference_images：最多 9 张。\n- reference_videos：最多 3 段。\n- reference_audios：最多 3 段。\n- 本站暂不支持首帧/尾帧图片（first_frame / last_frame），上游该能力暂未开放到本站。\n上传参考图\n参考素材必须是公开可访问的 HTTPS URL。如图片在本地，请先上传到公开图床，再把地址填入参考图参数；本站不保存参考素材。\n创建任务\nPOST /v1/videos\ncurl https://shenmeai.vip/v1/videos \\\n-H \"Authorization: Bearer $API_KEY\" \\\n-H \"Content-Type: application/json\" \\\n-d '{\n\"model\": \"Magi-2.0-创世者-1080p\",\n\"prompt\": \"视频描述\",\n\"duration\": 12,\n\"resolution\": \"1080p\",\n\"ratio\": \"16:9\",\n\"reference_images\": [\"https://example.com/ref-1.png\"]\n}'\n查询和轮询\nGET /v1/videos/{task_id}。保存创建响应中的 id，每 10–15 秒查询；queued 表示排队，in_progress 表示生成中，completed 表示完成，failed 表示失败。查询异常时保留原任务 ID，不重复提交。\ncurl \"https://shenmeai.vip/v1/videos/你的任务ID\" \\\n-H \"Authorization: Bearer $API_KEY\"\n下载\n任务完成后请求 GET /v1/videos/{task_id}/content，使用同一账号的 Bearer API Key。\n查询结果如包含 video_url 和 result_url，可直接使用该地址下载，无需 Authorization；两个字段指向相同视频。地址支持 GET、HEAD 和 Range；expires_at 为链接失效的 Unix 秒时间戳。\ncurl --fail -L \"https://shenmeai.vip/v1/videos/你的任务ID/content\" \\\n-H \"Authorization: Bearer $API_KEY\" \\\n-o video.mp4\n若返回 video_archive_pending，按响应的 Retry-After 等待并重试下载。\nPython 完整示例：提交、轮询、下载\n将 API_KEY 环境变量设为自己的本站 API Key；按需修改请求参数。\nimport json\nimport os\nimport time\nfrom urllib.error import HTTPError, URLError\nfrom urllib.parse import quote\nfrom urllib.request import Request, urlopen\nBASE = \"https://shenmeai.vip\"\nAPI_KEY = os.environ[\"API_KEY\"]\nMODEL = \"Magi-2.0-创世者-1080p\"\nHEADERS = {\"Authorization\": f\"Bearer {API_KEY}\"}\npayload = {\n\"model\": \"Magi-2.0-创世者-1080p\",\n\"prompt\": \"视频描述\",\n\"duration\": 12,\n\"resolution\": \"1080p\",\n\"ratio\": \"16:9\",\n\"reference_images\": [\"https://example.com/ref-1.png\"]\n}\n# 只提交一次。提交结果不明确时不自动重试。\nrequest = Request(\nf\"{BASE}/v1/videos\",\ndata=json.dumps(payload, ensure_ascii=False).encode(\"utf-8\"),\nheaders={**HEADERS, \"Content-Type\": \"application/json\"},\nmethod=\"POST\",\n)\nwith urlopen(request, timeout=720) as response:\ncreated = json.load(response)\ntask_id = created[\"id\"]\nprint(\"任务 ID：\", task_id, flush=True)\ntask_url = f\"{BASE}/v1/videos/{quote(task_id, safe='')}\"\n# 总轮询时间可按需要调整；超时后保留 task_id，稍后继续查询。\ndeadline = time.monotonic() + 3600\nwhile time.monotonic() \u003c deadline:\ntry:\nwith urlopen(Request(task_url, headers=HEADERS), timeout=30) as response:\ntask = json.load(response)\nexcept HTTPError as exc:\nif exc.code == 429 or 500 \u003c= exc.code \u003c 600:\ntime.sleep(15)\ncontinue\nraise\nexcept (URLError, TimeoutError):\ntime.sleep(15)\ncontinue\nstatus = task.get(\"status\")\nprint(\"状态：\", status, \"进度：\", task.get(\"progress\"), flush=True)\nif status == \"completed\":\nbreak\nif status == \"failed\":\nraise RuntimeError(f\"视频生成失败：{task.get('error')}\")\ntime.sleep(15)\nelse:\nraise TimeoutError(f\"查询超时，请稍后继续查询任务 {task_id}\")\n# 只重试下载，不重新提交生成。\ndownload_url = f\"{task_url}/content\"\ndownload_deadline = time.monotonic() + 600\nwhile time.monotonic() \u003c download_deadline:\ntry:\nwith urlopen(Request(download_url, headers=HEADERS), timeout=120) as response:\nwith open(\"video.mp4\", \"wb\") as output:\nwhile True:\nchunk = response.read(1024 * 1024)\nif not chunk:\nbreak\noutput.write(chunk)\nprint(\"已保存 video.mp4\")\nbreak\nexcept HTTPError as exc:\nif exc.code == 503:\nretry_after = exc.headers.get(\"Retry-After\", \"10\")\ntime.sleep(int(retry_after) if retry_after.isdigit() else 10)\ncontinue\nraise\nexcept (URLError, TimeoutError):\ntime.sleep(10)\nelse:\nraise TimeoutError(f\"视频尚未下载，请稍后继续下载任务 {task_id}\")","tags":"video,magi2","quota_type":1,"model_ratio":0,"model_price":0.547945205479,"owner_by":"","completion_ratio":0,"enable_groups":["default"],"supported_endpoint_types":["openai","openai-response","openai-response-compact","anthropic","gemini","openai-alpha-search"],"billing_usage_schema":{"count":{"type":"number","unit":"count","unitLabel":{"en":"request","zh":"条"},"description":{"en":"Generated videos","zh":"生成视频条数"}}}},{"model_name":"【满血】SD-2.5-720p","description":"【成功率 100.0%】 SD-2.5-720p\n720p · 按秒计费 · 4–30 秒 · 参考图最多 30 张、参考音频最多 10 段（本卡不支持参考视频）· 本站售价 ¥0.45/秒。\n接口与鉴权\n- 接口地址：https://shenmeai.vip/v1\n- 请求头：Authorization: Bearer 你的API_KEY\n- 创建任务使用 JSON：Content-Type: application/json\n- 查询与下载使用同一账号的 Bearer API Key。\n模型与参数\n- model 为 【满血】SD-2.5-720p。\n- prompt 为视频描述文本，最多 10000 字符。\n- seconds（或 duration）为 4–30 秒的整数。\n- resolution 为 720p（本卡固定 720p）。\n- ratio 为画面比例，按模型支持值传入（常用 16:9 / 9:16 / 1:1）。\n- images 为公开 HTTP(S) URL 数组，最多 30 张参考图。\n- 参考视频：本卡不支持，传入不会生效。\n- audios 为公开 HTTP(S) URL 数组，最多 10 段参考音频，且须与参考图搭配使用。\n参考素材上限\n- images：最多 30 张参考图。\n- audios：最多 10 段参考音频。\n- 含音视频素材或超过 9 张参考图时，生成时长至少 5 秒。\n参考素材要求\n- 参考素材必须是公开可访问的 HTTPS URL；本站不保存参考素材。\n创建任务\nPOST /v1/videos\ncurl https://shenmeai.vip/v1/videos \\\n-H \"Authorization: Bearer $API_KEY\" \\\n-H \"Content-Type: application/json\" \\\n-d '{\"model\": \"【满血】SD-2.5-720p\", \"prompt\": \"视频描述\", \"seconds\": 5, \"resolution\": \"720p\"}'\n查询和轮询\nGET /v1/videos/{task_id}。保存创建响应中的 id，每 10–15 秒查询；queued 表示排队，in_progress 表示生成中，completed 表示完成，failed 表示失败。查询异常时保留原任务 ID，不重复提交。\n下载\n任务完成后请求 GET /v1/videos/{task_id}/content，使用同一账号的 Bearer API Key。\n计费\n- 按秒计费：本站售价 ¥0.45/秒，按实际生成时长结算。","icon":"Video","tags":"video,seedance","quota_type":1,"model_ratio":0,"model_price":0.061643835616,"owner_by":"","completion_ratio":0,"enable_groups":["default"],"supported_endpoint_types":["openai"],"billing_mode":"tiered_expr","billing_expr":"tier(\"base\", u(\"seconds\") * 0.061643835616)","billing_usage_schema":{"seconds":{"type":"number","unit":"second","description":{"en":"Requested duration","zh":"生成时长"}}}},{"model_name":"TTseadanco2.5-720","description":"【成功率 39.3%】 720p · 按秒计费 · 5–30 秒 · 30图/10视频/10音频 · 比例 16:9/9:16/1:1\n\n接口与鉴权\n- 接口地址：https://shenmeai.vip\n- 请求头：Authorization: Bearer 你的API_KEY\n- 创建任务使用 JSON：Content-Type: application/json\n- 查询与下载使用同一账号的 Bearer API Key。\n模型与参数\n- model 为 TTseadanco2.5-720。\n- prompt 为视频描述文本。\n- resolution 为 720p。\n- seconds（或 duration）为 5–30 秒。\n- ratio 为画面比例，按模型支持值传入（常用 16:9 / 9:16 / 1:1）。\n- images 为公开 HTTP(S) URL 数组，最多 30 张参考图。\n- videos 为公开 HTTP(S) URL 数组，最多 10 段参考视频。\n- audios 为公开 HTTP(S) URL 数组，最多 10 段参考音频。\n参考素材上限：\n- images：最多 30 张参考图。\n- videos：最多 10 段参考视频。\n- audios：最多 10 段参考音频。\n上传参考图\n参考素材必须是公开可访问的 HTTPS URL。如图片在本地，请先上传到公开图床，再把地址填入参考图参数；本站不保存参考素材。\n创建任务\nPOST /v1/videos\ncurl https://shenmeai.vip/v1/videos \\\n-H \"Authorization: Bearer $API_KEY\" \\\n-H \"Content-Type: application/json\" \\\n-d '{\n\"model\": \"TTseadanco2.5-720\"\n\"prompt\": \"视频描述\"\n\"seconds\": 5\n}'\n查询和轮询\nGET /v1/videos/{task_id}。保存创建响应中的 id，每 10–15 秒查询；queued 表示排队，in_progress 表示生成中，completed 表示完成，failed 表示失败。查询异常时保留原任务 ID，不重复提交。\ncurl \"https://shenmeai.vip/v1/videos/你的任务ID\" \\\n-H \"Authorization: Bearer $API_KEY\"\n下载\n任务完成后请求 GET /v1/videos/{task_id}/content，使用同一账号的 Bearer API Key。\n查询结果如包含 video_url 和 result_url，可直接使用该地址下载，无需 Authorization；两个字段指向相同视频。地址支持 GET、HEAD 和 Range；expires_at 为链接失效的 Unix 秒时间戳。\ncurl --fail -L \"https://shenmeai.vip/v1/videos/你的任务ID/content\" \\\n-o video.mp4\n若返回 video_archive_pending，按响应的 Retry-After 等待并重试下载。\nPython 完整示例：提交、轮询、下载\n将 API_KEY 环境变量设为自己的本站 API Key；按需修改请求参数。\nimport json\nimport os\nimport time\nfrom urllib.error import HTTPError, URLError\nfrom urllib.parse import quote\nfrom urllib.request import Request, urlopen\nBASE = \"https://shenmeai.vip\"\nAPI_KEY = os.environ[\"API_KEY\"]\nMODEL = \"TTseadanco2.5-720\"\nHEADERS = {\"Authorization\": f\"Bearer {API_KEY}\"}\npayload = {\n}\n# 只提交一次。提交结果不明确时不自动重试。\nrequest = Request(\nf\"{BASE}/v1/videos\"\ndata=json.dumps(payload, ensure_ascii=False).encode(\"utf-8\")\nheaders={**HEADERS, \"Content-Type\": \"application/json\"}\nmethod=\"POST\"\n)\nwith urlopen(request, timeout=720) as response:\ncreated = json.load(response)\ntask_id = created[\"id\"]\nprint(\"任务 ID：\", task_id, flush=True)\ntask_url = f\"{BASE}/v1/videos/{quote(task_id, safe='')}\"\n# 总轮询时间可按需要调整；超时后保留 task_id，稍后继续查询。\ndeadline = time.monotonic() + 3600\nwhile time.monotonic() \u003c deadline:\ntry:\nwith urlopen(Request(task_url, headers=HEADERS), timeout=30) as response:\ntask = json.load(response)\nexcept HTTPError as exc:\nif exc.code == 429 or 500 \u003c= exc.code \u003c 600:\ntime.sleep(15)\ncontinue\nraise\nexcept (URLError, TimeoutError):\nstatus = task.get(\"status\")\nprint(\"状态：\", status, \"进度：\", task.get(\"progress\"), flush=True)\nif status == \"completed\":\nbreak\nif status == \"failed\":\nraise RuntimeError(f\"视频生成失败：{task.get('error')}\")\nelse:\nraise TimeoutError(f\"查询超时，请稍后继续查询任务 {task_id}\")\n# 只重试下载，不重新提交生成。\ndownload_url = f\"{task_url}/content\"\ndownload_deadline = time.monotonic() + 600\nwhile time.monotonic() \u003c download_deadline:\nwith urlopen(Request(download_url, headers=HEADERS), timeout=120) as response:\nwith open(\"video.mp4\", \"wb\") as output:\nwhile True:\nchunk = response.read(1024 * 1024)\nif not chunk:\noutput.write(chunk)\nprint(\"已保存 video.mp4\")\nif exc.code == 503:\nretry_after = exc.headers.get(\"Retry-After\", \"10\")\ntime.sleep(int(retry_after) if retry_after.isdigit() else 10)\ntime.sleep(10)\nraise TimeoutError(f\"视频尚未下载，请稍后继续下载任务 {task_id}\")\n完整配置","tags":"video,sd2.5","quota_type":1,"model_ratio":0,"model_price":0.049315068493,"owner_by":"","completion_ratio":0,"enable_groups":["default"],"supported_endpoint_types":["openai","openai-response","openai-response-compact","anthropic","gemini","openai-alpha-search"],"billing_mode":"tiered_expr","billing_expr":"tier(\"base\", u(\"seconds\") * 0.049315068493)","billing_usage_schema":{"seconds":{"type":"number","unit":"second","description":{"en":"Requested duration","zh":"生成时长"}}}},{"model_name":"gpt-image-2.6-flare","description":"【成功率 100.0%】 文生图与参考图编辑 · 按次计费 · 支持 2K/4K 输出\n文生图 · 支持参考图输入 · 按次计费 · 分辨率 1K / 2K / 4K · 参考图最多 9 张 · 不支持超分。 本站售价 ¥0.036/次。\n接口与鉴权\n- 接口地址：https://shenmeai.vip/v1\n- 请求头：Authorization: Bearer 你的API_KEY\n- 请求体使用 JSON：Content-Type: application/json\n- 能力类型：图片生成；创建：POST /v1/images/generations；查询/下载：GET /v1/images/generations/{task_id}\n模型与参数\n- model 为 gpt-image-2.6-flare。\n- prompt 为画面描述文本。\n- resolution 支持 1K、2K、4K。\n- 参考图最多 9 张，传公开可访问的 HTTPS 图片地址。\n- size 可传比例（如 16:9）或像素框（如 2048x1152），两种写法插件都会换算；像素框边长不超过 3840、总像素 655360–8294400。\n计费\n- 按次计费，每张图记 1 次，本站售价 ¥0.036/次。\n创建示例\ncurl https://shenmeai.vip/v1/images/generations \\\n-H \"Authorization: Bearer $API_KEY\" -H \"Content-Type: application/json\" \\\n-d '{\"model\": \"gpt-image-2.6-flare\", \"prompt\": \"一只坐在窗台上的猫\", \"resolution\": \"4k\"}'","tags":"image,upscale","quota_type":1,"model_ratio":0,"model_price":0.004931506849,"owner_by":"","completion_ratio":0,"enable_groups":["default"],"supported_endpoint_types":["image-generation","openai","openai-response","openai-response-compact","anthropic","gemini","openai-alpha-search"],"billing_usage_schema":{"count":{"type":"number","unit":"count","description":{"en":"Output count","zh":"生成数量"}}}},{"model_name":"Wan-3-YZ-480p","description":"【成功率 100.0%】 480p · 按秒计费 · 2–30 秒 · 比例 16:9/9:16/1:1/4:3/3:4/21:9/9:21 · 10图/5视频/5音频\n\n接口与鉴权\n- 接口地址：https://shenmeai.vip\n- 请求头：Authorization: Bearer 你的API_KEY\n- 创建任务使用 JSON：Content-Type: application/json\n- 查询与下载使用同一账号的 Bearer API Key。\n模型与参数\n- model 为 Wan-3-YZ-480p。\n- prompt 为非空视频描述。\n- duration（或 seconds）为 2–30 秒的整数。\n- ratio 为画面比例，支持 16:9、9:16、1:1、4:3、3:4、21:9、9:21。\n- 本卡固定输出 480p，本站已锁定档位：调用方不需要传 resolution，传了也会被强制成本档。\n- reference_images / reference_videos / reference_audios 为公开 HTTP(S) URL 数组，分别对应参考图、参考视频、参考音频。\n参考素材上限：\n- reference_images：最多 10 张。\n- reference_videos：最多 5 段。\n- reference_audios：最多 5 段。\n上传参考图\n参考素材必须是公开可访问的 HTTPS URL。如图片在本地，请先上传到公开图床，再把地址填入参考图参数；本站不保存参考素材。\n创建任务\nPOST /v1/videos\ncurl https://shenmeai.vip/v1/videos \\\n-H \"Authorization: Bearer $API_KEY\" \\\n-H \"Content-Type: application/json\" \\\n-d '{\n\"model\": \"Wan-3-YZ-480p\",\n\"prompt\": \"视频描述\",\n\"duration\": 2,\n\"resolution\": \"480p\",\n\"ratio\": \"16:9\",\n\"reference_images\": [\"https://example.com/ref-1.png\"]\n}'\n查询和轮询\nGET /v1/videos/{task_id}。保存创建响应中的 id，每 10–15 秒查询；queued 表示排队，in_progress 表示生成中，completed 表示完成，failed 表示失败。查询异常时保留原任务 ID，不重复提交。\ncurl \"https://shenmeai.vip/v1/videos/你的任务ID\" \\\n-H \"Authorization: Bearer $API_KEY\"\n下载\n任务完成后请求 GET /v1/videos/{task_id}/content，使用同一账号的 Bearer API Key。\n查询结果如包含 video_url 和 result_url，可直接使用该地址下载，无需 Authorization；两个字段指向相同视频。地址支持 GET、HEAD 和 Range；expires_at 为链接失效的 Unix 秒时间戳。\ncurl --fail -L \"https://shenmeai.vip/v1/videos/你的任务ID/content\" \\\n-H \"Authorization: Bearer $API_KEY\" \\\n-o video.mp4\n若返回 video_archive_pending，按响应的 Retry-After 等待并重试下载。\nPython 完整示例：提交、轮询、下载\n将 API_KEY 环境变量设为自己的本站 API Key；按需修改请求参数。\nimport json\nimport os\nimport time\nfrom urllib.error import HTTPError, URLError\nfrom urllib.parse import quote\nfrom urllib.request import Request, urlopen\nBASE = \"https://shenmeai.vip\"\nAPI_KEY = os.environ[\"API_KEY\"]\nMODEL = \"Wan-3-YZ-480p\"\nHEADERS = {\"Authorization\": f\"Bearer {API_KEY}\"}\npayload = {\n\"model\": \"Wan-3-YZ-480p\",\n\"prompt\": \"视频描述\",\n\"duration\": 2,\n\"resolution\": \"480p\",\n\"ratio\": \"16:9\",\n\"reference_images\": [\"https://example.com/ref-1.png\"]\n}\n# 只提交一次。提交结果不明确时不自动重试。\nrequest = Request(\nf\"{BASE}/v1/videos\",\ndata=json.dumps(payload, ensure_ascii=False).encode(\"utf-8\"),\nheaders={**HEADERS, \"Content-Type\": \"application/json\"},\nmethod=\"POST\",\n)\nwith urlopen(request, timeout=720) as response:\ncreated = json.load(response)\ntask_id = created[\"id\"]\nprint(\"任务 ID：\", task_id, flush=True)\ntask_url = f\"{BASE}/v1/videos/{quote(task_id, safe='')}\"\n# 总轮询时间可按需要调整；超时后保留 task_id，稍后继续查询。\ndeadline = time.monotonic() + 3600\nwhile time.monotonic() \u003c deadline:\ntry:\nwith urlopen(Request(task_url, headers=HEADERS), timeout=30) as response:\ntask = json.load(response)\nexcept HTTPError as exc:\nif exc.code == 429 or 500 \u003c= exc.code \u003c 600:\ntime.sleep(15)\ncontinue\nraise\nexcept (URLError, TimeoutError):\ntime.sleep(15)\ncontinue\nstatus = task.get(\"status\")\nprint(\"状态：\", status, \"进度：\", task.get(\"progress\"), flush=True)\nif status == \"completed\":\nbreak\nif status == \"failed\":\nraise RuntimeError(f\"视频生成失败：{task.get('error')}\")\ntime.sleep(15)\nelse:\nraise TimeoutError(f\"查询超时，请稍后继续查询任务 {task_id}\")\n# 只重试下载，不重新提交生成。\ndownload_url = f\"{task_url}/content\"\ndownload_deadline = time.monotonic() + 600\nwhile time.monotonic() \u003c download_deadline:\ntry:\nwith urlopen(Request(download_url, headers=HEADERS), timeout=120) as response:\nwith open(\"video.mp4\", \"wb\") as output:\nwhile True:\nchunk = response.read(1024 * 1024)\nif not chunk:\nbreak\noutput.write(chunk)\nprint(\"已保存 video.mp4\")\nbreak\nexcept HTTPError as exc:\nif exc.code == 503:\nretry_after = exc.headers.get(\"Retry-After\", \"10\")\ntime.sleep(int(retry_after) if retry_after.isdigit() else 10)\ncontinue\nraise\nexcept (URLError, TimeoutError):\ntime.sleep(10)\nelse:\nraise TimeoutError(f\"视频尚未下载，请稍后继续下载任务 {task_id}\")","tags":"video,wan","quota_type":1,"model_ratio":0,"model_price":0.027397260274,"owner_by":"","completion_ratio":0,"enable_groups":["default"],"supported_endpoint_types":["openai","openai-response","openai-response-compact","anthropic","gemini","openai-alpha-search"],"billing_mode":"tiered_expr","billing_expr":"tier(\"base\", u(\"seconds\") * 0.027397260274)","billing_usage_schema":{"seconds":{"type":"number","unit":"second","description":{"en":"Video duration","zh":"视频时长"}}}},{"model_name":"Wan-3-YZ-1080p","description":"【成功率 100.0%】 1080p · 按秒计费 · 2–30 秒 · 比例 16:9/9:16/1:1/4:3/3:4/21:9/9:21 · 10图/5视频/5音频\n\n接口与鉴权\n- 接口地址：https://shenmeai.vip\n- 请求头：Authorization: Bearer 你的API_KEY\n- 创建任务使用 JSON：Content-Type: application/json\n- 查询与下载使用同一账号的 Bearer API Key。\n模型与参数\n- model 为 Wan-3-YZ-1080p。\n- prompt 为非空视频描述。\n- duration（或 seconds）为 2–30 秒的整数。\n- ratio 为画面比例，支持 16:9、9:16、1:1、4:3、3:4、21:9、9:21。\n- 本卡固定输出 1080p，本站已锁定档位：调用方不需要传 resolution，传了也会被强制成本档。\n- reference_images / reference_videos / reference_audios 为公开 HTTP(S) URL 数组，分别对应参考图、参考视频、参考音频。\n参考素材上限：\n- reference_images：最多 10 张。\n- reference_videos：最多 5 段。\n- reference_audios：最多 5 段。\n上传参考图\n参考素材必须是公开可访问的 HTTPS URL。如图片在本地，请先上传到公开图床，再把地址填入参考图参数；本站不保存参考素材。\n创建任务\nPOST /v1/videos\ncurl https://shenmeai.vip/v1/videos \\\n-H \"Authorization: Bearer $API_KEY\" \\\n-H \"Content-Type: application/json\" \\\n-d '{\n\"model\": \"Wan-3-YZ-1080p\",\n\"prompt\": \"视频描述\",\n\"duration\": 2,\n\"resolution\": \"1080p\",\n\"ratio\": \"16:9\",\n\"reference_images\": [\"https://example.com/ref-1.png\"]\n}'\n查询和轮询\nGET /v1/videos/{task_id}。保存创建响应中的 id，每 10–15 秒查询；queued 表示排队，in_progress 表示生成中，completed 表示完成，failed 表示失败。查询异常时保留原任务 ID，不重复提交。\ncurl \"https://shenmeai.vip/v1/videos/你的任务ID\" \\\n-H \"Authorization: Bearer $API_KEY\"\n下载\n任务完成后请求 GET /v1/videos/{task_id}/content，使用同一账号的 Bearer API Key。\n查询结果如包含 video_url 和 result_url，可直接使用该地址下载，无需 Authorization；两个字段指向相同视频。地址支持 GET、HEAD 和 Range；expires_at 为链接失效的 Unix 秒时间戳。\ncurl --fail -L \"https://shenmeai.vip/v1/videos/你的任务ID/content\" \\\n-H \"Authorization: Bearer $API_KEY\" \\\n-o video.mp4\n若返回 video_archive_pending，按响应的 Retry-After 等待并重试下载。\nPython 完整示例：提交、轮询、下载\n将 API_KEY 环境变量设为自己的本站 API Key；按需修改请求参数。\nimport json\nimport os\nimport time\nfrom urllib.error import HTTPError, URLError\nfrom urllib.parse import quote\nfrom urllib.request import Request, urlopen\nBASE = \"https://shenmeai.vip\"\nAPI_KEY = os.environ[\"API_KEY\"]\nMODEL = \"Wan-3-YZ-1080p\"\nHEADERS = {\"Authorization\": f\"Bearer {API_KEY}\"}\npayload = {\n\"model\": \"Wan-3-YZ-1080p\",\n\"prompt\": \"视频描述\",\n\"duration\": 2,\n\"resolution\": \"1080p\",\n\"ratio\": \"16:9\",\n\"reference_images\": [\"https://example.com/ref-1.png\"]\n}\n# 只提交一次。提交结果不明确时不自动重试。\nrequest = Request(\nf\"{BASE}/v1/videos\",\ndata=json.dumps(payload, ensure_ascii=False).encode(\"utf-8\"),\nheaders={**HEADERS, \"Content-Type\": \"application/json\"},\nmethod=\"POST\",\n)\nwith urlopen(request, timeout=720) as response:\ncreated = json.load(response)\ntask_id = created[\"id\"]\nprint(\"任务 ID：\", task_id, flush=True)\ntask_url = f\"{BASE}/v1/videos/{quote(task_id, safe='')}\"\n# 总轮询时间可按需要调整；超时后保留 task_id，稍后继续查询。\ndeadline = time.monotonic() + 3600\nwhile time.monotonic() \u003c deadline:\ntry:\nwith urlopen(Request(task_url, headers=HEADERS), timeout=30) as response:\ntask = json.load(response)\nexcept HTTPError as exc:\nif exc.code == 429 or 500 \u003c= exc.code \u003c 600:\ntime.sleep(15)\ncontinue\nraise\nexcept (URLError, TimeoutError):\ntime.sleep(15)\ncontinue\nstatus = task.get(\"status\")\nprint(\"状态：\", status, \"进度：\", task.get(\"progress\"), flush=True)\nif status == \"completed\":\nbreak\nif status == \"failed\":\nraise RuntimeError(f\"视频生成失败：{task.get('error')}\")\ntime.sleep(15)\nelse:\nraise TimeoutError(f\"查询超时，请稍后继续查询任务 {task_id}\")\n# 只重试下载，不重新提交生成。\ndownload_url = f\"{task_url}/content\"\ndownload_deadline = time.monotonic() + 600\nwhile time.monotonic() \u003c download_deadline:\ntry:\nwith urlopen(Request(download_url, headers=HEADERS), timeout=120) as response:\nwith open(\"video.mp4\", \"wb\") as output:\nwhile True:\nchunk = response.read(1024 * 1024)\nif not chunk:\nbreak\noutput.write(chunk)\nprint(\"已保存 video.mp4\")\nbreak\nexcept HTTPError as exc:\nif exc.code == 503:\nretry_after = exc.headers.get(\"Retry-After\", \"10\")\ntime.sleep(int(retry_after) if retry_after.isdigit() else 10)\ncontinue\nraise\nexcept (URLError, TimeoutError):\ntime.sleep(10)\nelse:\nraise TimeoutError(f\"视频尚未下载，请稍后继续下载任务 {task_id}\")","tags":"video,wan","quota_type":1,"model_ratio":0,"model_price":0.075342465753,"owner_by":"","completion_ratio":0,"enable_groups":["default"],"supported_endpoint_types":["openai","openai-response","openai-response-compact","anthropic","gemini","openai-alpha-search"],"billing_mode":"tiered_expr","billing_expr":"tier(\"base\", u(\"seconds\") * 0.075342465753)","billing_usage_schema":{"seconds":{"type":"number","unit":"second","description":{"en":"Video duration","zh":"视频时长"}}}},{"model_name":"deepseek-v4-pro","description":"DeepSeek V4 Pro：deepseek-v4-pro\n\nDeepSeek V4 Pro · 1M 上下文 · 文本模型。按 Token 计费：输入 1.44 元、输出 4.32 元、缓存读取 0.02 元，每百万 Token。支持思考模式与工具调用。\n\n接口与鉴权\n- 接口地址：https://shenmeai.vip/v1\n- 请求头：Authorization: Bearer 你的API_KEY\n- 请求体使用 JSON：Content-Type: application/json\n\n模型与参数\n- model 为 deepseek-v4-pro。\n- messages 为对话数组，role 取 system / user / assistant。\n- stream 可选，true 时以 SSE 流式返回。\n- temperature、max_tokens 等标准参数按 OpenAI 兼容协议传入。\n- model 为 deepseek-v4-pro。\n\n创建对话\nPOST /v1/chat/completions\n\ncurl https://shenmeai.vip/v1/chat/completions \\\n  -H \"Authorization: Bearer $API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"model\": \"deepseek-v4-pro\",\n  \"messages\": [\n    {\"role\": \"user\", \"content\": \"你好\"}\n  ],\n  \"stream\": false\n}'\n\n计费\n- 按 Token 计费，输入 / 缓存读取 / 输出分别计价，详见开头说明。实际扣费以本站计费配置为准。\n\nPython 完整示例\n\nimport os\nfrom openai import OpenAI\n\nclient = OpenAI(\n    api_key=os.environ[\"API_KEY\"],\n    base_url=\"https://shenmeai.vip/v1\",\n)\n\nresponse = client.chat.completions.create(\n    model=\"deepseek-v4-pro\",\n    messages=[\n        {\"role\": \"user\", \"content\": \"你好\"},\n    ],\n)\nprint(response.choices[0].message.content)","tags":"text,deepseek","quota_type":0,"model_ratio":0.098630136986,"model_price":0,"owner_by":"","completion_ratio":3,"cache_ratio":0.013888888889,"enable_groups":["default"],"supported_endpoint_types":["openai"]},{"model_name":"magi2-1080p","description":"Magi：magi2-1080p\n固定 1080p · 4–30 秒。支持文生视频与参考生成：参考图最多 10 张、参考视频最多 3 段、参考音频最多 3 段。任务计费（按条），本站售价 5.50 元/条，每个任务固定扣一次，与时长、分辨率、素材数量无关。\n接口与鉴权\n- 接口地址：https://shenmeai.vip\n- 请求头：Authorization: Bearer 你的API_KEY\n- 创建任务使用 JSON：Content-Type: application/json\n- 查询与下载使用同一账号的 Bearer API Key。\n模型与参数\n- model 为 magi2-1080p。\n- prompt 为视频描述文本，文生视频时必填。\n- duration（或 seconds）为生成秒数，取值 4–30 的整数，原样透传。\n- images / videos / audios 为参考素材 URL 数组，同名原样透传。\n参考素材上限：\n- images：最多 10 张。\n- videos：最多 3 段。\n- audios：最多 3 段。\n上传参考图\n参考素材必须是公开可访问的 HTTPS URL。如图片在本地，请先上传到公开图床，再把地址填入参考图参数；本站不保存参考素材。\n创建任务\nPOST /v1/videos\ncurl https://shenmeai.vip/v1/videos \\\n-H \"Authorization: Bearer $API_KEY\" \\\n-H \"Content-Type: application/json\" \\\n-d '{\n\"model\": \"magi2-1080p\",\n\"prompt\": \"视频描述\",\n\"duration\": 30,\n\"images\": [\"https://example.com/ref1.png\"],\n\"videos\": [],\n\"audios\": []\n}'\n查询任务\nGET /v1/videos/{task_id}\n下载成片\nGET /v1/videos/{task_id}/content\n计费说明\n- 按条计费，每个任务固定扣 5.50 元，与生成时长、分辨率、参考素材数量无关。\n- 任务失败或取消不扣费。","tags":"video,magi2","quota_type":1,"model_ratio":0,"model_price":0.753424657534,"owner_by":"","completion_ratio":0,"enable_groups":["default"],"supported_endpoint_types":["openai","openai-response","openai-response-compact","anthropic","gemini","openai-alpha-search"]},{"model_name":"MiniMax-H3-30S","description":"【成功率 86.0%】 按次计费 · 30 秒 · 比例 16:9 · 9图/3视频/3音频，失败可重试\n\n接口与鉴权\n- 接口地址：https://shenmeai.vip\n- 请求头：Authorization: Bearer 你的API_KEY\n- 创建任务使用 JSON：Content-Type: application/json\n- 查询与下载使用同一账号的 Bearer API Key。\n模型与参数\n- model 为 MiniMax-H3-30S。\n- prompt 为非空视频描述。\n- 本模型固定 30 秒、固定 1184x672（16:9），无需也不能传 duration / resolution / size。\n- ratio 固定为 16:9。\n- reference_images / reference_videos / reference_audios 为公开 HTTP(S) URL 数组。\n- count 固定为 1；不接受 first_frame / last_frame / generation_mode。\n参考素材上限：\n- reference_images：最多 9 张。\n- reference_videos：最多 3 段。\n- reference_audios：最多 3 段。\n上传参考图\n参考素材必须是公开可访问的 HTTPS URL。如图片在本地，请先上传到公开图床，再把地址填入参考图参数；本站不保存参考素材。\n创建任务\nPOST /v1/videos\ncurl https://shenmeai.vip/v1/videos \\\n-H \"Authorization: Bearer $API_KEY\" \\\n-H \"Content-Type: application/json\" \\\n-d '{\n\"model\": \"MiniMax-H3-30S\"\n\"prompt\": \"视频描述\"\n\"ratio\": \"16:9\"\n\"reference_images\": [\"https://example.com/ref-1.png\"]\n}'\n查询和轮询\nGET /v1/videos/{task_id}。保存创建响应中的 id，每 10–15 秒查询；queued 表示排队，in_progress 表示生成中，completed 表示完成，failed 表示失败。查询异常时保留原任务 ID，不重复提交。\ncurl \"https://shenmeai.vip/v1/videos/你的任务ID\" \\\n-H \"Authorization: Bearer $API_KEY\"\n下载\n任务完成后请求 GET /v1/videos/{task_id}/content，使用同一账号的 Bearer API Key。\n查询结果如包含 video_url 和 result_url，可直接使用该地址下载，无需 Authorization；两个字段指向相同视频。地址支持 GET、HEAD 和 Range；expires_at 为链接失效的 Unix 秒时间戳。\ncurl --fail -L \"https://shenmeai.vip/v1/videos/你的任务ID/content\" \\\n-o video.mp4\n若返回 video_archive_pending，按响应的 Retry-After 等待并重试下载。\nPython 完整示例：提交、轮询、下载\n将 API_KEY 环境变量设为自己的本站 API Key；按需修改请求参数。\nimport json\nimport os\nimport time\nfrom urllib.error import HTTPError, URLError\nfrom urllib.parse import quote\nfrom urllib.request import Request, urlopen\nBASE = \"https://shenmeai.vip\"\nAPI_KEY = os.environ[\"API_KEY\"]\nMODEL = \"MiniMax-H3-30S\"\nHEADERS = {\"Authorization\": f\"Bearer {API_KEY}\"}\npayload = {\n}\n# 只提交一次。提交结果不明确时不自动重试。\nrequest = Request(\nf\"{BASE}/v1/videos\"\ndata=json.dumps(payload, ensure_ascii=False).encode(\"utf-8\")\nheaders={**HEADERS, \"Content-Type\": \"application/json\"}\nmethod=\"POST\"\n)\nwith urlopen(request, timeout=720) as response:\ncreated = json.load(response)\ntask_id = created[\"id\"]\nprint(\"任务 ID：\", task_id, flush=True)\ntask_url = f\"{BASE}/v1/videos/{quote(task_id, safe='')}\"\n# 总轮询时间可按需要调整；超时后保留 task_id，稍后继续查询。\ndeadline = time.monotonic() + 3600\nwhile time.monotonic() \u003c deadline:\ntry:\nwith urlopen(Request(task_url, headers=HEADERS), timeout=30) as response:\ntask = json.load(response)\nexcept HTTPError as exc:\nif exc.code == 429 or 500 \u003c= exc.code \u003c 600:\ntime.sleep(15)\ncontinue\nraise\nexcept (URLError, TimeoutError):\nstatus = task.get(\"status\")\nprint(\"状态：\", status, \"进度：\", task.get(\"progress\"), flush=True)\nif status == \"completed\":\nbreak\nif status == \"failed\":\nraise RuntimeError(f\"视频生成失败：{task.get('error')}\")\nelse:\nraise TimeoutError(f\"查询超时，请稍后继续查询任务 {task_id}\")\n# 只重试下载，不重新提交生成。\ndownload_url = f\"{task_url}/content\"\ndownload_deadline = time.monotonic() + 600\nwhile time.monotonic() \u003c download_deadline:\nwith urlopen(Request(download_url, headers=HEADERS), timeout=120) as response:\nwith open(\"video.mp4\", \"wb\") as output:\nwhile True:\nchunk = response.read(1024 * 1024)\nif not chunk:\noutput.write(chunk)\nprint(\"已保存 video.mp4\")\nif exc.code == 503:\nretry_after = exc.headers.get(\"Retry-After\", \"10\")\ntime.sleep(int(retry_after) if retry_after.isdigit() else 10)\ntime.sleep(10)\nraise TimeoutError(f\"视频尚未下载，请稍后继续下载任务 {task_id}\")\n完整配置","tags":"video,h3","quota_type":1,"model_ratio":0,"model_price":0.13698630137,"owner_by":"","completion_ratio":0,"enable_groups":["default"],"supported_endpoint_types":["openai","openai-response","openai-response-compact","anthropic","gemini","openai-alpha-search"],"billing_usage_schema":{"count":{"type":"number","unit":"count","unitLabel":{"en":"request","zh":"条"},"description":{"en":"Generated videos","zh":"生成视频条数"}}}},{"model_name":"nano-banana-2.1","description":"【成功率 71.4%】 nano-banana-2.1\n支持文生图和参考图编辑。1K/2K/4K，最多14张参考图。本站售价：¥0.07/张。\n当前状态\n- 未上架（已下架）：该模型当前不在模型广场展示，接口暂不可用；重新上架前请先补全能力声明（尤其比例支持）。\n- 本卡随模型资料保存；上架即从接口文档显示，下架即隐藏，方便随时增减。\n接口与鉴权\n- 接口地址：https://shenmeai.vip/v1\n- 请求头：Authorization: Bearer 你的API_KEY\n- 请求体使用 JSON：Content-Type: application/json\n- 能力类型：图片生成；创建：POST /v1/images/generations；查询/下载：GET /v1/images/generations/{task_id}\n完整配置\n能力、售价与调用参数以本卡当前记录为准。","tags":"image","quota_type":1,"model_ratio":0,"model_price":0.009589041096,"owner_by":"","completion_ratio":0,"enable_groups":["default"],"supported_endpoint_types":["openai","openai-response","openai-response-compact","anthropic","gemini","openai-alpha-search"],"billing_mode":"tiered_expr","billing_expr":"tier(\"base\", u(\"count\") * 0.009589041096)","billing_usage_schema":{"count":{"type":"number","unit":"count","description":{"en":"Output count","zh":"生成数量"}}}},{"model_name":"gpt-6-sol","description":"GPT-6 Sol：gpt-6-sol\n\nGPT-6 Sol · 1.05M 上下文 · 文本模型。按 Token 计费：输入 2.63 元、输出 13.15 元、缓存读取 0.26 元，每百万 Token。支持流式输出、工具调用与视觉理解。\n\n接口与鉴权\n- 接口地址：https://shenmeai.vip/v1\n- 请求头：Authorization: Bearer 你的API_KEY\n- 请求体使用 JSON：Content-Type: application/json\n\n模型与参数\n- model 为 gpt-6-sol。\n- messages 为对话数组，role 取 system / user / assistant。\n- stream 可选，true 时以 SSE 流式返回。\n- temperature、max_tokens 等标准参数按 OpenAI 兼容协议传入。\n- model 为 gpt-6-sol。\n\n创建对话\nPOST /v1/chat/completions\n\ncurl https://shenmeai.vip/v1/chat/completions \\\n  -H \"Authorization: Bearer $API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"model\": \"gpt-6-sol\",\n  \"messages\": [\n    {\"role\": \"user\", \"content\": \"你好\"}\n  ],\n  \"stream\": false\n}'\n\n计费\n- 按 Token 计费，输入 / 缓存读取 / 输出分别计价，详见开头说明。实际扣费以本站计费配置为准。\n\nPython 完整示例\n\nimport os\nfrom openai import OpenAI\n\nclient = OpenAI(\n    api_key=os.environ[\"API_KEY\"],\n    base_url=\"https://shenmeai.vip/v1\",\n)\n\nresponse = client.chat.completions.create(\n    model=\"gpt-6-sol\",\n    messages=[\n        {\"role\": \"user\", \"content\": \"你好\"},\n    ],\n)\nprint(response.choices[0].message.content)","tags":"text,gpt","quota_type":0,"model_ratio":0.180136986301,"model_price":0,"owner_by":"","completion_ratio":5,"cache_ratio":0.098859315589,"enable_groups":["default"],"supported_endpoint_types":["openai"]},{"model_name":"DB-SD-2.5","description":"【成功率 14.3% ｜ 流量较大时建议错峰使用】 DB-SD-2.5 · 720p · 固定 30 秒 · 按次计费 · 最多 9 张参考图\nDB 通道 Seedance 2.5，按次一口价：每次固定 30 秒成片，720p 输出，费用与素材数量、提示词无关。\n当前状态\n- 已上架：模型广场可见，POST /v1/videos 接口开放。\n- 计费方式与上游模型卡一致：上游按次固定价，本站同样按次计费，不按秒、不按 token。\n接口与鉴权\n- 接口地址：https://shenmeai.vip/v1\n- 请求头：Authorization: Bearer 你的API_KEY\n- 请求体使用 JSON：Content-Type: application/json\n- 能力类型：视频生成；创建：POST /v1/videos；查询/下载：GET /v1/videos/{task_id}、GET /v1/videos/{task_id}/content\n模型与参数\n- model 为 DB-SD-2.5。\n- 时长固定 30 秒，不支持传其他时长；本卡不接受 duration、seconds 参数改写时长。\n- 输出分辨率固定 720p，不支持 480p、1080p、4k 等其他档位。\n- ratio 支持 16:9、9:16、1:1、4:3、3:4、21:9 六种画幅。\n- 不支持参考视频、参考音频，也不支持首帧图与尾帧图。\n参考素材\n- reference_images 最多 9 张，仅接受 HTTPS 直链，需可被上游直接下载。\n计费\n- 按次计费：每次提交固定扣一次，与生成秒数、参考图数量无关。","icon":"Video","tags":"video,seedance","quota_type":1,"model_ratio":0,"model_price":0.493150684932,"owner_by":"","completion_ratio":0,"enable_groups":["default"],"supported_endpoint_types":["openai"],"billing_mode":"tiered_expr","billing_expr":"tier(\"base\", u(\"count\") * 0.493150684932)","billing_usage_schema":{"count":{"type":"number","unit":"count","unitLabel":{"en":"request","zh":"条"}}}},{"model_name":"seedream-5.5","description":"【成功率 74.0%】 文生图与参考图编辑 · 按次计费 · 多比例 · 高分辨率输出\n文生图 · 多比例高分辨率输出 · 按次计费 · 分辨率 1K / 2K · 参考图最多 10 张 · 不支持超分。 本站售价 ¥0.14/次。\n接口与鉴权\n- 接口地址：https://shenmeai.vip/v1\n- 请求头：Authorization: Bearer 你的API_KEY\n- 请求体使用 JSON：Content-Type: application/json\n- 能力类型：图片生成；创建：POST /v1/images/generations；查询/下载：GET /v1/images/generations/{task_id}\n模型与参数\n- model 为 seedream-5.5。\n- prompt 为画面描述文本。\n- resolution 支持 1K、2K。\n- 参考图最多 10 张，传公开可访问的 HTTPS 图片地址。\n- size 可传比例（如 16:9）或像素框（如 2048x1152），两种写法都接受。\n计费\n- 按次计费，每张图记 1 次，本站售价 ¥0.14/次。\n创建示例\ncurl https://shenmeai.vip/v1/images/generations \\\n-H \"Authorization: Bearer $API_KEY\" -H \"Content-Type: application/json\" \\\n-d '{\"model\": \"seedream-5.5\", \"prompt\": \"一只坐在窗台上的猫\", \"resolution\": \"2k\"}'","tags":"image","quota_type":1,"model_ratio":0,"model_price":0.019178082192,"owner_by":"","completion_ratio":0,"enable_groups":["default"],"supported_endpoint_types":["openai","openai-response","openai-response-compact","anthropic","gemini","openai-alpha-search"],"billing_usage_schema":{"count":{"type":"number","unit":"count","description":{"en":"Output count","zh":"生成数量"}}}},{"model_name":"【官转】Minimax-H3-2k","description":"【成功率 93.2%】 2k · 按秒计费 · 4–15 秒 · 比例 16:9/9:16/1:1/4:3/3:4/21:9 · 9图/3视频/3音频\n\n接口与鉴权\n- 接口地址：https://shenmeai.vip\n- 请求头：Authorization: Bearer 你的API_KEY\n- 创建任务使用 JSON：Content-Type: application/json\n- 查询与下载使用同一账号的 Bearer API Key。\n模型与参数\n- model 为 【官转】Minimax-H3-2k。\n- prompt 为非空视频描述。\n- duration（或 seconds）为 4–15 秒的整数，默认 5 秒。\n- ratio 为画面比例，支持 16:9、9:16、1:1、4:3、3:4、21:9。\n- 本卡固定输出 2k，本站已锁定档位：调用方不需要传 resolution，传了也会被强制成本档。\n- images / videos / audios 为公开 HTTP(S) URL 数组，分别对应参考图、参考视频、参考音频。\n- enable_audio / generate_audio 为布尔值，是否生成音频；两者同时出现且值冲突会被拒绝。\n参考素材上限：\n- images：最多 9 张。\n- videos：最多 3 段。\n- audios：最多 3 段。\n上传参考图\n参考素材必须是公开可访问的 HTTPS URL。如图片在本地，请先上传到公开图床，再把地址填入参考图参数；本站不保存参考素材。\n创建任务\nPOST /v1/videos\ncurl https://shenmeai.vip/v1/videos \\\n-H \"Authorization: Bearer $API_KEY\" \\\n-H \"Content-Type: application/json\" \\\n-d '{\n\"model\": \"【官转】Minimax-H3-2k\",\n\"prompt\": \"参考图1中的主体，保持外观一致，主体沿湖边缓慢行走。\",\n\"seconds\": 8,\n\"ratio\": \"16:9\",\n\"resolution\": \"2k\",\n\"images\": [\"https://example.com/ref-1.png\"]\n}'\n查询和轮询\nGET /v1/videos/{task_id}。保存创建响应中的 id，每 10–15 秒查询；queued 表示排队，in_progress 表示生成中，completed 表示完成，failed 表示失败。查询异常时保留原任务 ID，不重复提交。\ncurl \"https://shenmeai.vip/v1/videos/你的任务ID\" \\\n-H \"Authorization: Bearer $API_KEY\"\n下载\n任务完成后请求 GET /v1/videos/{task_id}/content，使用同一账号的 Bearer API Key。\n查询结果如包含 video_url 和 result_url，可直接使用该地址下载，无需 Authorization；两个字段指向相同视频。地址支持 GET、HEAD 和 Range；expires_at 为链接失效的 Unix 秒时间戳。\ncurl --fail -L \"https://shenmeai.vip/v1/videos/你的任务ID/content\" \\\n-H \"Authorization: Bearer $API_KEY\" \\\n-o video.mp4\n若返回 video_archive_pending，按响应的 Retry-After 等待并重试下载。\nPython 完整示例：提交、轮询、下载\n将 API_KEY 环境变量设为自己的本站 API Key；按需修改请求参数。\nimport json\nimport os\nimport time\nfrom urllib.error import HTTPError, URLError\nfrom urllib.parse import quote\nfrom urllib.request import Request, urlopen\nBASE = \"https://shenmeai.vip\"\nAPI_KEY = os.environ[\"API_KEY\"]\nMODEL = \"【官转】Minimax-H3-2k\"\nHEADERS = {\"Authorization\": f\"Bearer {API_KEY}\"}\npayload = {\n\"model\": \"【官转】Minimax-H3-2k\",\n\"prompt\": \"参考图1中的主体，保持外观一致，主体沿湖边缓慢行走。\",\n\"seconds\": 8,\n\"ratio\": \"16:9\",\n\"resolution\": \"2k\",\n\"images\": [\"https://example.com/ref-1.png\"]\n}\n# 只提交一次。提交结果不明确时不自动重试。\nrequest = Request(\nf\"{BASE}/v1/videos\",\ndata=json.dumps(payload, ensure_ascii=False).encode(\"utf-8\"),\nheaders={**HEADERS, \"Content-Type\": \"application/json\"},\nmethod=\"POST\",\n)\nwith urlopen(request, timeout=720) as response:\ncreated = json.load(response)\ntask_id = created[\"id\"]\nprint(\"任务 ID：\", task_id, flush=True)\ntask_url = f\"{BASE}/v1/videos/{quote(task_id, safe='')}\"\n# 总轮询时间可按需要调整；超时后保留 task_id，稍后继续查询。\ndeadline = time.monotonic() + 3600\nwhile time.monotonic() \u003c deadline:\ntry:\nwith urlopen(Request(task_url, headers=HEADERS), timeout=30) as response:\ntask = json.load(response)\nexcept HTTPError as exc:\nif exc.code == 429 or 500 \u003c= exc.code \u003c 600:\ntime.sleep(15)\ncontinue\nraise\nexcept (URLError, TimeoutError):\ntime.sleep(15)\ncontinue\nstatus = task.get(\"status\")\nprint(\"状态：\", status, \"进度：\", task.get(\"progress\"), flush=True)\nif status == \"completed\":\nbreak\nif status == \"failed\":\nraise RuntimeError(f\"视频生成失败：{task.get('error')}\")\ntime.sleep(15)\nelse:\nraise TimeoutError(f\"查询超时，请稍后继续查询任务 {task_id}\")\n# 只重试下载，不重新提交生成。\ndownload_url = f\"{task_url}/content\"\ndownload_deadline = time.monotonic() + 600\nwhile time.monotonic() \u003c download_deadline:\ntry:\nwith urlopen(Request(download_url, headers=HEADERS), timeout=120) as response:\nwith open(\"video.mp4\", \"wb\") as output:\nwhile True:\nchunk = response.read(1024 * 1024)\nif not chunk:\nbreak\noutput.write(chunk)\nprint(\"已保存 video.mp4\")\nbreak\nexcept HTTPError as exc:\nif exc.code == 503:\nretry_after = exc.headers.get(\"Retry-After\", \"10\")\ntime.sleep(int(retry_after) if retry_after.isdigit() else 10)\ncontinue\nraise\nexcept (URLError, TimeoutError):\ntime.sleep(10)\nelse:\nraise TimeoutError(f\"视频尚未下载，请稍后继续下载任务 {task_id}\")","tags":"h3","quota_type":1,"model_ratio":0,"model_price":0.030136986301,"owner_by":"","completion_ratio":0,"enable_groups":["default"],"supported_endpoint_types":["openai"],"billing_mode":"tiered_expr","billing_expr":"tier(\"base\", u(\"seconds\") * 0.030136986301)","billing_usage_schema":{"resolution":{"enum":["768p","2k"],"description":{"en":"Resolution tier","zh":"分辨率档位"}},"seconds":{"type":"number","unit":"second","description":{"en":"Requested duration","zh":"生成时长"}}}},{"model_name":"seedance-2.5-YZ","description":"【成功率 83.0%】 480p / 720p / 1080p 三档 · 按秒计费 · 4–30 秒 · 比例 16:9/9:16/1:1/4:3/3:4/21:9 · 30图/10视频/10音频\n\n接口与鉴权\n- 接口地址：https://shenmeai.vip\n- 请求头：Authorization: Bearer 你的API_KEY\n- 创建任务使用 JSON：Content-Type: application/json\n- 查询与下载使用同一账号的 Bearer API Key。\n模型与参数\n- model 为 seedance-2.5-YZ。\n- prompt 为非空视频描述。\n- duration（或 seconds）为 4–30 秒的整数，不传默认 5 秒。\n- ratio 为画面比例，支持 16:9、9:16、1:1、4:3、3:4、21:9；不传默认 16:9。\n- resolution 为 480p / 720p / 1080p 三档，按档计价；不传按 720p 出片并计费，传其他档位（如 4k）会直接报错。\n- count 固定为 1，不能传其他值；本模型每次只出一条视频。\n- reference_images / reference_videos / reference_audios 为公开 HTTP(S) URL 数组，分别对应参考图（最多 30 张）、参考视频（最多 10 段）、参考音频（最多 10 段）。\n- 不支持 first_frame / last_frame / generation_mode，也不支持视频延长、视频编辑、随机种子、水印开关；不要用 aspect_ratio 代替 ratio。\n- 上游映射：本站字段与上游基本同名，插件负责接口路径、任务查询与下载：prompt / duration / ratio / resolution / reference_images / reference_videos / reference_audios 原样转发到上游 POST /v1/video/generations。分辨率直接决定单价，请按需要的档位传 resolution，本站按实际档位计费；未公开字段（width / height / fps / seed / metadata）不要传。\n参考素材上限：\n- reference_images：最多 30 张。\n- reference_videos：最多 10 段。\n- reference_audios：最多 10 段。\n上传参考图\n参考素材必须是公开可访问的 HTTPS URL。如图片在本地，请先上传到公开图床，再把地址填入参考图参数；本站不保存参考素材。\n创建任务\nPOST /v1/videos\ncurl https://shenmeai.vip/v1/videos \\\n-H \"Authorization: Bearer $API_KEY\" \\\n-H \"Content-Type: application/json\" \\\n-d '{\n\"model\": \"seedance-2.5-YZ\",\n\"prompt\": \"视频描述\",\n\"duration\": 5,\n\"resolution\": \"1080p\",\n\"ratio\": \"16:9\",\n\"reference_images\": [\"https://example.com/ref-1.png\"]\n}'\n查询和轮询\nGET /v1/videos/{task_id}。保存创建响应中的 id，每 10–15 秒查询；queued 表示排队，in_progress 表示生成中，completed 表示完成，failed 表示失败。查询异常时保留原任务 ID，不重复提交。\ncurl \"https://shenmeai.vip/v1/videos/你的任务ID\" \\\n-H \"Authorization: Bearer $API_KEY\"\n下载\n任务完成后请求 GET /v1/videos/{task_id}/content，使用同一账号的 Bearer API Key。\n查询结果如包含 video_url 和 result_url，可直接使用该地址下载，无需 Authorization；两个字段指向相同视频。地址支持 GET、HEAD 和 Range；expires_at 为链接失效的 Unix 秒时间戳。\ncurl --fail -L \"https://shenmeai.vip/v1/videos/你的任务ID/content\" \\\n-H \"Authorization: Bearer $API_KEY\" \\\n-o video.mp4\n若返回 video_archive_pending，按响应的 Retry-After 等待并重试下载。\n计费\n- 按秒计费、按分辨率分档：480p 0.27 元/秒、720p 0.36 元/秒、1080p 0.85 元/秒，费用 = 单价 × 生成秒数，与参考素材数量无关\n\nPython 完整示例：提交、轮询、下载\n将 API_KEY 环境变量设为自己的本站 API Key；按需修改请求参数。\nimport json\nimport os\nimport time\nfrom urllib.error import HTTPError, URLError\nfrom urllib.parse import quote\nfrom urllib.request import Request, urlopen\nBASE = \"https://shenmeai.vip\"\nAPI_KEY = os.environ[\"API_KEY\"]\nMODEL = \"seedance-2.5-YZ\"\nHEADERS = {\"Authorization\": f\"Bearer {API_KEY}\"}\npayload = {\n\"model\": \"seedance-2.5-YZ\",\n\"prompt\": \"视频描述\",\n\"duration\": 5,\n\"resolution\": \"1080p\",\n\"ratio\": \"16:9\",\n\"reference_images\": [\"https://example.com/ref-1.png\"]\n}\n# 只提交一次。提交结果不明确时不自动重试。\nrequest = Request(\nf\"{BASE}/v1/videos\",\ndata=json.dumps(payload, ensure_ascii=False).encode(\"utf-8\"),\nheaders={**HEADERS, \"Content-Type\": \"application/json\"},\nmethod=\"POST\",\n)\nwith urlopen(request, timeout=720) as response:\ncreated = json.load(response)\ntask_id = created[\"id\"]\nprint(\"任务 ID：\", task_id, flush=True)\ntask_url = f\"{BASE}/v1/videos/{quote(task_id, safe='')}\"\n# 总轮询时间可按需要调整；超时后保留 task_id，稍后继续查询。\ndeadline = time.monotonic() + 3600\nwhile time.monotonic() \u003c deadline:\ntry:\nwith urlopen(Request(task_url, headers=HEADERS), timeout=30) as response:\ntask = json.load(response)\nexcept HTTPError as exc:\nif exc.code == 429 or 500 \u003c= exc.code \u003c 600:\ntime.sleep(15)\ncontinue\nraise\nexcept (URLError, TimeoutError):\ntime.sleep(15)\ncontinue\nstatus = task.get(\"status\")\nprint(\"状态：\", status, \"进度：\", task.get(\"progress\"), flush=True)\nif status == \"completed\":\nbreak\nif status == \"failed\":\nraise RuntimeError(f\"视频生成失败：{task.get('error')}\")\ntime.sleep(15)\nelse:\nraise TimeoutError(f\"查询超时，请稍后继续查询任务 {task_id}\")\n# 只重试下载，不重新提交生成。\ndownload_url = f\"{task_url}/content\"\ndownload_deadline = time.monotonic() + 600\nwhile time.monotonic() \u003c download_deadline:\ntry:\nwith urlopen(Request(download_url, headers=HEADERS), timeout=120) as response:\nwith open(\"video.mp4\", \"wb\") as output:\nwhile True:\nchunk = response.read(1024 * 1024)\nif not chunk:\nbreak\noutput.write(chunk)\nprint(\"已保存 video.mp4\")\nbreak\nexcept HTTPError as exc:\nif exc.code == 503:\nretry_after = exc.headers.get(\"Retry-After\", \"10\")\ntime.sleep(int(retry_after) if retry_after.isdigit() else 10)\ncontinue\nraise\nexcept (URLError, TimeoutError):\ntime.sleep(10)\nelse:\nraise TimeoutError(f\"视频尚未下载，请稍后继续下载任务 {task_id}\")","tags":"video,sd2.5","quota_type":1,"model_ratio":0,"model_price":0.03698630137,"owner_by":"","completion_ratio":0,"enable_groups":["default"],"supported_endpoint_types":["openai","openai-response","openai-response-compact","anthropic","gemini","openai-alpha-search"],"billing_mode":"tiered_expr","billing_expr":"u(\"resolution\") == \"480p\" ? tier(\"480p\", u(\"seconds\") * 0.036986301370) : u(\"resolution\") == \"720p\" ? tier(\"720p\", u(\"seconds\") * 0.049315068493) : tier(\"1080p\", u(\"seconds\") * 0.116438356164)","billing_usage_schema":{"resolution":{"enum":["480p","720p","1080p"],"description":{"en":"Output resolution","zh":"输出分辨率"}},"seconds":{"type":"number","unit":"second","description":{"en":"Video duration","zh":"视频时长"}}}},{"model_name":"【官转】Minimax-H3-768p","description":"【成功率 93.2%】 768p · 按秒计费 · 4–15 秒 · 比例 16:9/9:16/1:1/4:3/3:4/21:9 · 9图/3视频/3音频\n\n接口与鉴权\n- 接口地址：https://shenmeai.vip\n- 请求头：Authorization: Bearer 你的API_KEY\n- 创建任务使用 JSON：Content-Type: application/json\n- 查询与下载使用同一账号的 Bearer API Key。\n模型与参数\n- model 为 【官转】Minimax-H3-768p。\n- prompt 为非空视频描述。\n- duration（或 seconds）为 4–15 秒的整数，默认 5 秒。\n- ratio 为画面比例，支持 16:9、9:16、1:1、4:3、3:4、21:9。\n- 本卡固定输出 768p，本站已锁定档位：调用方不需要传 resolution，传了也会被强制成本档。\n- images / videos / audios 为公开 HTTP(S) URL 数组，分别对应参考图、参考视频、参考音频。\n- enable_audio / generate_audio 为布尔值，是否生成音频；两者同时出现且值冲突会被拒绝。\n参考素材上限：\n- images：最多 9 张。\n- videos：最多 3 段。\n- audios：最多 3 段。\n上传参考图\n参考素材必须是公开可访问的 HTTPS URL。如图片在本地，请先上传到公开图床，再把地址填入参考图参数；本站不保存参考素材。\n创建任务\nPOST /v1/videos\ncurl https://shenmeai.vip/v1/videos \\\n-H \"Authorization: Bearer $API_KEY\" \\\n-H \"Content-Type: application/json\" \\\n-d '{\n\"model\": \"【官转】Minimax-H3-768p\",\n\"prompt\": \"参考图1中的主体，保持外观一致，主体沿湖边缓慢行走。\",\n\"seconds\": 8,\n\"ratio\": \"16:9\",\n\"resolution\": \"2k\",\n\"images\": [\"https://example.com/ref-1.png\"]\n}'\n查询和轮询\nGET /v1/videos/{task_id}。保存创建响应中的 id，每 10–15 秒查询；queued 表示排队，in_progress 表示生成中，completed 表示完成，failed 表示失败。查询异常时保留原任务 ID，不重复提交。\ncurl \"https://shenmeai.vip/v1/videos/你的任务ID\" \\\n-H \"Authorization: Bearer $API_KEY\"\n下载\n任务完成后请求 GET /v1/videos/{task_id}/content，使用同一账号的 Bearer API Key。\n查询结果如包含 video_url 和 result_url，可直接使用该地址下载，无需 Authorization；两个字段指向相同视频。地址支持 GET、HEAD 和 Range；expires_at 为链接失效的 Unix 秒时间戳。\ncurl --fail -L \"https://shenmeai.vip/v1/videos/你的任务ID/content\" \\\n-H \"Authorization: Bearer $API_KEY\" \\\n-o video.mp4\n若返回 video_archive_pending，按响应的 Retry-After 等待并重试下载。\nPython 完整示例：提交、轮询、下载\n将 API_KEY 环境变量设为自己的本站 API Key；按需修改请求参数。\nimport json\nimport os\nimport time\nfrom urllib.error import HTTPError, URLError\nfrom urllib.parse import quote\nfrom urllib.request import Request, urlopen\nBASE = \"https://shenmeai.vip\"\nAPI_KEY = os.environ[\"API_KEY\"]\nMODEL = \"【官转】Minimax-H3-768p\"\nHEADERS = {\"Authorization\": f\"Bearer {API_KEY}\"}\npayload = {\n\"model\": \"【官转】Minimax-H3-768p\",\n\"prompt\": \"参考图1中的主体，保持外观一致，主体沿湖边缓慢行走。\",\n\"seconds\": 8,\n\"ratio\": \"16:9\",\n\"resolution\": \"2k\",\n\"images\": [\"https://example.com/ref-1.png\"]\n}\n# 只提交一次。提交结果不明确时不自动重试。\nrequest = Request(\nf\"{BASE}/v1/videos\",\ndata=json.dumps(payload, ensure_ascii=False).encode(\"utf-8\"),\nheaders={**HEADERS, \"Content-Type\": \"application/json\"},\nmethod=\"POST\",\n)\nwith urlopen(request, timeout=720) as response:\ncreated = json.load(response)\ntask_id = created[\"id\"]\nprint(\"任务 ID：\", task_id, flush=True)\ntask_url = f\"{BASE}/v1/videos/{quote(task_id, safe='')}\"\n# 总轮询时间可按需要调整；超时后保留 task_id，稍后继续查询。\ndeadline = time.monotonic() + 3600\nwhile time.monotonic() \u003c deadline:\ntry:\nwith urlopen(Request(task_url, headers=HEADERS), timeout=30) as response:\ntask = json.load(response)\nexcept HTTPError as exc:\nif exc.code == 429 or 500 \u003c= exc.code \u003c 600:\ntime.sleep(15)\ncontinue\nraise\nexcept (URLError, TimeoutError):\ntime.sleep(15)\ncontinue\nstatus = task.get(\"status\")\nprint(\"状态：\", status, \"进度：\", task.get(\"progress\"), flush=True)\nif status == \"completed\":\nbreak\nif status == \"failed\":\nraise RuntimeError(f\"视频生成失败：{task.get('error')}\")\ntime.sleep(15)\nelse:\nraise TimeoutError(f\"查询超时，请稍后继续查询任务 {task_id}\")\n# 只重试下载，不重新提交生成。\ndownload_url = f\"{task_url}/content\"\ndownload_deadline = time.monotonic() + 600\nwhile time.monotonic() \u003c download_deadline:\ntry:\nwith urlopen(Request(download_url, headers=HEADERS), timeout=120) as response:\nwith open(\"video.mp4\", \"wb\") as output:\nwhile True:\nchunk = response.read(1024 * 1024)\nif not chunk:\nbreak\noutput.write(chunk)\nprint(\"已保存 video.mp4\")\nbreak\nexcept HTTPError as exc:\nif exc.code == 503:\nretry_after = exc.headers.get(\"Retry-After\", \"10\")\ntime.sleep(int(retry_after) if retry_after.isdigit() else 10)\ncontinue\nraise\nexcept (URLError, TimeoutError):\ntime.sleep(10)\nelse:\nraise TimeoutError(f\"视频尚未下载，请稍后继续下载任务 {task_id}\")","tags":"h3","quota_type":1,"model_ratio":0,"model_price":0.016438356164,"owner_by":"","completion_ratio":0,"enable_groups":["default"],"supported_endpoint_types":["openai"],"billing_mode":"tiered_expr","billing_expr":"tier(\"base\", u(\"seconds\") * 0.016438356164)","billing_usage_schema":{"resolution":{"enum":["768p","2k"],"description":{"en":"Resolution tier","zh":"分辨率档位"}},"seconds":{"type":"number","unit":"second","description":{"en":"Requested duration","zh":"生成时长"}}}},{"model_name":"Seedance 2.5-满血满参","description":"720p / 1080p 两档 · 按秒计费 · 4–30 秒 · 比例 16:9/9:16/1:1/4:3/3:4/21:9 · 30图/10音频\nSeedance 2.5 满血满参（满参通道），按输出分辨率分档、按秒计费；仅提供 720p 与 1080p 两档，不提供 480p 与 4k。\n当前状态\n- 已上架：模型广场可见，POST /v1/videos 接口开放。\n- 计费方式：按秒计费，不按条、也不按 token。\n接口与鉴权\n- 接口地址：https://shenmeai.vip/v1\n- 请求头：Authorization: Bearer 你的API_KEY\n- 请求体使用 JSON：Content-Type: application/json\n- 能力类型：视频生成；创建：POST /v1/videos；查询/下载：GET /v1/videos/{task_id}、GET /v1/videos/{task_id}/content\n模型与参数\n- model 为 Seedance 2.5-满血满参。\n- resolution 为 720p 或 1080p，必传；不传或传 480p、4k 会直接报错，本站不按低价档出片。\n- duration（或 seconds）为 4–30 秒的整数。\n- ratio 支持 16:9、9:16、1:1、4:3、3:4、21:9。\n- 本站接受 size（如 1280x720、1920x1080）表示画幅，并与 resolution 等价换算计价；建议优先传 resolution。\n- 不支持 first_frame / last_frame / generation_mode，不支持视频延长与视频编辑。\n参考素材\n- 使用 content 数组传入参考素材，不支持 reference_images / reference_audios 平铺字段。\n- content 必须包含至少一个文本项 type=\"text\"；参考图使用 type=\"image_url\"、role=\"reference_image\"、image_url={\"url\":\"...\"}；参考音频使用 type=\"audio_url\"、role=\"reference_audio\"、audio_url={\"url\":\"...\"}。\n- 参考图最多 30 张、参考音频最多 10 段，均需可直接下载的公网 HTTP(S) 链接。\n- 不支持参考视频（本通道该能力未开放）。\n参考素材示例：\n\"content\": [\n  {\"type\":\"text\",\"text\":\"视频描述\"},\n  {\"type\":\"image_url\",\"role\":\"reference_image\",\"image_url\":{\"url\":\"https://example.com/ref.png\"}},\n  {\"type\":\"audio_url\",\"role\":\"reference_audio\",\"audio_url\":{\"url\":\"https://example.com/ref.mp3\"}}\n]\n计费\n- 按秒计费、按分辨率分档：720p 0.45 元/秒、1080p 1.20 元/秒，费用 = 单价 × 生成秒数，与参考图、参考音频数量无关。","icon":"Video","tags":"video,seedance","quota_type":1,"model_ratio":0,"model_price":0.061643835616,"owner_by":"","completion_ratio":0,"enable_groups":["default"],"supported_endpoint_types":["openai","openai-response","openai-response-compact","anthropic","gemini","openai-alpha-search"],"billing_mode":"tiered_expr","billing_expr":"u(\"resolution\") == \"720p\" ? tier(\"720p\", u(\"seconds\") * 0.061643835616) : tier(\"1080p\", u(\"seconds\") * 0.164383561644)","billing_usage_schema":{"resolution":{"enum":["720p","1080p"],"description":{"en":"Output resolution","zh":"输出分辨率"}},"seconds":{"type":"number","unit":"second","description":{"en":"Requested duration","zh":"生成时长"}}}},{"model_name":"私seadanco2.5-720","description":"【成功率 34.8%】 720p · 按秒计费 · 5–30 秒 · 30图/10视频/10音频 · 比例 16:9/9:16/1:1\n\n接口与鉴权\n- 接口地址：https://shenmeai.vip\n- 请求头：Authorization: Bearer 你的API_KEY\n- 创建任务使用 JSON：Content-Type: application/json\n- 查询与下载使用同一账号的 Bearer API Key。\n模型与参数\n- model 为 私seadanco2.5-720。\n- prompt 为视频描述文本。\n- resolution 为 720p。\n- seconds（或 duration）为 5–30 秒。\n- ratio 为画面比例，按模型支持值传入（常用 16:9 / 9:16 / 1:1）。\n- images 为公开 HTTP(S) URL 数组，最多 30 张参考图。\n- videos 为公开 HTTP(S) URL 数组，最多 10 段参考视频。\n- audios 为公开 HTTP(S) URL 数组，最多 10 段参考音频。\n参考素材上限：\n- images：最多 30 张参考图。\n- videos：最多 10 段参考视频。\n- audios：最多 10 段参考音频。\n上传参考图\n参考素材必须是公开可访问的 HTTPS URL。如图片在本地，请先上传到公开图床，再把地址填入参考图参数；本站不保存参考素材。\n创建任务\nPOST /v1/videos\ncurl https://shenmeai.vip/v1/videos \\\n-H \"Authorization: Bearer $API_KEY\" \\\n-H \"Content-Type: application/json\" \\\n-d '{\n\"model\": \"私seadanco2.5-720\"\n\"prompt\": \"视频描述\"\n\"seconds\": 5\n}'\n查询和轮询\nGET /v1/videos/{task_id}。保存创建响应中的 id，每 10–15 秒查询；queued 表示排队，in_progress 表示生成中，completed 表示完成，failed 表示失败。查询异常时保留原任务 ID，不重复提交。\ncurl \"https://shenmeai.vip/v1/videos/你的任务ID\" \\\n-H \"Authorization: Bearer $API_KEY\"\n下载\n任务完成后请求 GET /v1/videos/{task_id}/content，使用同一账号的 Bearer API Key。\n查询结果如包含 video_url 和 result_url，可直接使用该地址下载，无需 Authorization；两个字段指向相同视频。地址支持 GET、HEAD 和 Range；expires_at 为链接失效的 Unix 秒时间戳。\ncurl --fail -L \"https://shenmeai.vip/v1/videos/你的任务ID/content\" \\\n-o video.mp4\n若返回 video_archive_pending，按响应的 Retry-After 等待并重试下载。\nPython 完整示例：提交、轮询、下载\n将 API_KEY 环境变量设为自己的本站 API Key；按需修改请求参数。\nimport json\nimport os\nimport time\nfrom urllib.error import HTTPError, URLError\nfrom urllib.parse import quote\nfrom urllib.request import Request, urlopen\nBASE = \"https://shenmeai.vip\"\nAPI_KEY = os.environ[\"API_KEY\"]\nMODEL = \"私seadanco2.5-720\"\nHEADERS = {\"Authorization\": f\"Bearer {API_KEY}\"}\npayload = {\n}\n# 只提交一次。提交结果不明确时不自动重试。\nrequest = Request(\nf\"{BASE}/v1/videos\"\ndata=json.dumps(payload, ensure_ascii=False).encode(\"utf-8\")\nheaders={**HEADERS, \"Content-Type\": \"application/json\"}\nmethod=\"POST\"\n)\nwith urlopen(request, timeout=720) as response:\ncreated = json.load(response)\ntask_id = created[\"id\"]\nprint(\"任务 ID：\", task_id, flush=True)\ntask_url = f\"{BASE}/v1/videos/{quote(task_id, safe='')}\"\n# 总轮询时间可按需要调整；超时后保留 task_id，稍后继续查询。\ndeadline = time.monotonic() + 3600\nwhile time.monotonic() \u003c deadline:\ntry:\nwith urlopen(Request(task_url, headers=HEADERS), timeout=30) as response:\ntask = json.load(response)\nexcept HTTPError as exc:\nif exc.code == 429 or 500 \u003c= exc.code \u003c 600:\ntime.sleep(15)\ncontinue\nraise\nexcept (URLError, TimeoutError):\nstatus = task.get(\"status\")\nprint(\"状态：\", status, \"进度：\", task.get(\"progress\"), flush=True)\nif status == \"completed\":\nbreak\nif status == \"failed\":\nraise RuntimeError(f\"视频生成失败：{task.get('error')}\")\nelse:\nraise TimeoutError(f\"查询超时，请稍后继续查询任务 {task_id}\")\n# 只重试下载，不重新提交生成。\ndownload_url = f\"{task_url}/content\"\ndownload_deadline = time.monotonic() + 600\nwhile time.monotonic() \u003c download_deadline:\nwith urlopen(Request(download_url, headers=HEADERS), timeout=120) as response:\nwith open(\"video.mp4\", \"wb\") as output:\nwhile True:\nchunk = response.read(1024 * 1024)\nif not chunk:\noutput.write(chunk)\nprint(\"已保存 video.mp4\")\nif exc.code == 503:\nretry_after = exc.headers.get(\"Retry-After\", \"10\")\ntime.sleep(int(retry_after) if retry_after.isdigit() else 10)\ntime.sleep(10)\nraise TimeoutError(f\"视频尚未下载，请稍后继续下载任务 {task_id}\")\n完整配置","tags":"video,sd2.5","quota_type":1,"model_ratio":0,"model_price":0.041095890411,"owner_by":"","completion_ratio":0,"enable_groups":["default"],"supported_endpoint_types":["openai","openai-response","openai-response-compact","anthropic","gemini","openai-alpha-search"],"billing_mode":"tiered_expr","billing_expr":"tier(\"base\", u(\"seconds\") * 0.041095890411)","billing_usage_schema":{"seconds":{"type":"number","unit":"second","description":{"en":"Requested duration","zh":"生成时长"}}}},{"model_name":"BBseadanco2.5-720","description":"【成功率 68.2%】 720p · 按秒计费 · 5–30 秒 · 30图/10视频/10音频 · 比例 16:9/9:16/1:1\n\n接口与鉴权\n- 接口地址：https://shenmeai.vip\n- 请求头：Authorization: Bearer 你的API_KEY\n- 创建任务使用 JSON：Content-Type: application/json\n- 查询与下载使用同一账号的 Bearer API Key。\n模型与参数\n- model 为 BBseadanco2.5-720。\n- prompt 为视频描述文本。\n- resolution 为 720p。\n- seconds（或 duration）为 5–30 秒。\n- ratio 为画面比例，按模型支持值传入（常用 16:9 / 9:16 / 1:1）。\n- images 为公开 HTTP(S) URL 数组，最多 30 张参考图。\n- videos 为公开 HTTP(S) URL 数组，最多 10 段参考视频。\n- audios 为公开 HTTP(S) URL 数组，最多 10 段参考音频。\n参考素材上限：\n- images：最多 30 张参考图。\n- videos：最多 10 段参考视频。\n- audios：最多 10 段参考音频。\n上传参考图\n参考素材必须是公开可访问的 HTTPS URL。如图片在本地，请先上传到公开图床，再把地址填入参考图参数；本站不保存参考素材。\n创建任务\nPOST /v1/videos\ncurl https://shenmeai.vip/v1/videos \\\n-H \"Authorization: Bearer $API_KEY\" \\\n-H \"Content-Type: application/json\" \\\n-d '{\n\"model\": \"BBseadanco2.5-720\"\n\"prompt\": \"视频描述\"\n\"seconds\": 5\n}'\n查询和轮询\nGET /v1/videos/{task_id}。保存创建响应中的 id，每 10–15 秒查询；queued 表示排队，in_progress 表示生成中，completed 表示完成，failed 表示失败。查询异常时保留原任务 ID，不重复提交。\ncurl \"https://shenmeai.vip/v1/videos/你的任务ID\" \\\n-H \"Authorization: Bearer $API_KEY\"\n下载\n任务完成后请求 GET /v1/videos/{task_id}/content，使用同一账号的 Bearer API Key。\n查询结果如包含 video_url 和 result_url，可直接使用该地址下载，无需 Authorization；两个字段指向相同视频。地址支持 GET、HEAD 和 Range；expires_at 为链接失效的 Unix 秒时间戳。\ncurl --fail -L \"https://shenmeai.vip/v1/videos/你的任务ID/content\" \\\n-o video.mp4\n若返回 video_archive_pending，按响应的 Retry-After 等待并重试下载。\nPython 完整示例：提交、轮询、下载\n将 API_KEY 环境变量设为自己的本站 API Key；按需修改请求参数。\nimport json\nimport os\nimport time\nfrom urllib.error import HTTPError, URLError\nfrom urllib.parse import quote\nfrom urllib.request import Request, urlopen\nBASE = \"https://shenmeai.vip\"\nAPI_KEY = os.environ[\"API_KEY\"]\nMODEL = \"BBseadanco2.5-720\"\nHEADERS = {\"Authorization\": f\"Bearer {API_KEY}\"}\npayload = {\n}\n# 只提交一次。提交结果不明确时不自动重试。\nrequest = Request(\nf\"{BASE}/v1/videos\"\ndata=json.dumps(payload, ensure_ascii=False).encode(\"utf-8\")\nheaders={**HEADERS, \"Content-Type\": \"application/json\"}\nmethod=\"POST\"\n)\nwith urlopen(request, timeout=720) as response:\ncreated = json.load(response)\ntask_id = created[\"id\"]\nprint(\"任务 ID：\", task_id, flush=True)\ntask_url = f\"{BASE}/v1/videos/{quote(task_id, safe='')}\"\n# 总轮询时间可按需要调整；超时后保留 task_id，稍后继续查询。\ndeadline = time.monotonic() + 3600\nwhile time.monotonic() \u003c deadline:\ntry:\nwith urlopen(Request(task_url, headers=HEADERS), timeout=30) as response:\ntask = json.load(response)\nexcept HTTPError as exc:\nif exc.code == 429 or 500 \u003c= exc.code \u003c 600:\ntime.sleep(15)\ncontinue\nraise\nexcept (URLError, TimeoutError):\nstatus = task.get(\"status\")\nprint(\"状态：\", status, \"进度：\", task.get(\"progress\"), flush=True)\nif status == \"completed\":\nbreak\nif status == \"failed\":\nraise RuntimeError(f\"视频生成失败：{task.get('error')}\")\nelse:\nraise TimeoutError(f\"查询超时，请稍后继续查询任务 {task_id}\")\n# 只重试下载，不重新提交生成。\ndownload_url = f\"{task_url}/content\"\ndownload_deadline = time.monotonic() + 600\nwhile time.monotonic() \u003c download_deadline:\nwith urlopen(Request(download_url, headers=HEADERS), timeout=120) as response:\nwith open(\"video.mp4\", \"wb\") as output:\nwhile True:\nchunk = response.read(1024 * 1024)\nif not chunk:\noutput.write(chunk)\nprint(\"已保存 video.mp4\")\nif exc.code == 503:\nretry_after = exc.headers.get(\"Retry-After\", \"10\")\ntime.sleep(int(retry_after) if retry_after.isdigit() else 10)\ntime.sleep(10)\nraise TimeoutError(f\"视频尚未下载，请稍后继续下载任务 {task_id}\")\n完整配置","tags":"video,sd2.5","quota_type":1,"model_ratio":0,"model_price":0.058904109589,"owner_by":"","completion_ratio":0,"enable_groups":["default"],"supported_endpoint_types":["openai","openai-response","openai-response-compact","anthropic","gemini","openai-alpha-search"],"billing_mode":"tiered_expr","billing_expr":"tier(\"base\", u(\"seconds\") * 0.058904109589)","billing_usage_schema":{"seconds":{"type":"number","unit":"second","description":{"en":"Requested duration","zh":"生成时长"}}}},{"model_name":"全天seedance2.5","description":"【成功率 63.6%】 720p · 按次计费 · 5–30 秒 · 30图/10视频/10音频 · 比例 16:9/9:16/1:1，失败可重试\n\n接口与鉴权\n- 接口地址：https://shenmeai.vip\n- 请求头：Authorization: Bearer 你的API_KEY\n- 创建任务使用 JSON：Content-Type: application/json\n- 查询与下载使用同一账号的 Bearer API Key。\n模型与参数\n- model 为 全天seedance2.5。\n- prompt 为视频描述文本。\n- resolution 为 720p。\n- seconds（或 duration）为 5–30 秒。\n- ratio 为画面比例，按模型支持值传入（常用 16:9 / 9:16 / 1:1）。\n- images 为公开 HTTP(S) URL 数组，最多 30 张参考图。\n- videos 为公开 HTTP(S) URL 数组，最多 10 段参考视频。\n- audios 为公开 HTTP(S) URL 数组，最多 10 段参考音频。\n参考素材上限：\n- images：最多 30 张参考图。\n- videos：最多 10 段参考视频。\n- audios：最多 10 段参考音频。\n上传参考图\n参考素材必须是公开可访问的 HTTPS URL。如图片在本地，请先上传到公开图床，再把地址填入参考图参数；本站不保存参考素材。\n创建任务\nPOST /v1/videos\ncurl https://shenmeai.vip/v1/videos \\\n-H \"Authorization: Bearer $API_KEY\" \\\n-H \"Content-Type: application/json\" \\\n-d '{\n\"model\": \"全天seedance2.5\"\n\"prompt\": \"视频描述\"\n\"seconds\": 5\n}'\n查询和轮询\nGET /v1/videos/{task_id}。保存创建响应中的 id，每 10–15 秒查询；queued 表示排队，in_progress 表示生成中，completed 表示完成，failed 表示失败。查询异常时保留原任务 ID，不重复提交。\ncurl \"https://shenmeai.vip/v1/videos/你的任务ID\" \\\n-H \"Authorization: Bearer $API_KEY\"\n下载\n任务完成后请求 GET /v1/videos/{task_id}/content，使用同一账号的 Bearer API Key。\n查询结果如包含 video_url 和 result_url，可直接使用该地址下载，无需 Authorization；两个字段指向相同视频。地址支持 GET、HEAD 和 Range；expires_at 为链接失效的 Unix 秒时间戳。\ncurl --fail -L \"https://shenmeai.vip/v1/videos/你的任务ID/content\" \\\n-o video.mp4\n若返回 video_archive_pending，按响应的 Retry-After 等待并重试下载。\nPython 完整示例：提交、轮询、下载\n将 API_KEY 环境变量设为自己的本站 API Key；按需修改请求参数。\nimport json\nimport os\nimport time\nfrom urllib.error import HTTPError, URLError\nfrom urllib.parse import quote\nfrom urllib.request import Request, urlopen\nBASE = \"https://shenmeai.vip\"\nAPI_KEY = os.environ[\"API_KEY\"]\nMODEL = \"全天seedance2.5\"\nHEADERS = {\"Authorization\": f\"Bearer {API_KEY}\"}\npayload = {\n}\n# 只提交一次。提交结果不明确时不自动重试。\nrequest = Request(\nf\"{BASE}/v1/videos\"\ndata=json.dumps(payload, ensure_ascii=False).encode(\"utf-8\")\nheaders={**HEADERS, \"Content-Type\": \"application/json\"}\nmethod=\"POST\"\n)\nwith urlopen(request, timeout=720) as response:\ncreated = json.load(response)\ntask_id = created[\"id\"]\nprint(\"任务 ID：\", task_id, flush=True)\ntask_url = f\"{BASE}/v1/videos/{quote(task_id, safe='')}\"\n# 总轮询时间可按需要调整；超时后保留 task_id，稍后继续查询。\ndeadline = time.monotonic() + 3600\nwhile time.monotonic() \u003c deadline:\ntry:\nwith urlopen(Request(task_url, headers=HEADERS), timeout=30) as response:\ntask = json.load(response)\nexcept HTTPError as exc:\nif exc.code == 429 or 500 \u003c= exc.code \u003c 600:\ntime.sleep(15)\ncontinue\nraise\nexcept (URLError, TimeoutError):\nstatus = task.get(\"status\")\nprint(\"状态：\", status, \"进度：\", task.get(\"progress\"), flush=True)\nif status == \"completed\":\nbreak\nif status == \"failed\":\nraise RuntimeError(f\"视频生成失败：{task.get('error')}\")\nelse:\nraise TimeoutError(f\"查询超时，请稍后继续查询任务 {task_id}\")\n# 只重试下载，不重新提交生成。\ndownload_url = f\"{task_url}/content\"\ndownload_deadline = time.monotonic() + 600\nwhile time.monotonic() \u003c download_deadline:\nwith urlopen(Request(download_url, headers=HEADERS), timeout=120) as response:\nwith open(\"video.mp4\", \"wb\") as output:\nwhile True:\nchunk = response.read(1024 * 1024)\nif not chunk:\noutput.write(chunk)\nprint(\"已保存 video.mp4\")\nif exc.code == 503:\nretry_after = exc.headers.get(\"Retry-After\", \"10\")\ntime.sleep(int(retry_after) if retry_after.isdigit() else 10)\ntime.sleep(10)\nraise TimeoutError(f\"视频尚未下载，请稍后继续下载任务 {task_id}\")\n完整配置","tags":"sd2.5","quota_type":1,"model_ratio":0,"model_price":0.767123287671,"owner_by":"","completion_ratio":0,"enable_groups":["default"],"supported_endpoint_types":["openai","openai-response","openai-response-compact","anthropic","gemini","openai-alpha-search"],"billing_usage_schema":{"count":{"type":"number","unit":"count","unitLabel":{"en":"request","zh":"次"},"description":{"en":"Generated videos","zh":"生成视频次数"}}}},{"model_name":"Seedance2.5-满参720-萤火虫","description":"【成功率 93.0%】 720p · 按次计费 · 5–30 秒 · 比例 1:1/3:4/4:3/4:5/5:4/9:16/9:21/16:9/21:9 · 30图/10视频/10音频，失败可重试\n\n接口与鉴权\n- 接口地址：https://shenmeai.vip\n- 请求头：Authorization: Bearer 你的API_KEY\n- 创建任务使用 JSON：Content-Type: application/json\n- 查询与下载使用同一账号的 Bearer API Key。\n模型与参数\n- model 为 Seedance2.5-满参720-萤火虫。\n- prompt 为非空视频描述。\n- duration（或 seconds）为 5–30 秒的整数。\n- resolution 为 720p。\n- ratio 为画面比例，支持 1:1、3:4、4:3、4:5、5:4、9:16、9:21、16:9、21:9。\n- reference_images / reference_videos / reference_audios 为公开 HTTP(S) URL 数组，分别对应参考图、参考视频、参考音频。\n- count 固定为 1；不接受 first_frame / last_frame / generation_mode。\n参考素材上限：\n- reference_images：最多 30 张。\n- reference_videos：最多 10 段。\n- reference_audios：最多 10 段。\n上传参考图\n参考素材必须是公开可访问的 HTTPS URL。如图片在本地，请先上传到公开图床，再把地址填入参考图参数；本站不保存参考素材。\n创建任务\nPOST /v1/videos\ncurl https://shenmeai.vip/v1/videos \\\n-H \"Authorization: Bearer $API_KEY\" \\\n-H \"Content-Type: application/json\" \\\n-d '{\n\"model\": \"Seedance2.5-满参720-萤火虫\",\n\"prompt\": \"视频描述\"\n\"duration\": 5\n\"resolution\": \"720p\"\n\"ratio\": \"16:9\"\n\"reference_images\": [\"https://example.com/ref-1.png\"]\n}'\n查询和轮询\nGET /v1/videos/{task_id}。保存创建响应中的 id，每 10–15 秒查询；queued 表示排队，in_progress 表示生成中，completed 表示完成，failed 表示失败。查询异常时保留原任务 ID，不重复提交。\ncurl \"https://shenmeai.vip/v1/videos/你的任务ID\" \\\n-H \"Authorization: Bearer $API_KEY\"\n下载\n任务完成后请求 GET /v1/videos/{task_id}/content，使用同一账号的 Bearer API Key。\n查询结果如包含 video_url 和 result_url，可直接使用该地址下载，无需 Authorization；两个字段指向相同视频。地址支持 GET、HEAD 和 Range；expires_at 为链接失效的 Unix 秒时间戳。\ncurl --fail -L \"https://shenmeai.vip/v1/videos/你的任务ID/content\" \\\n-o video.mp4\n若返回 video_archive_pending，按响应的 Retry-After 等待并重试下载。\nPython 完整示例：提交、轮询、下载\n将 API_KEY 环境变量设为自己的本站 API Key；按需修改请求参数。\nimport json\nimport os\nimport time\nfrom urllib.error import HTTPError, URLError\nfrom urllib.parse import quote\nfrom urllib.request import Request, urlopen\nBASE = \"https://shenmeai.vip\"\nAPI_KEY = os.environ[\"API_KEY\"]\nHEADERS = {\"Authorization\": f\"Bearer {API_KEY}\"}\npayload = {\n}\n# 只提交一次。提交结果不明确时不自动重试。\nrequest = Request(\nf\"{BASE}/v1/videos\"\ndata=json.dumps(payload, ensure_ascii=False).encode(\"utf-8\")\nheaders={**HEADERS, \"Content-Type\": \"application/json\"}\nmethod=\"POST\"\n)\nwith urlopen(request, timeout=720) as response:\ncreated = json.load(response)\ntask_id = created[\"id\"]\nprint(\"任务 ID：\", task_id, flush=True)\ntask_url = f\"{BASE}/v1/videos/{quote(task_id, safe='')}\"\n# 总轮询时间可按需要调整；超时后保留 task_id，稍后继续查询。\ndeadline = time.monotonic() + 3600\nwhile time.monotonic() \u003c deadline:\ntry:\nwith urlopen(Request(task_url, headers=HEADERS), timeout=30) as response:\ntask = json.load(response)\nexcept HTTPError as exc:\nif exc.code == 429 or 500 \u003c= exc.code \u003c 600:\ntime.sleep(15)\ncontinue\nraise\nexcept (URLError, TimeoutError):\nstatus = task.get(\"status\")\nprint(\"状态：\", status, \"进度：\", task.get(\"progress\"), flush=True)\nif status == \"completed\":\nbreak\nif status == \"failed\":\nraise RuntimeError(f\"视频生成失败：{task.get('error')}\")\nelse:\nraise TimeoutError(f\"查询超时，请稍后继续查询任务 {task_id}\")\n# 只重试下载，不重新提交生成。\ndownload_url = f\"{task_url}/content\"\ndownload_deadline = time.monotonic() + 600\nwhile time.monotonic() \u003c download_deadline:\nwith urlopen(Request(download_url, headers=HEADERS), timeout=120) as response:\nwith open(\"video.mp4\", \"wb\") as output:\nwhile True:\nchunk = response.read(1024 * 1024)\nif not chunk:\noutput.write(chunk)\nprint(\"已保存 video.mp4\")\nif exc.code == 503:\nretry_after = exc.headers.get(\"Retry-After\", \"10\")\ntime.sleep(int(retry_after) if retry_after.isdigit() else 10)\ntime.sleep(10)\nraise TimeoutError(f\"视频尚未下载，请稍后继续下载任务 {task_id}\")\n完整配置","tags":"video,sd2.5","quota_type":1,"model_ratio":0,"model_price":0.697260273973,"owner_by":"","completion_ratio":0,"enable_groups":["default"],"supported_endpoint_types":["openai","openai-response","openai-response-compact","anthropic","gemini","openai-alpha-search"],"billing_usage_schema":{"count":{"type":"number","unit":"count","unitLabel":{"en":"request","zh":"条"},"description":{"en":"Generated videos","zh":"生成视频条数"}},"resolution":{"enum":["720p"],"description":{"en":"Output resolution","zh":"输出分辨率"}}}},{"model_name":"Wan-3-YZ-720p","description":"【成功率 100.0%】 720p · 按秒计费 · 2–30 秒 · 比例 16:9/9:16/1:1/4:3/3:4/21:9/9:21 · 10图/5视频/5音频\n\n接口与鉴权\n- 接口地址：https://shenmeai.vip\n- 请求头：Authorization: Bearer 你的API_KEY\n- 创建任务使用 JSON：Content-Type: application/json\n- 查询与下载使用同一账号的 Bearer API Key。\n模型与参数\n- model 为 Wan-3-YZ-720p。\n- prompt 为非空视频描述。\n- duration（或 seconds）为 2–30 秒的整数。\n- ratio 为画面比例，支持 16:9、9:16、1:1、4:3、3:4、21:9、9:21。\n- 本卡固定输出 720p，本站已锁定档位：调用方不需要传 resolution，传了也会被强制成本档。\n- reference_images / reference_videos / reference_audios 为公开 HTTP(S) URL 数组，分别对应参考图、参考视频、参考音频。\n参考素材上限：\n- reference_images：最多 10 张。\n- reference_videos：最多 5 段。\n- reference_audios：最多 5 段。\n上传参考图\n参考素材必须是公开可访问的 HTTPS URL。如图片在本地，请先上传到公开图床，再把地址填入参考图参数；本站不保存参考素材。\n创建任务\nPOST /v1/videos\ncurl https://shenmeai.vip/v1/videos \\\n-H \"Authorization: Bearer $API_KEY\" \\\n-H \"Content-Type: application/json\" \\\n-d '{\n\"model\": \"Wan-3-YZ-720p\",\n\"prompt\": \"视频描述\",\n\"duration\": 2,\n\"resolution\": \"720p\",\n\"ratio\": \"16:9\",\n\"reference_images\": [\"https://example.com/ref-1.png\"]\n}'\n查询和轮询\nGET /v1/videos/{task_id}。保存创建响应中的 id，每 10–15 秒查询；queued 表示排队，in_progress 表示生成中，completed 表示完成，failed 表示失败。查询异常时保留原任务 ID，不重复提交。\ncurl \"https://shenmeai.vip/v1/videos/你的任务ID\" \\\n-H \"Authorization: Bearer $API_KEY\"\n下载\n任务完成后请求 GET /v1/videos/{task_id}/content，使用同一账号的 Bearer API Key。\n查询结果如包含 video_url 和 result_url，可直接使用该地址下载，无需 Authorization；两个字段指向相同视频。地址支持 GET、HEAD 和 Range；expires_at 为链接失效的 Unix 秒时间戳。\ncurl --fail -L \"https://shenmeai.vip/v1/videos/你的任务ID/content\" \\\n-H \"Authorization: Bearer $API_KEY\" \\\n-o video.mp4\n若返回 video_archive_pending，按响应的 Retry-After 等待并重试下载。\nPython 完整示例：提交、轮询、下载\n将 API_KEY 环境变量设为自己的本站 API Key；按需修改请求参数。\nimport json\nimport os\nimport time\nfrom urllib.error import HTTPError, URLError\nfrom urllib.parse import quote\nfrom urllib.request import Request, urlopen\nBASE = \"https://shenmeai.vip\"\nAPI_KEY = os.environ[\"API_KEY\"]\nMODEL = \"Wan-3-YZ-720p\"\nHEADERS = {\"Authorization\": f\"Bearer {API_KEY}\"}\npayload = {\n\"model\": \"Wan-3-YZ-720p\",\n\"prompt\": \"视频描述\",\n\"duration\": 2,\n\"resolution\": \"720p\",\n\"ratio\": \"16:9\",\n\"reference_images\": [\"https://example.com/ref-1.png\"]\n}\n# 只提交一次。提交结果不明确时不自动重试。\nrequest = Request(\nf\"{BASE}/v1/videos\",\ndata=json.dumps(payload, ensure_ascii=False).encode(\"utf-8\"),\nheaders={**HEADERS, \"Content-Type\": \"application/json\"},\nmethod=\"POST\",\n)\nwith urlopen(request, timeout=720) as response:\ncreated = json.load(response)\ntask_id = created[\"id\"]\nprint(\"任务 ID：\", task_id, flush=True)\ntask_url = f\"{BASE}/v1/videos/{quote(task_id, safe='')}\"\n# 总轮询时间可按需要调整；超时后保留 task_id，稍后继续查询。\ndeadline = time.monotonic() + 3600\nwhile time.monotonic() \u003c deadline:\ntry:\nwith urlopen(Request(task_url, headers=HEADERS), timeout=30) as response:\ntask = json.load(response)\nexcept HTTPError as exc:\nif exc.code == 429 or 500 \u003c= exc.code \u003c 600:\ntime.sleep(15)\ncontinue\nraise\nexcept (URLError, TimeoutError):\ntime.sleep(15)\ncontinue\nstatus = task.get(\"status\")\nprint(\"状态：\", status, \"进度：\", task.get(\"progress\"), flush=True)\nif status == \"completed\":\nbreak\nif status == \"failed\":\nraise RuntimeError(f\"视频生成失败：{task.get('error')}\")\ntime.sleep(15)\nelse:\nraise TimeoutError(f\"查询超时，请稍后继续查询任务 {task_id}\")\n# 只重试下载，不重新提交生成。\ndownload_url = f\"{task_url}/content\"\ndownload_deadline = time.monotonic() + 600\nwhile time.monotonic() \u003c download_deadline:\ntry:\nwith urlopen(Request(download_url, headers=HEADERS), timeout=120) as response:\nwith open(\"video.mp4\", \"wb\") as output:\nwhile True:\nchunk = response.read(1024 * 1024)\nif not chunk:\nbreak\noutput.write(chunk)\nprint(\"已保存 video.mp4\")\nbreak\nexcept HTTPError as exc:\nif exc.code == 503:\nretry_after = exc.headers.get(\"Retry-After\", \"10\")\ntime.sleep(int(retry_after) if retry_after.isdigit() else 10)\ncontinue\nraise\nexcept (URLError, TimeoutError):\ntime.sleep(10)\nelse:\nraise TimeoutError(f\"视频尚未下载，请稍后继续下载任务 {task_id}\")","tags":"video,wan","quota_type":1,"model_ratio":0,"model_price":0.032876712329,"owner_by":"","completion_ratio":0,"enable_groups":["default"],"supported_endpoint_types":["openai","openai-response","openai-response-compact","anthropic","gemini","openai-alpha-search"],"billing_mode":"tiered_expr","billing_expr":"tier(\"base\", u(\"seconds\") * 0.032876712329)","billing_usage_schema":{"seconds":{"type":"number","unit":"second","description":{"en":"Video duration","zh":"视频时长"}}}},{"model_name":"Seedance2.5-满血满参-钢铁侠","description":"【成功率 0.0% ｜ 流量较大时建议错峰使用】 Seedance 2.5：Seedance2.5-满血满参-钢铁侠\n\n满血满参 · 固定 720p · 4–30 秒。支持文生视频、参考素材生成、首尾帧生成，以及用参考视频做视频延长与编辑。参考素材：图 30 / 视频 10 / 音频 10。任务计费（按次），本站售价 5.09 元/次，每个任务固定扣一次，与生成时长、素材数量无关。\n\n接口与鉴权\n- 接口地址：https://shenmeai.vip\n- 请求头：Authorization: Bearer 你的API_KEY\n- 创建任务使用 JSON：Content-Type: application/json\n- 查询与下载使用同一账号的 Bearer API Key。\n\n模型与参数\n- model 为 Seedance2.5-满血满参-钢铁侠。\n- prompt 为非空视频描述；用 @图片N / @视频N / @音频N 引用对应参考素材。\n- duration（或 seconds）为 4–30 秒的整数，不传默认 5 秒。\n- resolution 固定 720p，本卡已锁定档位，调用方不需要传，传其他值无效。\n- ratio 为画面比例，支持 16:9、9:16、1:1、auto（自适应）；不传默认 16:9。\n- first_frame 为首帧图片数组，最多 1 张；last_frame 为尾帧图片数组，最多 1 张；元素都是公网 HTTP(S) 图片直链。\n- 首尾帧用法：只传 first_frame 走首帧生成，first_frame 与 last_frame 同时传走首尾帧生成；都不传则按纯文本或参考素材生成。\n- generation_mode 可不传，插件按实际传入的首尾帧自动判定为 first_frame 或 first_last；若手动传了就必须与首尾帧一致，否则报错。\n- 视频延长与编辑：把源视频放进 reference_videos（最多 10 段），再用 prompt 描述要延长或修改的内容；上游没有单独的视频编辑字段，靠参考视频 + 提示词实现。\n- reference_images / reference_videos / reference_audios 为公开 HTTP(S) URL 数组，分别对应参考图（最多 30 张）、参考视频（最多 10 段）、参考音频（最多 10 段）。\n- 参考图格式 jpeg / png / webp / bmp / tiff / gif（Seedance 2.0 及以上另支持 heic / heif），宽高比 0.4–2.5，宽、高均在 300–6000 像素，单张小于 30MB，请求体不超过 64MB，不要用 Base64。\n- 上游映射：本站字段与上游基本同名，插件负责接口路径、任务查询与下载：prompt / duration / ratio / reference_images / reference_videos / reference_audios / first_frame / last_frame 转发到上游 POST /v1/video/generations，分辨率由插件强制锁定 720p。按条计费：任务成功生成即扣一次，与时长、首尾帧和素材数量无关，失败按平台规则退回。不要传 width / height / fps / seed / metadata 等未公开字段。\n参考素材上限：\n- reference_images：最多 30 张。\n- reference_videos：最多 10 段（视频延长/编辑的源视频放这里）。\n- reference_audios：最多 10 段。\n- first_frame：最多 1 张。\n- last_frame：最多 1 张。\n\n上传参考图\n参考素材必须是公开可访问的 HTTPS URL。如图片在本地，请先上传到公开图床，再把地址填入参考图参数；本站不保存参考素材。\n\n创建任务\nPOST /v1/videos\n\ncurl https://shenmeai.vip/v1/videos \\\n  -H \"Authorization: Bearer $API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n        \"model\": \"Seedance2.5-满血满参-钢铁侠\",\n        \"prompt\": \"视频描述\",\n        \"duration\": 30,\n        \"resolution\": \"720p\",\n        \"ratio\": \"16:9\",\n        \"reference_images\": [\"https://example.com/ref-1.png\"]\n    }'\n\n查询和轮询\nGET /v1/videos/{task_id}。保存创建响应中的 id，每 10–15 秒查询；queued 表示排队，in_progress 表示生成中，completed 表示完成，failed 表示失败。查询异常时保留原任务 ID，不重复提交。\n\ncurl \"https://shenmeai.vip/v1/videos/你的任务ID\" \\\n  -H \"Authorization: Bearer $API_KEY\"\n\n下载\n任务完成后请求 GET /v1/videos/{task_id}/content，使用同一账号的 Bearer API Key。\n\n查询结果如包含 video_url 和 result_url，可直接使用该地址下载，无需 Authorization；两个字段指向相同视频。地址支持 GET、HEAD 和 Range；expires_at 为链接失效的 Unix 秒时间戳。\n\ncurl --fail -L \"https://shenmeai.vip/v1/videos/你的任务ID/content\" \\\n  -H \"Authorization: Bearer $API_KEY\" \\\n  -o video.mp4\n\n若返回 video_archive_pending，按响应的 Retry-After 等待并重试下载。\n\n计费\n- 任务计费（按次）：本站售价 5.09 元/次，每个任务固定扣一次，与生成时长、分辨率、首尾帧、素材数量无关\n\nPython 完整示例：提交、轮询、下载\n将 API_KEY 环境变量设为自己的本站 API Key；按需修改请求参数。\n\nimport json\nimport os\nimport time\nfrom urllib.error import HTTPError, URLError\nfrom urllib.parse import quote\nfrom urllib.request import Request, urlopen\n\nBASE = \"https://shenmeai.vip\"\nAPI_KEY = os.environ[\"API_KEY\"]\nMODEL = \"Seedance2.5-满血满参-钢铁侠\"\nHEADERS = {\"Authorization\": f\"Bearer {API_KEY}\"}\n\npayload = {\n        \"model\": \"Seedance2.5-满血满参-钢铁侠\",\n        \"prompt\": \"视频描述\",\n        \"duration\": 30,\n        \"resolution\": \"720p\",\n        \"ratio\": \"16:9\",\n        \"reference_images\": [\"https://example.com/ref-1.png\"]\n    }\n\n# 只提交一次。提交结果不明确时不自动重试。\nrequest = Request(\n    f\"{BASE}/v1/videos\",\n    data=json.dumps(payload, ensure_ascii=False).encode(\"utf-8\"),\n    headers={**HEADERS, \"Content-Type\": \"application/json\"},\n    method=\"POST\",\n)\nwith urlopen(request, timeout=720) as response:\n    created = json.load(response)\n\ntask_id = created[\"id\"]\nprint(\"任务 ID：\", task_id, flush=True)\ntask_url = f\"{BASE}/v1/videos/{quote(task_id, safe='')}\"\n\n# 总轮询时间可按需要调整；超时后保留 task_id，稍后继续查询。\ndeadline = time.monotonic() + 3600\nwhile time.monotonic() \u003c deadline:\n    try:\n        with urlopen(Request(task_url, headers=HEADERS), timeout=30) as response:\n            task = json.load(response)\n    except HTTPError as exc:\n        if exc.code == 429 or 500 \u003c= exc.code \u003c 600:\n            time.sleep(15)\n            continue\n        raise\n    except (URLError, TimeoutError):\n        time.sleep(15)\n        continue\n\n    status = task.get(\"status\")\n    print(\"状态：\", status, \"进度：\", task.get(\"progress\"), flush=True)\n    if status == \"completed\":\n        break\n    if status == \"failed\":\n        raise RuntimeError(f\"视频生成失败：{task.get('error')}\")\n    time.sleep(15)\nelse:\n    raise TimeoutError(f\"查询超时，请稍后继续查询任务 {task_id}\")\n\n# 只重试下载，不重新提交生成。\ndownload_url = f\"{task_url}/content\"\ndownload_deadline = time.monotonic() + 600\nwhile time.monotonic() \u003c download_deadline:\n    try:\n        with urlopen(Request(download_url, headers=HEADERS), timeout=120) as response:\n            with open(\"video.mp4\", \"wb\") as output:\n                while True:\n                    chunk = response.read(1024 * 1024)\n                    if not chunk:\n                        break\n                    output.write(chunk)\n        print(\"已保存 video.mp4\")\n        break\n    except HTTPError as exc:\n        if exc.code == 503:\n            retry_after = exc.headers.get(\"Retry-After\", \"10\")\n            time.sleep(int(retry_after) if retry_after.isdigit() else 10)\n            continue\n        raise\n    except (URLError, TimeoutError):\n        time.sleep(10)\nelse:\n    raise TimeoutError(f\"视频尚未下载，请稍后继续下载任务 {task_id}\")","tags":"video,sd2.5","quota_type":1,"model_ratio":0,"model_price":0.697260273973,"owner_by":"","completion_ratio":0,"enable_groups":["default"],"supported_endpoint_types":["openai","openai-response","openai-response-compact","anthropic","gemini","openai-alpha-search"],"billing_mode":"tiered_expr","billing_expr":"tier(\"base\", u(\"count\") * 0.697260273973)","billing_usage_schema":{"count":{"type":"number","unit":"count","unitLabel":{"en":"request","zh":"条"},"description":{"en":"Generated videos","zh":"生成视频条数"}},"resolution":{"enum":["720p"],"description":{"en":"Output resolution","zh":"输出分辨率"}}}},{"model_name":"gemini-3.1-flash-lite","description":"Gemini 3.1 Flash Lite · 文本对话 · 上下文 1,048,576 tokens · 单次最多输出 65,536 tokens\n\n接口与鉴权\n- 接口地址：https://shenmeai.vip\n- 请求头：Authorization: Bearer 你的API_KEY\n- OpenAI 兼容：POST /v1/chat/completions，Content-Type: application/json\n\n模型与参数\n- model 为 gemini-3.1-flash-lite。\n- 支持 messages 多轮对话，system / user / assistant 角色。\n- 上下文窗口 1,048,576 tokens，单次最大输出 65,536 tokens。\n- 支持 function calling / tools。\n- 支持流式输出：传 \"stream\": true，按 SSE 增量返回。\n\n请求示例\ncurl https://shenmeai.vip/v1/chat/completions \\\n  -H \"Authorization: Bearer $API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n        \"model\": \"gemini-3.1-flash-lite\",\n        \"messages\": [\n          {\"role\": \"system\", \"content\": \"你是一个简洁的助手\"},\n          {\"role\": \"user\", \"content\": \"用一句话解释什么是向量数据库\"}\n        ],\n        \"temperature\": 0.7\n      }'\n\n返回示例\n{\n  \"id\": \"chatcmpl-...\",\n  \"object\": \"chat.completion\",\n  \"choices\": [{\"index\": 0, \"message\": {\"role\": \"assistant\", \"content\": \"...\"}, \"finish_reason\": \"stop\"}],\n  \"usage\": {\"prompt_tokens\": 30, \"completion_tokens\": 40, \"total_tokens\": 70}\n}\n\n计费\n- 按 Token 计费（输入与输出分别计价）。\n- 输入：2.0075 元 / 百万 tokens。\n- 输出：12.0450 元 / 百万 tokens。\n- 缓存读取：免费。\n- usage 字段中的 prompt_tokens 计入输入、completion_tokens 计入输出；按实际用量扣费。\n\n说明\n- 失败请求不扣费。\n- 上下文或输出超限会被上游拒绝，请自行截断对话历史。","tags":"text,gemini","quota_type":0,"model_ratio":0.1375,"model_price":0,"owner_by":"","completion_ratio":6,"cache_ratio":0,"enable_groups":["default"],"supported_endpoint_types":["openai"]},{"model_name":"H3-2K","description":"【成功率 84.6%】 H3-2K · 2K · 按秒计费 · 5–15 秒 · 比例 16:9/9:16/1:1\n\n接口与鉴权\n- 接口地址：https://shenmeai.vip\n- 请求头：Authorization: Bearer 你的API_KEY\n- 创建任务使用 JSON：Content-Type: application/json\n- 查询与下载使用同一账号的 Bearer API Key。\n\n模型与参数\n- model 为 H3-2K。\n- prompt 为视频描述文本。\n- resolution 固定为 2K，由本站按模型名锁定。\n- seconds（或 duration）为 5–15 秒的整数。\n- ratio 支持 16:9、9:16、1:1。\n- images 最多 9 张、videos 最多 3 段、audios 最多 3 段。\n\n创建任务\nPOST /v1/videos\ncurl https://shenmeai.vip/v1/videos \\\n  -H \"Authorization: Bearer $API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"model\": \"H3-2K\",\n    \"prompt\": \"视频描述\",\n    \"seconds\": 5,\n    \"images\": [\"https://example.com/ref.jpg\"]\n  }'\n\n查询和轮询\nGET /v1/videos/{task_id}。保存创建响应中的 id，每 10–15 秒查询；queued 表示排队，in_progress 表示生成中，completed 表示完成，failed 表示失败。查询异常时保留原任务 ID，不重复提交。\n\n下载\n任务完成后请求 GET /v1/videos/{task_id}/content，使用同一账号的 Bearer API Key。\ncurl --fail -L \"https://shenmeai.vip/v1/videos/你的任务ID/content\" \\\n  -H \"Authorization: Bearer $API_KEY\" \\\n  -o video.mp4\n\n计费\n- 按秒计费，费用 = 单价 × 生成秒数，与参考素材数量无关。","tags":"video,h3","quota_type":1,"model_ratio":0,"model_price":0.024657534247,"owner_by":"","completion_ratio":0,"enable_groups":["default"],"supported_endpoint_types":["openai","openai-response","openai-response-compact","anthropic","gemini","openai-alpha-search"],"billing_mode":"tiered_expr","billing_expr":"tier(\"base\", u(\"seconds\") * 0.024657534247)","billing_usage_schema":{"seconds":{"type":"number","unit":"second","description":{"en":"Requested duration","zh":"生成时长"}}}},{"model_name":"grok-imagine-video-1.5","description":"【成功率 0.0% ｜ 流量较大时建议错峰使用】 按次计费 · 5–15 秒 · 6图 · 比例 16:9/9:16/1:1，失败可重试\n\n接口与鉴权\n- 接口地址：https://shenmeai.vip\n- 请求头：Authorization: Bearer 你的API_KEY\n- 创建任务使用 JSON：Content-Type: application/json\n- 查询与下载使用同一账号的 Bearer API Key。\n模型与参数\n- model 为 grok-imagine-video-1.5。\n- prompt 为视频描述文本。\n- seconds（或 duration）为 5–15 秒。\n- ratio 为画面比例，按模型支持值传入（常用 16:9 / 9:16 / 1:1）。\n- images 为公开 HTTP(S) URL 数组，最多 6 张参考图。\n- 本模型不支持参考视频。\n- 本模型不支持参考音频。\n参考素材上限：\n- images：最多 6 张参考图。\n上传参考图\n参考素材必须是公开可访问的 HTTPS URL。如图片在本地，请先上传到公开图床，再把地址填入参考图参数；本站不保存参考素材。\n创建任务\nPOST /v1/videos\ncurl https://shenmeai.vip/v1/videos \\\n-H \"Authorization: Bearer $API_KEY\" \\\n-H \"Content-Type: application/json\" \\\n-d '{\n\"model\": \"grok-imagine-video-1.5\"\n\"prompt\": \"视频描述\"\n\"seconds\": 5\n}'\n查询和轮询\nGET /v1/videos/{task_id}。保存创建响应中的 id，每 10–15 秒查询；queued 表示排队，in_progress 表示生成中，completed 表示完成，failed 表示失败。查询异常时保留原任务 ID，不重复提交。\ncurl \"https://shenmeai.vip/v1/videos/你的任务ID\" \\\n-H \"Authorization: Bearer $API_KEY\"\n下载\n任务完成后请求 GET /v1/videos/{task_id}/content，使用同一账号的 Bearer API Key。\n查询结果如包含 video_url 和 result_url，可直接使用该地址下载，无需 Authorization；两个字段指向相同视频。地址支持 GET、HEAD 和 Range；expires_at 为链接失效的 Unix 秒时间戳。\ncurl --fail -L \"https://shenmeai.vip/v1/videos/你的任务ID/content\" \\\n-o video.mp4\n若返回 video_archive_pending，按响应的 Retry-After 等待并重试下载。\nPython 完整示例：提交、轮询、下载\n将 API_KEY 环境变量设为自己的本站 API Key；按需修改请求参数。\nimport json\nimport os\nimport time\nfrom urllib.error import HTTPError, URLError\nfrom urllib.parse import quote\nfrom urllib.request import Request, urlopen\nBASE = \"https://shenmeai.vip\"\nAPI_KEY = os.environ[\"API_KEY\"]\nMODEL = \"grok-imagine-video-1.5\"\nHEADERS = {\"Authorization\": f\"Bearer {API_KEY}\"}\npayload = {\n}\n# 只提交一次。提交结果不明确时不自动重试。\nrequest = Request(\nf\"{BASE}/v1/videos\"\ndata=json.dumps(payload, ensure_ascii=False).encode(\"utf-8\")\nheaders={**HEADERS, \"Content-Type\": \"application/json\"}\nmethod=\"POST\"\n)\nwith urlopen(request, timeout=720) as response:\ncreated = json.load(response)\ntask_id = created[\"id\"]\nprint(\"任务 ID：\", task_id, flush=True)\ntask_url = f\"{BASE}/v1/videos/{quote(task_id, safe='')}\"\n# 总轮询时间可按需要调整；超时后保留 task_id，稍后继续查询。\ndeadline = time.monotonic() + 3600\nwhile time.monotonic() \u003c deadline:\ntry:\nwith urlopen(Request(task_url, headers=HEADERS), timeout=30) as response:\ntask = json.load(response)\nexcept HTTPError as exc:\nif exc.code == 429 or 500 \u003c= exc.code \u003c 600:\ntime.sleep(15)\ncontinue\nraise\nexcept (URLError, TimeoutError):\nstatus = task.get(\"status\")\nprint(\"状态：\", status, \"进度：\", task.get(\"progress\"), flush=True)\nif status == \"completed\":\nbreak\nif status == \"failed\":\nraise RuntimeError(f\"视频生成失败：{task.get('error')}\")\nelse:\nraise TimeoutError(f\"查询超时，请稍后继续查询任务 {task_id}\")\n# 只重试下载，不重新提交生成。\ndownload_url = f\"{task_url}/content\"\ndownload_deadline = time.monotonic() + 600\nwhile time.monotonic() \u003c download_deadline:\nwith urlopen(Request(download_url, headers=HEADERS), timeout=120) as response:\nwith open(\"video.mp4\", \"wb\") as output:\nwhile True:\nchunk = response.read(1024 * 1024)\nif not chunk:\noutput.write(chunk)\nprint(\"已保存 video.mp4\")\nif exc.code == 503:\nretry_after = exc.headers.get(\"Retry-After\", \"10\")\ntime.sleep(int(retry_after) if retry_after.isdigit() else 10)\ntime.sleep(10)\nraise TimeoutError(f\"视频尚未下载，请稍后继续下载任务 {task_id}\")\n完整配置","tags":"grok","quota_type":1,"model_ratio":0,"model_price":0.13698630137,"owner_by":"","completion_ratio":0,"enable_groups":["default"],"supported_endpoint_types":["openai","openai-response","openai-response-compact","anthropic","gemini","openai-alpha-search"],"billing_mode":"tiered_expr","billing_expr":"tier(\"base\", u(\"count\") * 0.13698630137)","billing_usage_schema":{"count":{"type":"number","unit":"count","unitLabel":{"en":"request","zh":"次"},"description":{"en":"Generated videos","zh":"生成视频次数"}}}},{"model_name":"grok-4.7","description":"Grok 4.7：grok-4.7\n\nGrok 4.7 · 500K 上下文 · 文本模型。按 Token 计费：输入 5.84 元、输出 17.52 元、缓存读取 1.46 元，每百万 Token。支持推理强度调节与工具调用。\n\n接口与鉴权\n- 接口地址：https://shenmeai.vip/v1\n- 请求头：Authorization: Bearer 你的API_KEY\n- 请求体使用 JSON：Content-Type: application/json\n\n模型与参数\n- model 为 grok-4.7。\n- messages 为对话数组，role 取 system / user / assistant。\n- stream 可选，true 时以 SSE 流式返回。\n- temperature、max_tokens 等标准参数按 OpenAI 兼容协议传入。\n- model 为 grok-4.7。\n\n创建对话\nPOST /v1/chat/completions\n\ncurl https://shenmeai.vip/v1/chat/completions \\\n  -H \"Authorization: Bearer $API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"model\": \"grok-4.7\",\n  \"messages\": [\n    {\"role\": \"user\", \"content\": \"你好\"}\n  ],\n  \"stream\": false\n}'\n\n计费\n- 按 Token 计费，输入 / 缓存读取 / 输出分别计价，详见开头说明。实际扣费以本站计费配置为准。\n\nPython 完整示例\n\nimport os\nfrom openai import OpenAI\n\nclient = OpenAI(\n    api_key=os.environ[\"API_KEY\"],\n    base_url=\"https://shenmeai.vip/v1\",\n)\n\nresponse = client.chat.completions.create(\n    model=\"grok-4.7\",\n    messages=[\n        {\"role\": \"user\", \"content\": \"你好\"},\n    ],\n)\nprint(response.choices[0].message.content)","tags":"text,grok","quota_type":0,"model_ratio":0.4,"model_price":0,"owner_by":"","completion_ratio":3,"cache_ratio":0.25,"enable_groups":["default"],"supported_endpoint_types":["openai"]},{"model_name":"TTseadanco2.0-720","description":"【成功率 0.0% ｜ 流量较大时建议错峰使用】 720p · 按秒计费 · 5–15 秒 · 9图/3视频/3音频 · 比例 16:9/9:16/1:1\n\n接口与鉴权\n- 接口地址：https://shenmeai.vip\n- 请求头：Authorization: Bearer 你的API_KEY\n- 创建任务使用 JSON：Content-Type: application/json\n- 查询与下载使用同一账号的 Bearer API Key。\n模型与参数\n- model 为 TTseadanco2.0-720。\n- prompt 为视频描述文本。\n- resolution 为 720p。\n- seconds（或 duration）为 5–15 秒。\n- ratio 为画面比例，按模型支持值传入（常用 16:9 / 9:16 / 1:1）。\n- images 为公开 HTTP(S) URL 数组，最多 9 张参考图。\n- videos 为公开 HTTP(S) URL 数组，最多 3 段参考视频。\n- audios 为公开 HTTP(S) URL 数组，最多 3 段参考音频。\n参考素材上限：\n- images：最多 9 张参考图。\n- videos：最多 3 段参考视频。\n- audios：最多 3 段参考音频。\n上传参考图\n参考素材必须是公开可访问的 HTTPS URL。如图片在本地，请先上传到公开图床，再把地址填入参考图参数；本站不保存参考素材。\n创建任务\nPOST /v1/videos\ncurl https://shenmeai.vip/v1/videos \\\n-H \"Authorization: Bearer $API_KEY\" \\\n-H \"Content-Type: application/json\" \\\n-d '{\n\"model\": \"TTseadanco2.0-720\"\n\"prompt\": \"视频描述\"\n\"seconds\": 5\n}'\n查询和轮询\nGET /v1/videos/{task_id}。保存创建响应中的 id，每 10–15 秒查询；queued 表示排队，in_progress 表示生成中，completed 表示完成，failed 表示失败。查询异常时保留原任务 ID，不重复提交。\ncurl \"https://shenmeai.vip/v1/videos/你的任务ID\" \\\n-H \"Authorization: Bearer $API_KEY\"\n下载\n任务完成后请求 GET /v1/videos/{task_id}/content，使用同一账号的 Bearer API Key。\n查询结果如包含 video_url 和 result_url，可直接使用该地址下载，无需 Authorization；两个字段指向相同视频。地址支持 GET、HEAD 和 Range；expires_at 为链接失效的 Unix 秒时间戳。\ncurl --fail -L \"https://shenmeai.vip/v1/videos/你的任务ID/content\" \\\n-o video.mp4\n若返回 video_archive_pending，按响应的 Retry-After 等待并重试下载。\nPython 完整示例：提交、轮询、下载\n将 API_KEY 环境变量设为自己的本站 API Key；按需修改请求参数。\nimport json\nimport os\nimport time\nfrom urllib.error import HTTPError, URLError\nfrom urllib.parse import quote\nfrom urllib.request import Request, urlopen\nBASE = \"https://shenmeai.vip\"\nAPI_KEY = os.environ[\"API_KEY\"]\nMODEL = \"TTseadanco2.0-720\"\nHEADERS = {\"Authorization\": f\"Bearer {API_KEY}\"}\npayload = {\n}\n# 只提交一次。提交结果不明确时不自动重试。\nrequest = Request(\nf\"{BASE}/v1/videos\"\ndata=json.dumps(payload, ensure_ascii=False).encode(\"utf-8\")\nheaders={**HEADERS, \"Content-Type\": \"application/json\"}\nmethod=\"POST\"\n)\nwith urlopen(request, timeout=720) as response:\ncreated = json.load(response)\ntask_id = created[\"id\"]\nprint(\"任务 ID：\", task_id, flush=True)\ntask_url = f\"{BASE}/v1/videos/{quote(task_id, safe='')}\"\n# 总轮询时间可按需要调整；超时后保留 task_id，稍后继续查询。\ndeadline = time.monotonic() + 3600\nwhile time.monotonic() \u003c deadline:\ntry:\nwith urlopen(Request(task_url, headers=HEADERS), timeout=30) as response:\ntask = json.load(response)\nexcept HTTPError as exc:\nif exc.code == 429 or 500 \u003c= exc.code \u003c 600:\ntime.sleep(15)\ncontinue\nraise\nexcept (URLError, TimeoutError):\nstatus = task.get(\"status\")\nprint(\"状态：\", status, \"进度：\", task.get(\"progress\"), flush=True)\nif status == \"completed\":\nbreak\nif status == \"failed\":\nraise RuntimeError(f\"视频生成失败：{task.get('error')}\")\nelse:\nraise TimeoutError(f\"查询超时，请稍后继续查询任务 {task_id}\")\n# 只重试下载，不重新提交生成。\ndownload_url = f\"{task_url}/content\"\ndownload_deadline = time.monotonic() + 600\nwhile time.monotonic() \u003c download_deadline:\nwith urlopen(Request(download_url, headers=HEADERS), timeout=120) as response:\nwith open(\"video.mp4\", \"wb\") as output:\nwhile True:\nchunk = response.read(1024 * 1024)\nif not chunk:\noutput.write(chunk)\nprint(\"已保存 video.mp4\")\nif exc.code == 503:\nretry_after = exc.headers.get(\"Retry-After\", \"10\")\ntime.sleep(int(retry_after) if retry_after.isdigit() else 10)\ntime.sleep(10)\nraise TimeoutError(f\"视频尚未下载，请稍后继续下载任务 {task_id}\")\n完整配置","tags":"video,sd2.0","quota_type":1,"model_ratio":0,"model_price":0.035616438356,"owner_by":"","completion_ratio":0,"enable_groups":["default"],"supported_endpoint_types":["openai","openai-response","openai-response-compact","anthropic","gemini","openai-alpha-search"],"billing_mode":"tiered_expr","billing_expr":"tier(\"base\", u(\"seconds\") * 0.035616438356)","billing_usage_schema":{"seconds":{"type":"number","unit":"second","description":{"en":"Requested duration","zh":"生成时长"}}}},{"model_name":"私seadanco2.5-480","description":"【成功率 42.1%】 480p · 按秒计费 · 5–30 秒 · 30图/10视频/10音频 · 比例 16:9/9:16/1:1\n\n接口与鉴权\n- 接口地址：https://shenmeai.vip\n- 请求头：Authorization: Bearer 你的API_KEY\n- 创建任务使用 JSON：Content-Type: application/json\n- 查询与下载使用同一账号的 Bearer API Key。\n模型与参数\n- model 为 私seadanco2.5-480。\n- prompt 为视频描述文本。\n- resolution 为 480p。\n- seconds（或 duration）为 5–30 秒。\n- ratio 为画面比例，按模型支持值传入（常用 16:9 / 9:16 / 1:1）。\n- images 为公开 HTTP(S) URL 数组，最多 30 张参考图。\n- videos 为公开 HTTP(S) URL 数组，最多 10 段参考视频。\n- audios 为公开 HTTP(S) URL 数组，最多 10 段参考音频。\n参考素材上限：\n- images：最多 30 张参考图。\n- videos：最多 10 段参考视频。\n- audios：最多 10 段参考音频。\n上传参考图\n参考素材必须是公开可访问的 HTTPS URL。如图片在本地，请先上传到公开图床，再把地址填入参考图参数；本站不保存参考素材。\n创建任务\nPOST /v1/videos\ncurl https://shenmeai.vip/v1/videos \\\n-H \"Authorization: Bearer $API_KEY\" \\\n-H \"Content-Type: application/json\" \\\n-d '{\n\"model\": \"私seadanco2.5-480\"\n\"prompt\": \"视频描述\"\n\"seconds\": 5\n}'\n查询和轮询\nGET /v1/videos/{task_id}。保存创建响应中的 id，每 10–15 秒查询；queued 表示排队，in_progress 表示生成中，completed 表示完成，failed 表示失败。查询异常时保留原任务 ID，不重复提交。\ncurl \"https://shenmeai.vip/v1/videos/你的任务ID\" \\\n-H \"Authorization: Bearer $API_KEY\"\n下载\n任务完成后请求 GET /v1/videos/{task_id}/content，使用同一账号的 Bearer API Key。\n查询结果如包含 video_url 和 result_url，可直接使用该地址下载，无需 Authorization；两个字段指向相同视频。地址支持 GET、HEAD 和 Range；expires_at 为链接失效的 Unix 秒时间戳。\ncurl --fail -L \"https://shenmeai.vip/v1/videos/你的任务ID/content\" \\\n-o video.mp4\n若返回 video_archive_pending，按响应的 Retry-After 等待并重试下载。\nPython 完整示例：提交、轮询、下载\n将 API_KEY 环境变量设为自己的本站 API Key；按需修改请求参数。\nimport json\nimport os\nimport time\nfrom urllib.error import HTTPError, URLError\nfrom urllib.parse import quote\nfrom urllib.request import Request, urlopen\nBASE = \"https://shenmeai.vip\"\nAPI_KEY = os.environ[\"API_KEY\"]\nMODEL = \"私seadanco2.5-480\"\nHEADERS = {\"Authorization\": f\"Bearer {API_KEY}\"}\npayload = {\n}\n# 只提交一次。提交结果不明确时不自动重试。\nrequest = Request(\nf\"{BASE}/v1/videos\"\ndata=json.dumps(payload, ensure_ascii=False).encode(\"utf-8\")\nheaders={**HEADERS, \"Content-Type\": \"application/json\"}\nmethod=\"POST\"\n)\nwith urlopen(request, timeout=720) as response:\ncreated = json.load(response)\ntask_id = created[\"id\"]\nprint(\"任务 ID：\", task_id, flush=True)\ntask_url = f\"{BASE}/v1/videos/{quote(task_id, safe='')}\"\n# 总轮询时间可按需要调整；超时后保留 task_id，稍后继续查询。\ndeadline = time.monotonic() + 3600\nwhile time.monotonic() \u003c deadline:\ntry:\nwith urlopen(Request(task_url, headers=HEADERS), timeout=30) as response:\ntask = json.load(response)\nexcept HTTPError as exc:\nif exc.code == 429 or 500 \u003c= exc.code \u003c 600:\ntime.sleep(15)\ncontinue\nraise\nexcept (URLError, TimeoutError):\nstatus = task.get(\"status\")\nprint(\"状态：\", status, \"进度：\", task.get(\"progress\"), flush=True)\nif status == \"completed\":\nbreak\nif status == \"failed\":\nraise RuntimeError(f\"视频生成失败：{task.get('error')}\")\nelse:\nraise TimeoutError(f\"查询超时，请稍后继续查询任务 {task_id}\")\n# 只重试下载，不重新提交生成。\ndownload_url = f\"{task_url}/content\"\ndownload_deadline = time.monotonic() + 600\nwhile time.monotonic() \u003c download_deadline:\nwith urlopen(Request(download_url, headers=HEADERS), timeout=120) as response:\nwith open(\"video.mp4\", \"wb\") as output:\nwhile True:\nchunk = response.read(1024 * 1024)\nif not chunk:\noutput.write(chunk)\nprint(\"已保存 video.mp4\")\nif exc.code == 503:\nretry_after = exc.headers.get(\"Retry-After\", \"10\")\ntime.sleep(int(retry_after) if retry_after.isdigit() else 10)\ntime.sleep(10)\nraise TimeoutError(f\"视频尚未下载，请稍后继续下载任务 {task_id}\")\n完整配置","tags":"video,sd2.5","quota_type":1,"model_ratio":0,"model_price":0.031506849315,"owner_by":"","completion_ratio":0,"enable_groups":["default"],"supported_endpoint_types":["openai","openai-response","openai-response-compact","anthropic","gemini","openai-alpha-search"],"billing_mode":"tiered_expr","billing_expr":"tier(\"base\", u(\"seconds\") * 0.031506849315)","billing_usage_schema":{"seconds":{"type":"number","unit":"second","description":{"en":"Requested duration","zh":"生成时长"}}}},{"model_name":"稳seadanco2.5-720","description":"【成功率 90.0%】 720p · 按秒计费 · 5–30 秒 · 30图/10音频 · 比例 16:9/9:16/1:1\n\n接口与鉴权\n- 接口地址：https://shenmeai.vip\n- 请求头：Authorization: Bearer 你的API_KEY\n- 创建任务使用 JSON：Content-Type: application/json\n- 查询与下载使用同一账号的 Bearer API Key。\n模型与参数\n- model 为 稳seadanco2.5-720。\n- prompt 为视频描述文本。\n- resolution 为 720p。\n- seconds（或 duration）为 5–30 秒。\n- ratio 为画面比例，按模型支持值传入（常用 16:9 / 9:16 / 1:1）。\n- images 为公开 HTTP(S) URL 数组，最多 30 张参考图。\n- 本模型不支持参考视频。\n- audios 为公开 HTTP(S) URL 数组，最多 10 段参考音频。\n参考素材上限：\n- images：最多 30 张参考图。\n- audios：最多 10 段参考音频。\n上传参考图\n参考素材必须是公开可访问的 HTTPS URL。如图片在本地，请先上传到公开图床，再把地址填入参考图参数；本站不保存参考素材。\n创建任务\nPOST /v1/videos\ncurl https://shenmeai.vip/v1/videos \\\n-H \"Authorization: Bearer $API_KEY\" \\\n-H \"Content-Type: application/json\" \\\n-d '{\n\"model\": \"稳seadanco2.5-720\"\n\"prompt\": \"视频描述\"\n\"seconds\": 5\n}'\n查询和轮询\nGET /v1/videos/{task_id}。保存创建响应中的 id，每 10–15 秒查询；queued 表示排队，in_progress 表示生成中，completed 表示完成，failed 表示失败。查询异常时保留原任务 ID，不重复提交。\ncurl \"https://shenmeai.vip/v1/videos/你的任务ID\" \\\n-H \"Authorization: Bearer $API_KEY\"\n下载\n任务完成后请求 GET /v1/videos/{task_id}/content，使用同一账号的 Bearer API Key。\n查询结果如包含 video_url 和 result_url，可直接使用该地址下载，无需 Authorization；两个字段指向相同视频。地址支持 GET、HEAD 和 Range；expires_at 为链接失效的 Unix 秒时间戳。\ncurl --fail -L \"https://shenmeai.vip/v1/videos/你的任务ID/content\" \\\n-o video.mp4\n若返回 video_archive_pending，按响应的 Retry-After 等待并重试下载。\nPython 完整示例：提交、轮询、下载\n将 API_KEY 环境变量设为自己的本站 API Key；按需修改请求参数。\nimport json\nimport os\nimport time\nfrom urllib.error import HTTPError, URLError\nfrom urllib.parse import quote\nfrom urllib.request import Request, urlopen\nBASE = \"https://shenmeai.vip\"\nAPI_KEY = os.environ[\"API_KEY\"]\nMODEL = \"稳seadanco2.5-720\"\nHEADERS = {\"Authorization\": f\"Bearer {API_KEY}\"}\npayload = {\n}\n# 只提交一次。提交结果不明确时不自动重试。\nrequest = Request(\nf\"{BASE}/v1/videos\"\ndata=json.dumps(payload, ensure_ascii=False).encode(\"utf-8\")\nheaders={**HEADERS, \"Content-Type\": \"application/json\"}\nmethod=\"POST\"\n)\nwith urlopen(request, timeout=720) as response:\ncreated = json.load(response)\ntask_id = created[\"id\"]\nprint(\"任务 ID：\", task_id, flush=True)\ntask_url = f\"{BASE}/v1/videos/{quote(task_id, safe='')}\"\n# 总轮询时间可按需要调整；超时后保留 task_id，稍后继续查询。\ndeadline = time.monotonic() + 3600\nwhile time.monotonic() \u003c deadline:\ntry:\nwith urlopen(Request(task_url, headers=HEADERS), timeout=30) as response:\ntask = json.load(response)\nexcept HTTPError as exc:\nif exc.code == 429 or 500 \u003c= exc.code \u003c 600:\ntime.sleep(15)\ncontinue\nraise\nexcept (URLError, TimeoutError):\nstatus = task.get(\"status\")\nprint(\"状态：\", status, \"进度：\", task.get(\"progress\"), flush=True)\nif status == \"completed\":\nbreak\nif status == \"failed\":\nraise RuntimeError(f\"视频生成失败：{task.get('error')}\")\nelse:\nraise TimeoutError(f\"查询超时，请稍后继续查询任务 {task_id}\")\n# 只重试下载，不重新提交生成。\ndownload_url = f\"{task_url}/content\"\ndownload_deadline = time.monotonic() + 600\nwhile time.monotonic() \u003c download_deadline:\nwith urlopen(Request(download_url, headers=HEADERS), timeout=120) as response:\nwith open(\"video.mp4\", \"wb\") as output:\nwhile True:\nchunk = response.read(1024 * 1024)\nif not chunk:\noutput.write(chunk)\nprint(\"已保存 video.mp4\")\nif exc.code == 503:\nretry_after = exc.headers.get(\"Retry-After\", \"10\")\ntime.sleep(int(retry_after) if retry_after.isdigit() else 10)\ntime.sleep(10)\nraise TimeoutError(f\"视频尚未下载，请稍后继续下载任务 {task_id}\")\n完整配置","tags":"video,sd2.5","quota_type":1,"model_ratio":0,"model_price":0.068493150685,"owner_by":"","completion_ratio":0,"enable_groups":["default"],"supported_endpoint_types":["openai","openai-response","openai-response-compact","anthropic","gemini","openai-alpha-search"],"billing_mode":"tiered_expr","billing_expr":"tier(\"base\", u(\"seconds\") * 0.068493150685)","billing_usage_schema":{"seconds":{"type":"number","unit":"second","description":{"en":"Requested duration","zh":"生成时长"}}}},{"model_name":"Seedance 2.5-全分辨率","description":"【成功率 51.0%】 Seedance 2.5：Seedance 2.5-全分辨率\n\n480p / 720p / 1080p / 4K 四档 · 4–30 秒整数时长。参考素材：图 30 / 视频 10 / 音频 10。按秒计费，本站售价 480p 0.22 元/秒、720p 0.29 元/秒、1080p 0.35 元/秒、4k 0.42 元/秒，费用 = 单价 × 生成秒数。\n\n接口与鉴权\n- 接口地址：https://shenmeai.vip\n- 请求头：Authorization: Bearer 你的API_KEY\n- 创建任务使用 JSON：Content-Type: application/json\n- 查询与下载使用同一账号的 Bearer API Key。\n\n模型与参数\n- model 为 Seedance 2.5-全分辨率。\n- prompt 为非空视频描述。\n- duration（或 seconds）为 4–30 秒的整数，不传默认 5 秒。\n- resolution 为 480p / 720p / 1080p / 4k，四档分别计价；不传按 720p 出片并计费。\n- ratio 为画面比例，支持 16:9、9:16、1:1、4:3、3:4、21:9；不传默认 16:9。\n- count 固定为 1，不能传其他值；本模型每次只出一条视频。\n- reference_images / reference_videos / reference_audios 为公开 HTTP(S) URL 数组，分别对应参考图、参考视频、参考音频；参考图最多 30 张、参考视频最多 10 段、参考音频最多 10 段。\n- 参考视频单段 2–30 秒、累计不超过 30 秒；参考图片可能影响成片实际画幅，最终像素与时长以成片为准。\n- 参考图格式 jpeg / png / webp / bmp / tiff / gif（Seedance 2.0 及以上另支持 heic / heif），宽高比 0.4–2.5，宽、高均在 300–6000 像素，单张小于 30MB，请求体不超过 64MB，不要用 Base64。\n- 不支持 first_frame / last_frame / generation_mode，也不支持视频延长、视频编辑、随机种子、水印开关；不要用 aspect_ratio 代替 ratio。\n- 上游映射：本站字段与上游基本同名，插件负责接口路径、任务查询与下载：prompt / duration / ratio / resolution / reference_images / reference_videos / reference_audios 原样转发到上游 POST /v1/video/generations。分辨率直接决定单价，务必按需要的档位传 resolution，本站按实际档位计费。未公开字段（width / height / fps / seed / metadata / 首尾帧相关）不要传。\n参考素材上限：\n- reference_images：最多 30 张。\n- reference_videos：最多 10 段（单段 2–30 秒，累计 ≤30 秒）。\n- reference_audios：最多 10 段。\n\n上传参考图\n参考素材必须是公开可访问的 HTTPS URL。如图片在本地，请先上传到公开图床，再把地址填入参考图参数；本站不保存参考素材。\n\n创建任务\nPOST /v1/videos\n\ncurl https://shenmeai.vip/v1/videos \\\n  -H \"Authorization: Bearer $API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n        \"model\": \"Seedance 2.5-全分辨率\",\n        \"prompt\": \"视频描述\",\n        \"duration\": 30,\n        \"resolution\": \"1080p\",\n        \"ratio\": \"16:9\",\n        \"reference_images\": [\"https://example.com/ref-1.png\"]\n    }'\n\n查询和轮询\nGET /v1/videos/{task_id}。保存创建响应中的 id，每 10–15 秒查询；queued 表示排队，in_progress 表示生成中，completed 表示完成，failed 表示失败。查询异常时保留原任务 ID，不重复提交。\n\ncurl \"https://shenmeai.vip/v1/videos/你的任务ID\" \\\n  -H \"Authorization: Bearer $API_KEY\"\n\n下载\n任务完成后请求 GET /v1/videos/{task_id}/content，使用同一账号的 Bearer API Key。\n\n查询结果如包含 video_url 和 result_url，可直接使用该地址下载，无需 Authorization；两个字段指向相同视频。地址支持 GET、HEAD 和 Range；expires_at 为链接失效的 Unix 秒时间戳。\n\ncurl --fail -L \"https://shenmeai.vip/v1/videos/你的任务ID/content\" \\\n  -H \"Authorization: Bearer $API_KEY\" \\\n  -o video.mp4\n\n若返回 video_archive_pending，按响应的 Retry-After 等待并重试下载。\n\n计费\n- 按秒计费、按分辨率分档：480p 0.22 元/秒、720p 0.29 元/秒、1080p 0.35 元/秒、4k 0.42 元/秒，费用 = 单价 × 生成秒数，与参考素材数量无关\n\nPython 完整示例：提交、轮询、下载\n将 API_KEY 环境变量设为自己的本站 API Key；按需修改请求参数。\n\nimport json\nimport os\nimport time\nfrom urllib.error import HTTPError, URLError\nfrom urllib.parse import quote\nfrom urllib.request import Request, urlopen\n\nBASE = \"https://shenmeai.vip\"\nAPI_KEY = os.environ[\"API_KEY\"]\nMODEL = \"Seedance 2.5-全分辨率\"\nHEADERS = {\"Authorization\": f\"Bearer {API_KEY}\"}\n\npayload = {\n        \"model\": \"Seedance 2.5-全分辨率\",\n        \"prompt\": \"视频描述\",\n        \"duration\": 30,\n        \"resolution\": \"1080p\",\n        \"ratio\": \"16:9\",\n        \"reference_images\": [\"https://example.com/ref-1.png\"]\n    }\n\n# 只提交一次。提交结果不明确时不自动重试。\nrequest = Request(\n    f\"{BASE}/v1/videos\",\n    data=json.dumps(payload, ensure_ascii=False).encode(\"utf-8\"),\n    headers={**HEADERS, \"Content-Type\": \"application/json\"},\n    method=\"POST\",\n)\nwith urlopen(request, timeout=720) as response:\n    created = json.load(response)\n\ntask_id = created[\"id\"]\nprint(\"任务 ID：\", task_id, flush=True)\ntask_url = f\"{BASE}/v1/videos/{quote(task_id, safe='')}\"\n\n# 总轮询时间可按需要调整；超时后保留 task_id，稍后继续查询。\ndeadline = time.monotonic() + 3600\nwhile time.monotonic() \u003c deadline:\n    try:\n        with urlopen(Request(task_url, headers=HEADERS), timeout=30) as response:\n            task = json.load(response)\n    except HTTPError as exc:\n        if exc.code == 429 or 500 \u003c= exc.code \u003c 600:\n            time.sleep(15)\n            continue\n        raise\n    except (URLError, TimeoutError):\n        time.sleep(15)\n        continue\n\n    status = task.get(\"status\")\n    print(\"状态：\", status, \"进度：\", task.get(\"progress\"), flush=True)\n    if status == \"completed\":\n        break\n    if status == \"failed\":\n        raise RuntimeError(f\"视频生成失败：{task.get('error')}\")\n    time.sleep(15)\nelse:\n    raise TimeoutError(f\"查询超时，请稍后继续查询任务 {task_id}\")\n\n# 只重试下载，不重新提交生成。\ndownload_url = f\"{task_url}/content\"\ndownload_deadline = time.monotonic() + 600\nwhile time.monotonic() \u003c download_deadline:\n    try:\n        with urlopen(Request(download_url, headers=HEADERS), timeout=120) as response:\n            with open(\"video.mp4\", \"wb\") as output:\n                while True:\n                    chunk = response.read(1024 * 1024)\n                    if not chunk:\n                        break\n                    output.write(chunk)\n        print(\"已保存 video.mp4\")\n        break\n    except HTTPError as exc:\n        if exc.code == 503:\n            retry_after = exc.headers.get(\"Retry-After\", \"10\")\n            time.sleep(int(retry_after) if retry_after.isdigit() else 10)\n            continue\n        raise\n    except (URLError, TimeoutError):\n        time.sleep(10)\nelse:\n    raise TimeoutError(f\"视频尚未下载，请稍后继续下载任务 {task_id}\")","tags":"video,sd2.5","quota_type":1,"model_ratio":0,"model_price":0.030136986301,"owner_by":"","completion_ratio":0,"enable_groups":["default"],"supported_endpoint_types":["openai","openai-response","openai-response-compact","anthropic","gemini","openai-alpha-search"],"billing_mode":"tiered_expr","billing_expr":"u(\"resolution\") == \"480p\" ? tier(\"480p\", u(\"seconds\") * 0.030136986301) : u(\"resolution\") == \"720p\" ? tier(\"720p\", u(\"seconds\") * 0.039726027397) : u(\"resolution\") == \"1080p\" ? tier(\"1080p\", u(\"seconds\") * 0.047945205479) : tier(\"4k\", u(\"seconds\") * 0.057534246575)","billing_usage_schema":{"resolution":{"enum":["480p","720p","1080p","4k"],"description":{"en":"Output resolution","zh":"输出分辨率"}},"seconds":{"type":"number","unit":"second","description":{"en":"Video duration","zh":"视频时长"}}}},{"model_name":"【官转】Minimax-H3","description":"【成功率 93.2%】 MiniMax H3：【官转】Minimax-H3\n768p / 2k 两档 · 4–15 秒，默认 5 秒。至少 1 张参考图，最多 9 张参考图、3 段参考视频、3 段参考音频；支持音频开关。按秒计费，768p 0.12 元/秒、2k 0.22 元/秒，参考素材不另收费。\n接口与鉴权\n- 接口地址：https://shenmeai.vip\n- 请求头：Authorization: Bearer 你的API_KEY\n- 创建任务使用 JSON：Content-Type: application/json\n- 查询与下载使用同一账号的 Bearer API Key。\n模型与参数\n- model 为 【官转】Minimax-H3。\n- prompt 为非空描述，1–10000 字符；也可由 content 里的 type=text 提供。\n- seconds（或 duration）为 4–15 秒的整数，默认 5 秒。\n- resolution 为 768p / 2k，默认 768p（也支持 size 传 1280x720→768p、1920x1080→2k）。\n- enable_audio / generate_audio 为布尔值，是否生成音频；两者同时出现且值冲突会被拒绝。\n- 不支持字段：width / height / fps / seed / n / metadata 等通用视频字段会被拒绝。\n参考素材上限：\n- images：至少 1 张、最多 9 张参考图。\n- videos：最多 3 段参考视频。\n- audios：最多 3 段参考音频。\n上传参考图\n参考素材必须是公开可访问的 HTTPS URL。如图片在本地，请先上传到公开图床，再把地址填入参考图参数；本站不保存参考素材。\n创建任务\nPOST /v1/videos\ncurl https://shenmeai.vip/v1/videos \\\n-H \"Authorization: Bearer $API_KEY\" \\\n-H \"Content-Type: application/json\" \\\n-d '{\n\"model\": \"【官转】Minimax-H3\"\n\"prompt\": \"参考图1中的主体，保持外观一致，主体沿湖边缓慢行走。\"\n\"seconds\": 8\n\"ratio\": \"16:9\"\n\"resolution\": \"2k\"\n\"images\": [\"https://example.com/ref-1.png\"]\n}'\n查询和轮询\nGET /v1/videos/{task_id}。保存创建响应中的 id，每 10–15 秒查询；queued 表示排队，in_progress 表示生成中，completed 表示完成，failed 表示失败。查询异常时保留原任务 ID，不重复提交。\ncurl \"https://shenmeai.vip/v1/videos/你的任务ID\" \\\n-H \"Authorization: Bearer $API_KEY\"\n下载\n任务完成后请求 GET /v1/videos/{task_id}/content，使用同一账号的 Bearer API Key。\n查询结果如包含 video_url 和 result_url，可直接使用该地址下载，无需 Authorization；两个字段指向相同视频。地址支持 GET、HEAD 和 Range；expires_at 为链接失效的 Unix 秒时间戳。\ncurl --fail -L \"https://shenmeai.vip/v1/videos/你的任务ID/content\" \\\n-o video.mp4\n若返回 video_archive_pending，按响应的 Retry-After 等待并重试下载。\n计费\n- 按秒计费、按分辨率分档：768p 0.12 元/秒、2k 0.22 元/秒，与参考素材数量无关\nPython 完整示例：提交、轮询、下载\n将 API_KEY 环境变量设为自己的本站 API Key；按需修改请求参数。\nimport json\nimport os\nimport time\nfrom urllib.error import HTTPError, URLError\nfrom urllib.parse import quote\nfrom urllib.request import Request, urlopen\nBASE = \"https://shenmeai.vip\"\nAPI_KEY = os.environ[\"API_KEY\"]\nMODEL = \"【官转】Minimax-H3\"\nHEADERS = {\"Authorization\": f\"Bearer {API_KEY}\"}\npayload = {\n}\n# 只提交一次。提交结果不明确时不自动重试。\nrequest = Request(\nf\"{BASE}/v1/videos\"\ndata=json.dumps(payload, ensure_ascii=False).encode(\"utf-8\")\nheaders={**HEADERS, \"Content-Type\": \"application/json\"}\nmethod=\"POST\"\n)\nwith urlopen(request, timeout=720) as response:\ncreated = json.load(response)\ntask_id = created[\"id\"]\nprint(\"任务 ID：\", task_id, flush=True)\ntask_url = f\"{BASE}/v1/videos/{quote(task_id, safe='')}\"\n# 总轮询时间可按需要调整；超时后保留 task_id，稍后继续查询。\ndeadline = time.monotonic() + 3600\nwhile time.monotonic() \u003c deadline:\ntry:\nwith urlopen(Request(task_url, headers=HEADERS), timeout=30) as response:\ntask = json.load(response)\nexcept HTTPError as exc:\nif exc.code == 429 or 500 \u003c= exc.code \u003c 600:\ntime.sleep(15)\ncontinue\nraise\nexcept (URLError, TimeoutError):\nstatus = task.get(\"status\")\nprint(\"状态：\", status, \"进度：\", task.get(\"progress\"), flush=True)\nif status == \"completed\":\nbreak\nif status == \"failed\":\nraise RuntimeError(f\"视频生成失败：{task.get('error')}\")\nelse:\nraise TimeoutError(f\"查询超时，请稍后继续查询任务 {task_id}\")\n# 只重试下载，不重新提交生成。\ndownload_url = f\"{task_url}/content\"\ndownload_deadline = time.monotonic() + 600\nwhile time.monotonic() \u003c download_deadline:\nwith urlopen(Request(download_url, headers=HEADERS), timeout=120) as response:\nwith open(\"video.mp4\", \"wb\") as output:\nwhile True:\nchunk = response.read(1024 * 1024)\nif not chunk:\noutput.write(chunk)\nprint(\"已保存 video.mp4\")\nif exc.code == 503:\nretry_after = exc.headers.get(\"Retry-After\", \"10\")\ntime.sleep(int(retry_after) if retry_after.isdigit() else 10)\ntime.sleep(10)\nraise TimeoutError(f\"视频尚未下载，请稍后继续下载任务 {task_id}\")\n完整配置\n能力、售价与调用参数以本卡当前记录为准。","tags":"h3","quota_type":1,"model_ratio":0,"model_price":0.065753424657534,"owner_by":"","completion_ratio":0,"enable_groups":["default"],"supported_endpoint_types":["openai"]},{"model_name":"seedance2.5-V","description":"Seedance 2.5：seedance2.5-V\nSeedance 2.5 异步视频 · 720p · 5–30 秒，支持文生视频与参考图（最多 30 张）；不支持参考视频和参考音频。按条计费，本站售价 7 元/条。\n接口与鉴权\n- 接口地址：https://shenmeai.vip\n- 请求头：Authorization: Bearer 你的API_KEY\n- 创建任务使用 JSON：Content-Type: application/json\n- 查询与下载使用同一账号的 Bearer API Key。\n模型与参数\n- model 为 seedance2.5-V。\n- prompt 为非空视频描述。\n- duration 为 5–30 秒的整数。\n- resolution 必须传 720p（本模型仅开放 720p）。\n- ratio 为画面比例，支持 16:9、9:16、4:3、3:4、1:1。\n- images 为公开 HTTPS URL 数组，最多 30 张参考图；不接受 videos / audios。\n参考素材上限：\n- images：最多 30 张参考图。\n- 不支持 videos / audios。\n上传参考图\n参考素材必须是公开可访问的 HTTPS URL。如图片在本地，请先上传到公开图床，再把地址填入参考图参数；本站不保存参考素材。\n创建任务\nPOST /v1/videos\ncurl https://shenmeai.vip/v1/videos \\\n-H \"Authorization: Bearer $API_KEY\" \\\n-H \"Content-Type: application/json\" \\\n-d '{\n\"model\": \"seedance2.5-V\"\n\"prompt\": \"视频描述\"\n\"duration\": 5\n\"resolution\": \"720p\"\n\"ratio\": \"16:9\"\n\"images\": [\"https://example.com/ref-1.png\"]\n}'\n查询和轮询\nGET /v1/videos/{task_id}。保存创建响应中的 id，每 10–15 秒查询；queued 表示排队，in_progress 表示生成中，completed 表示完成，failed 表示失败。查询异常时保留原任务 ID，不重复提交。\ncurl \"https://shenmeai.vip/v1/videos/你的任务ID\" \\\n-H \"Authorization: Bearer $API_KEY\"\n下载\n任务完成后请求 GET /v1/videos/{task_id}/content，使用同一账号的 Bearer API Key。\n查询结果如包含 video_url 和 result_url，可直接使用该地址下载，无需 Authorization；两个字段指向相同视频。地址支持 GET、HEAD 和 Range；expires_at 为链接失效的 Unix 秒时间戳。\ncurl --fail -L \"https://shenmeai.vip/v1/videos/你的任务ID/content\" \\\n-o video.mp4\n若返回 video_archive_pending，按响应的 Retry-After 等待并重试下载。\n计费\nPython 完整示例：提交、轮询、下载\n将 API_KEY 环境变量设为自己的本站 API Key；按需修改请求参数。\nimport json\nimport os\nimport time\nfrom urllib.error import HTTPError, URLError\nfrom urllib.parse import quote\nfrom urllib.request import Request, urlopen\nBASE = \"https://shenmeai.vip\"\nAPI_KEY = os.environ[\"API_KEY\"]\nMODEL = \"seedance2.5-V\"\nHEADERS = {\"Authorization\": f\"Bearer {API_KEY}\"}\npayload = {\n}\n# 只提交一次。提交结果不明确时不自动重试。\nrequest = Request(\nf\"{BASE}/v1/videos\"\ndata=json.dumps(payload, ensure_ascii=False).encode(\"utf-8\")\nheaders={**HEADERS, \"Content-Type\": \"application/json\"}\nmethod=\"POST\"\n)\nwith urlopen(request, timeout=720) as response:\ncreated = json.load(response)\ntask_id = created[\"id\"]\nprint(\"任务 ID：\", task_id, flush=True)\ntask_url = f\"{BASE}/v1/videos/{quote(task_id, safe='')}\"\n# 总轮询时间可按需要调整；超时后保留 task_id，稍后继续查询。\ndeadline = time.monotonic() + 3600\nwhile time.monotonic() \u003c deadline:\ntry:\nwith urlopen(Request(task_url, headers=HEADERS), timeout=30) as response:\ntask = json.load(response)\nexcept HTTPError as exc:\nif exc.code == 429 or 500 \u003c= exc.code \u003c 600:\ntime.sleep(15)\ncontinue\nraise\nexcept (URLError, TimeoutError):\nstatus = task.get(\"status\")\nprint(\"状态：\", status, \"进度：\", task.get(\"progress\"), flush=True)\nif status == \"completed\":\nbreak\nif status == \"failed\":\nraise RuntimeError(f\"视频生成失败：{task.get('error')}\")\nelse:\nraise TimeoutError(f\"查询超时，请稍后继续查询任务 {task_id}\")\n# 只重试下载，不重新提交生成。\ndownload_url = f\"{task_url}/content\"\ndownload_deadline = time.monotonic() + 600\nwhile time.monotonic() \u003c download_deadline:\nwith urlopen(Request(download_url, headers=HEADERS), timeout=120) as response:\nwith open(\"video.mp4\", \"wb\") as output:\nwhile True:\nchunk = response.read(1024 * 1024)\nif not chunk:\noutput.write(chunk)\nprint(\"已保存 video.mp4\")\nif exc.code == 503:\nretry_after = exc.headers.get(\"Retry-After\", \"10\")\ntime.sleep(int(retry_after) if retry_after.isdigit() else 10)\ntime.sleep(10)\nraise TimeoutError(f\"视频尚未下载，请稍后继续下载任务 {task_id}\")\n完整配置\n能力、售价与调用参数以本卡当前记录为准。","tags":"video","quota_type":1,"model_ratio":0,"model_price":0.958904109589,"owner_by":"","completion_ratio":0,"enable_groups":["default"],"supported_endpoint_types":["openai","openai-response","openai-response-compact","anthropic","gemini","openai-alpha-search"],"billing_usage_schema":{"count":{"type":"number","unit":"count","description":{"en":"Output count","zh":"生成数量"}},"resolution":{"enum":["720p"],"description":{"en":"Output resolution","zh":"输出分辨率"}}}},{"model_name":"jm-sd2.5-720p","description":"【成功率 92.6%】 jm-sd2.5-720p · 720p · 按秒计费 · 4–30 秒（必填）· 30图/10音频\nSeedance 2.5 稳定通道，720p 单档输出，按秒计费；时长 4–30 秒，duration 或 seconds 必填。\n当前状态\n- 已上架：模型广场可见，POST /v1/videos 接口开放。\n- 计费方式：按秒计费，不按条、不按 token。\n接口与鉴权\n- 接口地址：https://shenmeai.vip/v1\n- 请求头：Authorization: Bearer 你的API_KEY\n- 请求体使用 JSON：Content-Type: application/json\n- 能力类型：视频生成；创建：POST /v1/videos；查询/下载：GET /v1/videos/{task_id}、GET /v1/videos/{task_id}/content\n模型与参数\n- model 为 jm-sd2.5-720p。\n- duration（或 seconds）为 4–30 秒的整数，必填；不传会报错。\n- 输出分辨率固定 720p，不支持 480p、1080p、4k 等其他档位。\n- ratio 支持 16:9、9:16、1:1、4:3、3:4、21:9。\n- 不支持参考视频，也不支持首帧图与尾帧图。\n参考素材\n- images 最多 30 张，audios 最多 10 段，均需可直接下载的公网 HTTP(S) 链接。\n计费\n- 按秒计费、单一 720p 档：单价见本站「模型定价」页，费用 = 单价 × 生成秒数，与参考素材数量无关。","icon":"Video","tags":"video,seedance","quota_type":1,"model_ratio":0,"model_price":0.050684931507,"owner_by":"","completion_ratio":0,"enable_groups":["default"],"supported_endpoint_types":["openai"],"billing_mode":"tiered_expr","billing_expr":"tier(\"base\", u(\"seconds\") * 0.050684931507)","billing_usage_schema":{"seconds":{"type":"number","unit":"second","description":{"en":"Requested duration","zh":"生成时长"}}}},{"model_name":"H3-768","description":"【成功率 94.8%】 H3-768 · 768p · 按秒计费 · 5–15 秒 · 比例 16:9/9:16/1:1\n\n接口与鉴权\n- 接口地址：https://shenmeai.vip\n- 请求头：Authorization: Bearer 你的API_KEY\n- 创建任务使用 JSON：Content-Type: application/json\n- 查询与下载使用同一账号的 Bearer API Key。\n\n模型与参数\n- model 为 H3-768。\n- prompt 为视频描述文本。\n- resolution 固定为 768p，由本站按模型名锁定。\n- seconds（或 duration）为 5–15 秒的整数。\n- ratio 支持 16:9、9:16、1:1。\n- images 最多 5 张；不支持参考视频与参考音频。\n\n创建任务\nPOST /v1/videos\ncurl https://shenmeai.vip/v1/videos \\\n  -H \"Authorization: Bearer $API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"model\": \"H3-768\",\n    \"prompt\": \"视频描述\",\n    \"seconds\": 5,\n    \"images\": [\"https://example.com/ref.jpg\"]\n  }'\n\n查询和轮询\nGET /v1/videos/{task_id}。保存创建响应中的 id，每 10–15 秒查询；queued 表示排队，in_progress 表示生成中，completed 表示完成，failed 表示失败。查询异常时保留原任务 ID，不重复提交。\n\n下载\n任务完成后请求 GET /v1/videos/{task_id}/content，使用同一账号的 Bearer API Key。\ncurl --fail -L \"https://shenmeai.vip/v1/videos/你的任务ID/content\" \\\n  -H \"Authorization: Bearer $API_KEY\" \\\n  -o video.mp4\n\n计费\n- 按秒计费，费用 = 单价 × 生成秒数，与参考素材数量无关。","tags":"video,h3","quota_type":1,"model_ratio":0,"model_price":0.020547945205,"owner_by":"","completion_ratio":0,"enable_groups":["default"],"supported_endpoint_types":["openai","openai-response","openai-response-compact","anthropic","gemini","openai-alpha-search"],"billing_mode":"tiered_expr","billing_expr":"tier(\"base\", u(\"seconds\") * 0.020547945205)","billing_usage_schema":{"seconds":{"type":"number","unit":"second","description":{"en":"Requested duration","zh":"生成时长"}}}},{"model_name":"TTseadanco2.5-480","description":"【成功率 12.8% ｜ 流量较大时建议错峰使用】 480p · 按秒计费 · 5–30 秒 · 30图/10视频/10音频 · 比例 16:9/9:16/1:1\n\n接口与鉴权\n- 接口地址：https://shenmeai.vip\n- 请求头：Authorization: Bearer 你的API_KEY\n- 创建任务使用 JSON：Content-Type: application/json\n- 查询与下载使用同一账号的 Bearer API Key。\n模型与参数\n- model 为 TTseadanco2.5-480。\n- prompt 为视频描述文本。\n- resolution 为 480p。\n- seconds（或 duration）为 5–30 秒。\n- ratio 为画面比例，按模型支持值传入（常用 16:9 / 9:16 / 1:1）。\n- images 为公开 HTTP(S) URL 数组，最多 30 张参考图。\n- videos 为公开 HTTP(S) URL 数组，最多 10 段参考视频。\n- audios 为公开 HTTP(S) URL 数组，最多 10 段参考音频。\n参考素材上限：\n- images：最多 30 张参考图。\n- videos：最多 10 段参考视频。\n- audios：最多 10 段参考音频。\n上传参考图\n参考素材必须是公开可访问的 HTTPS URL。如图片在本地，请先上传到公开图床，再把地址填入参考图参数；本站不保存参考素材。\n创建任务\nPOST /v1/videos\ncurl https://shenmeai.vip/v1/videos \\\n-H \"Authorization: Bearer $API_KEY\" \\\n-H \"Content-Type: application/json\" \\\n-d '{\n\"model\": \"TTseadanco2.5-480\"\n\"prompt\": \"视频描述\"\n\"seconds\": 5\n}'\n查询和轮询\nGET /v1/videos/{task_id}。保存创建响应中的 id，每 10–15 秒查询；queued 表示排队，in_progress 表示生成中，completed 表示完成，failed 表示失败。查询异常时保留原任务 ID，不重复提交。\ncurl \"https://shenmeai.vip/v1/videos/你的任务ID\" \\\n-H \"Authorization: Bearer $API_KEY\"\n下载\n任务完成后请求 GET /v1/videos/{task_id}/content，使用同一账号的 Bearer API Key。\n查询结果如包含 video_url 和 result_url，可直接使用该地址下载，无需 Authorization；两个字段指向相同视频。地址支持 GET、HEAD 和 Range；expires_at 为链接失效的 Unix 秒时间戳。\ncurl --fail -L \"https://shenmeai.vip/v1/videos/你的任务ID/content\" \\\n-o video.mp4\n若返回 video_archive_pending，按响应的 Retry-After 等待并重试下载。\nPython 完整示例：提交、轮询、下载\n将 API_KEY 环境变量设为自己的本站 API Key；按需修改请求参数。\nimport json\nimport os\nimport time\nfrom urllib.error import HTTPError, URLError\nfrom urllib.parse import quote\nfrom urllib.request import Request, urlopen\nBASE = \"https://shenmeai.vip\"\nAPI_KEY = os.environ[\"API_KEY\"]\nMODEL = \"TTseadanco2.5-480\"\nHEADERS = {\"Authorization\": f\"Bearer {API_KEY}\"}\npayload = {\n}\n# 只提交一次。提交结果不明确时不自动重试。\nrequest = Request(\nf\"{BASE}/v1/videos\"\ndata=json.dumps(payload, ensure_ascii=False).encode(\"utf-8\")\nheaders={**HEADERS, \"Content-Type\": \"application/json\"}\nmethod=\"POST\"\n)\nwith urlopen(request, timeout=720) as response:\ncreated = json.load(response)\ntask_id = created[\"id\"]\nprint(\"任务 ID：\", task_id, flush=True)\ntask_url = f\"{BASE}/v1/videos/{quote(task_id, safe='')}\"\n# 总轮询时间可按需要调整；超时后保留 task_id，稍后继续查询。\ndeadline = time.monotonic() + 3600\nwhile time.monotonic() \u003c deadline:\ntry:\nwith urlopen(Request(task_url, headers=HEADERS), timeout=30) as response:\ntask = json.load(response)\nexcept HTTPError as exc:\nif exc.code == 429 or 500 \u003c= exc.code \u003c 600:\ntime.sleep(15)\ncontinue\nraise\nexcept (URLError, TimeoutError):\nstatus = task.get(\"status\")\nprint(\"状态：\", status, \"进度：\", task.get(\"progress\"), flush=True)\nif status == \"completed\":\nbreak\nif status == \"failed\":\nraise RuntimeError(f\"视频生成失败：{task.get('error')}\")\nelse:\nraise TimeoutError(f\"查询超时，请稍后继续查询任务 {task_id}\")\n# 只重试下载，不重新提交生成。\ndownload_url = f\"{task_url}/content\"\ndownload_deadline = time.monotonic() + 600\nwhile time.monotonic() \u003c download_deadline:\nwith urlopen(Request(download_url, headers=HEADERS), timeout=120) as response:\nwith open(\"video.mp4\", \"wb\") as output:\nwhile True:\nchunk = response.read(1024 * 1024)\nif not chunk:\noutput.write(chunk)\nprint(\"已保存 video.mp4\")\nif exc.code == 503:\nretry_after = exc.headers.get(\"Retry-After\", \"10\")\ntime.sleep(int(retry_after) if retry_after.isdigit() else 10)\ntime.sleep(10)\nraise TimeoutError(f\"视频尚未下载，请稍后继续下载任务 {task_id}\")\n完整配置","tags":"video,sd2.5","quota_type":1,"model_ratio":0,"model_price":0.038356164384,"owner_by":"","completion_ratio":0,"enable_groups":["default"],"supported_endpoint_types":["openai","openai-response","openai-response-compact","anthropic","gemini","openai-alpha-search"],"billing_mode":"tiered_expr","billing_expr":"tier(\"base\", u(\"seconds\") * 0.038356164384)","billing_usage_schema":{"seconds":{"type":"number","unit":"second","description":{"en":"Requested duration","zh":"生成时长"}}}},{"model_name":"gpt-image-2.6-sunburst","description":"【成功率 98.5%】 文生图与参考图编辑 · 按次计费 · 支持 2K/4K 输出\n文生图 · 支持参考图输入 · 按次计费 · 分辨率 1K / 2K / 4K · 参考图最多 9 张 · 不支持超分。 本站售价 ¥0.036/次。\n接口与鉴权\n- 接口地址：https://shenmeai.vip/v1\n- 请求头：Authorization: Bearer 你的API_KEY\n- 请求体使用 JSON：Content-Type: application/json\n- 能力类型：图片生成；创建：POST /v1/images/generations；查询/下载：GET /v1/images/generations/{task_id}\n模型与参数\n- model 为 gpt-image-2.6-sunburst。\n- prompt 为画面描述文本。\n- resolution 支持 1K、2K、4K。\n- 参考图最多 9 张，传公开可访问的 HTTPS 图片地址。\n- size 可传比例（如 16:9）或像素框（如 2048x1152），两种写法插件都会换算；像素框边长不超过 3840、总像素 655360–8294400。\n计费\n- 按次计费，每张图记 1 次，本站售价 ¥0.036/次。\n创建示例\ncurl https://shenmeai.vip/v1/images/generations \\\n-H \"Authorization: Bearer $API_KEY\" -H \"Content-Type: application/json\" \\\n-d '{\"model\": \"gpt-image-2.6-sunburst\", \"prompt\": \"一只坐在窗台上的猫\", \"resolution\": \"4k\"}'","tags":"image,upscale","quota_type":1,"model_ratio":0,"model_price":0.004931506849,"owner_by":"","completion_ratio":0,"enable_groups":["default"],"supported_endpoint_types":["image-generation","openai","openai-response","openai-response-compact","anthropic","gemini","openai-alpha-search"],"billing_usage_schema":{"count":{"type":"number","unit":"count","description":{"en":"Output count","zh":"生成数量"}}}}],"group_ratio":{"default":1,"vip":1},"pricing_version":"a42d372ccf0b5dd13ecf71203521f9d2","success":true,"supported_endpoint":{"anthropic":{"path":"/v1/messages","method":"POST"},"gemini":{"path":"/v1beta/models/{model}:generateContent","method":"POST"},"image-generation":{"path":"/v1/images/generations","method":"POST"},"openai":{"path":"/v1/chat/completions","method":"POST"},"openai-alpha-search":{"path":"/v1/alpha/search","method":"POST"},"openai-response":{"path":"/v1/responses","method":"POST"},"openai-response-compact":{"path":"/v1/responses/compact","method":"POST"}},"usable_group":{"default":"Default group","vip":"VIP group"},"vendors":[]}