δΈζη | English
POST /openapi/capcut-mate/v1/get_text_effects
Get the list of supported text flower effects (decorative text styles), with optional filtering by membership mode (all, VIP, free). This interface follows the same RESTful POST pattern as similar resource list APIs.
π For more detailed documentation and tutorials, please visit: https://docs.jcaigc.cn
{
"mode": 0
}
| Parameter | Type | Required | Default | Description |
|---|
| mode | integer | β | 0 | Text effect mode: 0=all, 1=VIP, 2=free |
| Mode Value | Mode Name | Description |
|---|
| 0 | All | Return all text effects (including VIP and free) |
| 1 | VIP | VIP text effects only |
| 2 | Free | Free text effects only |
{
"text_effects": [
{
"id": "7539407429763796249",
"title": "ηΊ’ι»η«η°η»ΌθΊθ±ε",
"is_vip": false
},
{
"id": "7351316503771368713",
"title": "η»ΌθΊ - ι»ζζι©³ηΊ’θ²",
"is_vip": false
}
]
}
| Field | Type | Description |
|---|
| text_effects | array | Text flower effect object array |
| Field | Type | Description |
|---|
| id | string | Text effect ID |
| title | string | Text effect name |
| is_vip | boolean | Whether this is a VIP effect |
{
"detail": "Error message description"
}
curl -X POST https://capcut-mate.jcaigc.cn/openapi/capcut-mate/v1/get_text_effects \
-H "Content-Type: application/json" \
-d '{"mode": 0}'
curl -X POST https://capcut-mate.jcaigc.cn/openapi/capcut-mate/v1/get_text_effects \
-H "Content-Type: application/json" \
-d '{"mode": 1}'
curl -X POST https://capcut-mate.jcaigc.cn/openapi/capcut-mate/v1/get_text_effects \
-H "Content-Type: application/json" \
-d '{"mode": 2}'
// 1. Fetch text effects list
const effectsResponse = await fetch('/openapi/capcut-mate/v1/get_text_effects', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ mode: 0 })
});
const effects = await effectsResponse.json();
// 2. User selects a text effect
const selectedEffect = effects.text_effects[0];
// 3. Apply the effect when adding captions
await fetch('/openapi/capcut-mate/v1/add_captions', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
draft_id: "your_draft_id",
captions: [...],
text_effect: selectedEffect.title // or selectedEffect.id
})
});
| Error Code | Error Message | Description | Solution |
|---|
| 400 | Invalid mode parameter | mode parameter out of range | Use 0, 1, or 2 as mode value |
| 500 | filter_get_failed | Failed to get text effects list | Contact technical support |
- Parameter Requirements: mode is optional and defaults to 0
- Mode Values: mode must be one of 0, 1, or 2
- Performance: The text effects list can be large; client-side caching is recommended
- Compatibility: If there are no VIP effects, the interface returns an empty array without error
- Identifier Resolution: Text effects can be referenced by name or ID when calling
add_captions