chat
用户发起 AI 对话时触发。| 属性 | 类型 | 说明 |
|---|---|---|
thread_id | string | 对话线程 ID |
thinking | boolean | 是否启用思考模式 |
crazy | boolean | 是否启用 crazy 模式 |
chat_completion
AI 对话完成时触发。| 属性 | 类型 | 说明 |
|---|---|---|
thread_id | string | 对话线程 ID |
model | string | 模型名称 |
input_tokens | number | 输入 token |
output_tokens | number | 输出 token |
total_tokens | number | 总 token |
input_cost_usd | number | 输入成本 |
output_cost_usd | number | 输出成本 |
total_cost_usd | number | 总成本 |
duration_ms | number | 耗时 (ms) |
tool_calls | number | 工具调用次数 |
tool_usage
AI 调用工具时触发。| 属性 | 类型 | 说明 |
|---|---|---|
thread_id | string | 对话线程 ID |
tool_name | string | 工具名称 |
success | boolean | 是否成功 |
duration_ms | number | 耗时 (ms) |
credits_consumed | number | 消耗 credits |
extra | object | 额外信息 |
error_message | string | 错误信息 |
| 工具 | Credits |
|---|---|
generateImageWithAI | 5 |
removeBackground | 5 |
upscale | 5 |
eraser | 5 |
expand | 5 |
inpaintWithPrompt | 5 |
replaceBackgroundWithPrompt | 5 |
readImage | 0 |
initializeWithImage | 0 |
thread_created
创建对话线程时触发。| 属性 | 类型 | 说明 |
|---|---|---|
thread_id | string | 线程 ID |
feed_published
发布图片到 Feed 时触发。| 属性 | 类型 | 说明 |
|---|---|---|
feed_id | string | Feed ID |
image_id | string | 原图 ID |
feed_image_id | string | Feed 图片 ID |
visible | boolean | 是否可见 |
invisible_reason | string | 不可见原因 |
feed_deleted
删除 Feed 时触发。| 属性 | 类型 | 说明 |
|---|---|---|
feed_id | string | Feed ID |
image_id | string | 原图 ID |
feed_image_id | string | Feed 图片 ID |
subscription
订阅成功时触发。| 属性 | 类型 | 说明 |
|---|---|---|
plan | string | 订阅计划 |
first | boolean | 是否首次 |
interval | string | 周期 |
amount | number | 金额 |
currency | string | 货币 |
booster_purchase
购买加油包时触发。| 属性 | 类型 | 说明 |
|---|---|---|
amount | number | 金额 |
currency | string | 货币 |
credits | number | 获得 credits |
booster_tier | string | 档位 |