Files
hypit/scripts
Sharky Wang 2ca4e5d2ea feat(sume): serve the installed video and image models on Sume (#485)
`@hypit/provider-sume` submits one asynchronous job to `https://api.sume.com`
with a Bearer API key, polls `GET /v1/jobs/{id}/status` until it is terminal,
reads the artifacts from `GET /v1/jobs/{id}/result` and stores them in the
current Build. It maps twelve models the Distribution already describes: the
four Seedance variants, MiniMax H3, Grok Imagine 1.5, PixVerse V6 and C1, GPT
Image 2, Nano Banana 2 and Pro, and Seedream 5.0 lite. It adds no model package.

Video jobs post to `/v1/video-router/generate`, whose flat `image_url`,
`end_image_url` and `reference_*_urls` fields take the mapping as data.
`/v1/videos` rejects `aspect_ratio: adaptive` for Seedance, which the router
accepts. Image jobs post to `/v1/images` with `mode: "async"`, and routes.ts
builds `input_references` from the reference URLs. Sume serves Nano Banana 2 as
Nano Banana 2.1, so `nano-banana-2` runs on `google/nano-banana-2.1`.

References are uploaded through `POST /v1/files/generate-upload-url`: the bytes
are PUT to the presigned URL and the returned `media.sume.com` URL travels in
the job. Service limits are reported as unsupported before any upload: Seedance
web search and automatic 2.5 length, MiniMax H3 under 5 seconds, Grok 1.5 with
more than one image, PixVerse frames, reference videos, seed and multi-clip,
GPT Image 2 background, ratios a catalog row does not list, more than ten
image references, and Seedream quality above basic or with its content check
off. A failed job keeps Sume's code, message and the upstream provider message.
`defaultConcurrency` is 2, the number of jobs Sume's free plan runs at once.

Live runs through the Provider's start/poll/collect against a free-plan key all
completed: text-to-image and reference editing on every image model,
text-to-video, first frame, first and last frame, reference images, and
reference video with reference image and audio on Seedance 2.5, Seedance 2 mini
and MiniMax H3. A `hypit build` chaining Seedream into Nano Banana Pro through
a Runtime Profile completed as well. Total spend was about $3.98.
2026-11-09 20:19:42 +08:00
..