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, ensure you have an API key from your dashboard,
which is required for authenticating your requests to the sunra API.
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: