grok-imagine-video
xAI's grok-imagine-video with extremely cost-effective pricing. focused AI solutions.
Quick Start Guide
import OpenAI from "openai";
const openai = new OpenAI({
baseURL: "https://api.okrouter.com/v1",
apiKey: "<YOUR_OKROUTER_KEY>",
});
async function main() {
const completion = await openai.chat.completions.create({
model: "grok-imagine-video",
messages: [
{ role: "user", content: "Hello! What can you do?" }
],
});
console.log(completion.choices[0].message);
}
main();Getting started with grok-imagine-video is easy. Since OkRouter is fully compatible with the OpenAI SDK, you can use existing libraries to access this model immediately. grok-imagine-video is fully compatible with the OpenAI Chat Completions API. distinctive features include Standard context handling and Text & Vision support.
Frequently Asked Questions
?How much does grok-imagine-video cost?
grok-imagine-video costs $0.0800 per 1M input tokens and per request per 1M output tokens via OkRouter. This is 20% cheaper than OpenRouter with the same great performance.
?Is grok-imagine-video compatible with OpenAI SDK?
Yes! grok-imagine-video works seamlessly with all OpenAI SDKs (Python, JavaScript, Go, etc.). Simply change your base_url to api.okrouter.com and use your OkRouter API key. No code changes needed.
?What is grok-imagine-video best used for?
grok-imagine-video excels at image analysis and visual question answering, document ocr and data extraction, chart and diagram interpretation. It's extremely cost-effective and perfect for high-volume production workloads.