Model CenterGlobalAiOpc

sd_2.5_ORelay_special

POST/kyyReactApiServer/v2/model-center/tasks

Model information

FieldValue
Model ID (model)sd_2.5_ORelay_special
Model typeVideo models
Set the request model field to the Model ID shown above. Using the model name will fail to resolve the model.

Authentication

Get Key
All requests must include a Bearer token in the request headers:
cURL
Authorization: Bearer <API_KEY>

Request parameters

Send the following fields in the JSON request body. model is required — use the Model ID from the Model information section above.
promptstringrequired
Prompt
Text prompt input.
Minimum:1
reference_imagesimage[]
Reference images
Canonical reference image inputs; image_urls/referenceImages/images are external or upstream aliases.
Range:0 – 30
Items:0 - 30
Provide a publicly accessible resource URL.
reference_videosvideo[]
Reference videos
Reference video inputs.
Range:0 – 10
Items:0 - 10
Provide a publicly accessible resource URL.
reference_audiosaudio[]
Reference audios
Reference audio inputs.
Range:0 – 10
Items:0 - 10
Provide a publicly accessible resource URL.
durationinteger
Duration
Generated video duration.
Range:4 – 30
Default:4
aspect_ratiostring
Aspect ratio
Output aspect ratio.
Allowed values:16:9, 9:16, 1:1, 4:3, 3:4, 21:9, adaptive
resolutionstring
Resolution
Output resolution tier.
Allowed values:720p, 1080p
generate_audioboolean
Generate audio
Whether to generate an audio track.
Default:true
image_rolesarray
Prompt
首帧任务 = 1 张 first_frame;首尾帧任务 = first_frame + last_frame 各 1 张。首帧/首尾帧不能与参考图、参考视频、参考音频混用
omni_reference_task_typestring
Prompt
auto(默认)/ reference / edit / extend。edit 需参考视频 + ratio=adaptive + duration=-1;extend 需参考视频 + ratio=adaptive
Default:auto
return_last_frameboolean
Prompt
是否返回尾帧
Default:false

Pricing

Sign in using the page header to view your account prices and available options.

Response contract

Task status is normalized to queued, processing, completed, or failed. Result URLs are returned only when status is completed;
FieldDescription
idTask ID used to poll status and results.
objectResource type, usually video for this model.
createdTask creation time as a Unix timestamp in seconds.
modelModel name used for this request.
statusqueued, processing, completed, or failed.
progressTask progress, usually returned by the query API.
result_urlGeneric result URL, returned only after completion.
video_urlTyped result URL for this resource, returned only after completion.
amountCredits consumed by this task.
actualDurationDuration used by this task.
error_messageAdditional result field exposed by model configuration.
last_frame_urlAdditional result field exposed by model configuration.
errorError message on failure; usually null while queued, processing, or completed.

Query task result

Generation tasks run asynchronously. The submit endpoint returns a task id; poll the query endpoint below with that id until status becomes completed or failed.
http
GET https://zcbservice.aizfw.cn/kyyReactApiServer/v2/model-center/tasks/{id}
Authorization: Bearer <API_KEY>
idstringrequired
The task ID returned by the submit endpoint.
When status is completed, the result URL is returned via result_url and video_url. See the Response contract above for the remaining fields.
Poll every 5–10 seconds and stop once status is completed or failed. Result URLs expire, so download and store them promptly.