development
location
documentation
public
AI
client libraries
What is Official client libraries for sunra.ai, a platform for deploying and running AI models.?
This repository contains the official client libraries for sunra.ai, a platform for deploying and running AI models. The libraries provide robust and user-friendly interfaces for integrating sunra.ai endpoints into your applications across multiple programming languages.
This repository contains the official client libraries for sunra.ai, a platform for deploying and running AI models. The libraries provide robust and user-friendly interfaces for integrating sunra.ai endpoints into your applications across multiple programming languages.
import ai.sunra.client.*;
var sunra = SunraClient.withEnvCredentials();
var result = sunra.subscribe(
"black-forest-labs/flux-kontext-pro/text-to-image",
SubscribeOptions.<JsonObject>builder()
.input(Map.of("prompt", "a cute cat, realistic, orange"))
.resultType(JsonObject.class)
.build()
);
System.out.println(result.getData());
Server Proxy
For client-side applications, we provide a server proxy to securely handle API calls without exposing your credentials. Available for popular frameworks:
The MCP server provides a universal interface for AI model tools, enabling seamless integration with modern code assistants and IDEs such as Cursor and Claude Desktop. It acts as a bridge between Sunra.ai and your development environment, exposing Sunra's models and tools via the Model Context Protocol.
Why use the MCP server?
Enables code assistants (like Cursor, Claude, etc.) to access Sunra models and tools directly from your editor
Supports listing models, fetching schemas, submitting jobs, streaming results, and more
Secure: API keys are managed via environment variables or runtime configuration
No need to write glue code—just run the server and connect your tool
Quick Start## 1. Install & Run (no local build needed)
Set up your API key: export SUNRA_KEY=your-api-key
Run examples or tests as needed
Contributing
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
and adapted to work with sunra.ai. The original projects are licensed under the MIT/Apache 2.0 License. We extend our gratitude to the original authors for their contributions.