capsule.toml
What developers should write
Section titled “What developers should write”Gumball’s public documentation focuses on the fields you control. Scheduling, GPU pooling, and runtime tuning are handled by the platform.
[package]name = "my-awesome-app"version = "1.0.0"description = "画像を高画質化するアプリ"category = "image"
[metadata]display_name = "AI高画質化"icon = "✨"tags = ["image", "upscale"]
[inputs]image = { type = "file", label = "画像をアップロード" }scale = { type = "number", default = 2, label = "拡大倍率" }
[run]image = "ghcr.io/yourname/upscaler:latest"How to add capsule.toml
Section titled “How to add capsule.toml”capsule.toml is the only required file. You connect your source code (a Git repository) when submitting.
Provide capsule.toml in either of these ways:
- Git repository: add
capsule.tomlto the repo (commonly at the repository root) and commit it. - Drag & drop: upload
capsule.tomlin the developer portal when submitting for review.
Dockerfile (optional)
Section titled “Dockerfile (optional)”- If your repo includes a custom
Dockerfile, Gumball uses it. - If not, Gumball generates a default
Dockerfileautomatically.
Not documented (platform-managed)
Section titled “Not documented (platform-managed)”These are internal/optimized by Gumball and should not be required for developers:
[requirements](e.g.platform,vram_min,vram_recommended)[execution](e.g.runtime,startup_timeout,signals)[routing](e.g.weight,fallback_to_cloud,cloud_capsule)[model](e.g.source,quantization)