Grok Imagine Video API
Grok Imagine Video API through UplinkSwitch: $0.2093 to $0.2791 per generation, prepaid, no subscription. xAI's video model on one key with every other model; a generation that fails is not charged.
grok-imagine-videoVideoper generation
Price · per generation, USD
| Settings | xAI price | UplinkSwitch |
|---|---|---|
| duration 6 | $0.3488 | $0.2093 |
| duration 10 | $0.4651 | $0.2791 |
Charged when the request is accepted; refunded in full if the generation fails.
Call it · POST /v1/generations
curl
curl https://api.uplinkswitch.com/v1/generations \
-H "Authorization: Bearer $UPLINK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "grok-imagine-video",
"input": {
"prompt": "A red paper boat on a calm blue pond, morning light",
"duration": 6
}
}'
# then poll until "status" is "succeeded":
curl https://api.uplinkswitch.com/v1/generations/gen_... -H "Authorization: Bearer $UPLINK_API_KEY"Settings · in input
| Name | Type | Values | Default |
|---|---|---|---|
| prompt required | string | — | — |
| image_urls | urls | — | — |
| aspect_ratio | string | 1:1, 2:3, 3:2, 16:9, 9:16 | — |
| mode | string | fun, normal, spicy | — |
| duration required | integer | 6, 10 | — |
Questions
- How much does the Grok Imagine Video API cost?
- From $0.2093 per generation. The price depends on the settings in the table and is fixed when the request is accepted.
- Is there a subscription?
- No. You add credit and each request is paid from it. There is no monthly fee and no minimum per request.
- What happens if a generation fails?
- It is refunded in full, automatically. You pay only for files you receive.
- How long are the files kept?
- Thirty days, at a URL on api.uplinkswitch.com. Download what you want to keep.
- Can I use the same key for other models?
- Yes. The same key calls every image, video, speech and 3D model and every chat model in the catalog.