From 1a6c78bd6ae7a55852ad365c888001444f6cb7f1 Mon Sep 17 00:00:00 2001 From: adamPacz Date: Mon, 25 May 2026 11:14:15 +0200 Subject: [PATCH 1/4] feat: add deAPI provider --- providers/deapi/logo.svg | 10 ++++++++++ providers/deapi/models/bge-m3-fp16.toml | 21 +++++++++++++++++++++ providers/deapi/models/flux1schnell.toml | 18 ++++++++++++++++++ providers/deapi/models/flux2klein4b.toml | 18 ++++++++++++++++++ providers/deapi/models/z-anime.toml | 17 +++++++++++++++++ providers/deapi/models/z-image-turbo.toml | 17 +++++++++++++++++ providers/deapi/provider.toml | 5 +++++ 7 files changed, 106 insertions(+) create mode 100644 providers/deapi/logo.svg create mode 100644 providers/deapi/models/bge-m3-fp16.toml create mode 100644 providers/deapi/models/flux1schnell.toml create mode 100644 providers/deapi/models/flux2klein4b.toml create mode 100644 providers/deapi/models/z-anime.toml create mode 100644 providers/deapi/models/z-image-turbo.toml create mode 100644 providers/deapi/provider.toml diff --git a/providers/deapi/logo.svg b/providers/deapi/logo.svg new file mode 100644 index 000000000..6280bd2b2 --- /dev/null +++ b/providers/deapi/logo.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/providers/deapi/models/bge-m3-fp16.toml b/providers/deapi/models/bge-m3-fp16.toml new file mode 100644 index 000000000..a92f24fa9 --- /dev/null +++ b/providers/deapi/models/bge-m3-fp16.toml @@ -0,0 +1,21 @@ +name = "BGE M3 FP16" +family = "bge" +attachment = false +tool_call = false +reasoning = false +temperature = false +release_date = "2024-01-30" +last_updated = "2024-01-30" +open_weights = true + +[cost] +input = 0.068 +output = 0.00 + +[limit] +context = 8192 +output = 1024 + +[modalities] +input = ["text"] +output = ["text"] diff --git a/providers/deapi/models/flux1schnell.toml b/providers/deapi/models/flux1schnell.toml new file mode 100644 index 000000000..acd7ee803 --- /dev/null +++ b/providers/deapi/models/flux1schnell.toml @@ -0,0 +1,18 @@ +name = "FLUX.1 Schnell" +family = "flux" +attachment = false +tool_call = false +reasoning = false +temperature = false +release_date = "2024-08-01" +last_updated = "2024-08-01" +open_weights = true + +[limit] +context = 0 +input = 0 +output = 0 + +[modalities] +input = ["text"] +output = ["image"] diff --git a/providers/deapi/models/flux2klein4b.toml b/providers/deapi/models/flux2klein4b.toml new file mode 100644 index 000000000..2c4d29bf7 --- /dev/null +++ b/providers/deapi/models/flux2klein4b.toml @@ -0,0 +1,18 @@ +name = "FLUX.2 Klein 4B BF16" +family = "flux" +attachment = true +tool_call = false +reasoning = false +temperature = false +release_date = "2025-08-15" +last_updated = "2025-08-15" +open_weights = true + +[limit] +context = 0 +input = 0 +output = 0 + +[modalities] +input = ["text", "image"] +output = ["image"] diff --git a/providers/deapi/models/z-anime.toml b/providers/deapi/models/z-anime.toml new file mode 100644 index 000000000..5825d8c4a --- /dev/null +++ b/providers/deapi/models/z-anime.toml @@ -0,0 +1,17 @@ +name = "Z-Anime Distill 8-Step INT8" +attachment = false +tool_call = false +reasoning = false +temperature = false +release_date = "2025-03-15" +last_updated = "2025-03-15" +open_weights = true + +[limit] +context = 0 +input = 0 +output = 0 + +[modalities] +input = ["text"] +output = ["image"] diff --git a/providers/deapi/models/z-image-turbo.toml b/providers/deapi/models/z-image-turbo.toml new file mode 100644 index 000000000..7341f1a41 --- /dev/null +++ b/providers/deapi/models/z-image-turbo.toml @@ -0,0 +1,17 @@ +name = "Z-Image Turbo INT8" +attachment = false +tool_call = false +reasoning = false +temperature = false +release_date = "2025-03-15" +last_updated = "2025-03-15" +open_weights = true + +[limit] +context = 0 +input = 0 +output = 0 + +[modalities] +input = ["text"] +output = ["image"] diff --git a/providers/deapi/provider.toml b/providers/deapi/provider.toml new file mode 100644 index 000000000..cb54dd421 --- /dev/null +++ b/providers/deapi/provider.toml @@ -0,0 +1,5 @@ +name = "deAPI" +npm = "@ai-sdk/openai-compatible" +api = "https://oai.deapi.ai/v1" +env = ["DEAPI_API_KEY"] +doc = "https://docs.deapi.ai" From be791d20a3dcb975f1f277931963344b31328223 Mon Sep 17 00:00:00 2001 From: adamPacz Date: Mon, 25 May 2026 11:35:47 +0200 Subject: [PATCH 2/4] =?UTF-8?q?fix:=20address=20review=20=E2=80=94=20FLUX.?= =?UTF-8?q?2=20Klein=20dates,=20field=20ordering,=20knowledge=20field,=20u?= =?UTF-8?q?nderscored=20numbers?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- providers/deapi/models/bge-m3-fp16.toml | 11 ++++++----- providers/deapi/models/flux1schnell.toml | 7 +++---- providers/deapi/models/flux2klein4b.toml | 7 +++---- providers/deapi/models/z-anime.toml | 7 +++---- providers/deapi/models/z-image-turbo.toml | 7 +++---- 5 files changed, 18 insertions(+), 21 deletions(-) diff --git a/providers/deapi/models/bge-m3-fp16.toml b/providers/deapi/models/bge-m3-fp16.toml index a92f24fa9..46a230728 100644 --- a/providers/deapi/models/bge-m3-fp16.toml +++ b/providers/deapi/models/bge-m3-fp16.toml @@ -1,11 +1,12 @@ name = "BGE M3 FP16" family = "bge" +release_date = "2024-01-30" +last_updated = "2024-01-30" attachment = false -tool_call = false reasoning = false temperature = false -release_date = "2024-01-30" -last_updated = "2024-01-30" +knowledge = "2024-01" +tool_call = false open_weights = true [cost] @@ -13,8 +14,8 @@ input = 0.068 output = 0.00 [limit] -context = 8192 -output = 1024 +context = 8_192 +output = 1_024 [modalities] input = ["text"] diff --git a/providers/deapi/models/flux1schnell.toml b/providers/deapi/models/flux1schnell.toml index acd7ee803..dc2fc8708 100644 --- a/providers/deapi/models/flux1schnell.toml +++ b/providers/deapi/models/flux1schnell.toml @@ -1,16 +1,15 @@ name = "FLUX.1 Schnell" family = "flux" +release_date = "2024-08-01" +last_updated = "2024-08-01" attachment = false -tool_call = false reasoning = false temperature = false -release_date = "2024-08-01" -last_updated = "2024-08-01" +tool_call = false open_weights = true [limit] context = 0 -input = 0 output = 0 [modalities] diff --git a/providers/deapi/models/flux2klein4b.toml b/providers/deapi/models/flux2klein4b.toml index 2c4d29bf7..608382402 100644 --- a/providers/deapi/models/flux2klein4b.toml +++ b/providers/deapi/models/flux2klein4b.toml @@ -1,16 +1,15 @@ name = "FLUX.2 Klein 4B BF16" family = "flux" +release_date = "2026-01-14" +last_updated = "2026-01-14" attachment = true -tool_call = false reasoning = false temperature = false -release_date = "2025-08-15" -last_updated = "2025-08-15" +tool_call = false open_weights = true [limit] context = 0 -input = 0 output = 0 [modalities] diff --git a/providers/deapi/models/z-anime.toml b/providers/deapi/models/z-anime.toml index 5825d8c4a..6b6bf27b7 100644 --- a/providers/deapi/models/z-anime.toml +++ b/providers/deapi/models/z-anime.toml @@ -1,15 +1,14 @@ name = "Z-Anime Distill 8-Step INT8" +release_date = "2025-03-15" +last_updated = "2025-03-15" attachment = false -tool_call = false reasoning = false temperature = false -release_date = "2025-03-15" -last_updated = "2025-03-15" +tool_call = false open_weights = true [limit] context = 0 -input = 0 output = 0 [modalities] diff --git a/providers/deapi/models/z-image-turbo.toml b/providers/deapi/models/z-image-turbo.toml index 7341f1a41..bc443422b 100644 --- a/providers/deapi/models/z-image-turbo.toml +++ b/providers/deapi/models/z-image-turbo.toml @@ -1,15 +1,14 @@ name = "Z-Image Turbo INT8" +release_date = "2025-03-15" +last_updated = "2025-03-15" attachment = false -tool_call = false reasoning = false temperature = false -release_date = "2025-03-15" -last_updated = "2025-03-15" +tool_call = false open_weights = true [limit] context = 0 -input = 0 output = 0 [modalities] From f9bcc02cb13b49eea224619d62e8a1fdc7c1e7ee Mon Sep 17 00:00:00 2001 From: adamPacz Date: Mon, 25 May 2026 11:53:13 +0200 Subject: [PATCH 3/4] fix: align filenames with deAPI API slugs + add z-image family - Rename all model files to match exact deAPI native slugs so consumers (OpenCode, Vercel AI SDK) send the correct model identifier to https://oai.deapi.ai/v1 (model id is auto-derived from filename): bge-m3-fp16 -> Bge_M3_FP16 flux1schnell -> Flux1schnell flux2klein4b -> Flux_2_Klein_4B_BF16 z-image-turbo -> ZImageTurbo_INT8 z-anime -> ZAnimeDistill_8Step_INT8 - Add "z-image" to packages/core/src/family.ts enum so Z-Image models can be properly classified. - Correct Z-Image release dates: ZImageTurbo_INT8: 2025-03-15 -> 2025-11-26 (Tongyi Lab) ZAnimeDistill_8Step_INT8: 2025-03-15 -> 2025-12-28 --- packages/core/src/family.ts | 1 + .../deapi/models/{bge-m3-fp16.toml => Bge_M3_FP16.toml} | 0 .../deapi/models/{flux1schnell.toml => Flux1schnell.toml} | 0 .../models/{flux2klein4b.toml => Flux_2_Klein_4B_BF16.toml} | 0 .../models/{z-anime.toml => ZAnimeDistill_8Step_INT8.toml} | 5 +++-- .../models/{z-image-turbo.toml => ZImageTurbo_INT8.toml} | 5 +++-- 6 files changed, 7 insertions(+), 4 deletions(-) rename providers/deapi/models/{bge-m3-fp16.toml => Bge_M3_FP16.toml} (100%) rename providers/deapi/models/{flux1schnell.toml => Flux1schnell.toml} (100%) rename providers/deapi/models/{flux2klein4b.toml => Flux_2_Klein_4B_BF16.toml} (100%) rename providers/deapi/models/{z-anime.toml => ZAnimeDistill_8Step_INT8.toml} (74%) rename providers/deapi/models/{z-image-turbo.toml => ZImageTurbo_INT8.toml} (73%) diff --git a/packages/core/src/family.ts b/packages/core/src/family.ts index f6ad3a08d..994d42ae9 100644 --- a/packages/core/src/family.ts +++ b/packages/core/src/family.ts @@ -164,6 +164,7 @@ export const ModelFamilyValues = [ "stable-diffusion", "ideogram", "dreamshaper", + "z-image", // Video generation "sora", diff --git a/providers/deapi/models/bge-m3-fp16.toml b/providers/deapi/models/Bge_M3_FP16.toml similarity index 100% rename from providers/deapi/models/bge-m3-fp16.toml rename to providers/deapi/models/Bge_M3_FP16.toml diff --git a/providers/deapi/models/flux1schnell.toml b/providers/deapi/models/Flux1schnell.toml similarity index 100% rename from providers/deapi/models/flux1schnell.toml rename to providers/deapi/models/Flux1schnell.toml diff --git a/providers/deapi/models/flux2klein4b.toml b/providers/deapi/models/Flux_2_Klein_4B_BF16.toml similarity index 100% rename from providers/deapi/models/flux2klein4b.toml rename to providers/deapi/models/Flux_2_Klein_4B_BF16.toml diff --git a/providers/deapi/models/z-anime.toml b/providers/deapi/models/ZAnimeDistill_8Step_INT8.toml similarity index 74% rename from providers/deapi/models/z-anime.toml rename to providers/deapi/models/ZAnimeDistill_8Step_INT8.toml index 6b6bf27b7..355894f49 100644 --- a/providers/deapi/models/z-anime.toml +++ b/providers/deapi/models/ZAnimeDistill_8Step_INT8.toml @@ -1,6 +1,7 @@ name = "Z-Anime Distill 8-Step INT8" -release_date = "2025-03-15" -last_updated = "2025-03-15" +family = "z-image" +release_date = "2025-12-28" +last_updated = "2025-12-28" attachment = false reasoning = false temperature = false diff --git a/providers/deapi/models/z-image-turbo.toml b/providers/deapi/models/ZImageTurbo_INT8.toml similarity index 73% rename from providers/deapi/models/z-image-turbo.toml rename to providers/deapi/models/ZImageTurbo_INT8.toml index bc443422b..dbac8e29a 100644 --- a/providers/deapi/models/z-image-turbo.toml +++ b/providers/deapi/models/ZImageTurbo_INT8.toml @@ -1,6 +1,7 @@ name = "Z-Image Turbo INT8" -release_date = "2025-03-15" -last_updated = "2025-03-15" +family = "z-image" +release_date = "2025-11-26" +last_updated = "2025-11-26" attachment = false reasoning = false temperature = false From a579768af987c1d05dfe3bbe748626c303b6c477 Mon Sep 17 00:00:00 2001 From: adamPacz Date: Wed, 27 May 2026 10:10:01 +0200 Subject: [PATCH 4/4] fix: replace logo.svg with official deAPI chip glyph MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewer correctly flagged that the previous logo.svg was not the deAPI brand mark. The chip glyph below is taken from the deAPI brand system (pixel-art frame with center slash, amber #FFBA00 in product contexts; here exported as a flat icon-only path with currentColor so models.dev can theme it light/dark). - Path data sourced from the official deAPI marketing site (resources/v2/assets/logo.svg, chip-glyph subpath). - Centered inside viewBox="0 0 40 40" via translate(5.4525, 4) so the 29.095x32 chip art is padded evenly (~5.45px / 4px). - Single currentColor fill, no embedded color tokens, no defs. Apologies to the maintainer — that was a sourcing mistake on our end, not a misrepresentation of the provider. --- providers/deapi/logo.svg | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/providers/deapi/logo.svg b/providers/deapi/logo.svg index 6280bd2b2..9508f4ffc 100644 --- a/providers/deapi/logo.svg +++ b/providers/deapi/logo.svg @@ -1,10 +1,3 @@ - - - - - - - - - + +