hy4-preview API

Call hy4-preview through StarseaAPI's single OpenAI-compatible endpoint — no separate account, no multi-key setup.

Intelligence index unavailable

Pricing

Input$0.007 / 1M tokens
Output$0.020 / 1M tokens
Output multiplier×3.00

Use hy4-preview with any OpenAI SDK

from openai import OpenAI
client = OpenAI(
  base_url="https://starseaapi.com/v1",
  api_key="sk-your-key"
)
resp = client.chat.completions.create(
  model="hy4-preview",
  messages=[{"role":"user","content":"Explain quantum computing in one paragraph"}]
)
print(resp.choices[0].message.content)

In Claude Code / Cursor

Point base_url to https://starseaapi.com/v1 and select hy4-preview as your model. Everything else stays the same.

Why hy4-preview via StarseaAPI?

Get your API key → Compare all models