Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@chancevision/cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
ChanceVision CLI
CLI client for the Chance Vision platform. Analyze images with state-of-the-art vision AI, instantly.
Install
# npm
npm install -g @chancevision/cli
# pnpm
pnpm add -g @chancevision/cli
# Run without installing
npx @chancevision/cli see --helpQuick Start
# Set your API key
export CHANCEVISION_API_KEY="sk-..."
# Analyze an image from a URL or local file
chancevision see https://example.com/photo.png
chancevision see ~/Pictures/screenshot.png
# Stream the response in real time
chancevision see -s https://example.com/photo.pngAuthentication
Pass your API key one of two ways:
# Option 1: Flag (takes priority)
chancevision see -k "sk-..." https://example.com/img.png
# Option 2: Environment variable (fallback)
export CHANCEVISION_API_KEY="sk-..."
chancevision see https://example.com/img.pngUsage
chancevision see <image> [options]Sends the image to the model (chance/chance-vision-1.5) for analysis.
Options
| Option | Default | Description |
|---|---|---|
<image> |
(required) | Image URL or local file path to analyze |
-k, --api-key <key> |
— | API key (or use CHANCEVISION_API_KEY env var) |
-s, --stream |
false |
Stream the response as SSE chunks |
--output-format <format> |
— | Output format hint (e.g. ui_component) |
-v, --verbose |
false |
Show raw chunks and debug info on stderr |
Examples
Basic image analysis
# From a URL
chancevision see -k "sk-..." https://images.chance.vision/image/revisit.png
# From a local file
chancevision see ~/Pictures/screenshot.pngStreaming
chancevision see -s https://images.chance.vision/image/revisit.pngVerbose streaming
chancevision see -s -v https://example.com/img.pngOutput format
chancevision see --output-format ui_component https://example.com/screenshot.pngBuild from Source
git clone https://github.com/chancevision/chancevision-cli
cd chancevision-cli
pnpm install
# Run tests
pnpm test
# Build
pnpm build
# Link globally for development
pnpm link --globalPublish
npmjs.org
npm publish --access public --otp=<code>GitHub Packages
npm login --registry=https://npm.pkg.github.com
npm publishAPI
This CLI is powered by the Chance Vision API, a state‑of‑the‑art visual intelligence platform with streaming support and UI-component output.
POST https://openapi.chance.vision/v1/chat/completions