Skip to main content

Crate buble

Crate buble 

Source
Expand description

Server-side Rust SDK for the Buble public API.

Buble is available at Buble. The Buble API documentation describes the supported endpoints, request shapes, authentication model, and model-specific parameters.

The SDK supports media model discovery, file uploads, asynchronous image and video generation, preconfigured app workflows, and chat model calls through OpenAI, Anthropic Messages, and Gemini-compatible API formats.

Use Client::from_env to construct a client from BUBLE_API_KEY and optional BUBLE_BASE_URL, or Client::builder for explicit configuration.

Generation requests use Buble’s flat public API shape. Stable generation fields are represented directly on CreateGenerationRequest, and model-specific parameters are passed through CreateGenerationRequest::param so newly configured Buble models can be used without requiring an SDK release.

API keys are server credentials. Do not expose them in browser or other client-side code.

Structs§

ApiError
API error returned for non-2xx Buble API responses.
AppGenerationTask
App generation task.
AppGenerationsService
App generation task methods.
AppInputParameter
App input parameter.
AppsService
Preconfigured app workflow methods.
ChatCompletionsService
OpenAI-compatible chat completion methods.
ChatModel
Callable chat model.
ChatModelList
OpenAI-style model list returned by chat model discovery.
ChatModelsService
Chat model discovery methods.
ChatService
Chat model methods for OpenAI, Anthropic, and Gemini-compatible APIs.
Client
Server-side client for the Buble public API.
ClientBuilder
Builder for Client.
CreateGenerationRequest
Creates an asynchronous media generation task.
Envelope
Common response shape for Buble media, file, and app endpoints.
FilesService
Source media upload methods.
GeminiService
Gemini-compatible content generation methods.
GenerationResult
Generated media assets.
GenerationTask
Direct media generation task.
GenerationTaskError
Task-level generation error.
GenerationsService
Direct media generation methods.
ListAppsParams
Query parameters for app listing.
MediaModel
API-ready media model returned by model discovery.
MediaModelOperation
Public operation mode for a media model.
MediaModelParameter
Request parameter accepted by a model mode.
MediaModelsService
Media model discovery methods.
MediaResultAudio
Generated audio asset.
MediaResultImage
Generated image asset.
MediaResultVideo
Generated video asset.
MessagesService
Anthropic Messages-compatible methods.
PublicApp
Callable Buble app workflow.
SseEvent
Parsed server-sent event.
UploadOptions
Optional upload validation fields.
UploadedFile
Uploaded source asset.
WaitOptions
Polling options for wait helpers.

Enums§

Error
Error type returned by the Buble Rust SDK.
FileUpload
File source for uploads to Buble.
StreamProtocol
Protocol shape used to extract text from SSE payloads.
TaskStatus
Lifecycle status of an asynchronous generation task.

Constants§

DEFAULT_BASE_URL
Default Buble public API base URL.
DEFAULT_TIMEOUT
Default request timeout.

Type Aliases§

ChatRequest
Flexible chat request body.
ChatResponse
Protocol-native chat response body.
EventStream
Stream of parsed server-sent events.
Result
SDK result type.
TextStream
Stream of extracted text chunks.