AtlasCloud

Use AtlasCloud with Blazen — construct the AtlascloudProvider and call complete().

AtlasCloud is an OpenAI-compatible LLM provider. Construct it like any other Blazen provider — build a list of ChatMessages, call complete() (or stream()), and read back a typed ModelResponse.

Gateway severs idle connections at ~120s; completion is fulfilled over a streamed connection.

At a glance

Provider idatlascloud
Base URLhttps://api.atlascloud.ai/v1
Default modelmoonshotai/kimi-k2.6
API key env varATLASCLOUD_API_KEY
AuthAuthorization: Bearer <key>

Set ATLASCLOUD_API_KEY in the environment and Blazen reads it automatically, or pass the key explicitly when you construct the provider.

Capabilities

CapabilitySupported
StreamingYes
Tool callingYes
Structured outputYes
VisionNo
Model listingYes
EmbeddingsNo

Usage

Construct the provider and call complete(). The default model is moonshotai/kimi-k2.6; override it with with_model / model when you need a different one.

use blazen_llm::{Model, ModelRequest, ChatMessage};
use blazen_provider_atlascloud::AtlascloudProvider;

// Reads ATLASCLOUD_API_KEY from the environment, or pass the key to `new`.
let model = AtlascloudProvider::new(std::env::var("ATLASCLOUD_API_KEY")?);

let resp = model
    .complete(ModelRequest::new(vec![ChatMessage::user("Hello")]))
    .await?;
println!("{}", resp.content.unwrap_or_default());
from blazen import AtlascloudProvider, ProviderOptions, ChatMessage

# Omit the api_key to read ATLASCLOUD_API_KEY from the environment.
model = AtlascloudProvider(options=ProviderOptions(api_key="..."))

resp = await model.complete([ChatMessage.user("Hello")])
print(resp.content)
import { AtlascloudProvider, ChatMessage } from "blazen";

// Omit apiKey to read ATLASCLOUD_API_KEY from the environment.
const model = AtlascloudProvider.create({ apiKey: "..." });

const resp = await model.complete([ChatMessage.user("Hello")]);
console.log(resp.content);

Streaming

async for chunk in model.stream([ChatMessage.user("Count to five")]):
    print(chunk.delta, end="")
await model.stream([ChatMessage.user("Count to five")], (chunk) => {
  if (chunk.delta) process.stdout.write(chunk.delta);
});

See also