更新runway 2api风控

This commit is contained in:
2026-07-10 13:25:42 +08:00
parent 8d792e66e0
commit 3a2c9710c3
4 changed files with 112 additions and 44 deletions
+7
View File
@@ -65,6 +65,13 @@ func (c *Client) GenerateVideo(ctx context.Context, token, prompt, aspectRatio,
return nil, nil, err
}
// Self-heal the x-statsig-id anti-bot challenge for THIS session before the
// gated submit. Without it the header falls back to the static defaults,
// which go stale on a new grok web build and make conversations/new answer
// 403 (anti-bot). Fetch via the proxy client so the derived seed matches the
// submit's egress IP. Failure is non-fatal (statsigID then uses defaults).
c.ensureChallenge(ctx, submitClient, token)
// Image-to-video: upload each reference frame and collect its asset URL.
var imageRefs []string
for _, f := range frames {