Skip to main content

CLI for all Novita AI APIs - LLM, images, video, audio, GPU, serverless

Project description

cnovita

CLI for all Novita AI APIs — LLM chat, images, video, audio, GPU instances, serverless endpoints, and more.

Install

pip install cnovita

Setup

export NOVITA_API_KEY="your-key-here"

Quick Start

# Chat with LLM
novita chat "What is Python?" -m deepseek/deepseek-v3-0324

# Generate an image
novita image flux "a sunset over mountains" -W 512 -H 512

# Image editing
novita image reimagine photo.jpg -o reimagined.png
novita image remove-bg photo.jpg -o clean.png
novita image to-prompt photo.jpg

# Text to speech
novita audio tts "Hello world" --voice Calm_Woman -o hello.mp3

# Speech to text
novita audio asr recording.wav

# List GPU products
novita gpu products

# Check account balance
novita account balance

Command Groups

Command Description
novita chat LLM chat completion (streaming)
novita complete Text completion
novita embed Text embeddings
novita rerank Document reranking
novita models List/get models
novita image generate Stable Diffusion txt2img (async)
novita image flux FLUX.1 Schnell (sync)
novita image img2img Image-to-image generation (async)
novita image inpainting Inpaint masked regions (async)
novita image upscale Image upscaling (async)
novita image remove-bg Background removal (sync)
novita image replace-bg Background replacement (async)
novita image reimagine Reimagine an image (sync)
novita image cleanup Erase masked region (sync)
novita image outpainting Extend image borders (sync)
novita image remove-text Remove text from image (sync)
novita image to-prompt Image to text description (sync)
novita image merge-face Face merging (sync)
novita video generate Text-to-video (async)
novita video from-image Image-to-video (async)
novita video hunyuan Hunyuan video (async)
novita audio tts Text-to-speech (MiniMax)
novita audio glm-tts Text-to-speech (GLM)
novita audio asr Speech-to-text
novita audio voice-clone Voice cloning (MiniMax)
novita account balance Account balance
novita account billing Monthly billing
novita account usage-billing Usage-based billing
novita account fixed-billing Fixed-term billing
novita task status Check async task
novita task wait Wait for async task
novita batch Batch processing
novita files File management (upload/list/get/delete)
novita gpu GPU instance management
novita gpu clusters List data centers
novita template GPU templates (CRUD)
novita storage Network storage management
novita serverless Serverless endpoints

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

Changelog

See CHANGELOG.md for release history.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cnovita-0.3.0.tar.gz (33.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cnovita-0.3.0-py3-none-any.whl (31.0 kB view details)

Uploaded Python 3

File details

Details for the file cnovita-0.3.0.tar.gz.

File metadata

  • Download URL: cnovita-0.3.0.tar.gz
  • Upload date:
  • Size: 33.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for cnovita-0.3.0.tar.gz
Algorithm Hash digest
SHA256 9693346fb76f4dbb39295ae3d7b4426b99e5b904700200579cf7998df6a74390
MD5 5577efed7ae8567f7b90a0a7d752096b
BLAKE2b-256 f005fd55ce39c9870b57e736407575535fb18ea8fb1c63a342dfc91acbcaf1d8

See more details on using hashes here.

File details

Details for the file cnovita-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: cnovita-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 31.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for cnovita-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b1a325c6e4af96c58fb2159c1e37c728314684ffc58d22bfffc8379d732c20f7
MD5 b64d51575abc777492d96c98348ace01
BLAKE2b-256 c03dcaca2493ae74e3a6e943185e580651362f797438b5793ca24635aee4a85e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page