hy4

Input price
$0.417/1M tokens
Output price
$1.2505/1M tokens
Context window
983K
Modalities
Text · Image → Text

Pricing

Per million tokens

API call price50% OFF

Input

$0.417

Output

$1.2505

Cache write

—

Cache read

$0.021

Server tools

Billed per successful upstream call

  • Web Search

    The model searches the live web. The search runs upstream.

    $0.75/1K calls

  • Web Fetch

    The model opens a given page and reads its content. The fetch runs upstream.

    $0.75/1K calls



Integration & capabilities

Supported protocols

Responses API
Compatible formatOpenAI
Routes
POST /v1/responses
FeaturesStreaming · Reasoning · Prompt caching
Request parametersmodel, input, stream, tools, instructions

cURL Example

curl -X POST https://api.openmodel.ai/v1/responses \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $API_KEY" \
  -d '{
    "model": "hy4",
    "input": "Hello"
  }'

Supported capabilities

Function Calling
Function calling (also known as tool calling) provides a powerful and flexible way for models to interface with external systems and access data outside their training data.
Tool Choice
By default the model will determine when and how many tools to use. You can force specific behavior with the tool_choice parameter.
Structured Outputs
Ensures the model will always generate responses that adhere to your supplied JSON Schema.
Streaming
Lets you start printing or processing the beginning of the model's output while it continues generating the full response.
System Messages
You can guide the behavior of the model with system instructions.
Reasoning
Reasoning models use internal reasoning tokens before producing a response.
Prompt Caching
Optimizes API usage by allowing resuming from specific prefixes in your prompts. This significantly reduces processing time and costs for repetitive tasks or prompts with consistent elements.
Vision
Models can process image inputs and analyze them — a capability known as vision.
Image Input
Multimodal from the ground up, unlocking a wide range of image processing and computer vision tasks including image captioning, classification, and visual question answering.

Context & limits

Context window

983K

Max output tokens

65.5K

Max images per prompt

600