Grok
Grok Imagine Video
Grok Imagine Video generates one 6-second video at 480p.
Our price
per second
Official output price
per second
64% lessFirst request
Available# Set OPERATION_ID once per generation; reuse it when retrying.
OPERATION_ID=$(python3 -c "import uuid; print(uuid.uuid4())")
curl https://api.tokely.me/v1/media/tasks \
-H "Authorization: Bearer $TOKELY_API_KEY" \
-H "Idempotency-Key: $OPERATION_ID" \
-H "Content-Type: application/json" \
-d '{
"model": "grok-imagine-video",
"prompt": "A quiet coastal village at sunrise.",
"duration": 6,
"metadata": {
"aspect_ratio": "16:9",
"mode": "normal",
"resolution": "480p"
}
}'
# Read the returned task_id, then check its status:
curl https://api.tokely.me/v1/media/tasks/TASK_ID \
-H "Authorization: Bearer $TOKELY_API_KEY"
# When complete, list downloadable results:
curl https://api.tokely.me/v1/media/tasks/TASK_ID/artifacts \
-H "Authorization: Bearer $TOKELY_API_KEY"Set TOKELY_API_KEY to your dashboard key. Requests require a funded Tokely balance. Base URL: https://api.tokely.me/v1.
Capabilities & limits
- Provider
- Grok
- API model ID
grok-imagine-video- Category
- Video
- Endpoints
POST /v1/media/tasks- Output
- Video · background task
- Supported input
- Prompt, Aspect ratio, Mode, Duration (seconds), Resolution, Nsfw checker
- Per second · 6-second clip $0.108
- $0.018 per second
API reference
Send duration at the top level, reference images as images, and other model settings in metadata. The Playground generates a matching API request.
Authenticate with Authorization: Bearer YOUR_TOKELY_API_KEY. Use your Tokely base URL and API key.
- model
- Required string:
grok-imagine-video - prompt (required)
- Text, up to 4000 characters
- aspect_ratio
- 2:3, 3:2, 1:1, 16:9, 9:16. Default:
16:9 - mode
- fun, normal, spicy. Default:
normal - duration
- Between 6 and 30; whole numbers. Default:
6 - resolution
- 480p, 720p. Default:
480p - nsfw_checker
- true or false
Requests are charged to your Tokely balance using the options and rates shown above. Your dashboard records usage.
Save the returned task ID. Check its status, then list its artifacts and download them with your API key. Stopping the browser’s progress checks does not cancel an accepted generation.
- 400 / 415
- Invalid request, parameter, endpoint for this model, or content type.
- 401 / 403
- Invalid, revoked or restricted API key.
- 402
- Insufficient account balance or API key budget.
- 429
- Request limit reached. Retry after the indicated delay.
- 502 / 503 / 504
- Upstream failure, temporary service unavailability or request timeout.
Compare nearby prices
| Model | Price | Unit | Variant |
|---|---|---|---|
| Grok Imagine VideoGrok · this model | $0.018 | second | Per second · 6-second clip $0.108 |
| Seedance 1.0 ProDoubao | $0.02187 | second | Per second · 5-second clip $0.10935 |
| Seedance 1.5 ProDoubao | $0.01116 | second | Per second · 5-second clip $0.0558 |
| PixVerse V5.5PixVerse | $0.036 | second | Per second · 5-second clip $0.18 |
| Kling 2.6Kling | $0.05 | second | Per second · 5-second clip $0.25 |
Compare equivalent generation settings
Match model version, duration, resolution and input requirements before comparing two prices. Results are kept for 30 days; download those you need to keep.
Frequently asked questions
How much does Grok Imagine Video cost?
Per second · 6-second clip $0.108: $0.018 per second. Usage is charged to your Tokely balance.
Do I need a separate Grok account?
Use your Tokely API key and balance. A separate provider key is not required.
How do I switch to this model?
Set model to grok-imagine-video and use /v1/media/tasks. Keep your Tokely base URL and API key. Use the parameters listed above for this model.
How do I get the completed result?
Save the task ID from your request, check its status, then download the completed artifacts with your Tokely API key.