Examples
June 16, 2026 ยท View on GitHub
Cog's example models now live in this repository under examples/.
Examples
blur: image-to-image box blur examplecanary: simple streaming string output examplehello-concurrency: demonstrates theconcurrencysetting incog.yamlhello-context: shows how to read prediction contexthello-image: returns a static imagehello-replicate: usescog.Secretinputs and calls the Replicate APIhello-train: defines a training interfacehello-world: minimal string input/output examplemanaged-weights: managed weights pipeline fixturenotebook: runs a Jupyter notebook with Cogresnet: GPU image classification with ResNet50streaming-text: streaming text generation examplez-image-turbo: generative image model example
Experimental examples
experimental/resnet-managed-weights: ResNet50 packaged with managed weights