relaygpu-client 0.1.1__tar.gz → 0.1.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. {relaygpu_client-0.1.1 → relaygpu_client-0.1.2}/CHANGELOG.md +11 -0
  2. {relaygpu_client-0.1.1 → relaygpu_client-0.1.2}/PKG-INFO +4 -2
  3. {relaygpu_client-0.1.1 → relaygpu_client-0.1.2}/README.md +3 -1
  4. {relaygpu_client-0.1.1 → relaygpu_client-0.1.2}/pyproject.toml +1 -1
  5. {relaygpu_client-0.1.1 → relaygpu_client-0.1.2}/relaygpu/_async/models.py +7 -7
  6. {relaygpu_client-0.1.1 → relaygpu_client-0.1.2}/relaygpu/_generated/models_map.py +0 -4
  7. {relaygpu_client-0.1.1 → relaygpu_client-0.1.2}/relaygpu/_sync/models.py +7 -7
  8. relaygpu_client-0.1.2/relaygpu/_version.py +1 -0
  9. relaygpu_client-0.1.1/relaygpu/_version.py +0 -1
  10. {relaygpu_client-0.1.1 → relaygpu_client-0.1.2}/.gitignore +0 -0
  11. {relaygpu_client-0.1.1 → relaygpu_client-0.1.2}/LICENSE +0 -0
  12. {relaygpu_client-0.1.1 → relaygpu_client-0.1.2}/relaygpu/__init__.py +0 -0
  13. {relaygpu_client-0.1.1 → relaygpu_client-0.1.2}/relaygpu/_async/__init__.py +0 -0
  14. {relaygpu_client-0.1.1 → relaygpu_client-0.1.2}/relaygpu/_async/_http.py +0 -0
  15. {relaygpu_client-0.1.1 → relaygpu_client-0.1.2}/relaygpu/_async/account.py +0 -0
  16. {relaygpu_client-0.1.1 → relaygpu_client-0.1.2}/relaygpu/_async/audio.py +0 -0
  17. {relaygpu_client-0.1.1 → relaygpu_client-0.1.2}/relaygpu/_async/client.py +0 -0
  18. {relaygpu_client-0.1.1 → relaygpu_client-0.1.2}/relaygpu/_async/estimate.py +0 -0
  19. {relaygpu_client-0.1.1 → relaygpu_client-0.1.2}/relaygpu/_async/files.py +0 -0
  20. {relaygpu_client-0.1.1 → relaygpu_client-0.1.2}/relaygpu/_async/image.py +0 -0
  21. {relaygpu_client-0.1.1 → relaygpu_client-0.1.2}/relaygpu/_async/keys.py +0 -0
  22. {relaygpu_client-0.1.1 → relaygpu_client-0.1.2}/relaygpu/_async/run.py +0 -0
  23. {relaygpu_client-0.1.1 → relaygpu_client-0.1.2}/relaygpu/_async/tasks.py +0 -0
  24. {relaygpu_client-0.1.1 → relaygpu_client-0.1.2}/relaygpu/_async/video.py +0 -0
  25. {relaygpu_client-0.1.1 → relaygpu_client-0.1.2}/relaygpu/_async/webhooks.py +0 -0
  26. {relaygpu_client-0.1.1 → relaygpu_client-0.1.2}/relaygpu/_async/workflows.py +0 -0
  27. {relaygpu_client-0.1.1 → relaygpu_client-0.1.2}/relaygpu/_clock.py +0 -0
  28. {relaygpu_client-0.1.1 → relaygpu_client-0.1.2}/relaygpu/_core.py +0 -0
  29. {relaygpu_client-0.1.1 → relaygpu_client-0.1.2}/relaygpu/_errors.py +0 -0
  30. {relaygpu_client-0.1.1 → relaygpu_client-0.1.2}/relaygpu/_estimate.py +0 -0
  31. {relaygpu_client-0.1.1 → relaygpu_client-0.1.2}/relaygpu/_exceptions.py +0 -0
  32. {relaygpu_client-0.1.1 → relaygpu_client-0.1.2}/relaygpu/_generated/__init__.py +0 -0
  33. {relaygpu_client-0.1.1 → relaygpu_client-0.1.2}/relaygpu/_generated/error_codes.py +0 -0
  34. {relaygpu_client-0.1.1 → relaygpu_client-0.1.2}/relaygpu/_generated/types.py +0 -0
  35. {relaygpu_client-0.1.1 → relaygpu_client-0.1.2}/relaygpu/_images.py +0 -0
  36. {relaygpu_client-0.1.1 → relaygpu_client-0.1.2}/relaygpu/_run_common.py +0 -0
  37. {relaygpu_client-0.1.1 → relaygpu_client-0.1.2}/relaygpu/_shapes.py +0 -0
  38. {relaygpu_client-0.1.1 → relaygpu_client-0.1.2}/relaygpu/_sync/__init__.py +0 -0
  39. {relaygpu_client-0.1.1 → relaygpu_client-0.1.2}/relaygpu/_sync/_http.py +0 -0
  40. {relaygpu_client-0.1.1 → relaygpu_client-0.1.2}/relaygpu/_sync/account.py +0 -0
  41. {relaygpu_client-0.1.1 → relaygpu_client-0.1.2}/relaygpu/_sync/audio.py +0 -0
  42. {relaygpu_client-0.1.1 → relaygpu_client-0.1.2}/relaygpu/_sync/client.py +0 -0
  43. {relaygpu_client-0.1.1 → relaygpu_client-0.1.2}/relaygpu/_sync/estimate.py +0 -0
  44. {relaygpu_client-0.1.1 → relaygpu_client-0.1.2}/relaygpu/_sync/files.py +0 -0
  45. {relaygpu_client-0.1.1 → relaygpu_client-0.1.2}/relaygpu/_sync/image.py +0 -0
  46. {relaygpu_client-0.1.1 → relaygpu_client-0.1.2}/relaygpu/_sync/keys.py +0 -0
  47. {relaygpu_client-0.1.1 → relaygpu_client-0.1.2}/relaygpu/_sync/run.py +0 -0
  48. {relaygpu_client-0.1.1 → relaygpu_client-0.1.2}/relaygpu/_sync/tasks.py +0 -0
  49. {relaygpu_client-0.1.1 → relaygpu_client-0.1.2}/relaygpu/_sync/video.py +0 -0
  50. {relaygpu_client-0.1.1 → relaygpu_client-0.1.2}/relaygpu/_sync/webhooks.py +0 -0
  51. {relaygpu_client-0.1.1 → relaygpu_client-0.1.2}/relaygpu/_sync/workflows.py +0 -0
  52. {relaygpu_client-0.1.1 → relaygpu_client-0.1.2}/relaygpu/_util.py +0 -0
  53. {relaygpu_client-0.1.1 → relaygpu_client-0.1.2}/relaygpu/async_client.py +0 -0
  54. {relaygpu_client-0.1.1 → relaygpu_client-0.1.2}/relaygpu/client.py +0 -0
  55. {relaygpu_client-0.1.1 → relaygpu_client-0.1.2}/relaygpu/errors.py +0 -0
  56. {relaygpu_client-0.1.1 → relaygpu_client-0.1.2}/relaygpu/inputs.py +0 -0
  57. {relaygpu_client-0.1.1 → relaygpu_client-0.1.2}/relaygpu/py.typed +0 -0
  58. {relaygpu_client-0.1.1 → relaygpu_client-0.1.2}/relaygpu/types.py +0 -0
  59. {relaygpu_client-0.1.1 → relaygpu_client-0.1.2}/relaygpu/webhooks.py +0 -0
