Grok chat and coding API

Choose Grok 4.7 or Grok 4.6 to work with a written task, technical document or code excerpt. Provide the relevant facts, describe the operation and specify the output format so you can review the answer against a clear brief. Grok 4.7 exposes Chat Completions in the current task; Grok 4.6 also offers Responses. Select the model and protocol around your existing integration, then review the reply and actual input/output token usage.

Grok is developed by xAI. Vidgo provides access to the models. Model names and trademarks belong to their respective owners.

Explore Grok Models

Open a model card to start its own conversation and inspect the available API format. Keep the task brief and source material consistent when evaluating a workflow. Use the selected task’s protocol and prices when preparing the integration.

Grok Conversation Tasks and Request Formats

Both tasks accept text conversations through Chat Completions, where messages carry the source material and instruction. Grok 4.6 additionally provides Responses, using input for the conversation. Choose the format already used by your application, set the supported output controls and describe the expected answer. Continue with relevant earlier turns when a follow-up depends on prior context.

Model / taskInput and workflow
Grok 4.7Grok 4.7 generates code, reviews proposed changes, and analyzes technical documents with stronger self-verification.
Grok 4.6Grok 4.6 works across coding, reasoning, image understanding, and multi-step agent tasks with a 500,000-token context window.

Use Cases for Grok

Prepare the document, code or business brief that the answer should use. Ask for a summary, review, structured extraction or draft with explicit constraints, then inspect the response for the requested content and format. Use follow-up messages to refine the details with additional evidence or test feedback.

Reviewing a proposed code change

Provide the changed code, its intended behavior and the checks that matter. Request a review organized around concrete findings, then verify the suggested changes before applying them to the project.

Investigating test feedback

Supply the relevant code, failing test output and expected result. Ask for an explanation and a proposed correction, then run the checks again and use the observed result in a follow-up conversation.

Technical-document summaries

Prepare the sections relevant to your task and name the points the summary should cover. Compare the response with the source before using it in a technical note or implementation decision.

Structured business information

Provide a complete source note and define the fields and units to extract. Validate the returned structure and values before using the data in a product-content workflow or application prototype.

A reply with clear permitted actions

Describe the issue, the available resolutions and any information to request from the reader. Generate a reply and check that its next steps and tone match the supplied business brief.

Comparing integration formats

Prepare a text task for the protocol your application uses. Grok 4.7 provides Chat Completions, while Grok 4.6 also provides Responses; review the request structure, returned answer and token usage for the selected workflow.

Grok Specifications and API Pricing

The table reads the current starting input-token rates for Grok 4.7 and 4.6 per one million tokens. A full request includes the selected model’s output-token charge; the Grok 4.7 task also lists a cache-read rate. Sent conversation history contributes to input usage, and generated text contributes to output usage. Review the selected task’s full rate table and returned usage when comparing the cost of an integration or a follow-up conversation.

ModelProviderWorkflowInputAPI formatsStarting input rate
Grok 4.7xAIChatText instructions and conversation contextChat Completions$1.6 / 1M tokens
Grok 4.6xAIChatText instructions and conversation contextChat Completions / Responses$1.6 / 1M tokens

How to Use Grok on Vidgo

Test a complete text task online, then integrate the selected model and API format.

Test online

Test a complete text task online

Open the selected model, provide the task and source text, and choose its available output settings. Submit the conversation, read the complete answer and inspect available token usage. Add clarifications or test feedback when preparing a follow-up.

Why Use Grok on Vidgo

Use the existing model conversation, current token prices and task documentation to connect a reviewed answer with your application workflow.

Task testing and model selection

Match the model to your integration

Choose Grok 4.7 for its current Chat Completions entry, or open Grok 4.6 when you want to choose between Chat Completions and Responses. Prepare the same source material and desired output when reviewing which integration fits your application.

Review the answer with your source material

Open the selected model, provide the task and source text, and choose its available output settings. Submit the conversation, read the complete answer and inspect available token usage. Add clarifications or test feedback when preparing a follow-up.

Plan costs from actual token usage

The table reads the current starting input-token rates for Grok 4.7 and 4.6 per one million tokens. A full request includes the selected model’s output-token charge; the Grok 4.7 task also lists a cache-read rate. Sent conversation history contributes to input usage, and generated text contributes to output usage. Review the selected task’s full rate table and returned usage when comparing the cost of an integration or a follow-up conversation.

API development and conversation refinement

Follow the chosen response format

Use /v1/chat/completions with model and messages for either model. For Grok 4.6, you can also use /v1/responses with model and input. The current online workflows support streaming text; consume the response in the selected format, assemble the answer and inspect the returned usage information.

Prepare an authenticated request

Use your Vidgo API credentials to authenticate the request to the selected endpoint. Send the exact model identifier, the conversation fields required by that protocol and the supported output settings. Consume the returned response using the same format you selected.

Keep relevant context for the next turn

Accumulate streaming text when the selected workflow streams, or read the complete response body when it returns a full reply. Inspect the final answer and returned usage fields, then keep the relevant messages for the next turn. Return to the model conversation when continuing the online task.

Grok API FAQ

Choose Grok 4.7 or Grok 4.6 to work with a written task, technical document or code excerpt. Provide the relevant facts, describe the operation and specify the output format so you can review the answer against a clear brief. Grok 4.7 exposes Chat Completions in the current task; Grok 4.6 also offers Responses. Select the model and protocol around your existing integration, then review the reply and actual input/output token usage.

Browse all models