--- title: "Frontier Model Blocks" slug: "frontier-model-blocks" description: "Learn how the Frontier Model block connects flows to GCP Vertex AI and AWS Bedrock, with authentication, retries, supported models, and Flows SDK details." updated: 2026-11-27T16:08:05Z published: 2026-11-27T16:08:05Z canonical: "help.hyperscience.ai/frontier-model-blocks" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.hyperscience.ai/llms.txt > Use this file to discover all available pages before exploring further. # Frontier Model Blocks 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](/v44/docs/general-prompting-block). > [!NOTE] > **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](/v44/docs/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](/v44/docs/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](/v44/docs/frontier-model-blocks#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](/v44/docs/flow-runs-page#inspect-a-flow-run). 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](https://flows-sdk.hyperscience.ai/pages/idp.html). ## Next steps After you add the block, run the flow with representative documents and review each run's output. See [Flow Runs Page](/v44/docs/flow-runs-page#inspect-data-in-the-data-panel). Advanced models that understand and generate human-like text. They are used to enhance document-processing tasks, such as data extraction, summarization, and classification, by interpreting complex content. As a result, LLMs can improve automation and accuracy. Hyperscience's Vision Language Model (VLM) framework for extracting information from semi-structured documents. ORCA supports multiple base models, such as ORCA 1.0 and ORCA 2. You can use these base models as-is or train specialized models on top of them to improve extraction performance for your specific use case. Learn more in [ORCA Visual Language Models](https://help.hyperscience.ai/latest/docs/orca-optical-reasoning-and-cognition-agent-vlms). One execution of a flow in Hyperscience, from start to finish. A flow run can process a submission, or it can run without one, such as when an application starts it through the API. You can monitor, troubleshoot, and manage each flow run.