More models model on ScaleMax
HY4 Flash API
Call HY4 Flash with the model ID hy4-flash-v2 through ScaleMax's OpenAI-compatible API. It costs $0.1875 per million input tokens and $0.625 per million output tokens, prepaid, with no subscription.
Lowest price · Reads images · 1M context
- Model ID
hy4-flash-v2- Maker
- More models
- Input / 1M tokens
- $0.1875
- Output / 1M tokens
- $0.625
- Context window
- 1,000,000 tokens
- Max output
- Not published
HY4 Flash pricing
ScaleMax publishes one customer rate per model and deducts each completed request from your prepaid balance at that rate: $0.1875 per 1M input tokens and $0.625 per 1M output tokens for HY4 Flash.
What typical requests cost at the standard rate (token counts are illustrative sizes):
- Cost per request
- $0.00075
- Per $25 of credit
- about 33,333 requests
- Cost per request
- $0.00875
- Per $25 of credit
- about 2,857 requests
- Cost per request
- $0.04
- Per $25 of credit
- about 625 requests
The Starter credit pack costs $2.50 and adds $25 of usage credit (larger packs add more per dollar — see how pricing works). Prompt-cache reads, where the model supports caching, can bill below the input rate.
Pay by international cards in US$ (Stripe, with Apple Pay and Google Pay), crypto (Cryptomus), or Indian UPI, cards and net banking (PayU or Cashfree). Prices on this page are in US dollars. See what $10 buys for token packs.
How to call HY4 Flash
Create a key in the dashboard, export it as SCALEMAX_API_KEY, and send hy4-flash-v2 as the model. OpenAI-compatible clients use the base URL https://api.scalemax.pro/v1. Token pack keys use /token/v1 instead of /v1.
curl https://api.scalemax.pro/v1/chat/completions \
-H "Authorization: Bearer $SCALEMAX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "hy4-flash-v2",
"messages": [{"role": "user", "content": "Explain this error in one line."}],
"max_tokens": 300
}'import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.scalemax.pro/v1",
api_key=os.environ["SCALEMAX_API_KEY"],
)
reply = client.chat.completions.create(
model="hy4-flash-v2",
messages=[{"role": "user", "content": "Explain this error in one line."}],
max_tokens=300,
)
print(reply.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.scalemax.pro/v1",
apiKey: process.env.SCALEMAX_API_KEY,
});
const response = await client.responses.create({
model: "hy4-flash-v2",
input: "Explain this error in one line.",
max_output_tokens: 300,
});
console.log(response.output_text);Keep the key server-side. Call GET /v1/models with your key to see every model it can use; the quick start covers errors and streaming.
Capabilities and limits
- Context window: 1,000,000 tokens (1M-token).
- Maximum output: not published in the catalogue.
- Supports: Reads images, Tool / function calling, Responses API.
- Streaming: server-sent events on every route.
Works in
Any OpenAI-compatible client: Cursor, Cline, Roo Code, Kilo Code, OpenCode, Continue, Aider, Zed and Hermes Agent, with the model ID above. Setup steps for each are on the integrations page.
Lower-cost alternatives
Models from other makers with a lower output rate. Quality differs by task — test on your own prompts before switching.
All models, with their IDs and rates, are on the model list.
HY4 Flash API questions
What is the API model ID for HY4 Flash?
Use hy4-flash-v2. Send it as the "model" field to https://api.scalemax.pro/v1/chat/completions.
How much does the HY4 Flash API cost?
$0.1875 per 1M input tokens and $0.625 per 1M output tokens at the published ScaleMax rate. A Pay as you go key is prepaid: each completed request is deducted from your credit.
What is the context window of HY4 Flash?
1,000,000 tokens.
Can I use HY4 Flash in Cursor, Cline or Roo Code?
Yes. Add ScaleMax as an OpenAI-compatible provider with the base URL https://api.scalemax.pro/v1 and the model ID hy4-flash-v2. Your key must include this model.
Can I pay for HY4 Flash from India in rupees?
Yes. ScaleMax is prepaid and checkout accepts UPI, cards and net banking in INR, as well as crypto. There is no subscription.
Use HY4 Flash in your tools
Start calling HY4 Flash
Get a prepaid key, copy the model ID, and send your first request in a couple of minutes.