Skip to content

CogVideoX-5B

Integrate

Model id cogvideox-5b
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/cogvideox-5b?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

This request: $0.20 200 API credits Run it on this page

Get API key
Zhipu AI Text to Video

Text-to-video generation with CogVideoX-5B, with LoRA support and adjustable frame rate

Zhipu AI · Video

Your first result goes here

Build a request below and run it with your API key. Outputs are copied to our storage, kept forever or 7 days for free.

Build a request

Controls are generated from the model schema. The code and the price update as you change them.

•required

Prompt used as the basis for video generation.

Advanced negative_prompt · video_size · num_inference_steps · guidance_scale · export_fps · seed · use_rife · enable_safety_checker · loras
default

Negative prompt for video generation.

video_size default {"height":480,"width"...

Dimensions of the generated video.

default 50

Count of inference steps to run.

default 7

Prompt adherence when the model looks for a related video to display, expressed through the CFG scale (Classifier Free Guidance).

default 16

Target frame rate for the video, in FPS.

Seed for repeatable video generation. Exact reproduction on every run requires an unchanged model version, prompt, and seed.

default []

Supply a single LoRA for image generation; multiple LoRAs are not currently supported.

POST /run/cogvideox-5b?wait=20 quote → $0.20
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/cogvideox-5b?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Run this request

Your key stays in this browser: it is sent only to the Doitong API and saved (localStorage) only if you tick Remember. Get an API key

About CogVideoX-5B

Creates a short video from a text `prompt`. Choose a preset `video_size` such as square_hd or landscape_16_9, set `num_inference_steps` (1 to 50) and `guidance_scale` (0 to 20), and add a `negative_prompt`. `export_fps` ranges from 4 to 32, RIFE interpolation is on by default, and one LoRA can be applied.

Parameters

NameType DefaultAllowed Description
promptrequired
Typestring
Prompt used as the basis for video generation.
video_sizeoptional
Typeobject
Default{"height":480,"width":720}
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
Dimensions of the generated video.
negative_promptoptional
Typestring
Default
Negative prompt for video generation.
lorasoptional
Typeobject[]
Default[]
Supply a single LoRA for image generation; multiple LoRAs are not currently supported.
loras[].pathrequired
Typestring
Location of the LoRA weights, specified as a URL or path.
loras[].scaleoptional
Typenumber
Default1
0 – 4
Multiplier applied to the LoRA weight before it is merged into the base model.
num_inference_stepsoptional
Typeinteger
Default50
1 – 50
Count of inference steps to run.
seedoptional
Typeinteger | null
Seed for repeatable video generation. Exact reproduction on every run requires an unchanged model version, prompt, and seed.
guidance_scaleoptional
Typenumber
Default7
0 – 20
Prompt adherence when the model looks for a related video to display, expressed through the CFG scale (Classifier Free Guidance).
use_rifeoptional
Typeboolean
Defaulttrue
Enables video interpolation with RIFE.
export_fpsoptional
Typeinteger
Default16
4 – 32
Target frame rate for the video, in FPS.
enable_safety_checkeroptional
Typeboolean
Defaulttrue
Screening can be relaxed by setting false, provided the caller is authorized.
required

Output

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "cogvideox-5b",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 200,
    "usd": "0.20",
    "charged": 200,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "output": {
    "video": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_name": "0-output.mp4",
      "file_size": 1843200
    },
    "timings": {},
    "seed": 42,
    "prompt": "string"
  },
  "outputs": [
    {
      "type": "video",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_size": 1843200,
      "width": 1280,
      "height": 720,
      "duration": 5,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Your files, your choiceEvery outputs[].url is a copy on our storage: kept forever (paid per GB-month) or 7 days for free, by your account setting or ?storage=.
Same shape on every modeltype, url, content_type, width, height and duration, for images, video and audio alike. output is the model’s own result object.
Fields of output
video
object {url, content_type, file_name, file_size}URL pointing to the generated video.
timings
object
seed
integerActual seed used for video generation, including the randomly selected value when the input omitted a seed. Otherwise, it matches the input seed.
prompt
stringPrompt used to produce the video.

More models: Text to Video

For AI agents: this page as Markdown is at https://doitong.com/developers/models/cogvideox-5b.md. All models and guides: https://doitong.com/developers/llms.txt