Skip to content

Commit faa3cd6

Browse files
authored
feat(zerogpu): add ZeroGPU provider (#9460)
Adds ZeroGPU (https://api.zerogpu.ai/v1) with 13 models: 9 chat, 2 embedding, 1 transcription and 1 speech. All entries use base_model; adds lab files for openai/whisper-tiny and resemble-ai/chatterbox-nano.
1 parent b19eddd commit faa3cd6

18 files changed

Lines changed: 381 additions & 0 deletions

‎labs/resemble-ai/lab.toml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Name: Resemble AI (resemble.ai, huggingface.co/ResembleAI)
2+
schema = 2
3+
name = "Resemble AI"

‎models/openai/whisper-tiny.toml‎

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# https://huggingface.co/openai/whisper-tiny
2+
# https://openai.com/index/whisper/
3+
# Modalities and limits match the other Whisper checkpoints (whisper-large-v3-turbo).
4+
schema = 2
5+
v2_only = true
6+
type = "transcription"
7+
name = "Whisper Tiny"
8+
description = "Smallest multilingual Whisper checkpoint for fast, low-cost speech transcription"
9+
family = "whisper"
10+
open_weights = true
11+
release_date = "2022-09-21"
12+
license = "Apache-2.0"
13+
14+
[modalities]
15+
input = ["audio/flac", "audio/mpeg", "audio/mp4", "audio/ogg", "audio/wav", "audio/webm"]
16+
output = ["text"]
17+
18+
[capabilities]
19+
tools = { supported = false }
20+
reasoning = { supported = false }
21+
temperature = true
22+
top_p = false
23+
top_k = false
24+
25+
[limit]
26+
context = 448
27+
output = 448
28+
29+
[[weights]]
30+
label = "Hugging Face"
31+
url = "https://huggingface.co/openai/whisper-tiny"
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# https://huggingface.co/ResembleAI/chatterbox-nano
2+
# https://github.com/resemble-ai/chatterbox
3+
# Input is limited by characters, not tokens, so limits are left at 0.
4+
# Output format depends on the host, so it stays generic.
5+
schema = 2
6+
v2_only = true
7+
type = "speech"
8+
name = "Chatterbox Nano"
9+
description = "Compact English text-to-speech model with zero-shot voice cloning"
10+
open_weights = true
11+
release_date = "2026-04-14"
12+
license = "MIT"
13+
14+
[modalities]
15+
input = ["text"]
16+
output = ["audio"]
17+
18+
[capabilities]
19+
tools = { supported = false }
20+
reasoning = { supported = false }
21+
temperature = true
22+
top_p = false
23+
top_k = false
24+
25+
[limit]
26+
context = 0
27+
output = 0
28+
29+
[[weights]]
30+
label = "Hugging Face"
31+
url = "https://huggingface.co/ResembleAI/chatterbox-nano"

‎providers/zerogpu/logo.svg‎

Lines changed: 5 additions & 0 deletions
Loading
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Pricing: https://docs.zerogpu.ai/docs/model-catalog (accessed 2026-10-12)
2+
# POST /v1/embeddings returns 384-dimensional vectors; billed on input tokens only.
3+
# Input over 256 tokens is truncated (usage.prompt_tokens caps at 256 and longer
4+
# inputs return the same vector), matching the lab limit.
5+
# Verified against https://api.zerogpu.ai/v1/embeddings (2026-10-12).
6+
schema = 2
7+
v2_only = true
8+
base_model = "sentence-transformers/all-minilm-l6-v2"
9+
10+
[api.embeddings]
11+
sdk = { opencodeai = "@opencode/ai/providers/openai-compatible/embeddings" }
12+
13+
[cost.text.input]
14+
price = 0.004
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Pricing: https://docs.zerogpu.ai/docs/model-catalog (accessed 2026-10-12)
2+
# POST /v1/embeddings returns 384-dimensional vectors; billed on input tokens only.
3+
schema = 2
4+
v2_only = true
5+
base_model = "baai/bge-small-en-v1.5"
6+
7+
[api.embeddings]
8+
sdk = { opencodeai = "@opencode/ai/providers/openai-compatible/embeddings" }
9+
10+
[cost.text.input]
11+
price = 0.004
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Pricing: https://docs.zerogpu.ai/docs/audio (accessed 2026-10-12)
2+
# $0.01 per minute of generated audio, rounded up with a one-minute minimum (minimum not expressible in v2).
3+
# Endpoint: POST /v1/audio/speech (input up to 2,000 characters, English only;
4+
# response_format mp3, wav or opus).
5+
schema = 2
6+
v2_only = true
7+
base_model = "resemble-ai/chatterbox-nano"
8+
9+
[modalities]
10+
input = ["text"]
11+
output = ["audio/mpeg", "audio/wav", "audio/opus"]
12+
13+
[api.speech]
14+
sdk = { aisdk = "@ai-sdk/openai", opencodeai = "@opencode/ai/protocols/openai-speech" }
15+
16+
[cost.audio.output]
17+
unit = "minute"
18+
price = 0.01
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Pricing: https://api-dashboard.zerogpu.ai/api/models and
2+
# https://docs.zerogpu.ai/docs/model-catalog (2026-11-13): input $0.30/M, output $1.20/M,
3+
# cached input $0.003/M.
4+
# Toggle: thinking.type = enabled|disabled (thinking is off by default).
5+
# Effort: reasoning_effort = low|high|max (applies when thinking is enabled).
6+
# Text-only on this host.
7+
# Verified against https://api.zerogpu.ai/v1/chat/completions (2026-10-12);
8+
# strict json_schema response_format verified 2026-11-03.
9+
# Cache: implicit prefix caching, no markers needed. Live 2026-11-05 on
10+
# https://api.zerogpu.ai/v1/chat/completions: a ~5.3k-token system prefix resent with a
11+
# new user message returned usage.prompt_tokens_details.cached_tokens = 5,120.
12+
schema = 2
13+
base_model = "deepseek/deepseek-v4.1-flash"
14+
15+
[modalities]
16+
input = ["text"]
17+
output = ["text"]
18+
19+
[capabilities]
20+
reasoning = { supported = true, toggle = true, effort = ["low", "high", "max"] }
21+
structured_output = true
22+
cache = { implicit = true }
23+
24+
[limit]
25+
context = 1_048_576
26+
output = 65_536
27+
28+
[cost.text.input]
29+
price = 0.3
30+
cache = { read = 0.003 }
31+
32+
[cost.text.output]
33+
price = 1.2
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Pricing: https://docs.zerogpu.ai/docs/model-catalog (accessed 2026-10-12)
2+
# Effort: reasoning_effort = low|high|max; thinking cannot be disabled.
3+
# Image and PDF input are accepted; video is not.
4+
# Verified against https://api.zerogpu.ai/v1/chat/completions (2026-10-12);
5+
# strict json_schema response_format verified 2026-11-03.
6+
# Cache: none. A ~5.4k-token system prefix sent four times, with the same and then a new
7+
# user message, returned usage.prompt_tokens_details.cached_tokens = 0 every time
8+
# (live 2026-11-05, three runs).
9+
schema = 2
10+
base_model = "zhipuai/glm-5.3-flash"
11+
12+
[modalities]
13+
input = ["text", "image/jpeg", "image/png", "application/pdf"]
14+
output = ["text"]
15+
16+
[capabilities]
17+
reasoning = { supported = true, effort = ["low", "high", "max"] }
18+
structured_output = true
19+
cache = false
20+
21+
[limit]
22+
context = 1_048_576
23+
output = 32_768
24+
25+
[cost.text.input]
26+
price = 0.1
27+
28+
[cost.text.output]
29+
price = 0.35
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Pricing: https://api-dashboard.zerogpu.ai/api/models and
2+
# https://docs.zerogpu.ai/docs/model-catalog (2026-11-13): input $0.40/M, output $1.60/M,
3+
# cached input $0.10/M.
4+
# Strict json_schema response_format verified against https://api.zerogpu.ai/v1/chat/completions (2026-11-03).
5+
# Cache: implicit prefix caching, no markers needed. Live 2026-11-05 on
6+
# https://api.zerogpu.ai/v1/chat/completions: a ~5.2k-token system prefix resent with a
7+
# new user message returned usage.prompt_tokens_details.cached_tokens = 4,992.
8+
schema = 2
9+
base_model = "openai/gpt-4.1-mini"
10+
11+
[capabilities]
12+
structured_output = true
13+
cache = { implicit = true }
14+
15+
[cost.text.input]
16+
price = 0.4
17+
cache = { read = 0.1 }
18+
19+
[cost.text.output]
20+
price = 1.6

0 commit comments

Comments
 (0)