Endpoints

Create a video

Start a video generation task, then check its progress.

POST/v1/videos

Send your API key in the Authorization: Bearer YOUR_BEEFAPI_KEY header. Get an API key →

Request example

Use your key. Replace sample task IDs and image URLs.

curl -X POST "https://global.beefapi.com/v1/videos" \  -H "Authorization: Bearer YOUR_BEEFAPI_KEY" \  -H "Content-Type: application/json" \  -d '{    "model": "grok-imagine-video-1.5",    "prompt": "A paper boat drifting across a sunlit pond. Gentle camera movement.",    "duration": 4,    "resolution": "480p",    "aspect_ratio": "16:9"  }'

Response examples

Illustrative values. Select a status code.

Task accepted, not a finished video.

{  "id": "video_example",  "object": "video",  "model": "grok-imagine-video-1.5",  "status": "queued",  "created_at": 1788825600}

Request parameters

application/json

ParameterDescription
modelstringRequired

The video model ID to use.

Supported value: grok-imagine-video-1.5

promptstringRequired

Describe the scene, motion and camera movement.

durationintegerOptional

Reference mode is limited to 10 seconds.

Default: 4

Minimum: 1

Maximum: 15

resolutionstringOptional

Reference mode is limited to 720p.

Default: "480p"

Allowed values: 480p720p1080p

aspect_ratiostringOptional

The width-to-height ratio of the video.

Default: "16:9"

Allowed values: 1:116:99:164:33:43:22:3

generate_audiobooleanOptional

Explicit false requests silence; omission uses the model default.

imagestring / objectOptional

The first frame, provided as an image URL or an object containing url.

Field details

The first frame, provided as an image URL or an object containing url.

Public HTTPS URL or data URL.

reference_imagesarrayOptional

Do not combine with image.

Max. items: 7

Field details

Do not combine with image.

Itemsitems <= 7
[index: integer]?|
reference_audiosarrayOptional

Preset voices only; activates reference-mode limits.

Max. items: 3

Field details

Preset voices only; activates reference-mode limits.

Itemsitems <= 3
[index: integer]?
Response fields & status codes

Response fields

application/json

application/json

application/json

application/json

application/json

application/json