MixMedia API
RUEN
API keys Sign inTry it
Open as Markdown
← Try it on the website
Google

Gemini 4 Argon

Google · under 1 min
$2 / 1M input · $10 / 1M outputper picture

Google's newest Gemini 4 text model for hard tasks: reasoning, code, analysis. You can attach pictures.

Gemini 4 Argon is Google's newest text model (marked «Complex tasks» in Gemini). Good for multi-step reasoning, code, document analysis and long texts. You can attach up to 10 pictures.

A question or task as text — the model answers with text. Pictures in input_urls are optional.

ID: gemini-4-argon · $2 / 1M input · $10 / 1M output · under 1 min

Parameters (field input)

ParameterRequiredDescriptionValues (default in bold)
promptyesYour question or tasktext, up to 30000 chars
input_urlsnoPictures to analyse (https links), up to 10; each is 560 input tokens["https://…"]
reasoningnoGemini thinking level (the «Thinking level» menu): low — fast answer, medium — balanced, high — thinks longer. The per-token price does not change; hidden thinking is not chargedlow medium high

Example

curl -X POST https://mixmedia.tech/api/v1/jobs/createTask \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"gemini-4-argon","input":{"prompt":"Explain in simple words why the sky is blue","reasoning":"low"}}'
import os, requests

r = requests.post(
    "https://mixmedia.tech/api/v1/jobs/createTask",
    headers={"Authorization": f"Bearer {os.environ['API_KEY']}"},
    json={
      "model": "gemini-4-argon",
      "input": {
        "prompt": "Explain in simple words why the sky is blue",
        "reasoning": "low"
      }
    },
)
print(r.json())  # {"code": 200, "data": {"taskId": "..."}}
const r = await fetch("https://mixmedia.tech/api/v1/jobs/createTask", {
  method: "POST",
  headers: { Authorization: `Bearer ${process.env.API_KEY}`, "Content-Type": "application/json" },
  body: JSON.stringify({
    "model": "gemini-4-argon",
    "input": {
      "prompt": "Explain in simple words why the sky is blue",
      "reasoning": "low"
    }
  }),
});
console.log(await r.json()); // { code: 200, data: { taskId: "..." } }

Price: per token

Input, per 1M tokensOutput, per 1M tokens (incl. thinking)
$2$10

This is Google's official introductory price through 30.11.2026; from 01.12.2026 — $4 / 1M input and $20 / 1M output.

  • Tokens are estimated on our side by Google's rules: text ≈ 4 characters per token (rounded up), each attached picture = 560 tokens. The model service does not report exact usage, so the numbers may differ slightly from Google's counter.
  • Input tokens = prompt + pictures; output tokens = the length of the answer. Hidden model thinking is not visible to us and is not charged.
  • Cost = input × input price / 1M + output × output price / 1M, rounded up to $0.0001.
  • On create, the cost of the input and 16384 output tokens is held (an answer never costs more than that). When the answer is ready the actual amount is charged and the rest is returned at once. A failed task returns the whole reserve.
  • recordInfo and the callback return usage: input_tokens, output_tokens, total_tokens, cost (USD), estimated: true.

Example: a 400-character question (100 tokens) and a 4,000-character answer (1,000 tokens) = 100 × $2/1M + 1 000 × $10/1M = $0.0102.

Result

Same as any task: call recordInfo or receive a callback. The answer is in resultJson.text, token usage and the charge are in usage (input_tokens, output_tokens, cost).

Upload your photos via files/upload or pass any public https links.

Error handling

API responses are JSON {"code", "msg", "data"}; errors also have a string error field (type). On /api/v1/* the HTTP status matches body code.

Example response bodies

400

{
  "code": 400,
  "msg": "input.duration: must be between 4 and 30, or \"auto\" / -1",
  "data": null,
  "error": "invalid_request_error"
}

401

{
  "code": 401,
  "msg": "Authentication failed. Please check your API key",
  "data": null,
  "error": "authentication_error"
}

402

{
  "code": 402,
  "msg": "Insufficient balance. Please top up and try again. Available: $0.01, required: $0.015. Top up at https://mixmedia.tech/cabinet/billing",
  "data": {
    "balance": "0.0100",
    "required": "0.0150",
    "currency": "USD",
    "topUpUrl": "https://mixmedia.tech/cabinet/billing"
  },
  "error": "payment_required"
}

429

{
  "code": 429,
  "msg": "Rate limit exceeded: 10 createTask/upload requests per 10 s per key. Retry after 8s",
  "data": null,
  "error": "rate_limit_error"
}

500

{
  "code": 500,
  "msg": "Internal server error",
  "data": null,
  "error": "server_error"
}

Codes on createTask / upload

codeerrorMeaningWhat to do
400invalid_request_errorInvalid parameter or bodySee msg
400unsupported_modelUnknown modelModel list
401authentication_errorMissing or invalid keyCheck the key
402payment_requiredNot enough balanceTop up
403permission_errorNo accessContact support
429rate_limit_errorToo many requestsWait for Retry-After
505model_disabledModel temporarily disabledPick another
500server_errorOur failureRetry later

Example msg values: Authentication failed. Please check your API key (401); Insufficient balance. Please top up and try again… (402).

Task errors (recordInfo)

If the task was created and then failed: state: "fail" (alias status: "failed"), failCode / failMsg, and error: { code, message, type }. Money is refunded (refunded: true).

failCodeerror.typeMeaning
400nsfw_content_detected / invalid_request_errorModeration — failMsg is upstream text verbatim
422invalid_request_errorThe model rejected the parameters (e.g. a photo could not be downloaded)
501server_errorThe model could not generate (failMsg)
504timeout_errorTimed out — retry
500 / 503server_errorService temporarily unavailable

Rate limits

WhatLimit
createTask and upload20 per 10 s per key
recordInfo / list / balance100 per 10 s per key

Over the limit — HTTP 429 and Retry-After.

© 2026 MixMedia