#3533·new-api

Jimeng video task polling uses wrong req_key / empty aspect_ratio causes task failure in v0.11.9

Author: bilibilipalaCreated Apr 2, 2026Updated Sep 29, 2026
Labelsbugstale

Read This First (Do Not Remove This Section)

Your current newapi version

v0.11.9

Submission Checks

  • I have confirmed there are no similar issues
  • I have thoroughly read the docs at https://docs.newapi.ai/ and the project README, especially the FAQ section
  • I have not removed any guidance or section headings from this template and will complete it as requested
  • I understand that maintainers have limited time and issues that do not follow this template may be ignored or closed directly

Issue Description

There are multiple issues in the Jimeng video task implementation in v0.11.9.

When using the built-in Jimeng channel with Volcengine AK/SK, task submission can succeed, but task polling and request construction have problems:

  1. The submit request sends an empty aspect_ratio, which causes upstream validation failure for jimeng_t2v_v30
  2. The fetch logic previously used a fixed req_key, which is incompatible with multi-model Jimeng channels

I verified that the same AK/SK works correctly when calling Volcengine Jimeng directly with the official signed request, so this is not caused by account permissions, service activation, or channel configuration.

Steps to Reproduce

  1. Deploy new-api v0.11.9
  2. Add a Jimeng channel
  3. Set channel base URL to: https://visual.volcengineapi.com
  4. Configure AK/SK in the required format: AccessKey|SecretAccessKey
  5. Add a Jimeng video model such as: jimeng_t2v_v30
  6. Send a request:
bash
curl http://<new-api>/v1/video/generations \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "jimeng_t2v_v30",
    "prompt": "test"
  }'
  1. Check task status with:
bash
curl http://<new-api>/v1/video/generations/<task_id> \
  -H "Authorization: Bearer <token>"

During debugging, I printed the actual upstream request body generated by new-api and got:

{"req_key":"jimeng_t2v_v30","prompt":"test","seed":0,"aspect_ratio":"","frames":121}

Upstream later returned:

Invalid Param:x2v pipeline: aspect_ratio is not valid

Expected Result

  • Jimeng video submit request should not send empty optional fields such as aspect_ratio
  • Fetch logic should use the real model/upstream req_key instead of a fixed req_key
  • Jimeng video tasks should move normally through QUEUED / IN_PROGRESS / SUCCESS and return the video URL
ImageImage