Tutorial

Tutorial posts from the AIHubMix team.

  • Gemini 4 Neon migration: default high thinking, 400 errors and the 65K cap

    Gemini 4 Neon migration: default high thinking, 400 errors and the 65K cap

    Google names Gemini 4 Neon as the upgrade target for Gemini 3.1 Pro, for general coding work on Gemini 4 Argon, and for complex coding or science work on Gemini 3.8 Flash. Changing the model string to gemini-4-neon is the easy part. The rest falls into four groups. * Silent: the default thinking level is now high. Argon and 3.8 Flash defaulted to medium. Unless you set a level, each request thinks more than it would at medium. For 3.8 Flash users that means higher bills; for Argon users the p

    14 min readTutorial
  • Qwen4-Max migration: output limits, thinking, and agent setup

    Qwen4-Max migration: output limits, thinking, and agent setup

    Moving from Qwen3.8-Max to Qwen4-Max changes more than the model ID. Both have a million-token context, but an output limit previously sized for the answer now also pays for thinking. The default effort changes, and agents must preserve reasoning history correctly across tool calls. Start with one Chat Completions request, then one small repository task. Check the answer, stopping reason, history, and resulting diff before moving an existing workflow. Recalculate the output limit The Chat

    4 min readTutorial
  • Seedance 2.5 Flash API Tutorial: Async Jobs, Limits, Errors

    Seedance 2.5 Flash API Tutorial: Async Jobs, Limits, Errors

    Use doubao-seedance-2-5-flash with POST /ai/v1/videos, poll the task, then download its result. The current AIHubMix schema exposes 480p/720p output, 4–30-second clips, and up to 10 image, 5 video, and 5 audio references. Older clients using /v1/videos need to change the endpoint as well as the model ID. This guide was checked on November 16, 2026. Both the short ID above and doubao-seedance-2-5-flash-261115 returned a model schema and rejected a 1080p request with 400 schema_violation. A sepa

    8 min readTutorial
  • Gemini 4 Hydrogen Thinking Levels: low, medium, high, xhigh

    Gemini 4 Hydrogen Thinking Levels: low, medium, high, xhigh

    Gemini 4 Hydrogen has four thinking levels, and they behave like four different models. On Artificial Analysis's live measurements, the same model scores 27 at low, 41 at medium, 51 at high and 54 at xhigh. The default is high, and xhigh is new to the Gemini 4 family: Carbon and Argon stop at high. The spread is wide: the same model spans 27 index points from low to xhigh. Moving from medium to high buys 10 index points for about $1.07 more per task. Moving from high to xhigh buys 3 points for

    8 min readTutorial
  • Gemini 4 Carbon API Migration: 400 Errors, Timeouts and Output Limits

    Gemini 4 Carbon API Migration: 400 Errors, Timeouts and Output Limits

    Gemini 4 Carbon is a drop-in replacement for Gemini 4 Argon at the request-schema level. The same chat-completions body works: the model ID changes and a few parameter values do not survive. The failures that matter sit one layer down — parameter errors that return 400, output limits that truncate silently, and a timeout and billing profile built around long thinking. Four defaults decide the first week: * Keep max_tokens at 65,536 or below on AIHubMix; the model page lists a 65,536-token m

    10 min readTutorial
  • Qwen4-Max API: pricing, thinking settings, and caching

    Qwen4-Max API: pricing, thinking settings, and caching

    Qwen4-Max is available through a standard token-priced API. The practical starting point is a 1M-token context, text, image, and video input, and an output budget that includes reasoning as well as the final answer. Before choosing an output cap, decide how much room the model needs to think. Alibaba's Qwen4-Max model page lists the model as its latest multimodal flagship. On AIHubMix, use qwen4-max with Chat Completions at https://aihubmix.com/v1. The gateway guide lists that endpoint; its de

    5 min readTutorial
  • Claude Code provider switch: a CC Switch tutorial in 5 minutes

    Claude Code provider switch: a CC Switch tutorial in 5 minutes

    This tutorial follows CC Switch v4.0.26 (November 2026). Button labels may change in later releases; the configuration model is stable. Switching Claude Code between providers usually means editing ~/.claude/settings.json: the base URL, the API key, and sometimes the model. With one provider that is manageable. With two or three, it becomes a small maintenance job — and the failure mode is quiet, because a stale ANTHROPIC_* export in your shell can override the file you just edited. CC S

    9 min readTutorial
  • GPT Image 2.6 API tutorial: drafts, finals, and migration gotchas

    GPT Image 2.6 API tutorial: drafts, finals, and migration gotchas

    Moving a basic image call from GPT Image 2.5 to 2.6 is a model-ID change. The endpoints are the same, the token rates are the same, and the three recommended sizes are the same. The parts that need attention are Batch, which 2.5 has and 2.6 does not; the Responses image tool, which OpenAI's 2.5 and 2.6 materials describe differently; and the controls — complexity, SVG, GIF, and markup — which are documented for OpenAI's Image API but are not in AIHubMix's published parameter schema yet. This t

    8 min readTutorial