MorseGet API key

Hy4

Hy4 is an open-weights model from Tencent that reads text and images. It can reason before it answers, at the effort you ask for. The Morse API serves it on the Private tier, at one price whoever runs the request.

View API reference
Input / output price
$0.83 / $2.50per 1M
Context
1Mtokens
Tiers
Private
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://inference.trymorse.ai/v1",
    api_key=os.environ["MORSE_API_KEY"],
)

reply = client.chat.completions.create(
    model="tencent/hy4",
    messages=[{"role": "user", "content": "Why is the sky blue?"}],
)
Read docs

Providers

Each tier has its own price, whichever provider serves it. Name a tier in your request, or let Morse pick the default. See who can read what

1 endpoint
ProviderTierProtectionContextMax output
Novita AIPrivateZero retention1M64K

More from Tencent

Every model takes the same key and base URL. See all models

ModelInputOutputContextTiers
Hy3tencent/hy3$0.17/M$0.72/M262.1K
Hy4 Flashtencent/hy4-flash$0.07/M$0.28/M1M

Questions

How much does Hy4 cost on the Morse API?

$0.83 per million input tokens, $2.50 per million output tokens, and $0.04 per million cached input tokens, the same on every privacy tier and whichever provider runs the request.

What is Hy4's context length?

1,000,000 tokens (1M) of input and output together, and it writes up to 64,000 tokens in one reply.

Who can read my prompts to Hy4?

It depends on the privacy tier your request names. Private: Vetted providers under contract to keep nothing. The provider processes the prompt and never stores it or trains on it.See how Morse keeps it private

How do I call Hy4 from my code?

Point any OpenAI SDK at the base URL https://inference.trymorse.ai/v1, pass your Morse API key, and name the model tencent/hy4. The code above shows the call in Python, TypeScript, and cURL.Read the docs

Private inference you can verify.

One base URL for 80+ models.