Skip to main content
CogVLMMediumHigh

CogVLM2 Video

Video understanding and captioning โ€” ask free-form questions about a video and get detailed answers about actions, scenes, and content. Great for video search indexing and moderation prep.

28 credits
per video query
Free-form questions about video content
Action and scene understanding
Detailed multi-sentence answers
Temperature/top_p generation controls

Run it right now

Test this model instantly in the Console Playground โ€” no code required

Sign in to try

Use with AI Assistant

Copy usage instructions for Claude, ChatGPT, or other AI

Quick Start

curl -X POST "https://api.core.today/v1/predictions" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: cdt_your_api_key" \
  -d '{
  "model": "chenxwh/cogvlm2-video",
  "input": {
    "input_video": "https://example.com/clip.mp4",
    "prompt": "Describe this video in detail, including actions and scene changes."
  }
}'

Parameters

ParameterTypeRequiredDefaultDescription
promptstringNoDescribe this video.Question or instruction about the video
input_videostringYes-Video to analyze
top_pnumberNo0.1When decoding text, samples from the top p percentage of most likely tokens; lower to ignore less likely tokens
temperaturenumberNo0.1Sampling temperature
max_new_tokensintegerNo2048Maximum answer length

How to Provide File Input

There are 3 ways to provide files for the input_video parameter:

Recommended

Direct Upload (Multipart)

Attach files directly to POST /v1/predictions/upload. No separate upload step needed.

curl -X POST "https://api.core.today/v1/predictions/upload" \
  -H "X-API-Key: cdt_your_api_key" \
  -F "model=chenxwh/cogvlm2-video" \
  -F 'input={"prompt":"your prompt here"}' \
  -F "file:input_video=@your_file.png"

Image URL

Pass a publicly accessible URL directly. You can also use file_url from the Storage API.

{
  "model": "chenxwh/cogvlm2-video",
  "input": {
    "prompt": "your prompt here",
    "input_video": "https://example.com/image.jpg"
  }
}
See the File Upload docs for more upload methods including Presigned URLs.

Common Parameters

Common parameters used when calling POST /v1/predictions.

ParameterTypeRequiredDefaultDescription
modelstringYes-Model identifier
inputobjectYes-Object containing the model-specific parameters from the table above
output_folderstringNo-Folder path for output files (max 256 chars, '..' not allowed)
webhook_urlstringNo-Webhook URL to call on completion
is_publicbooleanNofalseIf true, output files are also available via permanent public URLs

Examples

Video Summary

Get a detailed description of what happens in a clip

curl -X POST "https://api.core.today/v1/predictions" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: cdt_your_api_key" \
  -d '{
  "model": "chenxwh/cogvlm2-video",
  "input": {
    "input_video": "https://example.com/clip.mp4",
    "prompt": "Describe this video in detail, including actions and scene changes."
  }
}'

Tips & Best Practices

1Ask targeted questions ('What products appear?') for extraction workflows
2Keep temperature low (0.1) for factual, consistent descriptions
3Pair with multilingual-e5-large to build searchable video indexes

Use Cases

Video search index descriptions
Content moderation pre-screening
Automatic video summaries
Accessibility descriptions