Skip to content

[codex] Adapt RunningHub Grok image-to-video API - #126

Draft
w2968066 wants to merge 1 commit into
hero8152:mainfrom
w2968066:codex/runninghub-grok-i2v-api
Draft

[codex] Adapt RunningHub Grok image-to-video API#126
w2968066 wants to merge 1 commit into
hero8152:mainfrom
w2968066:codex/runninghub-grok-i2v-api

Conversation

@w2968066

Copy link
Copy Markdown

Summary

  • add the RunningHub OpenAPI image-to-video model xai/grok-imagine/image-to-video-channel-low-price-v1.5
  • add fallback schema for /openapi/v2/rhart-video-g/image-to-video
  • make RunningHub video result parsing handle results, resultShow, nested output fields, and stringified JSON payloads
  • show RunningHub OpenAPI models in the online provider model dropdown alongside workflows/apps

Why

RunningHub can return successful video tasks as results: [{ url, outputType: "mp4" }] or as stringified JSON in resultShow. The previous parser missed those shapes, so completed video tasks could fail with “generated successfully but no video returned”.

Scope

Only main.py and static/online.html are changed. Local self-healing hotfix files are intentionally excluded.

Validation

  • python -m py_compile main.py
  • imported main.py and verified video_output_urls() extracts mp4 URLs from both results and resultShow response shapes
  • verified custom RunningHub providers receive the pinned Grok image-to-video model

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant