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.7.0"
".": "0.8.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 2
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/fashn/fashn-sdk-3add3c2ba2bcebda859e6c6c04e71f8e5f865d4a0edb7fe8ec5ba2e1985d00ca.yml
openapi_spec_hash: 06d789906d61e3fefdfb789d532da5fe
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/fashn/fashn-sdk-c1e5a54d159efed8e9803ae5c34a94bad33a8c14a3fcef7331868db4d724ffc4.yml
openapi_spec_hash: 58c9627440e1c4a21f879fcb900e3bdc
config_hash: 6f35cc512a77534117eeac956e613816
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.8.0 (2026-05-25)

Full Changelog: [v0.7.0...v0.8.0](https://github.com/fashn-AI/fashn-python-sdk/compare/v0.7.0...v0.8.0)

### Features

* **api:** api update ([e8109bd](https://github.com/fashn-AI/fashn-python-sdk/commit/e8109bdf07184d1f1c66ed5cee66d6b43ac1b448))

## 0.7.0 (2026-05-18)

Full Changelog: [v0.6.0...v0.7.0](https://github.com/fashn-AI/fashn-python-sdk/compare/v0.6.0...v0.7.0)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "fashn"
version = "0.7.0"
version = "0.8.0"
description = "The official Python library for the fashn API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/fashn/_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__ = "fashn"
__version__ = "0.7.0" # x-release-please-version
__version__ = "0.8.0" # x-release-please-version
132 changes: 128 additions & 4 deletions src/fashn/resources/predictions.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,7 @@ def run(
- Image reframing (reframe)
- Image to video (image-to-video)
- Image editing (edit)
- Product packshot (packshot)

All requests use the versioned format with model_name and inputs structure.

Expand Down Expand Up @@ -505,6 +506,7 @@ def run(
- Image reframing (reframe)
- Image to video (image-to-video)
- Image editing (edit)
- Product packshot (packshot)

All requests use the versioned format with model_name and inputs structure.

Expand Down Expand Up @@ -553,6 +555,7 @@ def run(
- Image reframing (reframe)
- Image to video (image-to-video)
- Image editing (edit)
- Product packshot (packshot)

All requests use the versioned format with model_name and inputs structure.

Expand Down Expand Up @@ -602,6 +605,7 @@ def run(
- Image reframing (reframe)
- Image to video (image-to-video)
- Image editing (edit)
- Product packshot (packshot)

All requests use the versioned format with model_name and inputs structure.

Expand Down Expand Up @@ -652,6 +656,7 @@ def run(
- Image reframing (reframe)
- Image to video (image-to-video)
- Image editing (edit)
- Product packshot (packshot)

All requests use the versioned format with model_name and inputs structure.

Expand Down Expand Up @@ -699,6 +704,7 @@ def run(
- Image reframing (reframe)
- Image to video (image-to-video)
- Image editing (edit)
- Product packshot (packshot)

All requests use the versioned format with model_name and inputs structure.

Expand Down Expand Up @@ -747,6 +753,7 @@ def run(
- Image reframing (reframe)
- Image to video (image-to-video)
- Image editing (edit)
- Product packshot (packshot)

All requests use the versioned format with model_name and inputs structure.

Expand Down Expand Up @@ -794,6 +801,7 @@ def run(
- Image reframing (reframe)
- Image to video (image-to-video)
- Image editing (edit)
- Product packshot (packshot)

All requests use the versioned format with model_name and inputs structure.

Expand Down Expand Up @@ -841,6 +849,7 @@ def run(
- Image reframing (reframe)
- Image to video (image-to-video)
- Image editing (edit)
- Product packshot (packshot)

All requests use the versioned format with model_name and inputs structure.

Expand Down Expand Up @@ -888,6 +897,7 @@ def run(
- Image reframing (reframe)
- Image to video (image-to-video)
- Image editing (edit)
- Product packshot (packshot)

All requests use the versioned format with model_name and inputs structure.

Expand Down Expand Up @@ -936,6 +946,7 @@ def run(
- Image reframing (reframe)
- Image to video (image-to-video)
- Image editing (edit)
- Product packshot (packshot)

All requests use the versioned format with model_name and inputs structure.

Expand All @@ -955,6 +966,55 @@ def run(
"""
...

@overload
def run(
self,
*,
inputs: prediction_run_params.PackshotRequestInputs,
model_name: Literal["packshot"],
webhook_url: str | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
) -> PredictionRunResponse:
"""Submit a prediction request for AI-powered fashion processing.

Supports multiple
model types including:

- Try-on max (tryon-max)
- Virtual try-on v1.6 (tryon-v1.6)
- Model creation (model-create)
- Model swap (model-swap)
- Product to model (product-to-model)
- Face to model (face-to-model)
- Background operations (background-remove, background-change)
- Image reframing (reframe)
- Image to video (image-to-video)
- Image editing (edit)
- Product packshot (packshot)

All requests use the versioned format with model_name and inputs structure.

Args:
model_name: Turns a product photo into a clean commercial packshot. Optionally accepts a
style reference image to guide staging, background, and lighting.

webhook_url: Optional webhook URL to receive completion notifications

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request

extra_body: Add additional JSON properties to the request

timeout: Override the client-level default timeout for this request, in seconds
"""
...

@required_args(["inputs", "model_name"])
def run(
self,
Expand All @@ -969,7 +1029,8 @@ def run(
| prediction_run_params.BackgroundChangeRequestInputs
| prediction_run_params.BackgroundRemoveRequestInputs
| prediction_run_params.ImageToVideoRequestInputs
| prediction_run_params.EditRequestInputs,
| prediction_run_params.EditRequestInputs
| prediction_run_params.PackshotRequestInputs,
model_name: Literal["tryon-max"]
| Literal["tryon-v1.6"]
| Literal["product-to-model"]
Expand All @@ -980,7 +1041,8 @@ def run(
| Literal["background-change"]
| Literal["background-remove"]
| Literal["image-to-video"]
| Literal["edit"],
| Literal["edit"]
| Literal["packshot"],
webhook_url: str | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
Expand Down Expand Up @@ -1474,6 +1536,7 @@ async def run(
- Image reframing (reframe)
- Image to video (image-to-video)
- Image editing (edit)
- Product packshot (packshot)

All requests use the versioned format with model_name and inputs structure.

Expand Down Expand Up @@ -1523,6 +1586,7 @@ async def run(
- Image reframing (reframe)
- Image to video (image-to-video)
- Image editing (edit)
- Product packshot (packshot)

All requests use the versioned format with model_name and inputs structure.

Expand Down Expand Up @@ -1571,6 +1635,7 @@ async def run(
- Image reframing (reframe)
- Image to video (image-to-video)
- Image editing (edit)
- Product packshot (packshot)

All requests use the versioned format with model_name and inputs structure.

Expand Down Expand Up @@ -1620,6 +1685,7 @@ async def run(
- Image reframing (reframe)
- Image to video (image-to-video)
- Image editing (edit)
- Product packshot (packshot)

All requests use the versioned format with model_name and inputs structure.

Expand Down Expand Up @@ -1670,6 +1736,7 @@ async def run(
- Image reframing (reframe)
- Image to video (image-to-video)
- Image editing (edit)
- Product packshot (packshot)

All requests use the versioned format with model_name and inputs structure.

Expand Down Expand Up @@ -1717,6 +1784,7 @@ async def run(
- Image reframing (reframe)
- Image to video (image-to-video)
- Image editing (edit)
- Product packshot (packshot)

All requests use the versioned format with model_name and inputs structure.

Expand Down Expand Up @@ -1765,6 +1833,7 @@ async def run(
- Image reframing (reframe)
- Image to video (image-to-video)
- Image editing (edit)
- Product packshot (packshot)

All requests use the versioned format with model_name and inputs structure.

Expand Down Expand Up @@ -1812,6 +1881,7 @@ async def run(
- Image reframing (reframe)
- Image to video (image-to-video)
- Image editing (edit)
- Product packshot (packshot)

All requests use the versioned format with model_name and inputs structure.

Expand Down Expand Up @@ -1859,6 +1929,7 @@ async def run(
- Image reframing (reframe)
- Image to video (image-to-video)
- Image editing (edit)
- Product packshot (packshot)

All requests use the versioned format with model_name and inputs structure.

Expand Down Expand Up @@ -1906,6 +1977,7 @@ async def run(
- Image reframing (reframe)
- Image to video (image-to-video)
- Image editing (edit)
- Product packshot (packshot)

All requests use the versioned format with model_name and inputs structure.

Expand Down Expand Up @@ -1954,6 +2026,7 @@ async def run(
- Image reframing (reframe)
- Image to video (image-to-video)
- Image editing (edit)
- Product packshot (packshot)

All requests use the versioned format with model_name and inputs structure.

Expand All @@ -1973,6 +2046,55 @@ async def run(
"""
...

@overload
async def run(
self,
*,
inputs: prediction_run_params.PackshotRequestInputs,
model_name: Literal["packshot"],
webhook_url: str | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
) -> PredictionRunResponse:
"""Submit a prediction request for AI-powered fashion processing.

Supports multiple
model types including:

- Try-on max (tryon-max)
- Virtual try-on v1.6 (tryon-v1.6)
- Model creation (model-create)
- Model swap (model-swap)
- Product to model (product-to-model)
- Face to model (face-to-model)
- Background operations (background-remove, background-change)
- Image reframing (reframe)
- Image to video (image-to-video)
- Image editing (edit)
- Product packshot (packshot)

All requests use the versioned format with model_name and inputs structure.

Args:
model_name: Turns a product photo into a clean commercial packshot. Optionally accepts a
style reference image to guide staging, background, and lighting.

webhook_url: Optional webhook URL to receive completion notifications

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request

extra_body: Add additional JSON properties to the request

timeout: Override the client-level default timeout for this request, in seconds
"""
...

@required_args(["inputs", "model_name"])
async def run(
self,
Expand All @@ -1987,7 +2109,8 @@ async def run(
| prediction_run_params.BackgroundChangeRequestInputs
| prediction_run_params.BackgroundRemoveRequestInputs
| prediction_run_params.ImageToVideoRequestInputs
| prediction_run_params.EditRequestInputs,
| prediction_run_params.EditRequestInputs
| prediction_run_params.PackshotRequestInputs,
model_name: Literal["tryon-max"]
| Literal["tryon-v1.6"]
| Literal["product-to-model"]
Expand All @@ -1998,7 +2121,8 @@ async def run(
| Literal["background-change"]
| Literal["background-remove"]
| Literal["image-to-video"]
| Literal["edit"],
| Literal["edit"]
| Literal["packshot"],
webhook_url: str | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
Expand Down
Loading