流光剪辑
main
  • main
  • afanti
  1. AI对话
流光剪辑
main
  • main
  • afanti
  • 默认模块
    • 一分钟,了解 流光剪辑!
    • 如何下载草稿
    • 在线预览草稿
    • 获取API Key
    • 价格表
    • 文本
      • 使用花字
      • 使用文字模版
      • 如何上传文字模板
      • add_text
      • add_subtitle
      • add_text_template
      • get_text_intro_types
      • get_text_outro_types
      • get_text_loop_anim_types
      • get_font_types
      • search_artist
    • 图片
      • get_intro_animation_types
      • get_outro_animation_types
      • get_combo_animation_types
      • add_image
    • 视频
      • add_video
    • 转场
      • get_transition_types
    • 蒙版
      • get_mask_types
    • 音频
      • get_audio_effect_types
      • add_audio
    • 关键帧
      • add_video_keyframe
    • 特效
      • get_video_character_effect_types
      • get_video_scene_effect_types
      • add_effect
    • 贴纸
      • search_sticker
      • add_sticker
    • 工作流
      • 工作流脚本技术文档
      • 工作流 AI Prompt 提示词
      • 使用工作流功能
      • execute_workflow
    • 模版/预设
      • 如何使用模版/预设功能
      • 如何上传模版
      • 快速体验预设
      • add_preset
      • presets
      • groups
    • 滤镜
      • add_filter
      • get_filter_types
    • 技能广场skills
      • 技能广场 Skills
      • 字幕
        • 识别字幕
        • 文稿匹配
        • generate_smart_subtitle
        • sta_subtitle
        • smart_subtitle_task_status
      • AI对话
        • 对话模型介绍
        • chat
          POST
        • model_list
          GET
      • 语音合成
        • 微软语音合成音色列表
        • MiniMax语音合成音色列表
        • MiniMax音色克隆
        • 豆包语音合成音色列表
        • Fish语音合成音色列表
        • Fish音色克隆
        • generate_speech
        • minimax_clone
        • fish_clone
      • AI生图
        • 图片生成聚合接口说明
        • generate_image
      • AI生视频
        • 视频生成聚合接口说明
        • ai_video_task_status
        • generate_ai_video
      • 数字人
        • create_digital_human
        • digital_human_task_status
      • 智能裁剪
        • smart_video_clip
      • 智能截图
        • smart_video_capture
      • 人物抠像
        • remove_background
      • 获取时长
        • get_duration
      • 提取音频
        • extract_audio
      • 分割视频
        • split_video
    • create_draft
      POST
    • save_draft
      POST
  1. AI对话

chat

POST
/llm/chat
对话大模型。
价格表

请求参数

Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token
示例:
Authorization: Bearer ********************
Header 参数

Body 参数application/json必填

示例

返回响应

🟢200成功
application/json
Body

请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://open.vectcut.com/llm/chat' \
--header 'Authorization: Bearer  <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "system_prompt": "你是一个有用的助手",
    "user_input": "你好,描述一下图片",
    "model": "gemini-3-pro-preview",
    "response_format": "json",
    "image_url": "https://pic1.imgdb.cn/item/68ba8fc058cb8da5c8801ab0.png"
}'
响应示例响应示例
{
    "choices": [
        {
            "finish_reason": "stop",
            "index": 0,
            "message": {
                "content": "{\n  \"image_description\": {\n    \"summary\": \"这是一张描绘古代中国战场激烈场面的3D渲染插图,展现了一位英勇的武将骑马冲锋的瞬间。\",\n    \"main_subject\": {\n      \"character\": \"一位身穿银白色精致铠甲、披着白色披风的年轻将军(形象类似三国时期的赵云)。他面容坚毅,头扎发髻,正在战场上飞驰。\",\n      \"mount\": \"一匹健壮的白马,马鬃和马尾为黑色,马身沾染了战斗留下的血迹,四蹄腾空,动感十足。\",\n      \"action\": \"将军右手紧握一柄装饰华丽的长枪,枪尖指向前方,似乎正在突围或冲向敌阵。\"\n    },\n    \"environment\": {\n      \"setting\": \"背景是一座宏伟的古代城池关隘,高大的城墙和中式城楼在尘土中若隐若现。\",\n      \"atmosphere\": \"战场上黄沙漫天,硝烟弥漫。空中有崩飞的碎石和飘扬的红色战旗,营造出混乱而紧张的战争氛围。\",\n      \"details\": \"背景中有许多正在厮杀的士兵剪影。画面右下角有熊熊燃烧的火焰和飞溅的火星,左下角和右侧前景有身穿深色盔甲的士兵背影,增强了画面的纵深感。\"\n    },\n    \"style\": {\n      \"visual_style\": \"具有现代中国3D动画电影(如《长安三万里》或《白蛇》系列)的艺术风格,光影效果逼真,细节丰富。\",\n      \"watermark\": \"图片右下角有白色文字标识“豆包AI生成”。\"\n    }\n  }\n}",
                "reasoning_content": "**Generating a Detailed Image Description (JSON)**\n\nOkay, so I'm looking at this image, and I need to generate a JSON description of it. The user wants raw JSON, no extra text, no comments, just the data. Got it. First, I need to understand the image. It's a chaotic Chinese battlefield scene.  A warrior on a white horse is the main subject. White armor, spear, determined expression... definitely has that \"Dynasty Warriors\" vibe. The style is clear: 3D, like modern game art or a high-quality animation. There are soldiers, flags, a city gate in the background – a classic war scene. And there's that pesky \"豆包AI生成\" watermark; I have to remember that.\n\nMy first thought is, how do I organize this information for a good JSON structure? `main_subject`, `environment`, `action`, `art_style`, `specific_details`, and `text_content` are good keys. I start mentally composing the description: general in white armor, galloping horse, battlefield, dust, fire...  Then, I need to translate these thoughts into key-value pairs.\n\nSince the prompt was in Chinese, it's best to describe it in Chinese. So, the title is \"古代战场上的白袍将军\", and I start filling in the details: the general is a young warrior with silver-white armor and a white cape, charging forward on a white horse, holding a spear. I will make the details vivid, describing the horse's musculature, the atmosphere of the battlefield, the foreground soldiers. The goal is to convey the overall feeling of the art.\n\nNow, I assemble the JSON block and make sure everything is properly escaped and formatted. No trailing commas – I know that's a common mistake. I double-check to ensure that the descriptions are vivid, complete, and accurately reflect the visual details of the image. The final JSON block will provide a rich description of the image.\n\n\n",
                "role": "assistant"
            }
        }
    ],
    "created": 1767433732,
    "id": "chatcmpl-20260103174822266340131CPAwG26o",
    "model": "gemini-3-pro-preview",
    "object": "chat.completion",
    "usage": {
        "completion_tokens": 2097,
        "completion_tokens_details": {
            "audio_tokens": 0,
            "reasoning_tokens": 1690,
            "text_tokens": 0
        },
        "input_tokens": 0,
        "input_tokens_details": null,
        "output_tokens": 0,
        "prompt_tokens": 1111,
        "prompt_tokens_details": {
            "audio_tokens": 0,
            "cached_tokens": 0,
            "image_tokens": 0,
            "text_tokens": 11
        },
        "total_tokens": 3208
    }
}
修改于 2026-01-18 06:45:02
上一页
对话模型介绍
下一页
model_list
Built with