grok

OperationalChat & ReasoningCodingAdvanced ReasoningInput $0.1875/1MOutput $0.375/1M-85%vs officialCommercial useData privacy

Input

Output

Send a message on the left. The reply appears here.

Pricing

This model is priced by the usage dimensions listed here. Compare all pricing.

List prices in USD. Your effective price also depends on the billing group attached to your API key.

CriteriaInputgrok-4.3-beta
$0.1875per 1M1.25/1M
CriteriaOutputgrok-4.3-beta
$0.375per 1M2.5/1M
CriteriaCachegrok-4.3-beta
$0.03per 1M0.2/1M

API

POST/v1/chat/completions
const BASE_URL = "https://api.dreamtoai.com";
const API_KEY = process.env.MIX_API_KEY;

const headers = {
  "Authorization": `Bearer ${API_KEY}`,
  "Content-Type": "application/json",
};

const payload = {
  "model": "grok-4.3-beta",
  "messages": [
    {
      "content": "你好,世界",
      "role": "user"
    }
  ],
  "system_instruction": "你是一个严谨的助手。",
  "temperature": 0.7,
  "top_p": 1,
  "max_tokens": 4096,
  "stream": false,
  "reasoning_effort": "medium",
  "response_format": {
    "type": "json_object"
  },
  "tools": [],
  "tool_choice": "auto"
};

const submit = await fetch(`${BASE_URL}/v1/jobs`, {
  method: "POST",
  headers,
  body: JSON.stringify(payload),
}).then((r) => r.json());

const status = await fetch(`${BASE_URL}/v1/jobs/${submit.id}`, { headers })
  .then((r) => r.json());
console.log(status);

Create a key in Console → API Keys and replace the placeholder in the sample.

README

grok-4.3-beta

grok

Why Choose This?

Language and reasoning
Handles writing, analysis, coding and multi-turn conversation in one model.
Pay per token
$0.19 per 1M input tokens and $0.38 per 1M output tokens, with no subscription.
Works with your existing SDK
Call it in the OpenAI Chat Completions format, so existing clients only need a new base URL and key.
One key for every model
The same API key works for every model on dreamtoai.

Parameters

ParameterRequiredDescription
messagesarrayRequiredConversation history as a list of role and content messages.
system_instructionstringOptionalInstructions that set the assistant behavior.
temperaturenumberOptionalSampling temperature. Lower is more focused, higher is more varied. Default: 0.7.
top_pnumberOptionalNucleus sampling threshold. Default: 1.
max_tokensintegerOptionalMaximum number of tokens to generate.
streambooleanOptionalStream the reply as server-sent events. Default: false.
reasoning_effortenumOptional推理强度 Options: low, medium, high. Default: medium.
response_formatobjectOptionalFormat of the returned result, such as a URL or base64 data.
toolsarrayOptional工具列表
tool_choicestringOptional工具选择

How to Use

  1. Try it here first — Sign in and run the model in the playground above to check the output before you write code.
  2. Create an API key — Open Console → API Keys and create a key. The same key works for every model.
  3. Write your messages — Put the task and its context in the messages array; add a system prompt to set the assistant behavior.
  4. Set optional parameters — Adjust the optional parameters listed above to control the output.
  5. Send the request — Call POST /v1/chat/completions with the model ID grok-4.3-beta.
  6. Read the reply — The reply and its token usage come back in the response and are logged in the console.

Writing Effective Prompts

Clear instructions get better answers. Tell the model who it is, what you need and how the answer should look.

1. Set the role and goal

Open with who the model should act as and what the task is. Put rules that never change in the system prompt.

You are a senior Python reviewer. Review the function below for bugs and readability.

2. Give the context

Paste what the answer depends on: documents, code, data or earlier decisions. Separate each part with a heading or tag.

3. Specify the output

Name the format, length and tone: a table, JSON with given keys, five bullet points, a 200-word summary.

4. Show an example

One or two input and output examples fix the style faster than a long description.

5. Iterate

When an answer misses, add the missing constraint to the prompt instead of starting over.

Prompt
WeakWrite about our product.
StrongYou are a B2B copywriter. Write three 40-word LinkedIn posts announcing our invoicing API for small accounting firms. Tone: confident, plain English, no emojis. End each post with a question.

Pricing

Billing itemPriceOfficial price
Input$0.1875 per 1M$1.25/1M
Output$0.375 per 1M$2.50/1M
Cache$0.03 per 1M$0.20/1M

That is 85% below the official list price.

Example: a request with 10,000 input tokens and 1,000 output tokens costs about $0.0022.

List prices in USD. Your effective price also depends on the billing group attached to your API key. Compare all pricing

Best Use Cases

  • Coding assistants — Generate, review and refactor code, or explain an unfamiliar codebase.
  • Agents and automation — Plan multi-step tasks and call tools from your own workflows.
  • Knowledge work — Summarize reports, draft documents and answer questions over your own content.
  • Customer support — Power help-desk bots and draft replies in a consistent tone.
  • Data extraction — Turn unstructured text into structured JSON for downstream systems.
  • Translation and localization — Translate and adapt copy across languages.

Pro Tips

  • Put stable instructions in the system prompt and keep user messages for the task itself.
  • Set max_tokens to cap the length and cost of each reply.
  • Ask for JSON with the exact keys you need when a program reads the answer.
  • Test prompts in the playground above before wiring them into code.
  • Check token usage in the console to spot unusually expensive prompts.

Browse all LLMsBrowse API Market

FAQ

What is grok-4.3-beta?

grok

How do I call the grok-4.3-beta API?

Send POST /v1/chat/completions with the model ID grok-4.3-beta and your API key. Ready-to-run samples are in the API section above.

How is billing calculated?

Requests are billed at the prices listed above and charged to your wallet. Final cost depends on usage and the billing group attached to your API key.

Where do I get an API key?

Create one in Console → API Keys. The same key works for every model on the gateway.

Can I use the output commercially?

Yes. You can use what you generate in commercial projects, subject to the model provider’s terms.

About grok-4.3-beta on dreamtoai

grok

Related models

Next steps