novita
Novita AI API for LLM inference, image generation, and video generation. Use when the user mentions "Novita", "Novita AI", "novita.ai", "Seedance", or wants to run open models (DeepSeek, Llama, Qwen) or generate images and videos (including Seedance 2.0) through an OpenAI-compatible or async API.
What this skill does
# Novita AI
Novita AI is a cloud platform for running open foundation models and serverless
GPU workloads. Its LLM API is OpenAI-compatible, so any SDK or workflow built for
OpenAI's `/v1/` endpoints works by changing the base URL and API key. Image and
video generation use Novita's native asynchronous task API.
> Official docs: `https://novita.ai/docs/api-reference`
---
## When to Use
Use this skill when you need to:
- Run open LLMs (DeepSeek, Llama, Qwen, Mistral, etc.) via an OpenAI-compatible API
- Generate images from text prompts with Stable Diffusion or FLUX models
- Generate videos from text, image, or multi-modal reference prompts (including
Seedance 2.0)
- List the models available on the Novita AI platform
---
## Prerequisites
Connect the **Novita AI** connector at [app.vm0.ai/connectors](https://app.vm0.ai/connectors).
> **Troubleshooting:** If requests fail, run `zero doctor check-connector --env-name NOVITA_TOKEN` or `zero doctor check-connector --url https://api.novita.ai/openai/v1/models --method GET`
---
## How to Use
### 1. Chat Completion (OpenAI-compatible)
Write to `/tmp/novita_chat.json`:
```json
{
"model": "deepseek/deepseek-v3-0324",
"messages": [{"role": "user", "content": "Explain quantum entanglement in one paragraph."}],
"max_tokens": 512
}
```
Then run:
```bash
curl -s "https://api.novita.ai/openai/v1/chat/completions" --header "Content-Type: application/json" --header "Authorization: Bearer $NOVITA_TOKEN" -d @/tmp/novita_chat.json | jq '.choices[0].message.content'
```
**Popular chat models:**
- `deepseek/deepseek-v3-0324` — DeepSeek V3, strong general reasoning
- `deepseek/deepseek-r1-turbo` — DeepSeek R1, fast reasoning variant
- `meta-llama/llama-3.3-70b-instruct` — Llama 3.3 70B
- `qwen/qwen-2.5-72b-instruct` — Qwen 2.5 72B
- `mistralai/mistral-nemo` — Mistral Nemo, lightweight
### 2. Chat with System Prompt
Write to `/tmp/novita_chat.json`:
```json
{
"model": "deepseek/deepseek-v3-0324",
"messages": [
{"role": "system", "content": "You are a concise technical assistant. Respond in JSON."},
{"role": "user", "content": "List three uses of embeddings in NLP."}
],
"max_tokens": 256
}
```
Then run:
```bash
curl -s "https://api.novita.ai/openai/v1/chat/completions" --header "Content-Type: application/json" --header "Authorization: Bearer $NOVITA_TOKEN" -d @/tmp/novita_chat.json | jq '.choices[0].message.content'
```
### 3. Streaming Response
Write to `/tmp/novita_stream.json`:
```json
{
"model": "deepseek/deepseek-v3-0324",
"messages": [{"role": "user", "content": "Write a haiku about open-source AI."}],
"stream": true,
"max_tokens": 128
}
```
Then run:
```bash
curl -s "https://api.novita.ai/openai/v1/chat/completions" --header "Content-Type: application/json" --header "Authorization: Bearer $NOVITA_TOKEN" -d @/tmp/novita_stream.json
```
Streaming returns Server-Sent Events with delta chunks.
### 4. List Available Models
```bash
curl -s "https://api.novita.ai/openai/v1/models" --header "Authorization: Bearer $NOVITA_TOKEN" | jq '[.data[].id]'
```
### 5. Text-to-Image Generation
Image generation is asynchronous: the request returns a `task_id`, then you poll
for the result.
Write to `/tmp/novita_txt2img.json`:
```json
{
"extra": {
"response_image_type": "jpeg"
},
"request": {
"prompt": "a photorealistic mountain lake at sunset, golden light reflecting on water",
"model_name": "sd_xl_base_1.0.safetensors",
"negative_prompt": "blurry, low quality, distorted",
"width": 1024,
"height": 1024,
"image_num": 1,
"steps": 20,
"seed": -1,
"sampler_name": "Euler a",
"guidance_scale": 7.5
}
}
```
Submit the task:
```bash
curl -s -X POST "https://api.novita.ai/v3/async/txt2img" --header "Content-Type: application/json" --header "Authorization: Bearer $NOVITA_TOKEN" -d @/tmp/novita_txt2img.json | jq '.task_id'
```
Poll for the result. Replace `<task-id>` with the `task_id` from the response above:
```bash
curl -s "https://api.novita.ai/v3/async/task-result?task_id=<task-id>" --header "Authorization: Bearer $NOVITA_TOKEN" | jq '{status: .task.status, images: [.images[].image_url]}'
```
When `task.status` is `TASK_STATUS_SUCCEED`, the `images` array holds the output URLs.
### 6. Text-to-Video Generation
Video generation uses the same async submit/poll pattern.
Write to `/tmp/novita_txt2video.json`:
```json
{
"model_name": "wan2.1-t2v-14b",
"width": 832,
"height": 480,
"steps": 20,
"prompts": [
{"prompt": "a paper airplane gliding over a calm ocean at dawn", "frames": 81}
],
"seed": -1
}
```
Submit the task:
```bash
curl -s -X POST "https://api.novita.ai/v3/async/txt2video" --header "Content-Type: application/json" --header "Authorization: Bearer $NOVITA_TOKEN" -d @/tmp/novita_txt2video.json | jq '.task_id'
```
Poll for the result with the same `task-result` endpoint. Replace `<task-id>`:
```bash
curl -s "https://api.novita.ai/v3/async/task-result?task_id=<task-id>" --header "Authorization: Bearer $NOVITA_TOKEN" | jq '{status: .task.status, videos: [.videos[].video_url]}'
```
### 7. Seedance 2.0 Video Generation
Seedance 2.0 is a multi-modal video model with its own dedicated endpoint
(`/v3/async/seedance-2.0`). It supports text-to-video, image-to-video (first
frame / first+last frame), and multi-modal reference generation (images +
videos + audio). Two variants — `seedance-2.0` (standard) and
`seedance-2.0-fast` (lower price, faster) — are selected with the `fast` flag.
**Text-to-video.** Write to `/tmp/novita_seedance.json`:
```json
{
"prompt": "a dynamic beach volleyball rally on a sunny tropical beach, energetic tracking camera, golden afternoon light, cinematic",
"duration": 5,
"resolution": "720p",
"ratio": "16:9",
"generate_audio": true,
"watermark": false,
"fast": false,
"seed": -1
}
```
Submit the task:
```bash
curl -s -X POST "https://api.novita.ai/v3/async/seedance-2.0" --header "Content-Type: application/json" --header "Authorization: Bearer $NOVITA_TOKEN" -d @/tmp/novita_seedance.json | jq '.task_id'
```
Poll for the result with the same `task-result` endpoint. Replace `<task-id>`:
```bash
curl -s "https://api.novita.ai/v3/async/task-result?task_id=<task-id>" --header "Authorization: Bearer $NOVITA_TOKEN" | jq '{status: .task.status, videos: [.videos[].video_url]}'
```
When `task.status` is `TASK_STATUS_SUCCEED`, `videos[].video_url` holds the MP4
output. The URL is time-limited — `video_url_ttl` is its lifetime in seconds.
**Request body fields** (all optional unless noted):
- `prompt` — text description; **required for text-to-video**. Chinese or
English, recommended ≤1000 English words / ≤500 Chinese characters.
- `fast` — use the `seedance-2.0-fast` variant.
- `duration` — video length in seconds, range `[4, 15]`.
- `resolution` — `480p`, `720p`, or `1080p`. `1080p` requires the standard
model (`fast: false`).
- `ratio` — `16:9`, `4:3`, `1:1`, `3:4`, `9:16`, `21:9`, or `adaptive`.
- `generate_audio` — generate synchronized voice, sound effects, and music.
- `watermark` — include a watermark in the output.
- `web_search` — let the model search the web for timeliness (adds latency).
- `seed` — randomness control, range `[-1, 2^32-1]`; `-1` is random.
- `return_last_frame` — also return the final frame as a watermark-free PNG
(useful for sequential video generation).
**Image-to-video.** Add `image` (first-frame URL or Base64; jpeg/png/webp/bmp/
tiff/gif, aspect ratio 0.4–2.5, ≤30MB). Add `last_image` for first+last-frame
mode — `last_image` requires `image` and is invalid on its own.
**Multi-modal reference.** Provide `reference_images` (1–9), `reference_videos`
(mp4/mov, 1–3, each 2–15s, ≤50MB) and/or `reference_audios` (wav/mp3, 1–3,
total ≤15s); reference the slots inside `prompt` as `[Image1]…`, `[Image2]…`.
> **Minimum charge:** multi-modal reference jobs with video input bill
> `max(per-second price × seconds, minimum charge)`. A shorRelated in Image & Video
watch
IncludedWatch a video (URL or local path). Downloads with yt-dlp, extracts auto-scaled frames with ffmpeg, pulls the transcript from captions (or Whisper API fallback), and hands the result to Claude so it can answer questions about what's in the video.
physical-ai-defect-image-generation
IncludedUse when the user wants to orchestrate defect image generation, run associated setup, or handle outputs on OSMO. The Day 0 path handles cold-start with USD-to-ROI, image-edit augmentation, and AnomalyGen to create initial PCBA datasets. The Day 1 path performs inference and labeling on real images. This skill helps with first-time asset setup, creation of finetuning checkpoints, and configuring deployment. Trigger keywords: defect image generation, dig workflow, dig pipeline, defect image detection workflow, aoi pipeline, aoi anomalygen, usd2roi anomalygen, day 0 pcba, day 1 pcba, day 1 real-photo alignment, day 1 manual roi, metal surface anomaly, glass defect, anomalygen finetune, setup_pcb, setup_metal, setup_glass, setup_pretrained, dig setup, dig datasets, dig pretrained checkpoint, dig image-edit endpoint.
accelint-react-best-practices
IncludedReact performance optimization and best practices. ALWAYS use this skill when working with any React code - writing components, hooks, JSX; refactoring; optimizing re-renders, memoization, state management; reviewing for performance; fixing hydration mismatches; debugging infinite re-renders, stale closures, input focus loss, animations restarting; preventing remounting; implementing transitions, lazy initialization, effect dependencies. Even simple React tasks benefit from these patterns. Covers React 19+ (useEffectEvent, Activity, ref props). Triggers - useEffect, useState, useMemo, useCallback, memo, inline components, nested components, components inside components, re-render, performance, hydration, SSR, Next.js, useDeferredValue, combined hooks.
elevenlabs-agents
IncludedBuild conversational AI voice agents with ElevenLabs Platform using React, JavaScript, React Native, or Swift SDKs. Configure agents, tools (client/server/MCP), RAG knowledge bases, multi-voice, and Scribe real-time STT. Use when: building voice chat interfaces, implementing AI phone agents with Twilio, configuring agent workflows or tools, adding RAG knowledge bases, testing with CLI "agents as code", or troubleshooting deprecated @11labs packages, Android audio cutoff, CSP violations, dynamic variables, or WebRTC config. Keywords: ElevenLabs Agents, ElevenLabs voice agents, AI voice agents, conversational AI, @elevenlabs/react, @elevenlabs/client, @elevenlabs/react-native, @elevenlabs/elevenlabs-js, @elevenlabs/agents-cli, elevenlabs SDK, voice AI, TTS, text-to-speech, ASR, speech recognition, turn-taking model, WebRTC voice, WebSocket voice, ElevenLabs conversation, agent system prompt, agent tools, agent knowledge base, RAG voice agents, multi-voice agents, pronunciation dictionary, voice speed control, elevenlabs scribe, @11labs deprecated, Android audio cutoff, CSP violation elevenlabs, dynamic variables elevenlabs, case-sensitive tool names, webhook authentication
humanizer
IncludedHumanize AI-generated text by detecting and removing patterns typical of LLM output. Rewrites text to sound natural, specific, and human. Uses 28 pattern detectors, 560+ AI vocabulary terms across 3 tiers, and statistical analysis (burstiness, type-token ratio, readability) for comprehensive detection. Use when asked to humanize text, de-AI writing, make content sound more natural/human, review writing for AI patterns, score text for AI detection, or improve AI-generated drafts. Covers content, language, style, communication, and filler categories.
generating-mermaid-diagrams
IncludedSalesforce architecture diagrams using Mermaid with ASCII fallback. Use this skill when generating text-based diagrams for Salesforce architecture, OAuth flows, ERDs, integration sequences, or Agentforce structure. TRIGGER when: user says "diagram", "visualize", "ERD", or asks for sequence diagrams, flowcharts, class diagrams, or architecture visualizations in Mermaid. DO NOT TRIGGER when: user wants PNG/SVG image output (use generating-visual-diagrams), or asks about non-Salesforce systems.