Skip to content

DEV-2200: fix stale models, file inputs and doc inconsistencies - #11

Merged
dawidope merged 3 commits into
mainfrom
feature/DEV-2200-update-example-models
Oct 30, 2026
Merged

dawidope merged 3 commits into
mainfrom
feature/DEV-2200-update-example-models

Conversation

@dawidope

@dawidope dawidope commented Oct 30, 2026 •

Copy link
Copy Markdown
Member

Docs, examples, docstrings and test config; no change to SDK behaviour, so no version bump.

Models (checked against the production catalogue and price endpoints)

  • Ltx2_19B_Dist_FP8 / ltx-audio2video → Ltx2_5_22B_Dist_INT8; MusicGen → AceStep_1_5_XL_Turbo_INT8; vid-upscale-model → FlashVSR_Tiny (scale=2); <ocr-model> → Nanonets_Ocr_S_F16; <model-with-reference-support> → MiniMaxH3_33B_Turbo_INT8; voice cloning Kokoro → Qwen3_TTS_12Hz_1_7B_Base; client docstrings sdxl → Flux1schnell.
  • Example parameters kept within each model's limits.

File inputs

  • Examples and README use Path(...); docs no longer say a bare str path is accepted (the SDK rejects it).

Docs consistency

  • models.list page cap 50; video upscale scale per model card; constructor docs list max_retry_after, http_client, owns_http_client; realtime failure wording consistent ("usually not" over WebSocket); describe docstring points to transcription.create; leftover "v2" asides removed; webhook example prints the failure fields.

Tests

  • Integration tests (production, paid) run only with pytest -m integration (addopts in pyproject) and pick standard, non-test models.

🤖 Generated with Claude Code

dawidope and others added 3 commits October 30, 2026 12:55
The examples and README referenced models that are no longer served
(Ltx2_19B_Dist_FP8, ltx-audio2video, MusicGen) plus two placeholders.
Switch to Ltx2_5_22B_Dist_INT8 for text, image and audio to video,
AceStep_1_5_Turbo for music, FlashVSR_Tiny for video upscale and
Nanonets_Ocr_S_F16 for OCR, and keep the parameters within those
models' limits (24 fps, no steps/guidance for LTX 2.5; fixed steps and
guidance for AceStep). Checked against the price endpoints.

File arguments were shown as plain strings, which the SDK rejects;
they now use Path(...), and the comments no longer claim a str path is
accepted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Found by an audit of the docs and examples against the SDK code and the
current model catalogue:

- FileInput is Path, bytes or a binary file object; docs no longer say
  a str path is accepted.
- Voice cloning example uses Qwen3_TTS_12Hz_1_7B_Base (Kokoro cannot
  clone) with its 5-15 s reference and mp3 output; the reference-mode
  example uses MiniMaxH3_33B_Turbo_INT8 instead of a placeholder.
- Docstrings: point to transcription.create (audio.transcribe does not
  exist), use Flux1schnell in the client usage, drop leftover "v2"
  asides.
- API reference: models.list page cap is 50, video upscale scale is per
  model card, the constructor lists max_retry_after / http_client /
  owns_http_client, and failed jobs are "usually not" sent over the
  socket, matching the README.
- Integration tests are excluded unless `pytest -m integration` is
  given, and only pick standard (non-test) models.
- The webhook example prints the failure fields.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dawidope dawidope changed the title DEV-2200: current models and Path file inputs in examples DEV-2200: fix stale models, file inputs and doc inconsistencies Oct 30, 2026
@dawidope
dawidope merged commit c458ccb into main Oct 30, 2026
5 checks passed
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.

1 participant