Frontier Model Blocks

Prev Next

The Frontier Model block calls a frontier model on GCP Vertex AI or AWS Bedrock from a flow. Frontier models are third-party Large Language Models (LLMs), such as Gemini and Claude, that run in the provider's cloud instead of on your Hyperscience instance.

The block handles the connection to the provider, authentication, and retries. It also builds each request in the provider’s own API format and returns the response in the same output format, whichever provider serves the call. Your flow supplies the prompt and decides what to do with the response.

Use the Frontier Model block for steps that you describe with a prompt. For example, a flow can return an invoice total as JSON, classify or summarize a document, or check extracted data before human review.

Frontier models run in the provider’s cloud, so check that sending your data to the provider meets your organization’s requirements. To prompt the ORCA model instead, see General Prompting Block.

Availability

The Frontier Model block is available in v44.1 and later. It requires the Large Language Models feature in your license package. Without it, you cannot deploy a flow that uses the block. To learn which features are available to your organization, contact your Hyperscience representative.

Key benefits

The Frontier Model block gives your flows one consistent way to call frontier models:

  • One block for both providers: Switch between GCP Vertex AI and AWS Bedrock without changing the blocks that read the response.

  • New models without an upgrade: To use a newly released model, set its ID in the block.

  • No GPU on your instance: The model runs in the provider's cloud.

  • No keys in your flows: The block uses your environment's cloud identity by default. Flow Studio stores any explicit credentials as system secrets.

  • Retries and clear errors: The block retries failed calls, and setup errors say what to correct. You decide whether a failed call stops the flow.

Choosing between a frontier model and ORCA

Hyperscience can also prompt ORCA (Optical Reasoning and Cognition Agent) on your instance through the General Prompting Block. The following table compares the two options.

Characteristic

Frontier Model block

General Prompting Block

Where the model runs

In the provider's cloud

On your Hyperscience instance

Where your content goes

To the provider

ORCA processes it on your instance.

What you need

Access to the model in your GCP project or AWS account

An installed ORCA base model and a GPU-enabled application machine

ORCA can support environments that cannot connect to the internet, and use cases where third-party models cannot be used for security reasons. To learn more, see General Prompting Block.

Supported models

Provider

Supported

Not supported

GCP Vertex AI

Gemini models, including tuned Gemini models

Partner models on Vertex AI, such as Claude, Llama, and Mistral. Gemini embedding and Live models.

AWS Bedrock

Models that support the Bedrock Converse API

Embedding and image models

Limitations

  • No fallback: In v44.1, the Frontier Model block calls only the model that you select.

  • File types: The model must support the files that you send.

  • AWS Bedrock files: AWS Bedrock rejects images larger than 5 MB and files in the system prompt.

  • Blocked responses: When the provider blocks a prompt or a response, the call still completes, without response text. Check the finish reason before a later block uses the text.

Required permissions

Permission

Allows you to

Assigned by default to

Edit Flows

Add the block to a flow in Flow Studio

System Admin and Business Admin

Edit Secrets

Enter or change explicit credentials

System Admin

View Flow Executions

Review the block's output and logs in flow runs

System Admin and Business Admin

For more information, see Permission Groups.

Prerequisites

Before you add a Frontier Model block to a flow, confirm the following:

  • Required: access to the model in your GCP project or AWS account, and a cloud identity or credentials that can call it. See Authentication.

  • Recommended: approval to send document content to the provider.

Authentication

By default, the block uses the cloud identity of the environment where Hyperscience runs. On SaaS deployments, Hyperscience manages this identity for your environment.

On on-premise deployments, the block uses your environment's own cloud identity. To use explicit credentials instead, such as a service account key, a system administrator must allow them for the deployment.

Troubleshooting

To find out why a call failed:

  1. Open the Flow Run. See Flow Runs Page.

  2. In the flow-run diagram, click the Frontier Model block.

  3. Click Logs.

The log shows the provider, the model, the HTTP status, and the error. The provider's message is redacted because it can quote document content. To read it, click View related flow runs to open the flow run that called the provider, and then open its Output tab.

The following table lists common problems.

Issue

Resolution

HTTP 404, or HTTP 400 on AWS Bedrock: the provider does not know the model or does not serve it in the region.

Check the model ID and the GCP location or AWS region.

HTTP 403: the identity is not allowed to call the model.

Give the identity access to the model in your cloud account.

The deployment does not permit explicit credentials.

Use keyless authentication, or ask a system administrator to allow explicit credentials.

AWS Bedrock reports that an image exceeds 5 MB.

Send a smaller image, or use GCP Vertex AI.

Use the block with the Flows SDK

For the block's settings, inputs, and outputs, see the Flows SDK documentation.

Next steps

After you add the block, run the flow with representative documents and review each run's output. See Flow Runs Page.