Multimodal
Quickstart
In this guide, we’ll walk you through using one of our popular model endpoints, such as black-forest-labs/flux-kontext-pro/text-to-image.
Before diving in, you’ll need an API key — see Authentication for how to create one and configure your environment.
Choose your preferred programming language below to get started:
Set your API key as an environment variable:
Once configured, you can invoke our Model API endpoint using the sunra client:
Set your API key as an environment variable:
Configure and use the client:
Set your API key as an environment variable:
Configure and use the client:
⌘I