News

Together AI adds Tencent Hy4 to its serverless API

Together AI’s serverless chat completions API offers Tencent Hy4 with text and image input, tool calling, JSON output and a 1,048,576-token context window.

D
Nov 20, 2026 · 1 min read

Together AI announced on November 19 that Tencent Hy4 is available through its serverless chat completions API. For Hy4, the API accepts text and images in the same request and returns text. Developers can use it without provisioning infrastructure.

Together AI shows how to call Hy4 by sending an authenticated POST to https://api.together.ai/v1/chat/completions and setting model to tencent/Hy4. It also links to a browser playground. Together AI’s serverless catalog lists a 1,048,576-token context window and prices of $0.834 for uncached input, $0.042 for cached input and $2.501 for output, each per million tokens.

Together AI says it may apply model-specific limits or restrict access during high demand. The rate-limit guide gives no numeric request or throughput cap for Hy4.

In its Python example, Together AI sends a text instruction and a PNG screenshot encoded as a Base64 data URL in an image_url block. The request sets response_format to an object with type set to json_object. Developers can pass function definitions in tools so the model can request a call.

The launch post gives no comparative baseline or results from repeat runs for either demo. The company says Hy4 read all three bar values from a screenshot of its storage chart and returned them in JSON. The company says the model recreated the chart as a single HTML file in a separate request.

In the coding demo, Together AI says it used one text prompt to generate Polarity, a single-file browser game. The company says it opened the returned HTML without edits, played a round and restarted the game.

More news