POST /openapi/capcut-mate/v1/effect_infos
Generate effect information based on effect names and timelines. This interface converts effect names and timeline configurations into the effect information format required by Jianying drafts.
📖 For more detailed documentation and tutorials, please visit: https://docs.jcaigc.cn
{
"effects": ["blur", "vignette"],
"timelines": [
{"start": 0, "end": 3000000},
{"start": 3000000, "end": 6000000}
]
}| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| effects | array[string] | ✅ | - | Effect name array |
| timelines | array[object] | ✅ | - | Timeline configuration array |
{
"infos": "[{\"effect\":\"blur\",\"start\":0,\"end\":3000000,\"duration\":5000000},{\"effect\":\"vignette\",\"start\":3000000,\"end\":6000000,\"duration\":5000000}]"
}| Field | Type | Description |
|---|---|---|
| infos | string | Effect information JSON string |
{
"detail": "Error message description"
}curl -X POST https://capcut-mate.jcaigc.cn/openapi/capcut-mate/v1/effect_infos \
-H "Content-Type: application/json" \
-d '{
"effects": ["blur"],
"timelines": [{"start": 0, "end": 5000000}]
}'curl -X POST https://capcut-mate.jcaigc.cn/openapi/capcut-mate/v1/effect_infos \
-H "Content-Type: application/json" \
-d '{
"effects": ["blur", "vignette", "sepia"],
"timelines": [{"start": 0, "end": 2000000}, {"start": 2000000, "end": 4000000}, {"start": 4000000, "end": 6000000}]
}'| Error Code | Error Message | Description | Solution |
|---|---|---|---|
| 400 | effects is required | Missing effect name parameter | Provide valid effect name array |
| 400 | timelines is required | Missing timeline parameter | Provide valid timeline array |
| 400 | Array length mismatch | effects and timelines array lengths don't match | Ensure both arrays have the same length |
| 500 | Effect information generation failed | Internal processing error | Contact technical support |
- Array Matching: effects and timelines array lengths must be the same
- Time Unit: All time parameters use microseconds (1 second = 1,000,000 microseconds)
- Effect Names: Need to use system-supported effect names
- Continuity: Effects are applied in timeline order
- Validate required parameters (effects, timelines)
- Check array length matching
- Validate timeline parameter validity
- Generate corresponding effect information for each effect name
- Convert information to JSON string format
- Return processing result
📚 Project Resources
GitHub: https://github.com/Hommy-master/capcut-mate
Gitee: https://gitee.com/taohongmin-gitee/capcut-mate