nightmareai/cogvideo

Text-to-video generation

  • Public
  • 32.2K runs

Run cogvideo with an API

Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.

Input schema

The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.

Field Type Default value Description
prompt
string
Prompt
seed
integer
-1

Min: -1

Max: 100000

Seed (-1 to use a random seed)
translate
boolean
True
Translate prompt from English to Simplified Chinese (required if not entering Chinese text)
both_stages
boolean
True
Run both stages (uncheck to run more quickly and output only a few frames)
use_guidance
boolean
True
Use stage 1 guidance (recommended)
image_prompt
string
Starting image (optional, prompt has little effect when used)

Output schema

The shape of the response you’ll get when you run this model with an API.

Schema
{'items': {'format': 'uri', 'type': 'string'},
 'title': 'Output',
 'type': 'array',
 'x-cog-array-type': 'iterator'}