@@ -3,6 +3,17 @@
3
3
  `relaygpu-client` versions track the TypeScript client [`@relaygpu/client`](https://www.npmjs.com/package/@relaygpu/client)
4
4
  minor for minor: 0.1.x here is the port of 0.1.x there. The API may change before 1.0.
5
5
 
6
+ ## 0.1.2 (unreleased)
7
+
8
+ - **Catalog reads are account-aware.** `models.list`, `models.get`, `pricing.get` and `tiers.list` now send the
9
+ client's credential (`api_key` or `jwt`), so with one they return your account's view: the models your tier and
10
+ grants can run, beyond the public list. A client without a credential sends none and reads the public catalog,
11
+ unchanged. A key Relay refuses raises `AuthenticationError` on these reads, a key below the credit floor
12
+ `InsufficientCreditsError`. The `models.get` cache stays per client. `health`, task polls and workflow run polls
13
+ stay credential-free.
14
+ - **Generated types** follow the prod public spec of 2026-10-24: the Anthropic-compatible route is live again with no
15
+ public model list; the `doubao-seedance-2-0-filter-off` pair left the public model map.
16
+
6
17
  ## 0.1.1 (2026-10-22)
7
18
 
8
19
  - **Generated types** follow the prod public spec of 2026-10-22: Claude is served through RelayConductor
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: relaygpu-client
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: Python client for the Relay API: image, video and audio generation, tasks, files, webhooks, workflows and typed errors.
5
5
  Project-URL: Homepage, https://relaygpu.com
6
6
  Project-URL: Repository, https://github.com/OpenGPU-Network/relaygpu-python
@@ -69,7 +69,7 @@ relay = Relay(
69
69
  ```
70
70
 
71
71
  The key is not read from the environment: pass it. It never appears in an error, a log line or `repr(relay)`.
72
- Catalog reads (`models`, `pricing`, `tiers`, `health`) and task polls need no credential.
72
+ `health` and task polls need no credential; the catalog reads use yours when the client has one (see Models below).
73
73
 
74
74
  The client holds a connection pool. Use it as a context manager, or call `relay.close()` when you are done:
75
75
 
@@ -325,6 +325,8 @@ knows also get `Literal` hints for autocomplete.
325
325
 
326
326
  - An unknown name raises `ModelNotFoundError` (404); a retired one raises `ModelRetiredError` (403). Both
327
327
  before anything is submitted or billed.
328
+ - With a credential the catalog reads (`models`, `pricing`, `tiers`) are your account's view: what your tier and
329
+ grants can run. Without one they are the public catalog. A refused key raises `AuthenticationError` on them.
328
330
  - `relay.models.list(tag="text-to-video")` lists the catalog; `relay.models.get(name)` returns one model with
329
331
  its `request_schema`, `request_example` and `pricing`.
330
332
  - `run()` returns a sync route's body, or waits for an async route and returns the task's `result`.
@@ -37,7 +37,7 @@ relay = Relay(
37
37
  ```
38
38
 
39
39
  The key is not read from the environment: pass it. It never appears in an error, a log line or `repr(relay)`.
40
- Catalog reads (`models`, `pricing`, `tiers`, `health`) and task polls need no credential.
40
+ `health` and task polls need no credential; the catalog reads use yours when the client has one (see Models below).
41
41
 
42
42
  The client holds a connection pool. Use it as a context manager, or call `relay.close()` when you are done:
43
43
 
@@ -293,6 +293,8 @@ knows also get `Literal` hints for autocomplete.
293
293
 
294
294
  - An unknown name raises `ModelNotFoundError` (404); a retired one raises `ModelRetiredError` (403). Both
295
295
  before anything is submitted or billed.
296
+ - With a credential the catalog reads (`models`, `pricing`, `tiers`) are your account's view: what your tier and
297
+ grants can run. Without one they are the public catalog. A refused key raises `AuthenticationError` on them.
296
298
  - `relay.models.list(tag="text-to-video")` lists the catalog; `relay.models.get(name)` returns one model with
297
299
  its `request_schema`, `request_example` and `pricing`.
298
300
  - `run()` returns a sync route's body, or waits for an async route and returns the task's `result`.
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "relaygpu-client"
7
- version = "0.1.1"
7
+ version = "0.1.2"
8
8
  description = "Python client for the Relay API: image, video and audio generation, tasks, files, webhooks, workflows and typed errors."
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -1,5 +1,5 @@
1
- """The catalog, keyless (port of src/models.ts). ``models.get`` is the SDK's one resolver of route, ``model_in_body``,
2
- ``async_default`` and schemas."""
1
+ """The catalog (port of src/models.ts); read as your account when the client has a credential, public otherwise.
2
+ ``models.get`` is the SDK's one resolver of route, ``model_in_body``, ``async_default`` and schemas."""
3
3
 
4
4
  from __future__ import annotations
5
5
 
@@ -15,7 +15,7 @@ if TYPE_CHECKING:
15
15
 
16
16
 
17
17
  class AsyncModels:
18
- """``GET /v2/models`` and ``GET /v2/models/{name}`` (keyless)."""
18
+ """``GET /v2/models`` and ``GET /v2/models/{name}`` ."""
19
19
 
20
20
  def __init__(self, relay: AsyncRelay) -> None:
21
21
  self._relay = relay
@@ -24,7 +24,7 @@ class AsyncModels:
24
24
  async def list(self, *, tag: str | None = None) -> list[ModelRow]:
25
25
  """``GET /v2/models`` flattened: every model listed under ``auto``, once, optionally filtered by ``tag``
26
26
  (e.g. ``text-to-video``)."""
27
- res = await self._relay._http.request("GET", "/v2/models", no_auth=True)
27
+ res = await self._relay._http.request("GET", "/v2/models")
28
28
  data = cast(ModelCatalog, res.data)
29
29
  seen: dict[str, ModelRow] = {}
30
30
  for rows in (data.get("auto") or {}).values():
@@ -41,7 +41,7 @@ class AsyncModels:
41
41
  hit = self._cache.get(name)
42
42
  if hit is not None and hit[0] > now:
43
43
  return hit[1]
44
- res = await self._relay._http.request("GET", model_path(name), no_auth=True)
44
+ res = await self._relay._http.request("GET", model_path(name))
45
45
  detail = cast(ModelDetail, res.data)
46
46
  self._cache[name] = (now + common.MODEL_CACHE_SECONDS, detail)
47
47
  return detail
@@ -54,7 +54,7 @@ class AsyncPricing:
54
54
  self._relay = relay
55
55
 
56
56
  async def get(self) -> PricingResponse:
57
- res = await self._relay._http.request("GET", "/v2/pricing", no_auth=True)
57
+ res = await self._relay._http.request("GET", "/v2/pricing")
58
58
  return cast(PricingResponse, res.data)
59
59
 
60
60
 
@@ -65,7 +65,7 @@ class AsyncTiers:
65
65
  self._relay = relay
66
66
 
67
67
  async def list(self) -> TiersResponse:
68
- res = await self._relay._http.request("GET", "/v2/tiers", no_auth=True)
68
+ res = await self._relay._http.request("GET", "/v2/tiers")
69
69
  return cast(TiersResponse, res.data)
70
70
 
71
71
 
@@ -67,8 +67,6 @@ MODEL_OPERATIONS: dict[str, dict[str, str]] = {
67
67
  "ByteDance/doubao-seedance-2-0-260128-V2V": "video_doubao_seedance_2_0_v2v_generate",
68
68
  "ByteDance/doubao-seedance-2-0-fast": "video_doubao_seedance_2_0_fast_generate",
69
69
  "ByteDance/doubao-seedance-2-0-fast-V2V": "video_doubao_seedance_2_0_fast_v2v_generate",
70
- "ByteDance/doubao-seedance-2-0-filter-off": "video_doubao_seedance_2_0_filter_off_generate",
71
- "ByteDance/doubao-seedance-2-0-filter-off-V2V": "video_doubao_seedance_2_0_filter_off_v2v_generate",
72
70
  "ByteDance/doubao-seedance-2-0-mini-260615": "video_doubao_seedance_2_0_mini_generate",
73
71
  "ByteDance/doubao-seedance-2-0-mini-260615-V2V": "video_doubao_seedance_2_0_mini_v2v_generate",
74
72
  "ByteDance/doubao-seedance-2-5-260628": "video_doubao_seedance_2_5_generate",
@@ -189,8 +187,6 @@ KnownVideoModel = Literal[
189
187
  "ByteDance/doubao-seedance-2-0-260128-V2V",
190
188
  "ByteDance/doubao-seedance-2-0-fast",
191
189
  "ByteDance/doubao-seedance-2-0-fast-V2V",
192
- "ByteDance/doubao-seedance-2-0-filter-off",
193
- "ByteDance/doubao-seedance-2-0-filter-off-V2V",
194
190
  "ByteDance/doubao-seedance-2-0-mini-260615",
195
191
  "ByteDance/doubao-seedance-2-0-mini-260615-V2V",
196
192
  "ByteDance/doubao-seedance-2-5-260628",
@@ -1,6 +1,6 @@
1
1
  # GENERATED by scripts/unasync.py from relaygpu/_async/. Do not edit; edit the async source and rerun.
2
- """The catalog, keyless (port of src/models.ts). ``models.get`` is the SDK's one resolver of route, ``model_in_body``,
3
- ``async_default`` and schemas."""
2
+ """The catalog (port of src/models.ts); read as your account when the client has a credential, public otherwise.
3
+ ``models.get`` is the SDK's one resolver of route, ``model_in_body``, ``async_default`` and schemas."""
4
4
 
5
5
  from __future__ import annotations
6
6
 
@@ -16,7 +16,7 @@ if TYPE_CHECKING:
16
16
 
17
17
 
18
18
  class Models:
19
- """``GET /v2/models`` and ``GET /v2/models/{name}`` (keyless)."""
19
+ """``GET /v2/models`` and ``GET /v2/models/{name}`` ."""
20
20
 
21
21
  def __init__(self, relay: Relay) -> None:
22
22
  self._relay = relay
@@ -25,7 +25,7 @@ class Models:
25
25
  def list(self, *, tag: str | None = None) -> list[ModelRow]:
26
26
  """``GET /v2/models`` flattened: every model listed under ``auto``, once, optionally filtered by ``tag``
27
27
  (e.g. ``text-to-video``)."""
28
- res = self._relay._http.request("GET", "/v2/models", no_auth=True)
28
+ res = self._relay._http.request("GET", "/v2/models")
29
29
  data = cast(ModelCatalog, res.data)
30
30
  seen: dict[str, ModelRow] = {}
31
31
  for rows in (data.get("auto") or {}).values():
@@ -42,7 +42,7 @@ class Models:
42
42
  hit = self._cache.get(name)
43
43
  if hit is not None and hit[0] > now:
44
44
  return hit[1]
45
- res = self._relay._http.request("GET", model_path(name), no_auth=True)
45
+ res = self._relay._http.request("GET", model_path(name))
46
46
  detail = cast(ModelDetail, res.data)
47
47
  self._cache[name] = (now + common.MODEL_CACHE_SECONDS, detail)
48
48
  return detail
@@ -55,7 +55,7 @@ class Pricing:
55
55
  self._relay = relay
56
56
 
57
57
  def get(self) -> PricingResponse:
58
- res = self._relay._http.request("GET", "/v2/pricing", no_auth=True)
58
+ res = self._relay._http.request("GET", "/v2/pricing")
59
59
  return cast(PricingResponse, res.data)
60
60
 
61
61
 
@@ -66,7 +66,7 @@ class Tiers:
66
66
  self._relay = relay
67
67
 
68
68
  def list(self) -> TiersResponse:
69
- res = self._relay._http.request("GET", "/v2/tiers", no_auth=True)
69
+ res = self._relay._http.request("GET", "/v2/tiers")
70
70
  return cast(TiersResponse, res.data)
71
71
 
72
72
 
@@ -0,0 +1 @@
1
+ VERSION = "0.1.2"
@@ -1 +0,0 @@
1
- VERSION = "0.1.1"
File without changes