Input
New instructions, files and conversation context sent each turn.
Trim retrieved context before it reaches the model.
Choose your path
Build production AI experiences with Hy4 flash through one stable API.
Try Hy4 flash with a real request, review its parameters and validate the output before integrating the API.
Use the quick estimate above for a single run, then review the full CometAPI and official-price comparison.
Credits make budgets comparable across token, request and runtime billing. The USD amount remains the source of truth at checkout.
| Model ID | Item | CometAPI Price | Official Price | Discount |
|---|---|---|---|---|
hy4-flash | Input | ¥0.40 / 1M tokens | ¥0.50 / 1M tokens | 20% |
hy4-flash | Output | ¥1.60 / 1M tokens | ¥2.00 / 1M tokens | 20% |
hy4-flash | Cached input | ¥0.016 / 1M tokens | ¥0.02 / 1M tokens | 20% |
A stable model identity for search and evaluation, paired with live catalog data that can change without rewriting the page's core SEO structure.
Hy4 flash is a text model available through CometAPI with a stable model identifier and production API access.
One workspace to compare models, tune prompts, inspect routing, migrate code and ship a tested starting point.
Run the same prompt across leading models and get a recommendation with evidence.
Model the five billing dimensions, test a realistic workload and decide where Opus earns its premium before you ship.
Replay real workloads instead of comparing token prices in isolation. Load a preset, then adjust every billing dimension.
New instructions, files and conversation context sent each turn.
Trim retrieved context before it reaches the model.
Previously cached prompt tokens reused in later requests.
Keep system prompts and repository maps byte-stable.
Reasoning, code and text generated by the model.
Use explicit completion criteria and output limits.
Use Opus when the task spans architecture, multiple files and ambiguous implementation trade-offs.
A strong choice when an agent must preserve intent across many tool calls and recovery steps.
Reserve it for security, migration and production reviews where a missed issue costs more than tokens.
Classification, extraction and simple chat usually achieve better unit economics on Sonnet or Haiku.
Keep your preferred SDK and change the base URL, key and model ID.
import Anthropic from '@anthropic-ai/sdk';
const client = new Anthropic({
apiKey: process.env.COMETAPI_KEY,
baseURL: 'https://api.cometapi.com',
});
const message = await client.messages.create({
model: 'hy4-flash',
max_tokens: 4096,
messages: [{ role: 'user', content: 'Review this change.' }],
});Copy a working endpoint and code example, then open the complete API reference when you need every parameter.
Authenticate once, call the model endpoint and keep the same billing and observability workflow across providers.
Access comprehensive sample code and API resources for Hy4 flash to streamline your integration process. Our detailed documentation provides step-by-step guidance, helping you leverage the full potential of Hy4 flash in your projects.
Scan the model facts that matter before you choose an architecture or estimate production workload.
Use Hy4 flash for production workflows that match its text capabilities, then compare alternatives before committing to a long-term integration.
Production chat and agent workflows
Coding, analysis and structured generation
High-volume automation through one API
Compare other models available through CometAPI for different quality, latency, capability and pricing trade-offs.
CometAPI Auto API is an intelligent model routing feature that allows developers to access the appropriate AI model without specifying a specific model ID for each request.
Gemini 4 Hydrogen is Google's efficiency-oriented model in the Gemini 4 family, announced on November 12, 2026.
Explore the Seedream 5.5 API.
Qwen4 Max is Alibaba's next-generation flagship model in the Qwen family. It combines text generation, deep reasoning, image and video understanding, tool calling, and structured outputs
Claude Fable 5.2 is Anthropic's advanced AI model for complex, open-ended technical work that requires sustained reasoning, planning, and execution across multiple steps.
GPT-6 Luna (gpt-6-luna) is OpenAI's efficient GPT-6 model for focused, high-volume workloads. OpenAI positions Luna below GPT-6 Sol in the GPT-6 family, emphasizing efficiency, repeatability, and cost-sensitive production use.
Review live heartbeat data, endpoint availability and observed response times before moving into production.
Request success rate over the last 30 days, reflecting the reliability of each model provider. CometAPI monitors all connected providers in real time, 24/7.
Follow meaningful availability, pricing and capability changes for Hy4 flash without losing the stable model page.
Release notes, pricing changes, benchmark updates and migration guidance accumulate here while the canonical URL stays unchanged.
Hy4 flash is available through the CometAPI model catalog and API documentation.
CurrentPrice, context, availability and limits are treated as dynamic properties instead of being embedded in the page title or model identity.
The provider and model slug form a durable canonical URL; future content and data updates remain on this page.