Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.3.0"
".": "0.4.0"
}
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 4
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/webrockets/getimg-5655d05e420e9ee5f197024dca432b82756e2702c6293dc2d3150c58c032ab6e.yml
openapi_spec_hash: b217b38232f6d021b72a9d15fd5061e9
config_hash: ff9d4a2e74425c1066cc2c21a9dc1315
configured_endpoints: 7
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/webrockets/getimg-87f26d31cc003fcf1ddfdf0155297591d05e897500069b72195d4ec229681831.yml
openapi_spec_hash: 53a16dc5329902608ef3281325c3961a
config_hash: 06038f5bbbe41f0c0b56de45d3687512
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## 0.4.0 (2026-09-08)

Full Changelog: [v0.3.0...v0.4.0](https://github.com/getimg-ai/getimg-python/compare/v0.3.0...v0.4.0)

### Features

* **api:** api update ([fd4e347](https://github.com/getimg-ai/getimg-python/commit/fd4e3479579f62d6f4ef1c463d13bc1909ed2ad2))
* **api:** new endpoints ([390d72f](https://github.com/getimg-ai/getimg-python/commit/390d72f8d53e503101dffd3f74b3914d25235905))

## 0.3.0 (2026-07-18)

Full Changelog: [v0.2.1...v0.3.0](https://github.com/getimg-ai/getimg-python/compare/v0.2.1...v0.3.0)
Expand Down
16 changes: 15 additions & 1 deletion api.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,23 @@ Methods:
Types:

```python
from getimg.types import ModelListResponse
from getimg.types import DeveloperModelRate, ModelRetrieveResponse, ModelListResponse
```

Methods:

- <code title="get /v2/models/{model}">client.models.<a href="./src/getimg/resources/models.py">retrieve</a>(model) -> <a href="./src/getimg/types/model_retrieve_response.py">ModelRetrieveResponse</a></code>
- <code title="get /v2/models">client.models.<a href="./src/getimg/resources/models.py">list</a>(\*\*<a href="src/getimg/types/model_list_params.py">params</a>) -> <a href="./src/getimg/types/model_list_response.py">ModelListResponse</a></code>

# Billing

Types:

```python
from getimg.types import BillingListCostsResponse, BillingRetrieveBalanceResponse
```

Methods:

- <code title="get /v2/billing/costs">client.billing.<a href="./src/getimg/resources/billing.py">list_costs</a>(\*\*<a href="src/getimg/types/billing_list_costs_params.py">params</a>) -> <a href="./src/getimg/types/billing_list_costs_response.py">BillingListCostsResponse</a></code>
- <code title="get /v2/billing/balance">client.billing.<a href="./src/getimg/resources/billing.py">retrieve_balance</a>() -> <a href="./src/getimg/types/billing_retrieve_balance_response.py">BillingRetrieveBalanceResponse</a></code>
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "getimg"
version = "0.3.0"
version = "0.4.0"
description = "The official Python library for the getimg.ai API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
45 changes: 44 additions & 1 deletion src/getimg/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@
)

if TYPE_CHECKING:
from .resources import images, models, videos
from .resources import images, models, videos, billing
from .resources.images import ImagesResource, AsyncImagesResource
from .resources.models import ModelsResource, AsyncModelsResource
from .resources.billing import BillingResource, AsyncBillingResource
from .resources.videos.videos import VideosResource, AsyncVideosResource

__all__ = [
Expand Down Expand Up @@ -137,6 +138,13 @@ def models(self) -> ModelsResource:

return ModelsResource(self)

@cached_property
def billing(self) -> BillingResource:
"""Developer API balance and usage costs."""
from .resources.billing import BillingResource

return BillingResource(self)

@cached_property
def with_raw_response(self) -> GetimgAIWithRawResponse:
return GetimgAIWithRawResponse(self)
Expand Down Expand Up @@ -341,6 +349,13 @@ def models(self) -> AsyncModelsResource:

return AsyncModelsResource(self)

@cached_property
def billing(self) -> AsyncBillingResource:
"""Developer API balance and usage costs."""
from .resources.billing import AsyncBillingResource

return AsyncBillingResource(self)

@cached_property
def with_raw_response(self) -> AsyncGetimgAIWithRawResponse:
return AsyncGetimgAIWithRawResponse(self)
Expand Down Expand Up @@ -487,6 +502,13 @@ def models(self) -> models.ModelsResourceWithRawResponse:

return ModelsResourceWithRawResponse(self._client.models)

@cached_property
def billing(self) -> billing.BillingResourceWithRawResponse:
"""Developer API balance and usage costs."""
from .resources.billing import BillingResourceWithRawResponse

return BillingResourceWithRawResponse(self._client.billing)


class AsyncGetimgAIWithRawResponse:
_client: AsyncGetimgAI
Expand Down Expand Up @@ -514,6 +536,13 @@ def models(self) -> models.AsyncModelsResourceWithRawResponse:

return AsyncModelsResourceWithRawResponse(self._client.models)

@cached_property
def billing(self) -> billing.AsyncBillingResourceWithRawResponse:
"""Developer API balance and usage costs."""
from .resources.billing import AsyncBillingResourceWithRawResponse

return AsyncBillingResourceWithRawResponse(self._client.billing)


class GetimgAIWithStreamedResponse:
_client: GetimgAI
Expand Down Expand Up @@ -541,6 +570,13 @@ def models(self) -> models.ModelsResourceWithStreamingResponse:

return ModelsResourceWithStreamingResponse(self._client.models)

@cached_property
def billing(self) -> billing.BillingResourceWithStreamingResponse:
"""Developer API balance and usage costs."""
from .resources.billing import BillingResourceWithStreamingResponse

return BillingResourceWithStreamingResponse(self._client.billing)


class AsyncGetimgAIWithStreamedResponse:
_client: AsyncGetimgAI
Expand Down Expand Up @@ -568,6 +604,13 @@ def models(self) -> models.AsyncModelsResourceWithStreamingResponse:

return AsyncModelsResourceWithStreamingResponse(self._client.models)

@cached_property
def billing(self) -> billing.AsyncBillingResourceWithStreamingResponse:
"""Developer API balance and usage costs."""
from .resources.billing import AsyncBillingResourceWithStreamingResponse

return AsyncBillingResourceWithStreamingResponse(self._client.billing)


Client = GetimgAI

Expand Down
2 changes: 1 addition & 1 deletion src/getimg/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "getimg"
__version__ = "0.3.0" # x-release-please-version
__version__ = "0.4.0" # x-release-please-version
14 changes: 14 additions & 0 deletions src/getimg/resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@
VideosResourceWithStreamingResponse,
AsyncVideosResourceWithStreamingResponse,
)
from .billing import (
BillingResource,
AsyncBillingResource,
BillingResourceWithRawResponse,
AsyncBillingResourceWithRawResponse,
BillingResourceWithStreamingResponse,
AsyncBillingResourceWithStreamingResponse,
)

__all__ = [
"ImagesResource",
Expand All @@ -44,4 +52,10 @@
"AsyncModelsResourceWithRawResponse",
"ModelsResourceWithStreamingResponse",
"AsyncModelsResourceWithStreamingResponse",
"BillingResource",
"AsyncBillingResource",
"BillingResourceWithRawResponse",
"AsyncBillingResourceWithRawResponse",
"BillingResourceWithStreamingResponse",
"AsyncBillingResourceWithStreamingResponse",
]
Loading
Loading