Skip to content

feat: add deAPI provider - #2604

Closed
adampachowicz wants to merge 5 commits into
anomalyco:devfrom
deapi-ai:add-deapi-provider-refresh
Closed

adampachowicz wants to merge 5 commits into
anomalyco:devfrom
deapi-ai:add-deapi-provider-refresh

Conversation

@adampachowicz

Copy link
Copy Markdown

Resubmitting the deAPI provider registration (previously #1855, which was auto-closed as stale). Rebased onto the latest dev; bun run validate passes locally.

Re: the logo concern from #1855 — the logo file was flagged there as possibly being the OpenAI mark. That was a mistaken asset on our side and has been fixed: providers/deapi/logo.svg is now the official deAPI chip glyph (currentColor only, so it themes cleanly), not the OpenAI logo. Could you take another look?

About the provider: deAPI is a real, OpenAI-compatible inference provider, legally operated by CoinAxe Ltd (Malta). Docs: https://docs.deapi.ai

Purely additive — adds provider.toml, logo.svg, and 5 model entries (BGE-M3 embeddings + image models); no changes to other providers. Happy to adjust anything to match your conventions. Thanks for maintaining models.dev!

- 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
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.
@rekram1-node

rekram1-node commented Jun 16, 2026 •

Copy link
Copy Markdown
Member

let's:

  • use base_model syntax if possible
  • specify reasoning options if applicable
  • add sync script if possible

- add packages/core/script/generate-deapi.ts (deapi:generate) that
  reconciles local model TOMLs against the live deAPI /v1/models catalog;
  scaffolds stubs for new models and warns on files the API no longer serves
- deAPI's OpenAI-compatible endpoint exposes only model IDs (no pricing,
  context or modalities), so per-model metadata stays hand-curated
- remove ZAnimeDistill_8Step_INT8: not present in the live deAPI catalog

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@adampachowicz

Copy link
Copy Markdown
Author

Thanks for the review! Addressed below:

sync script ✅ — Added generate-deapi.ts (bun run deapi:generate), following the same pattern as the existing *:generate scripts. It reconciles the local model TOMLs against the live deAPI /v1/models catalog: scaffolds stubs for new models and warns about files the API no longer serves (--dry-run / --new-only supported). One caveat — deAPI's OpenAI-compatible endpoint only exposes model IDs (no pricing, context window or modalities), so the script syncs the model set and per-model metadata stays hand-curated. Running it against production also surfaced a stale entry on my side: ZAnimeDistill_8Step_INT8 isn't actually served by deAPI, so I removed it.

base_model — Not applicable here: none of these have an upstream base in the models/ registry to inherit from (no BAAI bge-m3, Black Forest Labs FLUX, Z-Image or LTX entries exist), so they're standalone provider models. Happy to switch to base_model if/when canonical entries for those land.

reasoning options — Not applicable: these are embedding and image models, so reasoning = false across the board — there are no reasoning modes to specify.

Let me know if you'd like anything else adjusted!

@github-actions

Copy link
Copy Markdown
Contributor

Closing this pull request as stale because it has not been updated in 7 days after feedback from @rekram1-node. Feel free to reopen it or submit a new pull request if the work is resumed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants