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.2.1.tar.gz (32.7 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.2.1-py3-none-any.whl (31.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for cnovita-0.2.1.tar.gz
Algorithm Hash digest
SHA256 75accf50a4d4cc99f835793a9f3efb5a3f027fb7f2e8175f286a780dcbcb8f6f
MD5 5b479d8059461ba1868b09328ad6f147
BLAKE2b-256 81d406f8d5a250f11f38d2d55a13e1f92ccfd4857e609b89ca9b11fb0ad702cd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cnovita-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 31.4 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.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 16009411775858a02f0abc3aeb545c7cad8a81f9828e44bb30bf5a87659df707
MD5 5c35b6f381a520c2e1c27127dd467d22
BLAKE2b-256 06e55b6e043d15ab8e35516267a08f0454e902e69ca710e2406db36c94a6f09a

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