|
|
Responses API
/v1/responses
|
xAI
|
-
Input
$0.63-$1.25 / 1M tokens
-
Output
$1.25-$2.50 / 1M tokens
-
Prompt < 200K · Input
$0.63 / 1M tokens
-
Prompt < 200K · Cached input
$0.10 / 1M tokens
-
Prompt < 200K · Output
$1.25 / 1M tokens
-
Prompt >= 200K · Input
$1.25 / 1M tokens
-
Prompt >= 200K · Cached input
$0.20 / 1M tokens
-
Prompt >= 200K · Output
$2.50 / 1M tokens
|
|
|
Chat completion
/v1/chat/completions
|
xAI
|
-
Input
$1.00-$2.00 / 1M tokens
-
Output
$3.00-$6.00 / 1M tokens
-
Prompt < 200K · Input
$1.00 / 1M tokens
-
Prompt < 200K · Cached input
$0.15 / 1M tokens
-
Prompt < 200K · Output
$3.00 / 1M tokens
-
Prompt >= 200K · Input
$2.00 / 1M tokens
-
Prompt >= 200K · Cached input
$0.50 / 1M tokens
-
Prompt >= 200K · Output
$6.00 / 1M tokens
|
|
|
Responses API
/v1/responses
|
xAI
|
-
Input
$1.00-$2.00 / 1M tokens
-
Output
$3.00-$6.00 / 1M tokens
-
Prompt < 200K · Input
$1.00 / 1M tokens
-
Prompt < 200K · Cached input
$0.15 / 1M tokens
-
Prompt < 200K · Output
$3.00 / 1M tokens
-
Prompt >= 200K · Input
$2.00 / 1M tokens
-
Prompt >= 200K · Cached input
$0.50 / 1M tokens
-
Prompt >= 200K · Output
$6.00 / 1M tokens
|
X
Grok Imagine/grok-imagine-edit-image
Image
|
Edit image
/api/v1/grok_imagine/edit_image
|
xAI
|
|
X
Grok Imagine/grok-imagine-text-to-image
Image
|
Text to image
/api/v1/grok_imagine/text_to_image
|
xAI
|
-
Pro mode: Enabled
$0.05 / image
-
Pro mode: Disabled
$0.04 / image
|
|
|
Extend video
/api/v1/grok_imagine/extend_video
|
xAI
|
-
Extension length: 6s · Output resolution: 480p
$0.10 / video
-
Extension length: 6s · Output resolution: 720p
$0.20 / video
-
Extension length: 10s · Output resolution: 480p
$0.20 / video
-
Extension length: 10s · Output resolution: 720p
$0.30 / video
|
X
Grok Imagine/grok-imagine-image-to-video
Video
|
Image to video
/api/v1/grok_imagine/image_to_video
|
xAI
|
Example: 5s costs about $0.08-$0.15
-
Output resolution: 480p
$0.02 / second
-
Output resolution: 720p
$0.03 / second
|
X
Grok Imagine/grok-imagine-text-to-video
Video
|
Text to video
/api/v1/grok_imagine/text_to_video
|
xAI
|
Example: 5s costs about $0.08-$0.15
-
Output resolution: 480p
$0.02 / second
-
Output resolution: 720p
$0.03 / second
|
X
Grok Imagine/grok-imagine-video-1.5-fast
Video
|
Text to video
/api/v1/grok_imagine/text_to_video
|
xAI
|
-
Duration band: 1-10
$0.09 / video
-
Duration band: 11-20
$0.24 / video
-
Duration band: 21-30
$0.39 / video
|
X
Grok Imagine/grok-imagine-video-1.5-fast
Video
|
Image to video
/api/v1/grok_imagine/image_to_video
|
xAI
|
-
Duration band: 1-10
$0.09 / video
-
Duration band: 11-20
$0.24 / video
-
Duration band: 21-30
$0.39 / video
|
X
Grok Imagine/grok-imagine-video-1.5-preview
Video
|
Text to video
/api/v1/grok_imagine/text_to_video
|
xAI
|
Example: 5s costs about $0.08-$0.15
-
Output resolution: 480p
$0.02 / second
-
Output resolution: 720p
$0.03 / second
|
X
Grok Imagine/grok-imagine-video-1.5-preview
Video
|
Image to video
/api/v1/grok_imagine/image_to_video
|
xAI
|
Example: 5s costs about $0.08-$0.15
-
Output resolution: 480p
$0.02 / second
-
Output resolution: 720p
$0.03 / second
|
|
|
Upscale image
/api/v1/grok_imagine/upscale_image
|
xAI
|
|