Skip to content

Tags

Tags

v0.7.0

Toggle v0.7.0's commit message
deapi-sdk 0.7.0

v0.6.1

Toggle v0.6.1's commit message
deapi-sdk 0.6.1

- Published on PyPI: `pip install deapi-sdk` (`pip install "deapi-sdk[ws]"` for real-time status).
  Releases are uploaded by GitHub Actions when a GitHub Release is published.

- README links are absolute, so they also work on the PyPI project page.
- The product name is spelled deAPI throughout the docs and docstrings.

v0.6.0

Toggle v0.6.0's commit message
deapi-sdk 0.6.0

- `client.websocket_config()` (sync and async) returns the account's realtime connection settings
  (`GET /websocket`) as the new `WebSocketConfig` / `WebSocketConnection` models. Works with any API key.

- `client.realtime()` no longer needs any settings. `client_id`, `ws_url` and `app_key` are each taken
  from the argument, then `DEAPI_CLIENT_ID` / `DEAPI_WS_URL` / `DEAPI_WS_APP_KEY`, then `GET /websocket`.
  The discovery call is made once at connect time and only when something is still missing; with all
  three set, no extra request is made.
- Setting only `DEAPI_CLIENT_ID` now triggers one `GET /websocket` call at connect time instead of
  falling back to built-in WebSocket defaults. The hard-coded WebSocket URL and app key were removed.
- `Realtime.client_id` / `AsyncRealtime.client_id` is now `str | None`: `None` until connect when it was
  neither passed nor set in the environment.
- An unusable discovery response raises `RealtimeError`; HTTP errors from it raise the usual API exceptions.

v0.5.2

Toggle v0.5.2's commit message
deapi-sdk 0.5.2

The low-level request() / post() annotate files with RequestFiles, the
httpx multipart shapes (mapping or sequence; bytes or binary file object
content; optional filename, content type, headers). Typing only.
669 tests pass on Python 3.11-3.14.

v0.5.1

Toggle v0.5.1's commit message
deapi-sdk 0.5.1

WebhookEventData.price (JobPrice: amount, is_estimated) on job.completed
and job.failed. rt.wait() re-checks the job over HTTP as soon as the
socket reports "error". 666 tests pass on Python 3.11-3.14.

v0.5.0

Toggle v0.5.0's commit message
deapi-sdk 0.5.0

Breaking: removes video.replace / replace_price and
video.remove_background / remove_background_price (no longer served by
deAPI API v2), VideoReplaceParams and InferenceType.VIDEO_REMOVE_BG.
Image background removal is unchanged. See "Upgrading to 0.5.0".
CI: ruff, mypy and tests on Python 3.11-3.14.

v0.4.1

Toggle v0.4.1's commit message
deapi-sdk 0.4.1

WebhookEventData declares started_at and the job.failed fields
(failed_at, error_code, error_reason, retryable, refunded). Docs:
pass the raw body to construct_event and deduplicate on delivery_id.
679 tests pass on Python 3.11-3.14.

v0.4.0

Toggle v0.4.0's commit message
deapi-sdk 0.4.0

Breaking: API v1 support removed. api_version / DEAPI_API_VERSION accept
only "v2". Resources and types live in deapi_sdk.resources and
deapi_sdk.types. Deprecated v1-style helpers removed
(transcription.from_*, prompts.enhance_* / samples) in favour of
transcription.create and prompts.enhance. See "Upgrading to 0.4.0".
ruff + mypy clean; 676 tests pass on Python 3.11-3.14.

v0.3.0

Toggle v0.3.0's commit message
deapi-sdk 0.3.0

Real-time job status over WebSocket: client.realtime(client_id=...) with
rt.wait(job, on_progress=...) and rt.events(); optional "ws" extra
(websockets 17.x). Requires Python 3.11+. JobStatus and InferenceType are
StrEnum. Docs and examples use the deapi_sdk import name.
ruff + mypy clean; 718 tests pass on Python 3.11-3.14.

v0.2.0

Toggle v0.2.0's commit message
deapi-sdk 0.2.0

api v2 catch-up: api_key repr redaction, catalogue TTL + slug-miss refresh, full
model pagination, str file inputs rejected, injectable shared http client,
capped Retry-After. Import package deapi_sdk / distribution deapi-sdk.
ruff + mypy clean; 523 tests pass.