Clone any viral video with AI agents. Not just a script, the whole workflow: swap the face, the words, the B-roll, ship 100 variants in one command, and get your 100M views.
TypeScript agentic-aiaiai-agentsai-videocompilerdslffmpeggenerative-aillmmarkup-languagemonorepoplugin-systemprogramming-languagetext-to-videotypescriptvideovideo-automationvideo-clonevideo-editingvideo-generation
fix(provider-hypihub): send the image resolution tier verbatim
rpone8f10d622f8fd
diff --git a/packages/provider-hypihub/src/mapping.ts b/packages/provider-hypihub/src/mapping.tsindex ec74bca3..80c414ad 100644--- a/packages/provider-hypihub/src/mapping.ts+++ b/packages/provider-hypihub/src/mapping.ts@@ -48,7 +48,9 @@ export const hypiHubMappings: readonly GenerationWireMapping[] = [fields: {prompt: { as: "value", field: "prompt" },aspectRatio: { as: "value", field: "aspect_ratio" },- resolution: { as: "value", field: "size", whenAbsent: "1024x1024" },+ // `size` carries the 1K/2K/4K tier verbatim; the upstream reads it beside+ // `aspect_ratio` to choose the pixel dimensions.+ resolution: { as: "value", field: "size", whenAbsent: "1K" },images: { as: "itemObject", field: "reference_images", urlKey: "url", fieldKeys: {} },},},diff --git a/packages/provider-hypihub/src/routes.ts b/packages/provider-hypihub/src/routes.tsindex 135d42fe..e7f004ec 100644--- a/packages/provider-hypihub/src/routes.ts+++ b/packages/provider-hypihub/src/routes.ts@@ -45,10 +45,6 @@ function normalizeHypiHubRequest(): { readonly model: string; readonly input: CanonicalValue } {const input = { ...(request.input as Record<string, unknown>) };if (mapping.result === "image") {- const resolution = input.size;- if (resolution === "1K") input.size = "1024x1024";- else if (resolution === "2K") input.size = "2048x2048";- else if (resolution === "4K") input.size = "3840x2160";return { model: request.model, input: canonicalize(input) };}