CogVideoX-5B
cogvideox-5bCogVideoX-5B from Tsinghua/Zhipu AI, an open 5B-parameter text-to-video diffusion transformer. Generates 6-second 720p clips with coherent motion and is widely used in research for its open weights and reproducibility.
- Price
- โ US$0.60/run
- Input โ output
- Text โ Video
- Developer
- Community
- Updated
- 23 September 2026
Playground
Try CogVideoX-5B
Input & output
This run
about US$0.60 ยท 60 credits
US$1.80 (180 credits) are reserved at the start; the actual GPU time is billed.
For accounts without a purchase: runs above 2 credits need a top-up.
New here?
10 free credits (US$0.10) when you sign up with Google
Usable 24 hours after sign-up, up to 5 runs per day and at most 2 credits per run. Other sign-in methods start without credits.
Examples
Prompt
A pink tiger running through the snow under the northern lights
Length: 0:06
Prompt
An anime where a cat is drinking ramen
Length: 0:06
Prompt
A french porcupine sneezing twice
Length: 0:06
About CogVideoX-5B
CogVideoX-5B is a model by Community in the Video generation category. On Railwail, CogVideoX-5B costs โ US$0.60 per run.
Pricing
| Typical run (โ 357 s on A100 (80GB)) | US$0.60 per run |
|---|---|
| GPU time (A100 (80GB)) | US$0.00168 per GPU second |
- Billed by the GPU time the run actually takes. When the run starts, 3ร the typical price is reserved from your balance and settled afterwards.
- 1 credit = US$0.01
Cost calculator
Price calculator
Typical according to the provider: about 357.1 s
Total
US$60.00
6,000 credits
Per run
US$0.60 ยท 60 credits
Billed by the actual GPU time; this is an estimate.
API
curl https://railwail.com/api/v1/videos/generations \
-H "Authorization: Bearer $RAILWAIL_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "cogvideox-5b",
"prompt": "A slow drone shot over a misty pine forest at sunrise"
}'
# Response: {"job_id": "...", "status": "queued", ...}
# Poll until status is completed, failed or cancelled:
curl https://railwail.com/api/v1/jobs/JOB_ID \
-H "Authorization: Bearer $RAILWAIL_API_KEY"import os
import time
import requests
API = "https://railwail.com/api/v1"
headers = {"Authorization": f"Bearer {os.environ['RAILWAIL_API_KEY']}"}
job = requests.post(
f"{API}/videos/generations",
headers=headers,
json={
"model": "cogvideox-5b",
"prompt": "A slow drone shot over a misty pine forest at sunrise",
},
).json()
while True:
status = requests.get(f"{API}/jobs/{job['job_id']}", headers=headers).json()
if status["status"] in ("completed", "failed", "cancelled"):
break
time.sleep(5)
print(status["status"], status.get("output_url"))const API = "https://railwail.com/api/v1";
const headers = {
Authorization: `Bearer ${process.env.RAILWAIL_API_KEY}`,
"Content-Type": "application/json",
};
const job = await fetch(`${API}/videos/generations`, {
method: "POST",
headers,
body: JSON.stringify({
model: "cogvideox-5b",
prompt: "A slow drone shot over a misty pine forest at sunrise"
}),
}).then((r) => r.json());
let status;
do {
await new Promise((r) => setTimeout(r, 5000));
status = await fetch(`${API}/jobs/${job.job_id}`, { headers }).then((r) => r.json());
} while (!["completed", "failed", "cancelled"].includes(status.status));
console.log(status.status, status.output_url);Videos run asynchronously: the first call returns a job_id; query /api/v1/jobs/JOB_ID until the status is completed.
Specifications
- Model ID
cogvideox-5b- Developer
- Community
- Category
- Video generation
- Input
- Text
- Output
- Video
- Billing
- By usage (tokens or GPU time)
- Catalog entry updated
- 23 September 2026
Input parameters
Inputs and settings from the model's input schema. The example in the API section shows which of them the API accepts.
promptrequiredWhat video to generate
Type: TextDefault: โAllowed values: up to 2,000 charactersseedOptional seed for reproducibility
Type: IntegerDefault: โAllowed values: โ
Tags
- replicate
- cogvideox
- zhipu
- video
- text-to-video
- open-weights
Use cases
Frequently asked questions
What is CogVideoX-5B?
CogVideoX-5B is a model by Community in the Video generation category. On Railwail you can call it with an API key through the Railwail API.
How much does CogVideoX-5B cost on Railwail?
On Railwail, CogVideoX-5B costs โ US$0.60 per run. You are charged for what each request actually uses. Usage is paid from prepaid credits; 1 credit equals US$0.01.
Which settings does CogVideoX-5B support?
According to its input schema, CogVideoX-5B knows these parameters: prompt (up to 2,000 characters) and seed.
How fast is CogVideoX-5B?
There are not enough measured runs of CogVideoX-5B on Railwail yet to state a run time. It depends on the input, the settings and the load at the provider.
Is CogVideoX-5B better than Google Veo 3.1?
That depends on the task. CogVideoX-5B (Community) and Google Veo 3.1 (Google DeepMind) are both models in the Video generation category. The comparison page shows their prices and specifications side by side.
Compare CogVideoX-5B and Google Veo 3.1How do I use CogVideoX-5B through the API?
Create a Railwail API key and send your request with the model ID cogvideox-5b. Code examples for curl, Python and JavaScript are in the API section of this page.
Comparable models
All in this category- HunyuanVideoTencent
Tencent's HunyuanVideo, a 13B open-weights text-to-video diffusion transformer. Produces high-motion, photorealistic clips with smooth temporal consistency and was one of the first open models to rival closed systems on motion quality.
- Google Veo 2Google DeepMind
Google's state-of-the-art video generation model. Simulates real-world physics with various visual styles.
- Google Veo 3 (Replicate)Google DeepMind
Google's Veo 3 served via Replicate. Text-to-video with native synchronized audio generation. High-fidelity motion and scene coherence in short clips.
Use CogVideoX-5B via the API
One API key for every model on Railwail. Usage is charged from prepaid credits, 1 credit = US$0.01.