novitalabs/novita-cli
Python
Captured source
source ↗novitalabs/novita-cli
Description: Generate text, images, video, audio, and Manage GPU, sandbox, openclaw with Novita AI.
Language: Python
License: MIT
Stars: 0
Forks: 0
Open issues: 0
Created: 2026-04-28T11:27:56Z
Pushed: 2026-04-29T08:16:16Z
Default branch: main
Fork: no
Archived: no
README:
novita-cli
The command-line interface for Novita AI. Generate text, images, video, audio, and launch GPU/serverless sandbox runtimes from any terminal or AI agent.
Novita AI · Console · API Docs
novita-cli wraps major Novita AI APIs in a single novita command. It is built for developers and AI agents that need fast access to model APIs, file workflows, GPU instances, templates, network storage, serverless endpoints, and sandbox-style container runtime environments.
Features
- Text - Chat completions, text completions, embeddings, reranking, model lookup, streaming, and JSON output.
- Image - Text-to-image, FLUX generation, image-to-image, inpainting, upscaling, background tools, prompt extraction, and face merge.
- Video - Text-to-video, image-to-video, Hunyuan video, async task polling, and result downloads.
- Audio - Text-to-speech, GLM TTS, speech-to-text, and voice cloning.
- Files and batch - Upload JSONL files, create batch jobs, inspect task state, and download outputs.
- GPU sandbox runtimes - Discover products, launch containerized GPU/CPU instances, manage ports, templates, metrics, storage, and clusters.
- Serverless endpoints - Create, update, inspect, and delete runtime endpoints for containerized inference workloads.
- Account tools - Check balance, billing, usage-based billing, and fixed-term billing.
Install
pip install novita
For AI agents:
npx skills add novitalabs/novita-cli
API Key
Create an API key in the Novita Console:
export NOVITA_API_KEY="sk_..."
You can also pass a key per command:
novita --api-key sk_... chat "Hello"
Quick Start
novita chat "What is Novita AI?" -m deepseek/deepseek-v3-0324 novita image flux "a cinematic robot painter" -W 1024 -H 576 novita audio tts "Hello from Novita" --voice Calm_Woman -o hello.mp3 novita account balance
Text
# Streaming chat novita chat "Explain GPU inference in one paragraph" -m deepseek/deepseek-v3-0324 # Non-streaming JSON response novita --json-output chat "Return a JSON object with three startup ideas" --no-stream # System prompt and token control novita chat "Write a concise launch checklist" \ --system "You are a pragmatic engineering lead" \ --max-tokens 300 # Embeddings and reranking novita embed "agent sandbox runtime" novita rerank "best runtime for agents" -d "GPU instance" -d "serverless endpoint"
Image
# Fast image generation novita image flux "a glassmorphism command-line dashboard" -W 1024 -H 1024 # Stable Diffusion text-to-image with more controls novita image generate "a product photo of a tiny AI server" --steps 30 -W 768 -H 768 # Image editing utilities novita image reimagine photo.jpg -o reimagined.png novita image remove-bg photo.jpg -o transparent.png novita image to-prompt photo.jpg # Inpainting with a mask novita image inpainting scene.png mask.png "replace the chair with a GPU workstation"
Video
# Text-to-video novita video generate "a developer opens a glowing cloud terminal" --frames 32 # Image-to-video novita video from-image cover.png --model SVD-XT # Submit async work and check it later novita video generate "a robot typing in a terminal" --no-wait novita task status novita task wait -o ./outputs
Audio
# Text-to-speech novita audio tts "Ship it when the tests are green." --voice Calm_Woman -o ship-it.mp3 # GLM TTS novita audio glm-tts "Welcome to the runtime console." -o welcome.wav # Speech-to-text novita audio asr meeting.wav # Voice cloning novita audio voice-clone https://example.com/sample.wav "This is a cloned voice sample."
Files, Batch, And Tasks
# Upload a JSONL file for batch processing novita files upload requests.jsonl # Create and inspect a batch novita batch create novita batch list novita batch get # Inspect async tasks novita task status novita task wait -o ./results
GPU Sandbox Runtimes
Use GPU instances when you need a containerized runtime for experiments, model workloads, agent tools, or sandbox-style compute.
# Discover available products and clusters novita gpu products --gpu-num 1 novita gpu cpu-products novita gpu clusters # Launch a containerized GPU sandbox/runtime novita gpu create \ --product-id 4090.16c125g \ --image pytorch/pytorch:latest \ --gpu-num 1 \ --ports 8888/http # Manage the runtime novita gpu list --status running novita gpu get novita gpu metrics novita gpu stop novita gpu delete
Templates And Storage
# Browse and inspect runtime templates novita template list --channel official novita template get # Create a reusable template novita template create --name my-runtime --image pytorch/pytorch:latest # Manage network storage novita storage list novita storage create --cluster-id --name data-volume --size 100 novita storage delete
Serverless Endpoints
# List endpoints novita serverless list # Deploy a containerized endpoint novita serverless create \ --name my-endpoint \ --image myimage:latest \ --port 8080 \ --product-id # Scale or update an endpoint novita serverless update --max-workers 3 novita serverless get novita serverless delete
Account And Billing
novita account balance novita account billing novita account usage-billing novita account fixed-billing
JSON Output
Add --json-output for machine-readable output:
novita --json-output chat "Hello" --no-stream novita --json-output models list novita --json-output account balance
Links
- Novita AI
- Novita Console
- API Documentation
- Agent Sandbox Quick Start
- [Changelog](CHANGELOG.md)
License
[MIT](LICENSE)
Excerpt shown — open the source for the full document.
Notability
notability 3.0/10New CLI repo, unknown traction, routine.