# Submit Framework completions as offline batches

> Submit independent completions through Anthropic Message Batches, persist credential-free tickets, and collect results in another process.

Source: <https://everruns.com/docs/changelog/2026-10-27-framework-native-batch-requests/>

Date: 2026-10-27
Products: Framework
Category: Feature
Available: In 0.50.1

Framework applications can submit independent model completions through Anthropic Message Batches, then poll, collect or cancel them using a serializable ticket. Results map to the original request IDs even when returned out of order. This API is on `main` and is not included in the published `0.49.0` crate; use the Git dependency in the [batch guide](https://everruns.com/docs/framework/batch-model-requests/). Enable the `anthropic` feature, submit a completion, and save its ticket:

```rust
use everruns::{batch::Batch, providers::anthropic::Anthropic, Model};


let model = Model::from("claude-sonnet-5");
let ticket = Batch::new(Anthropic::from_env()?, "reviews/anthropic-account")
    .request("review_001", model.completion()
        .user("Classify as positive, negative, or neutral: delivery arrived early.")
        .max_tokens(64))?
    .submit().await?;
let saved_ticket = serde_json::to_vec(&ticket)?;
```

Applications own persistence and scheduling. It does not stream tokens or execute tools. Ambiguous submissions require provider reconciliation before retrying. The [batch guide](https://everruns.com/docs/framework/batch-model-requests/) covers resumption, cancellation, tenant/account scoping, supported providers and hosting limitations, with a second example for offline evals.

## Update 2026-10-28

You can also [submit existing message lists](https://everruns.com/docs/changelog/2026-10-28-framework-batch-message-lists/) through the same batch client.

Batch support includes OpenAI, Gemini, Mistral, Groq and Fireworks. See [Batch Model Requests](https://everruns.com/docs/framework/batch-model-requests/) for configuration and limits. Fireworks cancellation is unsupported.