bfl

package module
v0.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2026 License: MIT Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

go-bfl

Go Reference CI version license imported by

Unofficial Go client for the Black Forest Labs FLUX API, generated with oapi-codegen from its public OpenAPI document. I am not affiliated with Black Forest Labs.

The package is bfl, in the repository root. Everything in client.gen.go is generated. Regenerate it rather than editing it by hand. All 30 operations are included: image and video generation, image and video tools, fine-tune management, credits and result polling.

Contents

Install · Usage · Auth · Regenerating · Agent integrations · Development · License

Install

go get github.com/psyb0t/go-bfl

Usage

Every endpoint has a typed method on ClientWithResponses. Submit a task, keep its ID, then poll until Ready. This example submits a paid image generation task with bounded polling:

package main

import (
	"context"
	"net/http"
	"os"
	"time"

	"github.com/psyb0t/go-bfl"
)

func main() {
	const (
		requestTimeout = 30 * time.Second
		taskTimeout    = 2 * time.Minute
		pollInterval   = time.Second
	)

	auth := bfl.WithRequestEditorFn(
		func(_ context.Context, req *http.Request) error {
			req.Header.Set("x-key", os.Getenv("BFL_API_KEY"))

			return nil
		},
	)

	client, err := bfl.NewClientWithResponses(
		"https://api.bfl.ai",
		auth,
		bfl.WithHTTPClient(&http.Client{Timeout: requestTimeout}),
	)
	if err != nil {
		panic(err)
	}

	ctx, cancel := context.WithTimeout(context.Background(), taskTimeout)
	defer cancel()

	prompt := "A small cabin beside a lake"

	submitted, err := client.FluxPro11V1FluxPro11PostWithResponse(
		ctx,
		bfl.FluxPro11Inputs{Prompt: &prompt},
	)
	if err != nil {
		panic(err)
	}

	if submitted.JSON200 == nil {
		panic(submitted.Status())
	}

	task, err := submitted.JSON200.AsAsyncResponse()
	if err != nil {
		panic(err)
	}

	if task.Id == "" || task.PollingUrl == "" {
		panic("submission did not return a polling task")
	}

	ticker := time.NewTicker(pollInterval)
	defer ticker.Stop()

	for {
		select {
		case <-ctx.Done():
			panic(ctx.Err())
		case <-ticker.C:
		}

		polled, err := client.GetResultV1GetResultGetWithResponse(
			ctx,
			&bfl.GetResultV1GetResultGetParams{Id: task.Id},
		)
		if err != nil {
			panic(err)
		}

		if polled.JSON200 == nil {
			panic(polled.Status())
		}

		result, err := polled.JSON200.AsResultResponse()
		if err != nil {
			panic(err)
		}

		switch result.Status {
		case bfl.StatusResponsePending, bfl.StatusResponseReasoning,
			bfl.StatusResponseGenerating:
			continue
		case bfl.StatusResponseReady:
			_ = result.Result // Untyped JSON containing the generated output.

			return
		case bfl.StatusResponseError, bfl.StatusResponseTaskNotFound,
			bfl.StatusResponseRequestModerated,
			bfl.StatusResponseContentModerated,
			bfl.StatusResponseNoCardGenerated:
			panic(result.Status)
		default:
			panic("unknown task status")
		}
	}
}

The same code is in example_test.go, so make test checks that it compiles. The example polls on the configured API host using the task ID. Result data is untyped JSON; inspect it before using a download URL. The spec also returns polling_url for regional routing; validate its HTTPS host before sending credentials there.

Method names follow the spec's operation IDs. Some success bodies are unions: use AsAsyncResponse(), AsAsyncWebhookResponse(), AsResultResponse() or AsSettledCostResultResponse() as appropriate. These accessors decode without validating required fields. HTTP failures usually return nil JSON200; inspect StatusCode() and Body. Only transport and decoding failures use the Go error return. There are no automatic retries, polling or schema validation.

The full API is in the Go reference; after go get, go doc github.com/psyb0t/go-bfl prints it locally.

Auth

The spec's APIKeyHeader scheme sends the API key in x-key. Read BFL_API_KEY from the environment and set it with WithRequestEditorFn, as shown above. The base URL is https://api.bfl.ai. /v1/get_result has no security requirement in the spec; a client-wide request editor still adds its header. Keep task IDs and signed result URLs private. Back off on 429 responses; avoid retrying a paid submission blindly.

Regenerating

The spec is not committed. make generate downloads it into the gitignored api/ directory. gen.go declares the steps:

  • scripts/fetch-spec.sh downloads https://api.bfl.ai/openapi.json to api/openapi.json.
  • scripts/patch-spec.sh writes api/openapi.fixed.json as OpenAPI 3.0.3. It converts nullable anyOf branches to nullable: true, inlines singleton unions, converts const to single-value enums and replaces prefixItems tuples with untyped array items. The generator cannot express positional tuple constraints; callers must validate keyframe pairs. Genuine unions remain intact.
  • go tool oapi-codegen --config=config.yaml api/openapi.fixed.json generates every operation. The config maps number to float64 for costs, credits and progress.
make generate

.github/workflows/regen.yml does the same every day in CI. When the new spec changes the client, it runs make lint, make test and make sec. If a check fails, Claude edits the code and the checks run again, up to three times, and a review step reads the result. A passing change is committed with a CHANGELOG entry and tagged as the next release: a patch version for fixes and additions, a minor version for breaking changes.

Agent integrations

The skill teaches a coding agent how to use go-bfl when it writes Go. It works in any agent that reads .agents/skills/, and installs natively in the clients below.

Claude Code
claude plugin marketplace add psyb0t/agents
claude plugin install go-bfl@psyb0t
Codex
codex plugin marketplace add psyb0t/agents
codex plugin add go-bfl@psyb0t

Codex also picks the skill up with no install in any checkout of this repo.

OpenClaw

The skill is published to ClawHub on every release:

openclaw skills install @psyb0t/go-bfl

Development

Every command runs in the Dockerfile.dev image. The host needs Docker and Make.

make help      # list targets
make dep       # go mod tidy + vendor
make generate  # download the spec and regenerate
make lint      # shellcheck, shfmt, go fix, golangci-lint
make test      # go test -race
make sec       # gitleaks, govulncheck, semgrep

License

MIT. Generated code derives from Black Forest Labs' published API specification. The specification itself is not redistributed. Its metadata does not declare a license or terms URL; this repository's MIT license does not grant rights to the provider's service, models or generated media.

Documentation

Overview

Package bfl provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.8.0 DO NOT EDIT.

Package bfl is an unofficial client for the Black Forest Labs API, generated from its public OpenAPI document.

Example

This README example submits a paid task, so it only compiles during tests.

package main

import (
	"context"
	"net/http"
	"os"
	"time"

	"github.com/psyb0t/go-bfl"
)

func main() {
	const (
		requestTimeout = 30 * time.Second
		taskTimeout    = 2 * time.Minute
		pollInterval   = time.Second
	)

	auth := bfl.WithRequestEditorFn(
		func(_ context.Context, req *http.Request) error {
			req.Header.Set("x-key", os.Getenv("BFL_API_KEY"))

			return nil
		},
	)

	client, err := bfl.NewClientWithResponses(
		"https://api.bfl.ai",
		auth,
		bfl.WithHTTPClient(&http.Client{Timeout: requestTimeout}),
	)
	if err != nil {
		panic(err)
	}

	ctx, cancel := context.WithTimeout(context.Background(), taskTimeout)
	defer cancel()

	prompt := "A small cabin beside a lake"

	submitted, err := client.FluxPro11V1FluxPro11PostWithResponse(
		ctx,
		bfl.FluxPro11Inputs{Prompt: &prompt},
	)
	if err != nil {
		panic(err)
	}

	if submitted.JSON200 == nil {
		panic(submitted.Status())
	}

	task, err := submitted.JSON200.AsAsyncResponse()
	if err != nil {
		panic(err)
	}

	if task.Id == "" || task.PollingUrl == "" {
		panic("submission did not return a polling task")
	}

	ticker := time.NewTicker(pollInterval)
	defer ticker.Stop()

	for {
		select {
		case <-ctx.Done():
			panic(ctx.Err())
		case <-ticker.C:
		}

		polled, err := client.GetResultV1GetResultGetWithResponse(
			ctx,
			&bfl.GetResultV1GetResultGetParams{Id: task.Id},
		)
		if err != nil {
			panic(err)
		}

		if polled.JSON200 == nil {
			panic(polled.Status())
		}

		result, err := polled.JSON200.AsResultResponse()
		if err != nil {
			panic(err)
		}

		switch result.Status {
		case bfl.StatusResponsePending, bfl.StatusResponseReasoning,
			bfl.StatusResponseGenerating:
			continue
		case bfl.StatusResponseReady:
			_ = result.Result // Untyped JSON containing the generated output.

			return
		case bfl.StatusResponseError, bfl.StatusResponseTaskNotFound,
			bfl.StatusResponseRequestModerated,
			bfl.StatusResponseContentModerated,
			bfl.StatusResponseNoCardGenerated:
			panic(result.Status)
		default:
			panic("unknown task status")
		}
	}
}

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDeleteFinetuneV1DeleteFinetunePostRequest

func NewDeleteFinetuneV1DeleteFinetunePostRequest(server string, body DeleteFinetuneV1DeleteFinetunePostJSONRequestBody) (*http.Request, error)

NewDeleteFinetuneV1DeleteFinetunePostRequest calls the generic DeleteFinetuneV1DeleteFinetunePost builder with application/json body

func NewDeleteFinetuneV1DeleteFinetunePostRequestWithBody

func NewDeleteFinetuneV1DeleteFinetunePostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewDeleteFinetuneV1DeleteFinetunePostRequestWithBody constructs an http.Request for the DeleteFinetuneV1DeleteFinetunePost method, with any body, and a specified content type

func NewExpandV1FluxPro10ExpandPostRequest

func NewExpandV1FluxPro10ExpandPostRequest(server string, body ExpandV1FluxPro10ExpandPostJSONRequestBody) (*http.Request, error)

NewExpandV1FluxPro10ExpandPostRequest calls the generic ExpandV1FluxPro10ExpandPost builder with application/json body

func NewExpandV1FluxPro10ExpandPostRequestWithBody

func NewExpandV1FluxPro10ExpandPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewExpandV1FluxPro10ExpandPostRequestWithBody constructs an http.Request for the ExpandV1FluxPro10ExpandPost method, with any body, and a specified content type

func NewFillV1FluxPro10FillPostRequest

func NewFillV1FluxPro10FillPostRequest(server string, body FillV1FluxPro10FillPostJSONRequestBody) (*http.Request, error)

NewFillV1FluxPro10FillPostRequest calls the generic FillV1FluxPro10FillPost builder with application/json body

func NewFillV1FluxPro10FillPostRequestWithBody

func NewFillV1FluxPro10FillPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewFillV1FluxPro10FillPostRequestWithBody constructs an http.Request for the FillV1FluxPro10FillPost method, with any body, and a specified content type

func NewFinetuneDetailsV1FinetuneDetailsGetRequest

func NewFinetuneDetailsV1FinetuneDetailsGetRequest(server string, params *FinetuneDetailsV1FinetuneDetailsGetParams) (*http.Request, error)

NewFinetuneDetailsV1FinetuneDetailsGetRequest constructs an http.Request for the FinetuneDetailsV1FinetuneDetailsGet method

func NewFlux3ImageKleinV1Flux3ImageKleinPostRequest

func NewFlux3ImageKleinV1Flux3ImageKleinPostRequest(server string, body Flux3ImageKleinV1Flux3ImageKleinPostJSONRequestBody) (*http.Request, error)

NewFlux3ImageKleinV1Flux3ImageKleinPostRequest calls the generic Flux3ImageKleinV1Flux3ImageKleinPost builder with application/json body

func NewFlux3ImageKleinV1Flux3ImageKleinPostRequestWithBody

func NewFlux3ImageKleinV1Flux3ImageKleinPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewFlux3ImageKleinV1Flux3ImageKleinPostRequestWithBody constructs an http.Request for the Flux3ImageKleinV1Flux3ImageKleinPost method, with any body, and a specified content type

func NewFlux3ImageV1Flux3ImagePostRequest

func NewFlux3ImageV1Flux3ImagePostRequest(server string, body Flux3ImageV1Flux3ImagePostJSONRequestBody) (*http.Request, error)

NewFlux3ImageV1Flux3ImagePostRequest calls the generic Flux3ImageV1Flux3ImagePost builder with application/json body

func NewFlux3ImageV1Flux3ImagePostRequestWithBody

func NewFlux3ImageV1Flux3ImagePostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewFlux3ImageV1Flux3ImagePostRequestWithBody constructs an http.Request for the Flux3ImageV1Flux3ImagePost method, with any body, and a specified content type

func NewFlux3VideoV1Flux3VideoPostRequest

func NewFlux3VideoV1Flux3VideoPostRequest(server string, body Flux3VideoV1Flux3VideoPostJSONRequestBody) (*http.Request, error)

NewFlux3VideoV1Flux3VideoPostRequest calls the generic Flux3VideoV1Flux3VideoPost builder with application/json body

func NewFlux3VideoV1Flux3VideoPostRequestWithBody

func NewFlux3VideoV1Flux3VideoPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewFlux3VideoV1Flux3VideoPostRequestWithBody constructs an http.Request for the Flux3VideoV1Flux3VideoPost method, with any body, and a specified content type

func NewFluxDevV1FluxDevPostRequest

func NewFluxDevV1FluxDevPostRequest(server string, body FluxDevV1FluxDevPostJSONRequestBody) (*http.Request, error)

NewFluxDevV1FluxDevPostRequest calls the generic FluxDevV1FluxDevPost builder with application/json body

func NewFluxDevV1FluxDevPostRequestWithBody

func NewFluxDevV1FluxDevPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewFluxDevV1FluxDevPostRequestWithBody constructs an http.Request for the FluxDevV1FluxDevPost method, with any body, and a specified content type

func NewFluxPro11V1FluxPro11PostRequest

func NewFluxPro11V1FluxPro11PostRequest(server string, body FluxPro11V1FluxPro11PostJSONRequestBody) (*http.Request, error)

NewFluxPro11V1FluxPro11PostRequest calls the generic FluxPro11V1FluxPro11Post builder with application/json body

func NewFluxPro11V1FluxPro11PostRequestWithBody

func NewFluxPro11V1FluxPro11PostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewFluxPro11V1FluxPro11PostRequestWithBody constructs an http.Request for the FluxPro11V1FluxPro11Post method, with any body, and a specified content type

func NewGenerateBigblueFinetunedV1FluxPro11UltraFinetunedPostRequest

func NewGenerateBigblueFinetunedV1FluxPro11UltraFinetunedPostRequest(server string, body GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPostJSONRequestBody) (*http.Request, error)

NewGenerateBigblueFinetunedV1FluxPro11UltraFinetunedPostRequest calls the generic GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPost builder with application/json body

func NewGenerateBigblueFinetunedV1FluxPro11UltraFinetunedPostRequestWithBody

func NewGenerateBigblueFinetunedV1FluxPro11UltraFinetunedPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewGenerateBigblueFinetunedV1FluxPro11UltraFinetunedPostRequestWithBody constructs an http.Request for the GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPost method, with any body, and a specified content type

func NewGenerateFlux2FlexV1Flux2FlexPostRequest

func NewGenerateFlux2FlexV1Flux2FlexPostRequest(server string, body GenerateFlux2FlexV1Flux2FlexPostJSONRequestBody) (*http.Request, error)

NewGenerateFlux2FlexV1Flux2FlexPostRequest calls the generic GenerateFlux2FlexV1Flux2FlexPost builder with application/json body

func NewGenerateFlux2FlexV1Flux2FlexPostRequestWithBody

func NewGenerateFlux2FlexV1Flux2FlexPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewGenerateFlux2FlexV1Flux2FlexPostRequestWithBody constructs an http.Request for the GenerateFlux2FlexV1Flux2FlexPost method, with any body, and a specified content type

func NewGenerateFlux2Klein4bV1Flux2Klein4bPostRequest

func NewGenerateFlux2Klein4bV1Flux2Klein4bPostRequest(server string, body GenerateFlux2Klein4bV1Flux2Klein4bPostJSONRequestBody) (*http.Request, error)

NewGenerateFlux2Klein4bV1Flux2Klein4bPostRequest calls the generic GenerateFlux2Klein4bV1Flux2Klein4bPost builder with application/json body

func NewGenerateFlux2Klein4bV1Flux2Klein4bPostRequestWithBody

func NewGenerateFlux2Klein4bV1Flux2Klein4bPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewGenerateFlux2Klein4bV1Flux2Klein4bPostRequestWithBody constructs an http.Request for the GenerateFlux2Klein4bV1Flux2Klein4bPost method, with any body, and a specified content type

func NewGenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPostRequest

func NewGenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPostRequest(server string, body GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPostJSONRequestBody) (*http.Request, error)

NewGenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPostRequest calls the generic GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPost builder with application/json body

func NewGenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPostRequestWithBody

func NewGenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewGenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPostRequestWithBody constructs an http.Request for the GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPost method, with any body, and a specified content type

func NewGenerateFlux2Klein9bV1Flux2Klein9bPostRequest

func NewGenerateFlux2Klein9bV1Flux2Klein9bPostRequest(server string, body GenerateFlux2Klein9bV1Flux2Klein9bPostJSONRequestBody) (*http.Request, error)

NewGenerateFlux2Klein9bV1Flux2Klein9bPostRequest calls the generic GenerateFlux2Klein9bV1Flux2Klein9bPost builder with application/json body

func NewGenerateFlux2Klein9bV1Flux2Klein9bPostRequestWithBody

func NewGenerateFlux2Klein9bV1Flux2Klein9bPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewGenerateFlux2Klein9bV1Flux2Klein9bPostRequestWithBody constructs an http.Request for the GenerateFlux2Klein9bV1Flux2Klein9bPost method, with any body, and a specified content type

func NewGenerateFlux2MaxV1Flux2MaxPostRequest

func NewGenerateFlux2MaxV1Flux2MaxPostRequest(server string, body GenerateFlux2MaxV1Flux2MaxPostJSONRequestBody) (*http.Request, error)

NewGenerateFlux2MaxV1Flux2MaxPostRequest calls the generic GenerateFlux2MaxV1Flux2MaxPost builder with application/json body

func NewGenerateFlux2MaxV1Flux2MaxPostRequestWithBody

func NewGenerateFlux2MaxV1Flux2MaxPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewGenerateFlux2MaxV1Flux2MaxPostRequestWithBody constructs an http.Request for the GenerateFlux2MaxV1Flux2MaxPost method, with any body, and a specified content type

func NewGenerateFlux2ProPreviewV1Flux2ProPreviewPostRequest

func NewGenerateFlux2ProPreviewV1Flux2ProPreviewPostRequest(server string, body GenerateFlux2ProPreviewV1Flux2ProPreviewPostJSONRequestBody) (*http.Request, error)

NewGenerateFlux2ProPreviewV1Flux2ProPreviewPostRequest calls the generic GenerateFlux2ProPreviewV1Flux2ProPreviewPost builder with application/json body

func NewGenerateFlux2ProPreviewV1Flux2ProPreviewPostRequestWithBody

func NewGenerateFlux2ProPreviewV1Flux2ProPreviewPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewGenerateFlux2ProPreviewV1Flux2ProPreviewPostRequestWithBody constructs an http.Request for the GenerateFlux2ProPreviewV1Flux2ProPreviewPost method, with any body, and a specified content type

func NewGenerateFlux2ProV1Flux2ProPostRequest

func NewGenerateFlux2ProV1Flux2ProPostRequest(server string, body GenerateFlux2ProV1Flux2ProPostJSONRequestBody) (*http.Request, error)

NewGenerateFlux2ProV1Flux2ProPostRequest calls the generic GenerateFlux2ProV1Flux2ProPost builder with application/json body

func NewGenerateFlux2ProV1Flux2ProPostRequestWithBody

func NewGenerateFlux2ProV1Flux2ProPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewGenerateFlux2ProV1Flux2ProPostRequestWithBody constructs an http.Request for the GenerateFlux2ProV1Flux2ProPost method, with any body, and a specified content type

func NewGenerateFlux11UltraV1FluxPro11UltraPostRequest

func NewGenerateFlux11UltraV1FluxPro11UltraPostRequest(server string, body GenerateFlux11UltraV1FluxPro11UltraPostJSONRequestBody) (*http.Request, error)

NewGenerateFlux11UltraV1FluxPro11UltraPostRequest calls the generic GenerateFlux11UltraV1FluxPro11UltraPost builder with application/json body

func NewGenerateFlux11UltraV1FluxPro11UltraPostRequestWithBody

func NewGenerateFlux11UltraV1FluxPro11UltraPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewGenerateFlux11UltraV1FluxPro11UltraPostRequestWithBody constructs an http.Request for the GenerateFlux11UltraV1FluxPro11UltraPost method, with any body, and a specified content type

func NewGenerateFluxKontextMaxV1FluxKontextMaxPostRequest

func NewGenerateFluxKontextMaxV1FluxKontextMaxPostRequest(server string, body GenerateFluxKontextMaxV1FluxKontextMaxPostJSONRequestBody) (*http.Request, error)

NewGenerateFluxKontextMaxV1FluxKontextMaxPostRequest calls the generic GenerateFluxKontextMaxV1FluxKontextMaxPost builder with application/json body

func NewGenerateFluxKontextMaxV1FluxKontextMaxPostRequestWithBody

func NewGenerateFluxKontextMaxV1FluxKontextMaxPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewGenerateFluxKontextMaxV1FluxKontextMaxPostRequestWithBody constructs an http.Request for the GenerateFluxKontextMaxV1FluxKontextMaxPost method, with any body, and a specified content type

func NewGenerateFluxKontextProV1FluxKontextProPostRequest

func NewGenerateFluxKontextProV1FluxKontextProPostRequest(server string, body GenerateFluxKontextProV1FluxKontextProPostJSONRequestBody) (*http.Request, error)

NewGenerateFluxKontextProV1FluxKontextProPostRequest calls the generic GenerateFluxKontextProV1FluxKontextProPost builder with application/json body

func NewGenerateFluxKontextProV1FluxKontextProPostRequestWithBody

func NewGenerateFluxKontextProV1FluxKontextProPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewGenerateFluxKontextProV1FluxKontextProPostRequestWithBody constructs an http.Request for the GenerateFluxKontextProV1FluxKontextProPost method, with any body, and a specified content type

func NewGenerateFluxToolsDeblurV1V1FluxToolsDeblurV1PostRequest

func NewGenerateFluxToolsDeblurV1V1FluxToolsDeblurV1PostRequest(server string, body GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1PostJSONRequestBody) (*http.Request, error)

NewGenerateFluxToolsDeblurV1V1FluxToolsDeblurV1PostRequest calls the generic GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1Post builder with application/json body

func NewGenerateFluxToolsDeblurV1V1FluxToolsDeblurV1PostRequestWithBody

func NewGenerateFluxToolsDeblurV1V1FluxToolsDeblurV1PostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewGenerateFluxToolsDeblurV1V1FluxToolsDeblurV1PostRequestWithBody constructs an http.Request for the GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1Post method, with any body, and a specified content type

func NewGenerateFluxToolsEraseV1V1FluxToolsEraseV1PostRequest

func NewGenerateFluxToolsEraseV1V1FluxToolsEraseV1PostRequest(server string, body GenerateFluxToolsEraseV1V1FluxToolsEraseV1PostJSONRequestBody) (*http.Request, error)

NewGenerateFluxToolsEraseV1V1FluxToolsEraseV1PostRequest calls the generic GenerateFluxToolsEraseV1V1FluxToolsEraseV1Post builder with application/json body

func NewGenerateFluxToolsEraseV1V1FluxToolsEraseV1PostRequestWithBody

func NewGenerateFluxToolsEraseV1V1FluxToolsEraseV1PostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewGenerateFluxToolsEraseV1V1FluxToolsEraseV1PostRequestWithBody constructs an http.Request for the GenerateFluxToolsEraseV1V1FluxToolsEraseV1Post method, with any body, and a specified content type

func NewGenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1PostRequest

func NewGenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1PostRequest(server string, body GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1PostJSONRequestBody) (*http.Request, error)

NewGenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1PostRequest calls the generic GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1Post builder with application/json body

func NewGenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1PostRequestWithBody

func NewGenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1PostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewGenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1PostRequestWithBody constructs an http.Request for the GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1Post method, with any body, and a specified content type

func NewGenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1PostRequest

func NewGenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1PostRequest(server string, body GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1PostJSONRequestBody) (*http.Request, error)

NewGenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1PostRequest calls the generic GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1Post builder with application/json body

func NewGenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1PostRequestWithBody

func NewGenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1PostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewGenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1PostRequestWithBody constructs an http.Request for the GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1Post method, with any body, and a specified content type

func NewGenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1PostRequest

func NewGenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1PostRequest(server string, body GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1PostJSONRequestBody) (*http.Request, error)

NewGenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1PostRequest calls the generic GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1Post builder with application/json body

func NewGenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1PostRequestWithBody

func NewGenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1PostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewGenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1PostRequestWithBody constructs an http.Request for the GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1Post method, with any body, and a specified content type

func NewGenerateFluxToolsVtoV1V1FluxToolsVtoV1PostRequest

func NewGenerateFluxToolsVtoV1V1FluxToolsVtoV1PostRequest(server string, body GenerateFluxToolsVtoV1V1FluxToolsVtoV1PostJSONRequestBody) (*http.Request, error)

NewGenerateFluxToolsVtoV1V1FluxToolsVtoV1PostRequest calls the generic GenerateFluxToolsVtoV1V1FluxToolsVtoV1Post builder with application/json body

func NewGenerateFluxToolsVtoV1V1FluxToolsVtoV1PostRequestWithBody

func NewGenerateFluxToolsVtoV1V1FluxToolsVtoV1PostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewGenerateFluxToolsVtoV1V1FluxToolsVtoV1PostRequestWithBody constructs an http.Request for the GenerateFluxToolsVtoV1V1FluxToolsVtoV1Post method, with any body, and a specified content type

func NewGenerateFluxToolsVtoV2V1FluxToolsVtoV2PostRequest

func NewGenerateFluxToolsVtoV2V1FluxToolsVtoV2PostRequest(server string, body GenerateFluxToolsVtoV2V1FluxToolsVtoV2PostJSONRequestBody) (*http.Request, error)

NewGenerateFluxToolsVtoV2V1FluxToolsVtoV2PostRequest calls the generic GenerateFluxToolsVtoV2V1FluxToolsVtoV2Post builder with application/json body

func NewGenerateFluxToolsVtoV2V1FluxToolsVtoV2PostRequestWithBody

func NewGenerateFluxToolsVtoV2V1FluxToolsVtoV2PostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewGenerateFluxToolsVtoV2V1FluxToolsVtoV2PostRequestWithBody constructs an http.Request for the GenerateFluxToolsVtoV2V1FluxToolsVtoV2Post method, with any body, and a specified content type

func NewGetCreditsV1CreditsGetRequest

func NewGetCreditsV1CreditsGetRequest(server string) (*http.Request, error)

NewGetCreditsV1CreditsGetRequest constructs an http.Request for the GetCreditsV1CreditsGet method

func NewGetResultV1GetResultGetRequest

func NewGetResultV1GetResultGetRequest(server string, params *GetResultV1GetResultGetParams) (*http.Request, error)

NewGetResultV1GetResultGetRequest constructs an http.Request for the GetResultV1GetResultGet method

func NewMyFinetunesV1MyFinetunesGetRequest

func NewMyFinetunesV1MyFinetunesGetRequest(server string) (*http.Request, error)

NewMyFinetunesV1MyFinetunesGetRequest constructs an http.Request for the MyFinetunesV1MyFinetunesGet method

Types

type AsyncResponse

type AsyncResponse struct {
	// Cost Cost in credits for this request
	Cost *float64 `json:"cost,omitempty"`
	Id   string   `json:"id"`

	// InputMp Input megapixels (2 decimal places)
	InputMp *float64 `json:"input_mp,omitempty"`

	// OutputMp Output megapixels (2 decimal places)
	OutputMp   *float64 `json:"output_mp,omitempty"`
	PollingUrl string   `json:"polling_url"`
}

AsyncResponse defines model for AsyncResponse.

type AsyncWebhookResponse

type AsyncWebhookResponse struct {
	// Cost Cost in credits for this request
	Cost *float64 `json:"cost,omitempty"`
	Id   string   `json:"id"`

	// InputMp Input megapixels (2 decimal places)
	InputMp *float64 `json:"input_mp,omitempty"`

	// OutputMp Output megapixels (2 decimal places)
	OutputMp   *float64 `json:"output_mp,omitempty"`
	Status     string   `json:"status"`
	WebhookUrl string   `json:"webhook_url"`
}

AsyncWebhookResponse defines model for AsyncWebhookResponse.

type Client

type Client struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example. This can contain a path relative
	// to the server, such as https://api.deepmap.com/dev-test, and all the
	// paths in the swagger spec will be appended to the server.
	Server string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client HttpRequestDoer

	// A list of callbacks for modifying requests which are generated before sending over
	// the network.
	RequestEditors []RequestEditorFn
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, opts ...ClientOption) (*Client, error)

Creates a new Client, with reasonable defaults

func (*Client) DeleteFinetuneV1DeleteFinetunePost

func (c *Client) DeleteFinetuneV1DeleteFinetunePost(ctx context.Context, body DeleteFinetuneV1DeleteFinetunePostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteFinetuneV1DeleteFinetunePost Delete Finetune

Delete a finetune_id that was created by the user.

Takes a body of the `application/json` content type.

Corresponds with POST /v1/delete_finetune (the `DeleteFinetuneV1DeleteFinetunePost` operationId).

func (*Client) DeleteFinetuneV1DeleteFinetunePostWithBody

func (c *Client) DeleteFinetuneV1DeleteFinetunePostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteFinetuneV1DeleteFinetunePostWithBody Delete Finetune

Delete a finetune_id that was created by the user.

Takes any type of body and a specified content type.

Corresponds with POST /v1/delete_finetune (the `DeleteFinetuneV1DeleteFinetunePost` operationId).

func (*Client) ExpandV1FluxPro10ExpandPost

func (c *Client) ExpandV1FluxPro10ExpandPost(ctx context.Context, body ExpandV1FluxPro10ExpandPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

ExpandV1FluxPro10ExpandPost Expand an image with FLUX.1 Expand [pro] by adding pixels on any side

Submits an image expansion task that adds the specified number of pixels to any combination of sides (top, bottom, left, right) while maintaining context.

Takes a body of the `application/json` content type.

Corresponds with POST /v1/flux-pro-1.0-expand (the `ExpandV1FluxPro10ExpandPost` operationId).

func (*Client) ExpandV1FluxPro10ExpandPostWithBody

func (c *Client) ExpandV1FluxPro10ExpandPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

ExpandV1FluxPro10ExpandPostWithBody Expand an image with FLUX.1 Expand [pro] by adding pixels on any side

Submits an image expansion task that adds the specified number of pixels to any combination of sides (top, bottom, left, right) while maintaining context.

Takes any type of body and a specified content type.

Corresponds with POST /v1/flux-pro-1.0-expand (the `ExpandV1FluxPro10ExpandPost` operationId).

func (*Client) FillV1FluxPro10FillPost

func (c *Client) FillV1FluxPro10FillPost(ctx context.Context, body FillV1FluxPro10FillPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

FillV1FluxPro10FillPost Inpaint an image with FLUX.1 Fill [pro] using an input image and mask

Submits an image generation task with the FLUX.1 Fill [pro] model using an input image and mask. Mask can be applied to alpha channel or submitted as a separate image.

Takes a body of the `application/json` content type.

Corresponds with POST /v1/flux-pro-1.0-fill (the `FillV1FluxPro10FillPost` operationId).

func (*Client) FillV1FluxPro10FillPostWithBody

func (c *Client) FillV1FluxPro10FillPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

FillV1FluxPro10FillPostWithBody Inpaint an image with FLUX.1 Fill [pro] using an input image and mask

Submits an image generation task with the FLUX.1 Fill [pro] model using an input image and mask. Mask can be applied to alpha channel or submitted as a separate image.

Takes any type of body and a specified content type.

Corresponds with POST /v1/flux-pro-1.0-fill (the `FillV1FluxPro10FillPost` operationId).

func (*Client) FinetuneDetailsV1FinetuneDetailsGet

func (c *Client) FinetuneDetailsV1FinetuneDetailsGet(ctx context.Context, params *FinetuneDetailsV1FinetuneDetailsGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

FinetuneDetailsV1FinetuneDetailsGet Finetune Details

Get details about the training parameters and other metadata connected to a specific finetune_id that was created by the user.

Corresponds with GET /v1/finetune_details (the `FinetuneDetailsV1FinetuneDetailsGet` operationId).

func (*Client) Flux3ImageKleinV1Flux3ImageKleinPost

func (c *Client) Flux3ImageKleinV1Flux3ImageKleinPost(ctx context.Context, body Flux3ImageKleinV1Flux3ImageKleinPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

Flux3ImageKleinV1Flux3ImageKleinPost Generate an image with FLUX 3 Image Klein.

Submits a text-to-image or image editing task with FLUX 3 Image Klein.

Takes a body of the `application/json` content type.

Corresponds with POST /v1/flux-3-image-klein (the `Flux3ImageKleinV1Flux3ImageKleinPost` operationId).

func (*Client) Flux3ImageKleinV1Flux3ImageKleinPostWithBody

func (c *Client) Flux3ImageKleinV1Flux3ImageKleinPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

Flux3ImageKleinV1Flux3ImageKleinPostWithBody Generate an image with FLUX 3 Image Klein.

Submits a text-to-image or image editing task with FLUX 3 Image Klein.

Takes any type of body and a specified content type.

Corresponds with POST /v1/flux-3-image-klein (the `Flux3ImageKleinV1Flux3ImageKleinPost` operationId).

func (*Client) Flux3ImageV1Flux3ImagePost

func (c *Client) Flux3ImageV1Flux3ImagePost(ctx context.Context, body Flux3ImageV1Flux3ImagePostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

Flux3ImageV1Flux3ImagePost Generate an image with FLUX 3.

Submits an image generation task with FLUX 3.

Takes a body of the `application/json` content type.

Corresponds with POST /v1/flux-3-image (the `Flux3ImageV1Flux3ImagePost` operationId).

func (*Client) Flux3ImageV1Flux3ImagePostWithBody

func (c *Client) Flux3ImageV1Flux3ImagePostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

Flux3ImageV1Flux3ImagePostWithBody Generate an image with FLUX 3.

Submits an image generation task with FLUX 3.

Takes any type of body and a specified content type.

Corresponds with POST /v1/flux-3-image (the `Flux3ImageV1Flux3ImagePost` operationId).

func (*Client) Flux3VideoV1Flux3VideoPost

func (c *Client) Flux3VideoV1Flux3VideoPost(ctx context.Context, body Flux3VideoV1Flux3VideoPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

Flux3VideoV1Flux3VideoPost Generate a video with FLUX 3.

Submits a video generation task to FLUX 3 via the harness. The mode is explicit: t2v (`text-to-video`), i2v (`image-continuation`, keyframes), v2v (`video-continuation`, start_video), or draft_enhance (`draft-enhance`, full-quality render of a prior draft's `draft_cache`); the spelled-out aliases are accepted anywhere the short key is.

Takes a body of the `application/json` content type.

Corresponds with POST /v1/flux-3-video (the `Flux3VideoV1Flux3VideoPost` operationId).

func (*Client) Flux3VideoV1Flux3VideoPostWithBody

func (c *Client) Flux3VideoV1Flux3VideoPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

Flux3VideoV1Flux3VideoPostWithBody Generate a video with FLUX 3.

Submits a video generation task to FLUX 3 via the harness. The mode is explicit: t2v (`text-to-video`), i2v (`image-continuation`, keyframes), v2v (`video-continuation`, start_video), or draft_enhance (`draft-enhance`, full-quality render of a prior draft's `draft_cache`); the spelled-out aliases are accepted anywhere the short key is.

Takes any type of body and a specified content type.

Corresponds with POST /v1/flux-3-video (the `Flux3VideoV1Flux3VideoPost` operationId).

func (*Client) FluxDevV1FluxDevPost

func (c *Client) FluxDevV1FluxDevPost(ctx context.Context, body FluxDevV1FluxDevPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

FluxDevV1FluxDevPost Generate an image with FLUX.1 [dev]

Submits an image generation task with FLUX.1 [dev].

Takes a body of the `application/json` content type.

Corresponds with POST /v1/flux-dev (the `FluxDevV1FluxDevPost` operationId).

func (*Client) FluxDevV1FluxDevPostWithBody

func (c *Client) FluxDevV1FluxDevPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

FluxDevV1FluxDevPostWithBody Generate an image with FLUX.1 [dev]

Submits an image generation task with FLUX.1 [dev].

Takes any type of body and a specified content type.

Corresponds with POST /v1/flux-dev (the `FluxDevV1FluxDevPost` operationId).

func (*Client) FluxPro11V1FluxPro11Post

func (c *Client) FluxPro11V1FluxPro11Post(ctx context.Context, body FluxPro11V1FluxPro11PostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

FluxPro11V1FluxPro11Post Generate an image with FLUX1.1 [pro]

Submits an image generation task with FLUX1.1 [pro].

Takes a body of the `application/json` content type.

Corresponds with POST /v1/flux-pro-1.1 (the `FluxPro11V1FluxPro11Post` operationId).

func (*Client) FluxPro11V1FluxPro11PostWithBody

func (c *Client) FluxPro11V1FluxPro11PostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

FluxPro11V1FluxPro11PostWithBody Generate an image with FLUX1.1 [pro]

Submits an image generation task with FLUX1.1 [pro].

Takes any type of body and a specified content type.

Corresponds with POST /v1/flux-pro-1.1 (the `FluxPro11V1FluxPro11Post` operationId).

func (*Client) GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPost

func (c *Client) GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPost(ctx context.Context, body GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPost Generate an image with FLUX 1.1 [pro] finetune with ultra mode.

Submits an image generation task with FLUX 1.1 [pro] finetune with ultra mode.

Takes a body of the `application/json` content type.

Corresponds with POST /v1/flux-pro-1.1-ultra-finetuned (the `GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPost` operationId).

func (*Client) GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPostWithBody

func (c *Client) GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPostWithBody Generate an image with FLUX 1.1 [pro] finetune with ultra mode.

Submits an image generation task with FLUX 1.1 [pro] finetune with ultra mode.

Takes any type of body and a specified content type.

Corresponds with POST /v1/flux-pro-1.1-ultra-finetuned (the `GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPost` operationId).

func (*Client) GenerateFlux2FlexV1Flux2FlexPost

func (c *Client) GenerateFlux2FlexV1Flux2FlexPost(ctx context.Context, body GenerateFlux2FlexV1Flux2FlexPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

GenerateFlux2FlexV1Flux2FlexPost Generate or edit an image with FLUX.2 [flex]

Submits an image generation or editing task with FLUX.2 [flex]. Specialized for typography and text rendering, and for preserving small details. Supports text-to-image and image-to-image editing workflows.

Takes a body of the `application/json` content type.

Corresponds with POST /v1/flux-2-flex (the `GenerateFlux2FlexV1Flux2FlexPost` operationId).

func (*Client) GenerateFlux2FlexV1Flux2FlexPostWithBody

func (c *Client) GenerateFlux2FlexV1Flux2FlexPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

GenerateFlux2FlexV1Flux2FlexPostWithBody Generate or edit an image with FLUX.2 [flex]

Submits an image generation or editing task with FLUX.2 [flex]. Specialized for typography and text rendering, and for preserving small details. Supports text-to-image and image-to-image editing workflows.

Takes any type of body and a specified content type.

Corresponds with POST /v1/flux-2-flex (the `GenerateFlux2FlexV1Flux2FlexPost` operationId).

func (*Client) GenerateFlux2Klein4bV1Flux2Klein4bPost

func (c *Client) GenerateFlux2Klein4bV1Flux2Klein4bPost(ctx context.Context, body GenerateFlux2Klein4bV1Flux2Klein4bPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

GenerateFlux2Klein4bV1Flux2Klein4bPost Generate or edit an image with FLUX.2 [klein] 4B

Submits an image generation or editing task with FLUX.2 [klein] 4B. The fastest, most lightweight FLUX.2 model, with open weights that run on consumer GPUs.

Takes a body of the `application/json` content type.

Corresponds with POST /v1/flux-2-klein-4b (the `GenerateFlux2Klein4bV1Flux2Klein4bPost` operationId).

func (*Client) GenerateFlux2Klein4bV1Flux2Klein4bPostWithBody

func (c *Client) GenerateFlux2Klein4bV1Flux2Klein4bPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

GenerateFlux2Klein4bV1Flux2Klein4bPostWithBody Generate or edit an image with FLUX.2 [klein] 4B

Submits an image generation or editing task with FLUX.2 [klein] 4B. The fastest, most lightweight FLUX.2 model, with open weights that run on consumer GPUs.

Takes any type of body and a specified content type.

Corresponds with POST /v1/flux-2-klein-4b (the `GenerateFlux2Klein4bV1Flux2Klein4bPost` operationId).

func (*Client) GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPost

func (c *Client) GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPost(ctx context.Context, body GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPost Generate or edit an image with FLUX.2 [klein] 9B (preview)

Submits an image generation or editing task with the FLUX.2 [klein] 9B preview endpoint, where the latest quality and speed improvements land first. For stable production use, prefer FLUX.2 [klein] 9B (/flux-2-klein-9b).

Takes a body of the `application/json` content type.

Corresponds with POST /v1/flux-2-klein-9b-preview (the `GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPost` operationId).

func (*Client) GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPostWithBody

func (c *Client) GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPostWithBody Generate or edit an image with FLUX.2 [klein] 9B (preview)

Submits an image generation or editing task with the FLUX.2 [klein] 9B preview endpoint, where the latest quality and speed improvements land first. For stable production use, prefer FLUX.2 [klein] 9B (/flux-2-klein-9b).

Takes any type of body and a specified content type.

Corresponds with POST /v1/flux-2-klein-9b-preview (the `GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPost` operationId).

func (*Client) GenerateFlux2Klein9bV1Flux2Klein9bPost

func (c *Client) GenerateFlux2Klein9bV1Flux2Klein9bPost(ctx context.Context, body GenerateFlux2Klein9bV1Flux2Klein9bPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

GenerateFlux2Klein9bV1Flux2Klein9bPost Generate or edit an image with FLUX.2 [klein] 9B

Submits an image generation or editing task with FLUX.2 [klein] 9B. Sub-second inference with open weights, balancing quality and speed.

Takes a body of the `application/json` content type.

Corresponds with POST /v1/flux-2-klein-9b (the `GenerateFlux2Klein9bV1Flux2Klein9bPost` operationId).

func (*Client) GenerateFlux2Klein9bV1Flux2Klein9bPostWithBody

func (c *Client) GenerateFlux2Klein9bV1Flux2Klein9bPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

GenerateFlux2Klein9bV1Flux2Klein9bPostWithBody Generate or edit an image with FLUX.2 [klein] 9B

Submits an image generation or editing task with FLUX.2 [klein] 9B. Sub-second inference with open weights, balancing quality and speed.

Takes any type of body and a specified content type.

Corresponds with POST /v1/flux-2-klein-9b (the `GenerateFlux2Klein9bV1Flux2Klein9bPost` operationId).

func (*Client) GenerateFlux2MaxV1Flux2MaxPost

func (c *Client) GenerateFlux2MaxV1Flux2MaxPost(ctx context.Context, body GenerateFlux2MaxV1Flux2MaxPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

GenerateFlux2MaxV1Flux2MaxPost Generate or edit an image with FLUX.2 [max]

Submits an image generation or editing task with FLUX.2 [max]. Highest quality FLUX.2 model for image generation and editing, with the strongest editing consistency and prompt following.

Takes a body of the `application/json` content type.

Corresponds with POST /v1/flux-2-max (the `GenerateFlux2MaxV1Flux2MaxPost` operationId).

func (*Client) GenerateFlux2MaxV1Flux2MaxPostWithBody

func (c *Client) GenerateFlux2MaxV1Flux2MaxPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

GenerateFlux2MaxV1Flux2MaxPostWithBody Generate or edit an image with FLUX.2 [max]

Submits an image generation or editing task with FLUX.2 [max]. Highest quality FLUX.2 model for image generation and editing, with the strongest editing consistency and prompt following.

Takes any type of body and a specified content type.

Corresponds with POST /v1/flux-2-max (the `GenerateFlux2MaxV1Flux2MaxPost` operationId).

func (*Client) GenerateFlux2ProPreviewV1Flux2ProPreviewPost

func (c *Client) GenerateFlux2ProPreviewV1Flux2ProPreviewPost(ctx context.Context, body GenerateFlux2ProPreviewV1Flux2ProPreviewPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

GenerateFlux2ProPreviewV1Flux2ProPreviewPost Generate or edit an image with FLUX.2 [pro] (preview)

Submits an image generation or editing task with the FLUX.2 [pro] preview endpoint, where the latest quality and speed improvements land first. For stable production use, prefer FLUX.2 [pro] (/flux-2-pro).

Takes a body of the `application/json` content type.

Corresponds with POST /v1/flux-2-pro-preview (the `GenerateFlux2ProPreviewV1Flux2ProPreviewPost` operationId).

func (*Client) GenerateFlux2ProPreviewV1Flux2ProPreviewPostWithBody

func (c *Client) GenerateFlux2ProPreviewV1Flux2ProPreviewPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

GenerateFlux2ProPreviewV1Flux2ProPreviewPostWithBody Generate or edit an image with FLUX.2 [pro] (preview)

Submits an image generation or editing task with the FLUX.2 [pro] preview endpoint, where the latest quality and speed improvements land first. For stable production use, prefer FLUX.2 [pro] (/flux-2-pro).

Takes any type of body and a specified content type.

Corresponds with POST /v1/flux-2-pro-preview (the `GenerateFlux2ProPreviewV1Flux2ProPreviewPost` operationId).

func (*Client) GenerateFlux2ProV1Flux2ProPost

func (c *Client) GenerateFlux2ProV1Flux2ProPost(ctx context.Context, body GenerateFlux2ProV1Flux2ProPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

GenerateFlux2ProV1Flux2ProPost Generate or edit an image with FLUX.2 [pro]

Submits an image generation or editing task with FLUX.2 [pro]. This is the recommended default model for image editing and generation. Supports text-to-image and image-to-image editing workflows.

Takes a body of the `application/json` content type.

Corresponds with POST /v1/flux-2-pro (the `GenerateFlux2ProV1Flux2ProPost` operationId).

func (*Client) GenerateFlux2ProV1Flux2ProPostWithBody

func (c *Client) GenerateFlux2ProV1Flux2ProPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

GenerateFlux2ProV1Flux2ProPostWithBody Generate or edit an image with FLUX.2 [pro]

Submits an image generation or editing task with FLUX.2 [pro]. This is the recommended default model for image editing and generation. Supports text-to-image and image-to-image editing workflows.

Takes any type of body and a specified content type.

Corresponds with POST /v1/flux-2-pro (the `GenerateFlux2ProV1Flux2ProPost` operationId).

func (*Client) GenerateFlux11UltraV1FluxPro11UltraPost

func (c *Client) GenerateFlux11UltraV1FluxPro11UltraPost(ctx context.Context, body GenerateFlux11UltraV1FluxPro11UltraPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

GenerateFlux11UltraV1FluxPro11UltraPost Generate an image with FLUX1.1 [pro] ultra mode

Submits an image generation task with FLUX1.1 [pro] with ultra mode and optional raw mode.

Takes a body of the `application/json` content type.

Corresponds with POST /v1/flux-pro-1.1-ultra (the `GenerateFlux11UltraV1FluxPro11UltraPost` operationId).

func (*Client) GenerateFlux11UltraV1FluxPro11UltraPostWithBody

func (c *Client) GenerateFlux11UltraV1FluxPro11UltraPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

GenerateFlux11UltraV1FluxPro11UltraPostWithBody Generate an image with FLUX1.1 [pro] ultra mode

Submits an image generation task with FLUX1.1 [pro] with ultra mode and optional raw mode.

Takes any type of body and a specified content type.

Corresponds with POST /v1/flux-pro-1.1-ultra (the `GenerateFlux11UltraV1FluxPro11UltraPost` operationId).

func (*Client) GenerateFluxKontextMaxV1FluxKontextMaxPost

func (c *Client) GenerateFluxKontextMaxV1FluxKontextMaxPost(ctx context.Context, body GenerateFluxKontextMaxV1FluxKontextMaxPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

GenerateFluxKontextMaxV1FluxKontextMaxPost Edit or create an image with FLUX.1 Kontext [max]

Submits an image creation task with FLUX.1 Kontext [max]. For image editing, prefer FLUX.2 [pro] (/flux-2-pro) or FLUX.2 [flex] (/flux-2-flex) which are the recommended default models for editing workflows.

Takes a body of the `application/json` content type.

Corresponds with POST /v1/flux-kontext-max (the `GenerateFluxKontextMaxV1FluxKontextMaxPost` operationId).

func (*Client) GenerateFluxKontextMaxV1FluxKontextMaxPostWithBody

func (c *Client) GenerateFluxKontextMaxV1FluxKontextMaxPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

GenerateFluxKontextMaxV1FluxKontextMaxPostWithBody Edit or create an image with FLUX.1 Kontext [max]

Submits an image creation task with FLUX.1 Kontext [max]. For image editing, prefer FLUX.2 [pro] (/flux-2-pro) or FLUX.2 [flex] (/flux-2-flex) which are the recommended default models for editing workflows.

Takes any type of body and a specified content type.

Corresponds with POST /v1/flux-kontext-max (the `GenerateFluxKontextMaxV1FluxKontextMaxPost` operationId).

func (*Client) GenerateFluxKontextProV1FluxKontextProPost

func (c *Client) GenerateFluxKontextProV1FluxKontextProPost(ctx context.Context, body GenerateFluxKontextProV1FluxKontextProPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

GenerateFluxKontextProV1FluxKontextProPost Edit or create an image with FLUX.1 Kontext [pro]

Submits an image creation task with FLUX.1 Kontext [pro]. For image editing, prefer FLUX.2 [pro] (/flux-2-pro) or FLUX.2 [flex] (/flux-2-flex) which are the recommended default models for editing workflows.

Takes a body of the `application/json` content type.

Corresponds with POST /v1/flux-kontext-pro (the `GenerateFluxKontextProV1FluxKontextProPost` operationId).

func (*Client) GenerateFluxKontextProV1FluxKontextProPostWithBody

func (c *Client) GenerateFluxKontextProV1FluxKontextProPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

GenerateFluxKontextProV1FluxKontextProPostWithBody Edit or create an image with FLUX.1 Kontext [pro]

Submits an image creation task with FLUX.1 Kontext [pro]. For image editing, prefer FLUX.2 [pro] (/flux-2-pro) or FLUX.2 [flex] (/flux-2-flex) which are the recommended default models for editing workflows.

Takes any type of body and a specified content type.

Corresponds with POST /v1/flux-kontext-pro (the `GenerateFluxKontextProV1FluxKontextProPost` operationId).

func (*Client) GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1Post

func (c *Client) GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1Post(ctx context.Context, body GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1PostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1Post Remove blur from an image

Submits a deblur task. The input image is regenerated by a FLUX blur-removal model to sharpen it while preserving the original scene, objects, composition, and lighting. No prompt needed.

Takes a body of the `application/json` content type.

Corresponds with POST /v1/flux-tools/deblur-v1 (the `GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1Post` operationId).

func (*Client) GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1PostWithBody

func (c *Client) GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1PostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1PostWithBody Remove blur from an image

Submits a deblur task. The input image is regenerated by a FLUX blur-removal model to sharpen it while preserving the original scene, objects, composition, and lighting. No prompt needed.

Takes any type of body and a specified content type.

Corresponds with POST /v1/flux-tools/deblur-v1 (the `GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1Post` operationId).

func (*Client) GenerateFluxToolsEraseV1V1FluxToolsEraseV1Post

func (c *Client) GenerateFluxToolsEraseV1V1FluxToolsEraseV1Post(ctx context.Context, body GenerateFluxToolsEraseV1V1FluxToolsEraseV1PostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

GenerateFluxToolsEraseV1V1FluxToolsEraseV1Post Erase an object from an image

Submits an erase task using an input image and a mask identifying the object or region to remove.

Takes a body of the `application/json` content type.

Corresponds with POST /v1/flux-tools/erase-v1 (the `GenerateFluxToolsEraseV1V1FluxToolsEraseV1Post` operationId).

func (*Client) GenerateFluxToolsEraseV1V1FluxToolsEraseV1PostWithBody

func (c *Client) GenerateFluxToolsEraseV1V1FluxToolsEraseV1PostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

GenerateFluxToolsEraseV1V1FluxToolsEraseV1PostWithBody Erase an object from an image

Submits an erase task using an input image and a mask identifying the object or region to remove.

Takes any type of body and a specified content type.

Corresponds with POST /v1/flux-tools/erase-v1 (the `GenerateFluxToolsEraseV1V1FluxToolsEraseV1Post` operationId).

func (*Client) GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1Post

func (c *Client) GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1Post(ctx context.Context, body GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1PostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1Post Outpaint or extend an image

Submits an outpainting task. The input image is placed on a (width, height) canvas at the given offset, and the surrounding region is generated by a FLUX outpainting model.

Takes a body of the `application/json` content type.

Corresponds with POST /v1/flux-tools/outpainting-v1 (the `GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1Post` operationId).

func (*Client) GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1PostWithBody

func (c *Client) GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1PostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1PostWithBody Outpaint or extend an image

Submits an outpainting task. The input image is placed on a (width, height) canvas at the given offset, and the surrounding region is generated by a FLUX outpainting model.

Takes any type of body and a specified content type.

Corresponds with POST /v1/flux-tools/outpainting-v1 (the `GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1Post` operationId).

func (*Client) GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1Post

func (c *Client) GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1Post(ctx context.Context, body GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1PostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1Post Edit a video with FLUX 3.

Submits a video edit task: the supplied clip is transformed according to the edit instruction. Duration, resolution, aspect ratio, and audio follow the source clip; inference controls are pinned server-side.

Takes a body of the `application/json` content type.

Corresponds with POST /v1/flux-tools/video-edit-v1 (the `GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1Post` operationId).

func (*Client) GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1PostWithBody

func (c *Client) GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1PostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1PostWithBody Edit a video with FLUX 3.

Submits a video edit task: the supplied clip is transformed according to the edit instruction. Duration, resolution, aspect ratio, and audio follow the source clip; inference controls are pinned server-side.

Takes any type of body and a specified content type.

Corresponds with POST /v1/flux-tools/video-edit-v1 (the `GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1Post` operationId).

func (*Client) GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1Post

func (c *Client) GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1Post(ctx context.Context, body GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1PostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1Post Upscale a video with FLUX 3.

Submits a video upscaling task: 1.5x-3x super-resolution of the source clip (up to 2560x1440 in, 13.75 MP output frames). The upscale covers the first 20 seconds of the source; clips well past that are rejected. `creativity` selects precise source-faithful upscaling (0) or creative detail enhancement (1).

Takes a body of the `application/json` content type.

Corresponds with POST /v1/flux-tools/video-upscale-v1 (the `GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1Post` operationId).

func (*Client) GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1PostWithBody

func (c *Client) GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1PostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1PostWithBody Upscale a video with FLUX 3.

Submits a video upscaling task: 1.5x-3x super-resolution of the source clip (up to 2560x1440 in, 13.75 MP output frames). The upscale covers the first 20 seconds of the source; clips well past that are rejected. `creativity` selects precise source-faithful upscaling (0) or creative detail enhancement (1).

Takes any type of body and a specified content type.

Corresponds with POST /v1/flux-tools/video-upscale-v1 (the `GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1Post` operationId).

func (*Client) GenerateFluxToolsVtoV1V1FluxToolsVtoV1Post

func (c *Client) GenerateFluxToolsVtoV1V1FluxToolsVtoV1Post(ctx context.Context, body GenerateFluxToolsVtoV1V1FluxToolsVtoV1PostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

GenerateFluxToolsVtoV1V1FluxToolsVtoV1Post Virtual try-on

Submits a virtual try-on task. Person and garment images are mapped to the underlying input image slots; prompts steer attribute transfer.

Takes a body of the `application/json` content type.

Corresponds with POST /v1/flux-tools/vto-v1 (the `GenerateFluxToolsVtoV1V1FluxToolsVtoV1Post` operationId).

func (*Client) GenerateFluxToolsVtoV1V1FluxToolsVtoV1PostWithBody

func (c *Client) GenerateFluxToolsVtoV1V1FluxToolsVtoV1PostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

GenerateFluxToolsVtoV1V1FluxToolsVtoV1PostWithBody Virtual try-on

Submits a virtual try-on task. Person and garment images are mapped to the underlying input image slots; prompts steer attribute transfer.

Takes any type of body and a specified content type.

Corresponds with POST /v1/flux-tools/vto-v1 (the `GenerateFluxToolsVtoV1V1FluxToolsVtoV1Post` operationId).

func (*Client) GenerateFluxToolsVtoV2V1FluxToolsVtoV2Post

func (c *Client) GenerateFluxToolsVtoV2V1FluxToolsVtoV2Post(ctx context.Context, body GenerateFluxToolsVtoV2V1FluxToolsVtoV2PostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

GenerateFluxToolsVtoV2V1FluxToolsVtoV2Post Virtual try-on (v2)

Submits a virtual try-on task against the v2 model. Identical request shape to /vto-v1, with reference and output resolution supported up to 4MP. Person and garment images are mapped to the underlying input image slots. An edit instruction is generated from the person and garment images, with the supplied prompt used as a fallback.

Takes a body of the `application/json` content type.

Corresponds with POST /v1/flux-tools/vto-v2 (the `GenerateFluxToolsVtoV2V1FluxToolsVtoV2Post` operationId).

func (*Client) GenerateFluxToolsVtoV2V1FluxToolsVtoV2PostWithBody

func (c *Client) GenerateFluxToolsVtoV2V1FluxToolsVtoV2PostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

GenerateFluxToolsVtoV2V1FluxToolsVtoV2PostWithBody Virtual try-on (v2)

Submits a virtual try-on task against the v2 model. Identical request shape to /vto-v1, with reference and output resolution supported up to 4MP. Person and garment images are mapped to the underlying input image slots. An edit instruction is generated from the person and garment images, with the supplied prompt used as a fallback.

Takes any type of body and a specified content type.

Corresponds with POST /v1/flux-tools/vto-v2 (the `GenerateFluxToolsVtoV2V1FluxToolsVtoV2Post` operationId).

func (*Client) GetCreditsV1CreditsGet

func (c *Client) GetCreditsV1CreditsGet(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

GetCreditsV1CreditsGet Get the user's credits

Corresponds with GET /v1/credits (the `GetCreditsV1CreditsGet` operationId).

func (*Client) GetResultV1GetResultGet

func (c *Client) GetResultV1GetResultGet(ctx context.Context, params *GetResultV1GetResultGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetResultV1GetResultGet Get Result

An endpoint for getting generation task result.

Corresponds with GET /v1/get_result (the `GetResultV1GetResultGet` operationId).

func (*Client) MyFinetunesV1MyFinetunesGet

func (c *Client) MyFinetunesV1MyFinetunesGet(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

MyFinetunesV1MyFinetunesGet My Finetunes

List all finetune_ids created by the user.

Corresponds with GET /v1/my_finetunes (the `MyFinetunesV1MyFinetunesGet` operationId).

type ClientInterface

type ClientInterface interface {

	// GetCreditsV1CreditsGet Get the user's credits
	//
	// Corresponds with GET /v1/credits (the `GetCreditsV1CreditsGet` operationId).
	GetCreditsV1CreditsGet(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteFinetuneV1DeleteFinetunePostWithBody Delete Finetune
	//
	// Delete a finetune_id that was created by the user.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v1/delete_finetune (the `DeleteFinetuneV1DeleteFinetunePost` operationId).
	DeleteFinetuneV1DeleteFinetunePostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteFinetuneV1DeleteFinetunePost Delete Finetune
	//
	// Delete a finetune_id that was created by the user.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v1/delete_finetune (the `DeleteFinetuneV1DeleteFinetunePost` operationId).
	DeleteFinetuneV1DeleteFinetunePost(ctx context.Context, body DeleteFinetuneV1DeleteFinetunePostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// FinetuneDetailsV1FinetuneDetailsGet Finetune Details
	//
	// Get details about the training parameters and other metadata connected to a specific finetune_id that was created by the user.
	//
	// Corresponds with GET /v1/finetune_details (the `FinetuneDetailsV1FinetuneDetailsGet` operationId).
	FinetuneDetailsV1FinetuneDetailsGet(ctx context.Context, params *FinetuneDetailsV1FinetuneDetailsGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GenerateFlux2FlexV1Flux2FlexPostWithBody Generate or edit an image with FLUX.2 [flex]
	//
	// Submits an image generation or editing task with FLUX.2 [flex]. Specialized for typography and text rendering, and for preserving small details. Supports text-to-image and image-to-image editing workflows.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v1/flux-2-flex (the `GenerateFlux2FlexV1Flux2FlexPost` operationId).
	GenerateFlux2FlexV1Flux2FlexPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GenerateFlux2FlexV1Flux2FlexPost Generate or edit an image with FLUX.2 [flex]
	//
	// Submits an image generation or editing task with FLUX.2 [flex]. Specialized for typography and text rendering, and for preserving small details. Supports text-to-image and image-to-image editing workflows.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v1/flux-2-flex (the `GenerateFlux2FlexV1Flux2FlexPost` operationId).
	GenerateFlux2FlexV1Flux2FlexPost(ctx context.Context, body GenerateFlux2FlexV1Flux2FlexPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GenerateFlux2Klein4bV1Flux2Klein4bPostWithBody Generate or edit an image with FLUX.2 [klein] 4B
	//
	// Submits an image generation or editing task with FLUX.2 [klein] 4B. The fastest, most lightweight FLUX.2 model, with open weights that run on consumer GPUs.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v1/flux-2-klein-4b (the `GenerateFlux2Klein4bV1Flux2Klein4bPost` operationId).
	GenerateFlux2Klein4bV1Flux2Klein4bPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GenerateFlux2Klein4bV1Flux2Klein4bPost Generate or edit an image with FLUX.2 [klein] 4B
	//
	// Submits an image generation or editing task with FLUX.2 [klein] 4B. The fastest, most lightweight FLUX.2 model, with open weights that run on consumer GPUs.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v1/flux-2-klein-4b (the `GenerateFlux2Klein4bV1Flux2Klein4bPost` operationId).
	GenerateFlux2Klein4bV1Flux2Klein4bPost(ctx context.Context, body GenerateFlux2Klein4bV1Flux2Klein4bPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GenerateFlux2Klein9bV1Flux2Klein9bPostWithBody Generate or edit an image with FLUX.2 [klein] 9B
	//
	// Submits an image generation or editing task with FLUX.2 [klein] 9B. Sub-second inference with open weights, balancing quality and speed.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v1/flux-2-klein-9b (the `GenerateFlux2Klein9bV1Flux2Klein9bPost` operationId).
	GenerateFlux2Klein9bV1Flux2Klein9bPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GenerateFlux2Klein9bV1Flux2Klein9bPost Generate or edit an image with FLUX.2 [klein] 9B
	//
	// Submits an image generation or editing task with FLUX.2 [klein] 9B. Sub-second inference with open weights, balancing quality and speed.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v1/flux-2-klein-9b (the `GenerateFlux2Klein9bV1Flux2Klein9bPost` operationId).
	GenerateFlux2Klein9bV1Flux2Klein9bPost(ctx context.Context, body GenerateFlux2Klein9bV1Flux2Klein9bPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPostWithBody Generate or edit an image with FLUX.2 [klein] 9B (preview)
	//
	// Submits an image generation or editing task with the FLUX.2 [klein] 9B preview endpoint, where the latest quality and speed improvements land first. For stable production use, prefer FLUX.2 [klein] 9B (/flux-2-klein-9b).
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v1/flux-2-klein-9b-preview (the `GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPost` operationId).
	GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPost Generate or edit an image with FLUX.2 [klein] 9B (preview)
	//
	// Submits an image generation or editing task with the FLUX.2 [klein] 9B preview endpoint, where the latest quality and speed improvements land first. For stable production use, prefer FLUX.2 [klein] 9B (/flux-2-klein-9b).
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v1/flux-2-klein-9b-preview (the `GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPost` operationId).
	GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPost(ctx context.Context, body GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GenerateFlux2MaxV1Flux2MaxPostWithBody Generate or edit an image with FLUX.2 [max]
	//
	// Submits an image generation or editing task with FLUX.2 [max]. Highest quality FLUX.2 model for image generation and editing, with the strongest editing consistency and prompt following.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v1/flux-2-max (the `GenerateFlux2MaxV1Flux2MaxPost` operationId).
	GenerateFlux2MaxV1Flux2MaxPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GenerateFlux2MaxV1Flux2MaxPost Generate or edit an image with FLUX.2 [max]
	//
	// Submits an image generation or editing task with FLUX.2 [max]. Highest quality FLUX.2 model for image generation and editing, with the strongest editing consistency and prompt following.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v1/flux-2-max (the `GenerateFlux2MaxV1Flux2MaxPost` operationId).
	GenerateFlux2MaxV1Flux2MaxPost(ctx context.Context, body GenerateFlux2MaxV1Flux2MaxPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GenerateFlux2ProV1Flux2ProPostWithBody Generate or edit an image with FLUX.2 [pro]
	//
	// Submits an image generation or editing task with FLUX.2 [pro]. This is the recommended default model for image editing and generation. Supports text-to-image and image-to-image editing workflows.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v1/flux-2-pro (the `GenerateFlux2ProV1Flux2ProPost` operationId).
	GenerateFlux2ProV1Flux2ProPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GenerateFlux2ProV1Flux2ProPost Generate or edit an image with FLUX.2 [pro]
	//
	// Submits an image generation or editing task with FLUX.2 [pro]. This is the recommended default model for image editing and generation. Supports text-to-image and image-to-image editing workflows.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v1/flux-2-pro (the `GenerateFlux2ProV1Flux2ProPost` operationId).
	GenerateFlux2ProV1Flux2ProPost(ctx context.Context, body GenerateFlux2ProV1Flux2ProPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GenerateFlux2ProPreviewV1Flux2ProPreviewPostWithBody Generate or edit an image with FLUX.2 [pro] (preview)
	//
	// Submits an image generation or editing task with the FLUX.2 [pro] preview endpoint, where the latest quality and speed improvements land first. For stable production use, prefer FLUX.2 [pro] (/flux-2-pro).
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v1/flux-2-pro-preview (the `GenerateFlux2ProPreviewV1Flux2ProPreviewPost` operationId).
	GenerateFlux2ProPreviewV1Flux2ProPreviewPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GenerateFlux2ProPreviewV1Flux2ProPreviewPost Generate or edit an image with FLUX.2 [pro] (preview)
	//
	// Submits an image generation or editing task with the FLUX.2 [pro] preview endpoint, where the latest quality and speed improvements land first. For stable production use, prefer FLUX.2 [pro] (/flux-2-pro).
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v1/flux-2-pro-preview (the `GenerateFlux2ProPreviewV1Flux2ProPreviewPost` operationId).
	GenerateFlux2ProPreviewV1Flux2ProPreviewPost(ctx context.Context, body GenerateFlux2ProPreviewV1Flux2ProPreviewPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// Flux3ImageV1Flux3ImagePostWithBody Generate an image with FLUX 3.
	//
	// Submits an image generation task with FLUX 3.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v1/flux-3-image (the `Flux3ImageV1Flux3ImagePost` operationId).
	Flux3ImageV1Flux3ImagePostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// Flux3ImageV1Flux3ImagePost Generate an image with FLUX 3.
	//
	// Submits an image generation task with FLUX 3.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v1/flux-3-image (the `Flux3ImageV1Flux3ImagePost` operationId).
	Flux3ImageV1Flux3ImagePost(ctx context.Context, body Flux3ImageV1Flux3ImagePostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// Flux3ImageKleinV1Flux3ImageKleinPostWithBody Generate an image with FLUX 3 Image Klein.
	//
	// Submits a text-to-image or image editing task with FLUX 3 Image Klein.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v1/flux-3-image-klein (the `Flux3ImageKleinV1Flux3ImageKleinPost` operationId).
	Flux3ImageKleinV1Flux3ImageKleinPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// Flux3ImageKleinV1Flux3ImageKleinPost Generate an image with FLUX 3 Image Klein.
	//
	// Submits a text-to-image or image editing task with FLUX 3 Image Klein.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v1/flux-3-image-klein (the `Flux3ImageKleinV1Flux3ImageKleinPost` operationId).
	Flux3ImageKleinV1Flux3ImageKleinPost(ctx context.Context, body Flux3ImageKleinV1Flux3ImageKleinPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// Flux3VideoV1Flux3VideoPostWithBody Generate a video with FLUX 3.
	//
	// Submits a video generation task to FLUX 3 via the harness. The mode is explicit: t2v (`text-to-video`), i2v (`image-continuation`, keyframes), v2v (`video-continuation`, start_video), or draft_enhance (`draft-enhance`, full-quality render of a prior draft's `draft_cache`); the spelled-out aliases are accepted anywhere the short key is.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v1/flux-3-video (the `Flux3VideoV1Flux3VideoPost` operationId).
	Flux3VideoV1Flux3VideoPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// Flux3VideoV1Flux3VideoPost Generate a video with FLUX 3.
	//
	// Submits a video generation task to FLUX 3 via the harness. The mode is explicit: t2v (`text-to-video`), i2v (`image-continuation`, keyframes), v2v (`video-continuation`, start_video), or draft_enhance (`draft-enhance`, full-quality render of a prior draft's `draft_cache`); the spelled-out aliases are accepted anywhere the short key is.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v1/flux-3-video (the `Flux3VideoV1Flux3VideoPost` operationId).
	Flux3VideoV1Flux3VideoPost(ctx context.Context, body Flux3VideoV1Flux3VideoPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// FluxDevV1FluxDevPostWithBody Generate an image with FLUX.1 [dev]
	//
	// Submits an image generation task with FLUX.1 [dev].
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v1/flux-dev (the `FluxDevV1FluxDevPost` operationId).
	FluxDevV1FluxDevPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// FluxDevV1FluxDevPost Generate an image with FLUX.1 [dev]
	//
	// Submits an image generation task with FLUX.1 [dev].
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v1/flux-dev (the `FluxDevV1FluxDevPost` operationId).
	FluxDevV1FluxDevPost(ctx context.Context, body FluxDevV1FluxDevPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GenerateFluxKontextMaxV1FluxKontextMaxPostWithBody Edit or create an image with FLUX.1 Kontext [max]
	//
	// Submits an image creation task with FLUX.1 Kontext [max]. For image editing, prefer FLUX.2 [pro] (/flux-2-pro) or FLUX.2 [flex] (/flux-2-flex) which are the recommended default models for editing workflows.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v1/flux-kontext-max (the `GenerateFluxKontextMaxV1FluxKontextMaxPost` operationId).
	GenerateFluxKontextMaxV1FluxKontextMaxPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GenerateFluxKontextMaxV1FluxKontextMaxPost Edit or create an image with FLUX.1 Kontext [max]
	//
	// Submits an image creation task with FLUX.1 Kontext [max]. For image editing, prefer FLUX.2 [pro] (/flux-2-pro) or FLUX.2 [flex] (/flux-2-flex) which are the recommended default models for editing workflows.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v1/flux-kontext-max (the `GenerateFluxKontextMaxV1FluxKontextMaxPost` operationId).
	GenerateFluxKontextMaxV1FluxKontextMaxPost(ctx context.Context, body GenerateFluxKontextMaxV1FluxKontextMaxPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GenerateFluxKontextProV1FluxKontextProPostWithBody Edit or create an image with FLUX.1 Kontext [pro]
	//
	// Submits an image creation task with FLUX.1 Kontext [pro]. For image editing, prefer FLUX.2 [pro] (/flux-2-pro) or FLUX.2 [flex] (/flux-2-flex) which are the recommended default models for editing workflows.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v1/flux-kontext-pro (the `GenerateFluxKontextProV1FluxKontextProPost` operationId).
	GenerateFluxKontextProV1FluxKontextProPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GenerateFluxKontextProV1FluxKontextProPost Edit or create an image with FLUX.1 Kontext [pro]
	//
	// Submits an image creation task with FLUX.1 Kontext [pro]. For image editing, prefer FLUX.2 [pro] (/flux-2-pro) or FLUX.2 [flex] (/flux-2-flex) which are the recommended default models for editing workflows.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v1/flux-kontext-pro (the `GenerateFluxKontextProV1FluxKontextProPost` operationId).
	GenerateFluxKontextProV1FluxKontextProPost(ctx context.Context, body GenerateFluxKontextProV1FluxKontextProPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ExpandV1FluxPro10ExpandPostWithBody Expand an image with FLUX.1 Expand [pro] by adding pixels on any side
	//
	// Submits an image expansion task that adds the specified number of pixels to any combination of sides (top, bottom, left, right) while maintaining context.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v1/flux-pro-1.0-expand (the `ExpandV1FluxPro10ExpandPost` operationId).
	ExpandV1FluxPro10ExpandPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ExpandV1FluxPro10ExpandPost Expand an image with FLUX.1 Expand [pro] by adding pixels on any side
	//
	// Submits an image expansion task that adds the specified number of pixels to any combination of sides (top, bottom, left, right) while maintaining context.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v1/flux-pro-1.0-expand (the `ExpandV1FluxPro10ExpandPost` operationId).
	ExpandV1FluxPro10ExpandPost(ctx context.Context, body ExpandV1FluxPro10ExpandPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// FillV1FluxPro10FillPostWithBody Inpaint an image with FLUX.1 Fill [pro] using an input image and mask
	//
	// Submits an image generation task with the FLUX.1 Fill [pro] model using an input image and mask. Mask can be applied to alpha channel or submitted as a separate image.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v1/flux-pro-1.0-fill (the `FillV1FluxPro10FillPost` operationId).
	FillV1FluxPro10FillPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// FillV1FluxPro10FillPost Inpaint an image with FLUX.1 Fill [pro] using an input image and mask
	//
	// Submits an image generation task with the FLUX.1 Fill [pro] model using an input image and mask. Mask can be applied to alpha channel or submitted as a separate image.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v1/flux-pro-1.0-fill (the `FillV1FluxPro10FillPost` operationId).
	FillV1FluxPro10FillPost(ctx context.Context, body FillV1FluxPro10FillPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// FluxPro11V1FluxPro11PostWithBody Generate an image with FLUX1.1 [pro]
	//
	// Submits an image generation task with FLUX1.1 [pro].
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v1/flux-pro-1.1 (the `FluxPro11V1FluxPro11Post` operationId).
	FluxPro11V1FluxPro11PostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// FluxPro11V1FluxPro11Post Generate an image with FLUX1.1 [pro]
	//
	// Submits an image generation task with FLUX1.1 [pro].
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v1/flux-pro-1.1 (the `FluxPro11V1FluxPro11Post` operationId).
	FluxPro11V1FluxPro11Post(ctx context.Context, body FluxPro11V1FluxPro11PostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GenerateFlux11UltraV1FluxPro11UltraPostWithBody Generate an image with FLUX1.1 [pro] ultra mode
	//
	// Submits an image generation task with FLUX1.1 [pro] with ultra mode and optional raw mode.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v1/flux-pro-1.1-ultra (the `GenerateFlux11UltraV1FluxPro11UltraPost` operationId).
	GenerateFlux11UltraV1FluxPro11UltraPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GenerateFlux11UltraV1FluxPro11UltraPost Generate an image with FLUX1.1 [pro] ultra mode
	//
	// Submits an image generation task with FLUX1.1 [pro] with ultra mode and optional raw mode.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v1/flux-pro-1.1-ultra (the `GenerateFlux11UltraV1FluxPro11UltraPost` operationId).
	GenerateFlux11UltraV1FluxPro11UltraPost(ctx context.Context, body GenerateFlux11UltraV1FluxPro11UltraPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPostWithBody Generate an image with FLUX 1.1 [pro] finetune with ultra mode.
	//
	// Submits an image generation task with FLUX 1.1 [pro] finetune with ultra mode.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v1/flux-pro-1.1-ultra-finetuned (the `GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPost` operationId).
	GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPost Generate an image with FLUX 1.1 [pro] finetune with ultra mode.
	//
	// Submits an image generation task with FLUX 1.1 [pro] finetune with ultra mode.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v1/flux-pro-1.1-ultra-finetuned (the `GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPost` operationId).
	GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPost(ctx context.Context, body GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1PostWithBody Remove blur from an image
	//
	// Submits a deblur task. The input image is regenerated by a FLUX blur-removal model to sharpen it while preserving the original scene, objects, composition, and lighting. No prompt needed.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v1/flux-tools/deblur-v1 (the `GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1Post` operationId).
	GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1PostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1Post Remove blur from an image
	//
	// Submits a deblur task. The input image is regenerated by a FLUX blur-removal model to sharpen it while preserving the original scene, objects, composition, and lighting. No prompt needed.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v1/flux-tools/deblur-v1 (the `GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1Post` operationId).
	GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1Post(ctx context.Context, body GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1PostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GenerateFluxToolsEraseV1V1FluxToolsEraseV1PostWithBody Erase an object from an image
	//
	// Submits an erase task using an input image and a mask identifying the object or region to remove.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v1/flux-tools/erase-v1 (the `GenerateFluxToolsEraseV1V1FluxToolsEraseV1Post` operationId).
	GenerateFluxToolsEraseV1V1FluxToolsEraseV1PostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GenerateFluxToolsEraseV1V1FluxToolsEraseV1Post Erase an object from an image
	//
	// Submits an erase task using an input image and a mask identifying the object or region to remove.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v1/flux-tools/erase-v1 (the `GenerateFluxToolsEraseV1V1FluxToolsEraseV1Post` operationId).
	GenerateFluxToolsEraseV1V1FluxToolsEraseV1Post(ctx context.Context, body GenerateFluxToolsEraseV1V1FluxToolsEraseV1PostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1PostWithBody Outpaint or extend an image
	//
	// Submits an outpainting task. The input image is placed on a (width, height) canvas at the given offset, and the surrounding region is generated by a FLUX outpainting model.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v1/flux-tools/outpainting-v1 (the `GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1Post` operationId).
	GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1PostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1Post Outpaint or extend an image
	//
	// Submits an outpainting task. The input image is placed on a (width, height) canvas at the given offset, and the surrounding region is generated by a FLUX outpainting model.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v1/flux-tools/outpainting-v1 (the `GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1Post` operationId).
	GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1Post(ctx context.Context, body GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1PostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1PostWithBody Edit a video with FLUX 3.
	//
	// Submits a video edit task: the supplied clip is transformed according to the edit instruction. Duration, resolution, aspect ratio, and audio follow the source clip; inference controls are pinned server-side.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v1/flux-tools/video-edit-v1 (the `GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1Post` operationId).
	GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1PostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1Post Edit a video with FLUX 3.
	//
	// Submits a video edit task: the supplied clip is transformed according to the edit instruction. Duration, resolution, aspect ratio, and audio follow the source clip; inference controls are pinned server-side.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v1/flux-tools/video-edit-v1 (the `GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1Post` operationId).
	GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1Post(ctx context.Context, body GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1PostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1PostWithBody Upscale a video with FLUX 3.
	//
	// Submits a video upscaling task: 1.5x-3x super-resolution of the source clip (up to 2560x1440 in, 13.75 MP output frames). The upscale covers the first 20 seconds of the source; clips well past that are rejected. `creativity` selects precise source-faithful upscaling (0) or creative detail enhancement (1).
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v1/flux-tools/video-upscale-v1 (the `GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1Post` operationId).
	GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1PostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1Post Upscale a video with FLUX 3.
	//
	// Submits a video upscaling task: 1.5x-3x super-resolution of the source clip (up to 2560x1440 in, 13.75 MP output frames). The upscale covers the first 20 seconds of the source; clips well past that are rejected. `creativity` selects precise source-faithful upscaling (0) or creative detail enhancement (1).
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v1/flux-tools/video-upscale-v1 (the `GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1Post` operationId).
	GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1Post(ctx context.Context, body GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1PostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GenerateFluxToolsVtoV1V1FluxToolsVtoV1PostWithBody Virtual try-on
	//
	// Submits a virtual try-on task. Person and garment images are mapped to the underlying input image slots; prompts steer attribute transfer.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v1/flux-tools/vto-v1 (the `GenerateFluxToolsVtoV1V1FluxToolsVtoV1Post` operationId).
	GenerateFluxToolsVtoV1V1FluxToolsVtoV1PostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GenerateFluxToolsVtoV1V1FluxToolsVtoV1Post Virtual try-on
	//
	// Submits a virtual try-on task. Person and garment images are mapped to the underlying input image slots; prompts steer attribute transfer.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v1/flux-tools/vto-v1 (the `GenerateFluxToolsVtoV1V1FluxToolsVtoV1Post` operationId).
	GenerateFluxToolsVtoV1V1FluxToolsVtoV1Post(ctx context.Context, body GenerateFluxToolsVtoV1V1FluxToolsVtoV1PostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GenerateFluxToolsVtoV2V1FluxToolsVtoV2PostWithBody Virtual try-on (v2)
	//
	// Submits a virtual try-on task against the v2 model. Identical request shape to /vto-v1, with reference and output resolution supported up to 4MP. Person and garment images are mapped to the underlying input image slots. An edit instruction is generated from the person and garment images, with the supplied prompt used as a fallback.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v1/flux-tools/vto-v2 (the `GenerateFluxToolsVtoV2V1FluxToolsVtoV2Post` operationId).
	GenerateFluxToolsVtoV2V1FluxToolsVtoV2PostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GenerateFluxToolsVtoV2V1FluxToolsVtoV2Post Virtual try-on (v2)
	//
	// Submits a virtual try-on task against the v2 model. Identical request shape to /vto-v1, with reference and output resolution supported up to 4MP. Person and garment images are mapped to the underlying input image slots. An edit instruction is generated from the person and garment images, with the supplied prompt used as a fallback.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v1/flux-tools/vto-v2 (the `GenerateFluxToolsVtoV2V1FluxToolsVtoV2Post` operationId).
	GenerateFluxToolsVtoV2V1FluxToolsVtoV2Post(ctx context.Context, body GenerateFluxToolsVtoV2V1FluxToolsVtoV2PostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetResultV1GetResultGet Get Result
	//
	// An endpoint for getting generation task result.
	//
	// Corresponds with GET /v1/get_result (the `GetResultV1GetResultGet` operationId).
	GetResultV1GetResultGet(ctx context.Context, params *GetResultV1GetResultGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// MyFinetunesV1MyFinetunesGet My Finetunes
	//
	// List all finetune_ids created by the user.
	//
	// Corresponds with GET /v1/my_finetunes (the `MyFinetunesV1MyFinetunesGet` operationId).
	MyFinetunesV1MyFinetunesGet(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) DeleteFinetuneV1DeleteFinetunePostWithBodyWithResponse

func (c *ClientWithResponses) DeleteFinetuneV1DeleteFinetunePostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteFinetuneV1DeleteFinetunePostResponse, error)

DeleteFinetuneV1DeleteFinetunePostWithBodyWithResponse Delete Finetune

Delete a finetune_id that was created by the user.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/delete_finetune (the `DeleteFinetuneV1DeleteFinetunePost` operationId).

func (*ClientWithResponses) DeleteFinetuneV1DeleteFinetunePostWithResponse

DeleteFinetuneV1DeleteFinetunePostWithResponse Delete Finetune

Delete a finetune_id that was created by the user.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/delete_finetune (the `DeleteFinetuneV1DeleteFinetunePost` operationId).

func (*ClientWithResponses) ExpandV1FluxPro10ExpandPostWithBodyWithResponse

func (c *ClientWithResponses) ExpandV1FluxPro10ExpandPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExpandV1FluxPro10ExpandPostResponse, error)

ExpandV1FluxPro10ExpandPostWithBodyWithResponse Expand an image with FLUX.1 Expand [pro] by adding pixels on any side

Submits an image expansion task that adds the specified number of pixels to any combination of sides (top, bottom, left, right) while maintaining context.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/flux-pro-1.0-expand (the `ExpandV1FluxPro10ExpandPost` operationId).

func (*ClientWithResponses) ExpandV1FluxPro10ExpandPostWithResponse

func (c *ClientWithResponses) ExpandV1FluxPro10ExpandPostWithResponse(ctx context.Context, body ExpandV1FluxPro10ExpandPostJSONRequestBody, reqEditors ...RequestEditorFn) (*ExpandV1FluxPro10ExpandPostResponse, error)

ExpandV1FluxPro10ExpandPostWithResponse Expand an image with FLUX.1 Expand [pro] by adding pixels on any side

Submits an image expansion task that adds the specified number of pixels to any combination of sides (top, bottom, left, right) while maintaining context.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/flux-pro-1.0-expand (the `ExpandV1FluxPro10ExpandPost` operationId).

func (*ClientWithResponses) FillV1FluxPro10FillPostWithBodyWithResponse

func (c *ClientWithResponses) FillV1FluxPro10FillPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FillV1FluxPro10FillPostResponse, error)

FillV1FluxPro10FillPostWithBodyWithResponse Inpaint an image with FLUX.1 Fill [pro] using an input image and mask

Submits an image generation task with the FLUX.1 Fill [pro] model using an input image and mask. Mask can be applied to alpha channel or submitted as a separate image.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/flux-pro-1.0-fill (the `FillV1FluxPro10FillPost` operationId).

func (*ClientWithResponses) FillV1FluxPro10FillPostWithResponse

func (c *ClientWithResponses) FillV1FluxPro10FillPostWithResponse(ctx context.Context, body FillV1FluxPro10FillPostJSONRequestBody, reqEditors ...RequestEditorFn) (*FillV1FluxPro10FillPostResponse, error)

FillV1FluxPro10FillPostWithResponse Inpaint an image with FLUX.1 Fill [pro] using an input image and mask

Submits an image generation task with the FLUX.1 Fill [pro] model using an input image and mask. Mask can be applied to alpha channel or submitted as a separate image.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/flux-pro-1.0-fill (the `FillV1FluxPro10FillPost` operationId).

func (*ClientWithResponses) FinetuneDetailsV1FinetuneDetailsGetWithResponse

func (c *ClientWithResponses) FinetuneDetailsV1FinetuneDetailsGetWithResponse(ctx context.Context, params *FinetuneDetailsV1FinetuneDetailsGetParams, reqEditors ...RequestEditorFn) (*FinetuneDetailsV1FinetuneDetailsGetResponse, error)

FinetuneDetailsV1FinetuneDetailsGetWithResponse Finetune Details

Get details about the training parameters and other metadata connected to a specific finetune_id that was created by the user.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/finetune_details (the `FinetuneDetailsV1FinetuneDetailsGet` operationId).

func (*ClientWithResponses) Flux3ImageKleinV1Flux3ImageKleinPostWithBodyWithResponse

func (c *ClientWithResponses) Flux3ImageKleinV1Flux3ImageKleinPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Flux3ImageKleinV1Flux3ImageKleinPostResponse, error)

Flux3ImageKleinV1Flux3ImageKleinPostWithBodyWithResponse Generate an image with FLUX 3 Image Klein.

Submits a text-to-image or image editing task with FLUX 3 Image Klein.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/flux-3-image-klein (the `Flux3ImageKleinV1Flux3ImageKleinPost` operationId).

func (*ClientWithResponses) Flux3ImageKleinV1Flux3ImageKleinPostWithResponse

Flux3ImageKleinV1Flux3ImageKleinPostWithResponse Generate an image with FLUX 3 Image Klein.

Submits a text-to-image or image editing task with FLUX 3 Image Klein.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/flux-3-image-klein (the `Flux3ImageKleinV1Flux3ImageKleinPost` operationId).

func (*ClientWithResponses) Flux3ImageV1Flux3ImagePostWithBodyWithResponse

func (c *ClientWithResponses) Flux3ImageV1Flux3ImagePostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Flux3ImageV1Flux3ImagePostResponse, error)

Flux3ImageV1Flux3ImagePostWithBodyWithResponse Generate an image with FLUX 3.

Submits an image generation task with FLUX 3.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/flux-3-image (the `Flux3ImageV1Flux3ImagePost` operationId).

func (*ClientWithResponses) Flux3ImageV1Flux3ImagePostWithResponse

func (c *ClientWithResponses) Flux3ImageV1Flux3ImagePostWithResponse(ctx context.Context, body Flux3ImageV1Flux3ImagePostJSONRequestBody, reqEditors ...RequestEditorFn) (*Flux3ImageV1Flux3ImagePostResponse, error)

Flux3ImageV1Flux3ImagePostWithResponse Generate an image with FLUX 3.

Submits an image generation task with FLUX 3.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/flux-3-image (the `Flux3ImageV1Flux3ImagePost` operationId).

func (*ClientWithResponses) Flux3VideoV1Flux3VideoPostWithBodyWithResponse

func (c *ClientWithResponses) Flux3VideoV1Flux3VideoPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Flux3VideoV1Flux3VideoPostResponse, error)

Flux3VideoV1Flux3VideoPostWithBodyWithResponse Generate a video with FLUX 3.

Submits a video generation task to FLUX 3 via the harness. The mode is explicit: t2v (`text-to-video`), i2v (`image-continuation`, keyframes), v2v (`video-continuation`, start_video), or draft_enhance (`draft-enhance`, full-quality render of a prior draft's `draft_cache`); the spelled-out aliases are accepted anywhere the short key is.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/flux-3-video (the `Flux3VideoV1Flux3VideoPost` operationId).

func (*ClientWithResponses) Flux3VideoV1Flux3VideoPostWithResponse

func (c *ClientWithResponses) Flux3VideoV1Flux3VideoPostWithResponse(ctx context.Context, body Flux3VideoV1Flux3VideoPostJSONRequestBody, reqEditors ...RequestEditorFn) (*Flux3VideoV1Flux3VideoPostResponse, error)

Flux3VideoV1Flux3VideoPostWithResponse Generate a video with FLUX 3.

Submits a video generation task to FLUX 3 via the harness. The mode is explicit: t2v (`text-to-video`), i2v (`image-continuation`, keyframes), v2v (`video-continuation`, start_video), or draft_enhance (`draft-enhance`, full-quality render of a prior draft's `draft_cache`); the spelled-out aliases are accepted anywhere the short key is.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/flux-3-video (the `Flux3VideoV1Flux3VideoPost` operationId).

func (*ClientWithResponses) FluxDevV1FluxDevPostWithBodyWithResponse

func (c *ClientWithResponses) FluxDevV1FluxDevPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FluxDevV1FluxDevPostResponse, error)

FluxDevV1FluxDevPostWithBodyWithResponse Generate an image with FLUX.1 [dev]

Submits an image generation task with FLUX.1 [dev].

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/flux-dev (the `FluxDevV1FluxDevPost` operationId).

func (*ClientWithResponses) FluxDevV1FluxDevPostWithResponse

func (c *ClientWithResponses) FluxDevV1FluxDevPostWithResponse(ctx context.Context, body FluxDevV1FluxDevPostJSONRequestBody, reqEditors ...RequestEditorFn) (*FluxDevV1FluxDevPostResponse, error)

FluxDevV1FluxDevPostWithResponse Generate an image with FLUX.1 [dev]

Submits an image generation task with FLUX.1 [dev].

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/flux-dev (the `FluxDevV1FluxDevPost` operationId).

func (*ClientWithResponses) FluxPro11V1FluxPro11PostWithBodyWithResponse

func (c *ClientWithResponses) FluxPro11V1FluxPro11PostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FluxPro11V1FluxPro11PostResponse, error)

FluxPro11V1FluxPro11PostWithBodyWithResponse Generate an image with FLUX1.1 [pro]

Submits an image generation task with FLUX1.1 [pro].

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/flux-pro-1.1 (the `FluxPro11V1FluxPro11Post` operationId).

func (*ClientWithResponses) FluxPro11V1FluxPro11PostWithResponse

func (c *ClientWithResponses) FluxPro11V1FluxPro11PostWithResponse(ctx context.Context, body FluxPro11V1FluxPro11PostJSONRequestBody, reqEditors ...RequestEditorFn) (*FluxPro11V1FluxPro11PostResponse, error)

FluxPro11V1FluxPro11PostWithResponse Generate an image with FLUX1.1 [pro]

Submits an image generation task with FLUX1.1 [pro].

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/flux-pro-1.1 (the `FluxPro11V1FluxPro11Post` operationId).

func (*ClientWithResponses) GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPostWithBodyWithResponse

func (c *ClientWithResponses) GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPostResponse, error)

GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPostWithBodyWithResponse Generate an image with FLUX 1.1 [pro] finetune with ultra mode.

Submits an image generation task with FLUX 1.1 [pro] finetune with ultra mode.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/flux-pro-1.1-ultra-finetuned (the `GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPost` operationId).

func (*ClientWithResponses) GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPostWithResponse

GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPostWithResponse Generate an image with FLUX 1.1 [pro] finetune with ultra mode.

Submits an image generation task with FLUX 1.1 [pro] finetune with ultra mode.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/flux-pro-1.1-ultra-finetuned (the `GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPost` operationId).

func (*ClientWithResponses) GenerateFlux2FlexV1Flux2FlexPostWithBodyWithResponse

func (c *ClientWithResponses) GenerateFlux2FlexV1Flux2FlexPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GenerateFlux2FlexV1Flux2FlexPostResponse, error)

GenerateFlux2FlexV1Flux2FlexPostWithBodyWithResponse Generate or edit an image with FLUX.2 [flex]

Submits an image generation or editing task with FLUX.2 [flex]. Specialized for typography and text rendering, and for preserving small details. Supports text-to-image and image-to-image editing workflows.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/flux-2-flex (the `GenerateFlux2FlexV1Flux2FlexPost` operationId).

func (*ClientWithResponses) GenerateFlux2FlexV1Flux2FlexPostWithResponse

GenerateFlux2FlexV1Flux2FlexPostWithResponse Generate or edit an image with FLUX.2 [flex]

Submits an image generation or editing task with FLUX.2 [flex]. Specialized for typography and text rendering, and for preserving small details. Supports text-to-image and image-to-image editing workflows.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/flux-2-flex (the `GenerateFlux2FlexV1Flux2FlexPost` operationId).

func (*ClientWithResponses) GenerateFlux2Klein4bV1Flux2Klein4bPostWithBodyWithResponse

func (c *ClientWithResponses) GenerateFlux2Klein4bV1Flux2Klein4bPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GenerateFlux2Klein4bV1Flux2Klein4bPostResponse, error)

GenerateFlux2Klein4bV1Flux2Klein4bPostWithBodyWithResponse Generate or edit an image with FLUX.2 [klein] 4B

Submits an image generation or editing task with FLUX.2 [klein] 4B. The fastest, most lightweight FLUX.2 model, with open weights that run on consumer GPUs.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/flux-2-klein-4b (the `GenerateFlux2Klein4bV1Flux2Klein4bPost` operationId).

func (*ClientWithResponses) GenerateFlux2Klein4bV1Flux2Klein4bPostWithResponse

GenerateFlux2Klein4bV1Flux2Klein4bPostWithResponse Generate or edit an image with FLUX.2 [klein] 4B

Submits an image generation or editing task with FLUX.2 [klein] 4B. The fastest, most lightweight FLUX.2 model, with open weights that run on consumer GPUs.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/flux-2-klein-4b (the `GenerateFlux2Klein4bV1Flux2Klein4bPost` operationId).

func (*ClientWithResponses) GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPostWithBodyWithResponse

func (c *ClientWithResponses) GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPostResponse, error)

GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPostWithBodyWithResponse Generate or edit an image with FLUX.2 [klein] 9B (preview)

Submits an image generation or editing task with the FLUX.2 [klein] 9B preview endpoint, where the latest quality and speed improvements land first. For stable production use, prefer FLUX.2 [klein] 9B (/flux-2-klein-9b).

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/flux-2-klein-9b-preview (the `GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPost` operationId).

func (*ClientWithResponses) GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPostWithResponse

GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPostWithResponse Generate or edit an image with FLUX.2 [klein] 9B (preview)

Submits an image generation or editing task with the FLUX.2 [klein] 9B preview endpoint, where the latest quality and speed improvements land first. For stable production use, prefer FLUX.2 [klein] 9B (/flux-2-klein-9b).

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/flux-2-klein-9b-preview (the `GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPost` operationId).

func (*ClientWithResponses) GenerateFlux2Klein9bV1Flux2Klein9bPostWithBodyWithResponse

func (c *ClientWithResponses) GenerateFlux2Klein9bV1Flux2Klein9bPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GenerateFlux2Klein9bV1Flux2Klein9bPostResponse, error)

GenerateFlux2Klein9bV1Flux2Klein9bPostWithBodyWithResponse Generate or edit an image with FLUX.2 [klein] 9B

Submits an image generation or editing task with FLUX.2 [klein] 9B. Sub-second inference with open weights, balancing quality and speed.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/flux-2-klein-9b (the `GenerateFlux2Klein9bV1Flux2Klein9bPost` operationId).

func (*ClientWithResponses) GenerateFlux2Klein9bV1Flux2Klein9bPostWithResponse

GenerateFlux2Klein9bV1Flux2Klein9bPostWithResponse Generate or edit an image with FLUX.2 [klein] 9B

Submits an image generation or editing task with FLUX.2 [klein] 9B. Sub-second inference with open weights, balancing quality and speed.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/flux-2-klein-9b (the `GenerateFlux2Klein9bV1Flux2Klein9bPost` operationId).

func (*ClientWithResponses) GenerateFlux2MaxV1Flux2MaxPostWithBodyWithResponse

func (c *ClientWithResponses) GenerateFlux2MaxV1Flux2MaxPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GenerateFlux2MaxV1Flux2MaxPostResponse, error)

GenerateFlux2MaxV1Flux2MaxPostWithBodyWithResponse Generate or edit an image with FLUX.2 [max]

Submits an image generation or editing task with FLUX.2 [max]. Highest quality FLUX.2 model for image generation and editing, with the strongest editing consistency and prompt following.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/flux-2-max (the `GenerateFlux2MaxV1Flux2MaxPost` operationId).

func (*ClientWithResponses) GenerateFlux2MaxV1Flux2MaxPostWithResponse

func (c *ClientWithResponses) GenerateFlux2MaxV1Flux2MaxPostWithResponse(ctx context.Context, body GenerateFlux2MaxV1Flux2MaxPostJSONRequestBody, reqEditors ...RequestEditorFn) (*GenerateFlux2MaxV1Flux2MaxPostResponse, error)

GenerateFlux2MaxV1Flux2MaxPostWithResponse Generate or edit an image with FLUX.2 [max]

Submits an image generation or editing task with FLUX.2 [max]. Highest quality FLUX.2 model for image generation and editing, with the strongest editing consistency and prompt following.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/flux-2-max (the `GenerateFlux2MaxV1Flux2MaxPost` operationId).

func (*ClientWithResponses) GenerateFlux2ProPreviewV1Flux2ProPreviewPostWithBodyWithResponse

func (c *ClientWithResponses) GenerateFlux2ProPreviewV1Flux2ProPreviewPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GenerateFlux2ProPreviewV1Flux2ProPreviewPostResponse, error)

GenerateFlux2ProPreviewV1Flux2ProPreviewPostWithBodyWithResponse Generate or edit an image with FLUX.2 [pro] (preview)

Submits an image generation or editing task with the FLUX.2 [pro] preview endpoint, where the latest quality and speed improvements land first. For stable production use, prefer FLUX.2 [pro] (/flux-2-pro).

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/flux-2-pro-preview (the `GenerateFlux2ProPreviewV1Flux2ProPreviewPost` operationId).

func (*ClientWithResponses) GenerateFlux2ProPreviewV1Flux2ProPreviewPostWithResponse

GenerateFlux2ProPreviewV1Flux2ProPreviewPostWithResponse Generate or edit an image with FLUX.2 [pro] (preview)

Submits an image generation or editing task with the FLUX.2 [pro] preview endpoint, where the latest quality and speed improvements land first. For stable production use, prefer FLUX.2 [pro] (/flux-2-pro).

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/flux-2-pro-preview (the `GenerateFlux2ProPreviewV1Flux2ProPreviewPost` operationId).

func (*ClientWithResponses) GenerateFlux2ProV1Flux2ProPostWithBodyWithResponse

func (c *ClientWithResponses) GenerateFlux2ProV1Flux2ProPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GenerateFlux2ProV1Flux2ProPostResponse, error)

GenerateFlux2ProV1Flux2ProPostWithBodyWithResponse Generate or edit an image with FLUX.2 [pro]

Submits an image generation or editing task with FLUX.2 [pro]. This is the recommended default model for image editing and generation. Supports text-to-image and image-to-image editing workflows.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/flux-2-pro (the `GenerateFlux2ProV1Flux2ProPost` operationId).

func (*ClientWithResponses) GenerateFlux2ProV1Flux2ProPostWithResponse

func (c *ClientWithResponses) GenerateFlux2ProV1Flux2ProPostWithResponse(ctx context.Context, body GenerateFlux2ProV1Flux2ProPostJSONRequestBody, reqEditors ...RequestEditorFn) (*GenerateFlux2ProV1Flux2ProPostResponse, error)

GenerateFlux2ProV1Flux2ProPostWithResponse Generate or edit an image with FLUX.2 [pro]

Submits an image generation or editing task with FLUX.2 [pro]. This is the recommended default model for image editing and generation. Supports text-to-image and image-to-image editing workflows.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/flux-2-pro (the `GenerateFlux2ProV1Flux2ProPost` operationId).

func (*ClientWithResponses) GenerateFlux11UltraV1FluxPro11UltraPostWithBodyWithResponse

func (c *ClientWithResponses) GenerateFlux11UltraV1FluxPro11UltraPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GenerateFlux11UltraV1FluxPro11UltraPostResponse, error)

GenerateFlux11UltraV1FluxPro11UltraPostWithBodyWithResponse Generate an image with FLUX1.1 [pro] ultra mode

Submits an image generation task with FLUX1.1 [pro] with ultra mode and optional raw mode.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/flux-pro-1.1-ultra (the `GenerateFlux11UltraV1FluxPro11UltraPost` operationId).

func (*ClientWithResponses) GenerateFlux11UltraV1FluxPro11UltraPostWithResponse

GenerateFlux11UltraV1FluxPro11UltraPostWithResponse Generate an image with FLUX1.1 [pro] ultra mode

Submits an image generation task with FLUX1.1 [pro] with ultra mode and optional raw mode.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/flux-pro-1.1-ultra (the `GenerateFlux11UltraV1FluxPro11UltraPost` operationId).

func (*ClientWithResponses) GenerateFluxKontextMaxV1FluxKontextMaxPostWithBodyWithResponse

func (c *ClientWithResponses) GenerateFluxKontextMaxV1FluxKontextMaxPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GenerateFluxKontextMaxV1FluxKontextMaxPostResponse, error)

GenerateFluxKontextMaxV1FluxKontextMaxPostWithBodyWithResponse Edit or create an image with FLUX.1 Kontext [max]

Submits an image creation task with FLUX.1 Kontext [max]. For image editing, prefer FLUX.2 [pro] (/flux-2-pro) or FLUX.2 [flex] (/flux-2-flex) which are the recommended default models for editing workflows.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/flux-kontext-max (the `GenerateFluxKontextMaxV1FluxKontextMaxPost` operationId).

func (*ClientWithResponses) GenerateFluxKontextMaxV1FluxKontextMaxPostWithResponse

GenerateFluxKontextMaxV1FluxKontextMaxPostWithResponse Edit or create an image with FLUX.1 Kontext [max]

Submits an image creation task with FLUX.1 Kontext [max]. For image editing, prefer FLUX.2 [pro] (/flux-2-pro) or FLUX.2 [flex] (/flux-2-flex) which are the recommended default models for editing workflows.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/flux-kontext-max (the `GenerateFluxKontextMaxV1FluxKontextMaxPost` operationId).

func (*ClientWithResponses) GenerateFluxKontextProV1FluxKontextProPostWithBodyWithResponse

func (c *ClientWithResponses) GenerateFluxKontextProV1FluxKontextProPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GenerateFluxKontextProV1FluxKontextProPostResponse, error)

GenerateFluxKontextProV1FluxKontextProPostWithBodyWithResponse Edit or create an image with FLUX.1 Kontext [pro]

Submits an image creation task with FLUX.1 Kontext [pro]. For image editing, prefer FLUX.2 [pro] (/flux-2-pro) or FLUX.2 [flex] (/flux-2-flex) which are the recommended default models for editing workflows.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/flux-kontext-pro (the `GenerateFluxKontextProV1FluxKontextProPost` operationId).

func (*ClientWithResponses) GenerateFluxKontextProV1FluxKontextProPostWithResponse

GenerateFluxKontextProV1FluxKontextProPostWithResponse Edit or create an image with FLUX.1 Kontext [pro]

Submits an image creation task with FLUX.1 Kontext [pro]. For image editing, prefer FLUX.2 [pro] (/flux-2-pro) or FLUX.2 [flex] (/flux-2-flex) which are the recommended default models for editing workflows.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/flux-kontext-pro (the `GenerateFluxKontextProV1FluxKontextProPost` operationId).

func (*ClientWithResponses) GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1PostWithBodyWithResponse

func (c *ClientWithResponses) GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1PostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1PostResponse, error)

GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1PostWithBodyWithResponse Remove blur from an image

Submits a deblur task. The input image is regenerated by a FLUX blur-removal model to sharpen it while preserving the original scene, objects, composition, and lighting. No prompt needed.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/flux-tools/deblur-v1 (the `GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1Post` operationId).

func (*ClientWithResponses) GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1PostWithResponse

GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1PostWithResponse Remove blur from an image

Submits a deblur task. The input image is regenerated by a FLUX blur-removal model to sharpen it while preserving the original scene, objects, composition, and lighting. No prompt needed.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/flux-tools/deblur-v1 (the `GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1Post` operationId).

func (*ClientWithResponses) GenerateFluxToolsEraseV1V1FluxToolsEraseV1PostWithBodyWithResponse

func (c *ClientWithResponses) GenerateFluxToolsEraseV1V1FluxToolsEraseV1PostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GenerateFluxToolsEraseV1V1FluxToolsEraseV1PostResponse, error)

GenerateFluxToolsEraseV1V1FluxToolsEraseV1PostWithBodyWithResponse Erase an object from an image

Submits an erase task using an input image and a mask identifying the object or region to remove.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/flux-tools/erase-v1 (the `GenerateFluxToolsEraseV1V1FluxToolsEraseV1Post` operationId).

func (*ClientWithResponses) GenerateFluxToolsEraseV1V1FluxToolsEraseV1PostWithResponse

GenerateFluxToolsEraseV1V1FluxToolsEraseV1PostWithResponse Erase an object from an image

Submits an erase task using an input image and a mask identifying the object or region to remove.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/flux-tools/erase-v1 (the `GenerateFluxToolsEraseV1V1FluxToolsEraseV1Post` operationId).

func (*ClientWithResponses) GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1PostWithBodyWithResponse

func (c *ClientWithResponses) GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1PostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1PostResponse, error)

GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1PostWithBodyWithResponse Outpaint or extend an image

Submits an outpainting task. The input image is placed on a (width, height) canvas at the given offset, and the surrounding region is generated by a FLUX outpainting model.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/flux-tools/outpainting-v1 (the `GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1Post` operationId).

func (*ClientWithResponses) GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1PostWithResponse

GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1PostWithResponse Outpaint or extend an image

Submits an outpainting task. The input image is placed on a (width, height) canvas at the given offset, and the surrounding region is generated by a FLUX outpainting model.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/flux-tools/outpainting-v1 (the `GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1Post` operationId).

func (*ClientWithResponses) GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1PostWithBodyWithResponse

func (c *ClientWithResponses) GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1PostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1PostResponse, error)

GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1PostWithBodyWithResponse Edit a video with FLUX 3.

Submits a video edit task: the supplied clip is transformed according to the edit instruction. Duration, resolution, aspect ratio, and audio follow the source clip; inference controls are pinned server-side.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/flux-tools/video-edit-v1 (the `GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1Post` operationId).

func (*ClientWithResponses) GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1PostWithResponse

GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1PostWithResponse Edit a video with FLUX 3.

Submits a video edit task: the supplied clip is transformed according to the edit instruction. Duration, resolution, aspect ratio, and audio follow the source clip; inference controls are pinned server-side.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/flux-tools/video-edit-v1 (the `GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1Post` operationId).

func (*ClientWithResponses) GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1PostWithBodyWithResponse

func (c *ClientWithResponses) GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1PostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1PostResponse, error)

GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1PostWithBodyWithResponse Upscale a video with FLUX 3.

Submits a video upscaling task: 1.5x-3x super-resolution of the source clip (up to 2560x1440 in, 13.75 MP output frames). The upscale covers the first 20 seconds of the source; clips well past that are rejected. `creativity` selects precise source-faithful upscaling (0) or creative detail enhancement (1).

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/flux-tools/video-upscale-v1 (the `GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1Post` operationId).

func (*ClientWithResponses) GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1PostWithResponse

GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1PostWithResponse Upscale a video with FLUX 3.

Submits a video upscaling task: 1.5x-3x super-resolution of the source clip (up to 2560x1440 in, 13.75 MP output frames). The upscale covers the first 20 seconds of the source; clips well past that are rejected. `creativity` selects precise source-faithful upscaling (0) or creative detail enhancement (1).

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/flux-tools/video-upscale-v1 (the `GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1Post` operationId).

func (*ClientWithResponses) GenerateFluxToolsVtoV1V1FluxToolsVtoV1PostWithBodyWithResponse

func (c *ClientWithResponses) GenerateFluxToolsVtoV1V1FluxToolsVtoV1PostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GenerateFluxToolsVtoV1V1FluxToolsVtoV1PostResponse, error)

GenerateFluxToolsVtoV1V1FluxToolsVtoV1PostWithBodyWithResponse Virtual try-on

Submits a virtual try-on task. Person and garment images are mapped to the underlying input image slots; prompts steer attribute transfer.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/flux-tools/vto-v1 (the `GenerateFluxToolsVtoV1V1FluxToolsVtoV1Post` operationId).

func (*ClientWithResponses) GenerateFluxToolsVtoV1V1FluxToolsVtoV1PostWithResponse

GenerateFluxToolsVtoV1V1FluxToolsVtoV1PostWithResponse Virtual try-on

Submits a virtual try-on task. Person and garment images are mapped to the underlying input image slots; prompts steer attribute transfer.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/flux-tools/vto-v1 (the `GenerateFluxToolsVtoV1V1FluxToolsVtoV1Post` operationId).

func (*ClientWithResponses) GenerateFluxToolsVtoV2V1FluxToolsVtoV2PostWithBodyWithResponse

func (c *ClientWithResponses) GenerateFluxToolsVtoV2V1FluxToolsVtoV2PostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GenerateFluxToolsVtoV2V1FluxToolsVtoV2PostResponse, error)

GenerateFluxToolsVtoV2V1FluxToolsVtoV2PostWithBodyWithResponse Virtual try-on (v2)

Submits a virtual try-on task against the v2 model. Identical request shape to /vto-v1, with reference and output resolution supported up to 4MP. Person and garment images are mapped to the underlying input image slots. An edit instruction is generated from the person and garment images, with the supplied prompt used as a fallback.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/flux-tools/vto-v2 (the `GenerateFluxToolsVtoV2V1FluxToolsVtoV2Post` operationId).

func (*ClientWithResponses) GenerateFluxToolsVtoV2V1FluxToolsVtoV2PostWithResponse

GenerateFluxToolsVtoV2V1FluxToolsVtoV2PostWithResponse Virtual try-on (v2)

Submits a virtual try-on task against the v2 model. Identical request shape to /vto-v1, with reference and output resolution supported up to 4MP. Person and garment images are mapped to the underlying input image slots. An edit instruction is generated from the person and garment images, with the supplied prompt used as a fallback.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/flux-tools/vto-v2 (the `GenerateFluxToolsVtoV2V1FluxToolsVtoV2Post` operationId).

func (*ClientWithResponses) GetCreditsV1CreditsGetWithResponse

func (c *ClientWithResponses) GetCreditsV1CreditsGetWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCreditsV1CreditsGetResponse, error)

GetCreditsV1CreditsGetWithResponse Get the user's credits

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/credits (the `GetCreditsV1CreditsGet` operationId).

func (*ClientWithResponses) GetResultV1GetResultGetWithResponse

func (c *ClientWithResponses) GetResultV1GetResultGetWithResponse(ctx context.Context, params *GetResultV1GetResultGetParams, reqEditors ...RequestEditorFn) (*GetResultV1GetResultGetResponse, error)

GetResultV1GetResultGetWithResponse Get Result

An endpoint for getting generation task result.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/get_result (the `GetResultV1GetResultGet` operationId).

func (*ClientWithResponses) MyFinetunesV1MyFinetunesGetWithResponse

func (c *ClientWithResponses) MyFinetunesV1MyFinetunesGetWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*MyFinetunesV1MyFinetunesGetResponse, error)

MyFinetunesV1MyFinetunesGetWithResponse My Finetunes

List all finetune_ids created by the user.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/my_finetunes (the `MyFinetunesV1MyFinetunesGet` operationId).

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {

	// GetCreditsV1CreditsGetWithResponse Get the user's credits
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/credits (the `GetCreditsV1CreditsGet` operationId).
	GetCreditsV1CreditsGetWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCreditsV1CreditsGetResponse, error)

	// DeleteFinetuneV1DeleteFinetunePostWithBodyWithResponse Delete Finetune
	//
	// Delete a finetune_id that was created by the user.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/delete_finetune (the `DeleteFinetuneV1DeleteFinetunePost` operationId).
	DeleteFinetuneV1DeleteFinetunePostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteFinetuneV1DeleteFinetunePostResponse, error)

	// DeleteFinetuneV1DeleteFinetunePostWithResponse Delete Finetune
	//
	// Delete a finetune_id that was created by the user.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/delete_finetune (the `DeleteFinetuneV1DeleteFinetunePost` operationId).
	DeleteFinetuneV1DeleteFinetunePostWithResponse(ctx context.Context, body DeleteFinetuneV1DeleteFinetunePostJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteFinetuneV1DeleteFinetunePostResponse, error)

	// FinetuneDetailsV1FinetuneDetailsGetWithResponse Finetune Details
	//
	// Get details about the training parameters and other metadata connected to a specific finetune_id that was created by the user.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/finetune_details (the `FinetuneDetailsV1FinetuneDetailsGet` operationId).
	FinetuneDetailsV1FinetuneDetailsGetWithResponse(ctx context.Context, params *FinetuneDetailsV1FinetuneDetailsGetParams, reqEditors ...RequestEditorFn) (*FinetuneDetailsV1FinetuneDetailsGetResponse, error)

	// GenerateFlux2FlexV1Flux2FlexPostWithBodyWithResponse Generate or edit an image with FLUX.2 [flex]
	//
	// Submits an image generation or editing task with FLUX.2 [flex]. Specialized for typography and text rendering, and for preserving small details. Supports text-to-image and image-to-image editing workflows.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/flux-2-flex (the `GenerateFlux2FlexV1Flux2FlexPost` operationId).
	GenerateFlux2FlexV1Flux2FlexPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GenerateFlux2FlexV1Flux2FlexPostResponse, error)

	// GenerateFlux2FlexV1Flux2FlexPostWithResponse Generate or edit an image with FLUX.2 [flex]
	//
	// Submits an image generation or editing task with FLUX.2 [flex]. Specialized for typography and text rendering, and for preserving small details. Supports text-to-image and image-to-image editing workflows.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/flux-2-flex (the `GenerateFlux2FlexV1Flux2FlexPost` operationId).
	GenerateFlux2FlexV1Flux2FlexPostWithResponse(ctx context.Context, body GenerateFlux2FlexV1Flux2FlexPostJSONRequestBody, reqEditors ...RequestEditorFn) (*GenerateFlux2FlexV1Flux2FlexPostResponse, error)

	// GenerateFlux2Klein4bV1Flux2Klein4bPostWithBodyWithResponse Generate or edit an image with FLUX.2 [klein] 4B
	//
	// Submits an image generation or editing task with FLUX.2 [klein] 4B. The fastest, most lightweight FLUX.2 model, with open weights that run on consumer GPUs.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/flux-2-klein-4b (the `GenerateFlux2Klein4bV1Flux2Klein4bPost` operationId).
	GenerateFlux2Klein4bV1Flux2Klein4bPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GenerateFlux2Klein4bV1Flux2Klein4bPostResponse, error)

	// GenerateFlux2Klein4bV1Flux2Klein4bPostWithResponse Generate or edit an image with FLUX.2 [klein] 4B
	//
	// Submits an image generation or editing task with FLUX.2 [klein] 4B. The fastest, most lightweight FLUX.2 model, with open weights that run on consumer GPUs.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/flux-2-klein-4b (the `GenerateFlux2Klein4bV1Flux2Klein4bPost` operationId).
	GenerateFlux2Klein4bV1Flux2Klein4bPostWithResponse(ctx context.Context, body GenerateFlux2Klein4bV1Flux2Klein4bPostJSONRequestBody, reqEditors ...RequestEditorFn) (*GenerateFlux2Klein4bV1Flux2Klein4bPostResponse, error)

	// GenerateFlux2Klein9bV1Flux2Klein9bPostWithBodyWithResponse Generate or edit an image with FLUX.2 [klein] 9B
	//
	// Submits an image generation or editing task with FLUX.2 [klein] 9B. Sub-second inference with open weights, balancing quality and speed.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/flux-2-klein-9b (the `GenerateFlux2Klein9bV1Flux2Klein9bPost` operationId).
	GenerateFlux2Klein9bV1Flux2Klein9bPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GenerateFlux2Klein9bV1Flux2Klein9bPostResponse, error)

	// GenerateFlux2Klein9bV1Flux2Klein9bPostWithResponse Generate or edit an image with FLUX.2 [klein] 9B
	//
	// Submits an image generation or editing task with FLUX.2 [klein] 9B. Sub-second inference with open weights, balancing quality and speed.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/flux-2-klein-9b (the `GenerateFlux2Klein9bV1Flux2Klein9bPost` operationId).
	GenerateFlux2Klein9bV1Flux2Klein9bPostWithResponse(ctx context.Context, body GenerateFlux2Klein9bV1Flux2Klein9bPostJSONRequestBody, reqEditors ...RequestEditorFn) (*GenerateFlux2Klein9bV1Flux2Klein9bPostResponse, error)

	// GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPostWithBodyWithResponse Generate or edit an image with FLUX.2 [klein] 9B (preview)
	//
	// Submits an image generation or editing task with the FLUX.2 [klein] 9B preview endpoint, where the latest quality and speed improvements land first. For stable production use, prefer FLUX.2 [klein] 9B (/flux-2-klein-9b).
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/flux-2-klein-9b-preview (the `GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPost` operationId).
	GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPostResponse, error)

	// GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPostWithResponse Generate or edit an image with FLUX.2 [klein] 9B (preview)
	//
	// Submits an image generation or editing task with the FLUX.2 [klein] 9B preview endpoint, where the latest quality and speed improvements land first. For stable production use, prefer FLUX.2 [klein] 9B (/flux-2-klein-9b).
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/flux-2-klein-9b-preview (the `GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPost` operationId).
	GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPostWithResponse(ctx context.Context, body GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPostJSONRequestBody, reqEditors ...RequestEditorFn) (*GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPostResponse, error)

	// GenerateFlux2MaxV1Flux2MaxPostWithBodyWithResponse Generate or edit an image with FLUX.2 [max]
	//
	// Submits an image generation or editing task with FLUX.2 [max]. Highest quality FLUX.2 model for image generation and editing, with the strongest editing consistency and prompt following.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/flux-2-max (the `GenerateFlux2MaxV1Flux2MaxPost` operationId).
	GenerateFlux2MaxV1Flux2MaxPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GenerateFlux2MaxV1Flux2MaxPostResponse, error)

	// GenerateFlux2MaxV1Flux2MaxPostWithResponse Generate or edit an image with FLUX.2 [max]
	//
	// Submits an image generation or editing task with FLUX.2 [max]. Highest quality FLUX.2 model for image generation and editing, with the strongest editing consistency and prompt following.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/flux-2-max (the `GenerateFlux2MaxV1Flux2MaxPost` operationId).
	GenerateFlux2MaxV1Flux2MaxPostWithResponse(ctx context.Context, body GenerateFlux2MaxV1Flux2MaxPostJSONRequestBody, reqEditors ...RequestEditorFn) (*GenerateFlux2MaxV1Flux2MaxPostResponse, error)

	// GenerateFlux2ProV1Flux2ProPostWithBodyWithResponse Generate or edit an image with FLUX.2 [pro]
	//
	// Submits an image generation or editing task with FLUX.2 [pro]. This is the recommended default model for image editing and generation. Supports text-to-image and image-to-image editing workflows.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/flux-2-pro (the `GenerateFlux2ProV1Flux2ProPost` operationId).
	GenerateFlux2ProV1Flux2ProPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GenerateFlux2ProV1Flux2ProPostResponse, error)

	// GenerateFlux2ProV1Flux2ProPostWithResponse Generate or edit an image with FLUX.2 [pro]
	//
	// Submits an image generation or editing task with FLUX.2 [pro]. This is the recommended default model for image editing and generation. Supports text-to-image and image-to-image editing workflows.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/flux-2-pro (the `GenerateFlux2ProV1Flux2ProPost` operationId).
	GenerateFlux2ProV1Flux2ProPostWithResponse(ctx context.Context, body GenerateFlux2ProV1Flux2ProPostJSONRequestBody, reqEditors ...RequestEditorFn) (*GenerateFlux2ProV1Flux2ProPostResponse, error)

	// GenerateFlux2ProPreviewV1Flux2ProPreviewPostWithBodyWithResponse Generate or edit an image with FLUX.2 [pro] (preview)
	//
	// Submits an image generation or editing task with the FLUX.2 [pro] preview endpoint, where the latest quality and speed improvements land first. For stable production use, prefer FLUX.2 [pro] (/flux-2-pro).
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/flux-2-pro-preview (the `GenerateFlux2ProPreviewV1Flux2ProPreviewPost` operationId).
	GenerateFlux2ProPreviewV1Flux2ProPreviewPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GenerateFlux2ProPreviewV1Flux2ProPreviewPostResponse, error)

	// GenerateFlux2ProPreviewV1Flux2ProPreviewPostWithResponse Generate or edit an image with FLUX.2 [pro] (preview)
	//
	// Submits an image generation or editing task with the FLUX.2 [pro] preview endpoint, where the latest quality and speed improvements land first. For stable production use, prefer FLUX.2 [pro] (/flux-2-pro).
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/flux-2-pro-preview (the `GenerateFlux2ProPreviewV1Flux2ProPreviewPost` operationId).
	GenerateFlux2ProPreviewV1Flux2ProPreviewPostWithResponse(ctx context.Context, body GenerateFlux2ProPreviewV1Flux2ProPreviewPostJSONRequestBody, reqEditors ...RequestEditorFn) (*GenerateFlux2ProPreviewV1Flux2ProPreviewPostResponse, error)

	// Flux3ImageV1Flux3ImagePostWithBodyWithResponse Generate an image with FLUX 3.
	//
	// Submits an image generation task with FLUX 3.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/flux-3-image (the `Flux3ImageV1Flux3ImagePost` operationId).
	Flux3ImageV1Flux3ImagePostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Flux3ImageV1Flux3ImagePostResponse, error)

	// Flux3ImageV1Flux3ImagePostWithResponse Generate an image with FLUX 3.
	//
	// Submits an image generation task with FLUX 3.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/flux-3-image (the `Flux3ImageV1Flux3ImagePost` operationId).
	Flux3ImageV1Flux3ImagePostWithResponse(ctx context.Context, body Flux3ImageV1Flux3ImagePostJSONRequestBody, reqEditors ...RequestEditorFn) (*Flux3ImageV1Flux3ImagePostResponse, error)

	// Flux3ImageKleinV1Flux3ImageKleinPostWithBodyWithResponse Generate an image with FLUX 3 Image Klein.
	//
	// Submits a text-to-image or image editing task with FLUX 3 Image Klein.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/flux-3-image-klein (the `Flux3ImageKleinV1Flux3ImageKleinPost` operationId).
	Flux3ImageKleinV1Flux3ImageKleinPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Flux3ImageKleinV1Flux3ImageKleinPostResponse, error)

	// Flux3ImageKleinV1Flux3ImageKleinPostWithResponse Generate an image with FLUX 3 Image Klein.
	//
	// Submits a text-to-image or image editing task with FLUX 3 Image Klein.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/flux-3-image-klein (the `Flux3ImageKleinV1Flux3ImageKleinPost` operationId).
	Flux3ImageKleinV1Flux3ImageKleinPostWithResponse(ctx context.Context, body Flux3ImageKleinV1Flux3ImageKleinPostJSONRequestBody, reqEditors ...RequestEditorFn) (*Flux3ImageKleinV1Flux3ImageKleinPostResponse, error)

	// Flux3VideoV1Flux3VideoPostWithBodyWithResponse Generate a video with FLUX 3.
	//
	// Submits a video generation task to FLUX 3 via the harness. The mode is explicit: t2v (`text-to-video`), i2v (`image-continuation`, keyframes), v2v (`video-continuation`, start_video), or draft_enhance (`draft-enhance`, full-quality render of a prior draft's `draft_cache`); the spelled-out aliases are accepted anywhere the short key is.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/flux-3-video (the `Flux3VideoV1Flux3VideoPost` operationId).
	Flux3VideoV1Flux3VideoPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Flux3VideoV1Flux3VideoPostResponse, error)

	// Flux3VideoV1Flux3VideoPostWithResponse Generate a video with FLUX 3.
	//
	// Submits a video generation task to FLUX 3 via the harness. The mode is explicit: t2v (`text-to-video`), i2v (`image-continuation`, keyframes), v2v (`video-continuation`, start_video), or draft_enhance (`draft-enhance`, full-quality render of a prior draft's `draft_cache`); the spelled-out aliases are accepted anywhere the short key is.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/flux-3-video (the `Flux3VideoV1Flux3VideoPost` operationId).
	Flux3VideoV1Flux3VideoPostWithResponse(ctx context.Context, body Flux3VideoV1Flux3VideoPostJSONRequestBody, reqEditors ...RequestEditorFn) (*Flux3VideoV1Flux3VideoPostResponse, error)

	// FluxDevV1FluxDevPostWithBodyWithResponse Generate an image with FLUX.1 [dev]
	//
	// Submits an image generation task with FLUX.1 [dev].
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/flux-dev (the `FluxDevV1FluxDevPost` operationId).
	FluxDevV1FluxDevPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FluxDevV1FluxDevPostResponse, error)

	// FluxDevV1FluxDevPostWithResponse Generate an image with FLUX.1 [dev]
	//
	// Submits an image generation task with FLUX.1 [dev].
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/flux-dev (the `FluxDevV1FluxDevPost` operationId).
	FluxDevV1FluxDevPostWithResponse(ctx context.Context, body FluxDevV1FluxDevPostJSONRequestBody, reqEditors ...RequestEditorFn) (*FluxDevV1FluxDevPostResponse, error)

	// GenerateFluxKontextMaxV1FluxKontextMaxPostWithBodyWithResponse Edit or create an image with FLUX.1 Kontext [max]
	//
	// Submits an image creation task with FLUX.1 Kontext [max]. For image editing, prefer FLUX.2 [pro] (/flux-2-pro) or FLUX.2 [flex] (/flux-2-flex) which are the recommended default models for editing workflows.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/flux-kontext-max (the `GenerateFluxKontextMaxV1FluxKontextMaxPost` operationId).
	GenerateFluxKontextMaxV1FluxKontextMaxPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GenerateFluxKontextMaxV1FluxKontextMaxPostResponse, error)

	// GenerateFluxKontextMaxV1FluxKontextMaxPostWithResponse Edit or create an image with FLUX.1 Kontext [max]
	//
	// Submits an image creation task with FLUX.1 Kontext [max]. For image editing, prefer FLUX.2 [pro] (/flux-2-pro) or FLUX.2 [flex] (/flux-2-flex) which are the recommended default models for editing workflows.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/flux-kontext-max (the `GenerateFluxKontextMaxV1FluxKontextMaxPost` operationId).
	GenerateFluxKontextMaxV1FluxKontextMaxPostWithResponse(ctx context.Context, body GenerateFluxKontextMaxV1FluxKontextMaxPostJSONRequestBody, reqEditors ...RequestEditorFn) (*GenerateFluxKontextMaxV1FluxKontextMaxPostResponse, error)

	// GenerateFluxKontextProV1FluxKontextProPostWithBodyWithResponse Edit or create an image with FLUX.1 Kontext [pro]
	//
	// Submits an image creation task with FLUX.1 Kontext [pro]. For image editing, prefer FLUX.2 [pro] (/flux-2-pro) or FLUX.2 [flex] (/flux-2-flex) which are the recommended default models for editing workflows.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/flux-kontext-pro (the `GenerateFluxKontextProV1FluxKontextProPost` operationId).
	GenerateFluxKontextProV1FluxKontextProPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GenerateFluxKontextProV1FluxKontextProPostResponse, error)

	// GenerateFluxKontextProV1FluxKontextProPostWithResponse Edit or create an image with FLUX.1 Kontext [pro]
	//
	// Submits an image creation task with FLUX.1 Kontext [pro]. For image editing, prefer FLUX.2 [pro] (/flux-2-pro) or FLUX.2 [flex] (/flux-2-flex) which are the recommended default models for editing workflows.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/flux-kontext-pro (the `GenerateFluxKontextProV1FluxKontextProPost` operationId).
	GenerateFluxKontextProV1FluxKontextProPostWithResponse(ctx context.Context, body GenerateFluxKontextProV1FluxKontextProPostJSONRequestBody, reqEditors ...RequestEditorFn) (*GenerateFluxKontextProV1FluxKontextProPostResponse, error)

	// ExpandV1FluxPro10ExpandPostWithBodyWithResponse Expand an image with FLUX.1 Expand [pro] by adding pixels on any side
	//
	// Submits an image expansion task that adds the specified number of pixels to any combination of sides (top, bottom, left, right) while maintaining context.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/flux-pro-1.0-expand (the `ExpandV1FluxPro10ExpandPost` operationId).
	ExpandV1FluxPro10ExpandPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExpandV1FluxPro10ExpandPostResponse, error)

	// ExpandV1FluxPro10ExpandPostWithResponse Expand an image with FLUX.1 Expand [pro] by adding pixels on any side
	//
	// Submits an image expansion task that adds the specified number of pixels to any combination of sides (top, bottom, left, right) while maintaining context.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/flux-pro-1.0-expand (the `ExpandV1FluxPro10ExpandPost` operationId).
	ExpandV1FluxPro10ExpandPostWithResponse(ctx context.Context, body ExpandV1FluxPro10ExpandPostJSONRequestBody, reqEditors ...RequestEditorFn) (*ExpandV1FluxPro10ExpandPostResponse, error)

	// FillV1FluxPro10FillPostWithBodyWithResponse Inpaint an image with FLUX.1 Fill [pro] using an input image and mask
	//
	// Submits an image generation task with the FLUX.1 Fill [pro] model using an input image and mask. Mask can be applied to alpha channel or submitted as a separate image.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/flux-pro-1.0-fill (the `FillV1FluxPro10FillPost` operationId).
	FillV1FluxPro10FillPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FillV1FluxPro10FillPostResponse, error)

	// FillV1FluxPro10FillPostWithResponse Inpaint an image with FLUX.1 Fill [pro] using an input image and mask
	//
	// Submits an image generation task with the FLUX.1 Fill [pro] model using an input image and mask. Mask can be applied to alpha channel or submitted as a separate image.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/flux-pro-1.0-fill (the `FillV1FluxPro10FillPost` operationId).
	FillV1FluxPro10FillPostWithResponse(ctx context.Context, body FillV1FluxPro10FillPostJSONRequestBody, reqEditors ...RequestEditorFn) (*FillV1FluxPro10FillPostResponse, error)

	// FluxPro11V1FluxPro11PostWithBodyWithResponse Generate an image with FLUX1.1 [pro]
	//
	// Submits an image generation task with FLUX1.1 [pro].
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/flux-pro-1.1 (the `FluxPro11V1FluxPro11Post` operationId).
	FluxPro11V1FluxPro11PostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FluxPro11V1FluxPro11PostResponse, error)

	// FluxPro11V1FluxPro11PostWithResponse Generate an image with FLUX1.1 [pro]
	//
	// Submits an image generation task with FLUX1.1 [pro].
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/flux-pro-1.1 (the `FluxPro11V1FluxPro11Post` operationId).
	FluxPro11V1FluxPro11PostWithResponse(ctx context.Context, body FluxPro11V1FluxPro11PostJSONRequestBody, reqEditors ...RequestEditorFn) (*FluxPro11V1FluxPro11PostResponse, error)

	// GenerateFlux11UltraV1FluxPro11UltraPostWithBodyWithResponse Generate an image with FLUX1.1 [pro] ultra mode
	//
	// Submits an image generation task with FLUX1.1 [pro] with ultra mode and optional raw mode.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/flux-pro-1.1-ultra (the `GenerateFlux11UltraV1FluxPro11UltraPost` operationId).
	GenerateFlux11UltraV1FluxPro11UltraPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GenerateFlux11UltraV1FluxPro11UltraPostResponse, error)

	// GenerateFlux11UltraV1FluxPro11UltraPostWithResponse Generate an image with FLUX1.1 [pro] ultra mode
	//
	// Submits an image generation task with FLUX1.1 [pro] with ultra mode and optional raw mode.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/flux-pro-1.1-ultra (the `GenerateFlux11UltraV1FluxPro11UltraPost` operationId).
	GenerateFlux11UltraV1FluxPro11UltraPostWithResponse(ctx context.Context, body GenerateFlux11UltraV1FluxPro11UltraPostJSONRequestBody, reqEditors ...RequestEditorFn) (*GenerateFlux11UltraV1FluxPro11UltraPostResponse, error)

	// GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPostWithBodyWithResponse Generate an image with FLUX 1.1 [pro] finetune with ultra mode.
	//
	// Submits an image generation task with FLUX 1.1 [pro] finetune with ultra mode.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/flux-pro-1.1-ultra-finetuned (the `GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPost` operationId).
	GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPostResponse, error)

	// GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPostWithResponse Generate an image with FLUX 1.1 [pro] finetune with ultra mode.
	//
	// Submits an image generation task with FLUX 1.1 [pro] finetune with ultra mode.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/flux-pro-1.1-ultra-finetuned (the `GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPost` operationId).
	GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPostWithResponse(ctx context.Context, body GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPostJSONRequestBody, reqEditors ...RequestEditorFn) (*GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPostResponse, error)

	// GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1PostWithBodyWithResponse Remove blur from an image
	//
	// Submits a deblur task. The input image is regenerated by a FLUX blur-removal model to sharpen it while preserving the original scene, objects, composition, and lighting. No prompt needed.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/flux-tools/deblur-v1 (the `GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1Post` operationId).
	GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1PostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1PostResponse, error)

	// GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1PostWithResponse Remove blur from an image
	//
	// Submits a deblur task. The input image is regenerated by a FLUX blur-removal model to sharpen it while preserving the original scene, objects, composition, and lighting. No prompt needed.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/flux-tools/deblur-v1 (the `GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1Post` operationId).
	GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1PostWithResponse(ctx context.Context, body GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1PostJSONRequestBody, reqEditors ...RequestEditorFn) (*GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1PostResponse, error)

	// GenerateFluxToolsEraseV1V1FluxToolsEraseV1PostWithBodyWithResponse Erase an object from an image
	//
	// Submits an erase task using an input image and a mask identifying the object or region to remove.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/flux-tools/erase-v1 (the `GenerateFluxToolsEraseV1V1FluxToolsEraseV1Post` operationId).
	GenerateFluxToolsEraseV1V1FluxToolsEraseV1PostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GenerateFluxToolsEraseV1V1FluxToolsEraseV1PostResponse, error)

	// GenerateFluxToolsEraseV1V1FluxToolsEraseV1PostWithResponse Erase an object from an image
	//
	// Submits an erase task using an input image and a mask identifying the object or region to remove.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/flux-tools/erase-v1 (the `GenerateFluxToolsEraseV1V1FluxToolsEraseV1Post` operationId).
	GenerateFluxToolsEraseV1V1FluxToolsEraseV1PostWithResponse(ctx context.Context, body GenerateFluxToolsEraseV1V1FluxToolsEraseV1PostJSONRequestBody, reqEditors ...RequestEditorFn) (*GenerateFluxToolsEraseV1V1FluxToolsEraseV1PostResponse, error)

	// GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1PostWithBodyWithResponse Outpaint or extend an image
	//
	// Submits an outpainting task. The input image is placed on a (width, height) canvas at the given offset, and the surrounding region is generated by a FLUX outpainting model.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/flux-tools/outpainting-v1 (the `GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1Post` operationId).
	GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1PostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1PostResponse, error)

	// GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1PostWithResponse Outpaint or extend an image
	//
	// Submits an outpainting task. The input image is placed on a (width, height) canvas at the given offset, and the surrounding region is generated by a FLUX outpainting model.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/flux-tools/outpainting-v1 (the `GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1Post` operationId).
	GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1PostWithResponse(ctx context.Context, body GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1PostJSONRequestBody, reqEditors ...RequestEditorFn) (*GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1PostResponse, error)

	// GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1PostWithBodyWithResponse Edit a video with FLUX 3.
	//
	// Submits a video edit task: the supplied clip is transformed according to the edit instruction. Duration, resolution, aspect ratio, and audio follow the source clip; inference controls are pinned server-side.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/flux-tools/video-edit-v1 (the `GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1Post` operationId).
	GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1PostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1PostResponse, error)

	// GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1PostWithResponse Edit a video with FLUX 3.
	//
	// Submits a video edit task: the supplied clip is transformed according to the edit instruction. Duration, resolution, aspect ratio, and audio follow the source clip; inference controls are pinned server-side.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/flux-tools/video-edit-v1 (the `GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1Post` operationId).
	GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1PostWithResponse(ctx context.Context, body GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1PostJSONRequestBody, reqEditors ...RequestEditorFn) (*GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1PostResponse, error)

	// GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1PostWithBodyWithResponse Upscale a video with FLUX 3.
	//
	// Submits a video upscaling task: 1.5x-3x super-resolution of the source clip (up to 2560x1440 in, 13.75 MP output frames). The upscale covers the first 20 seconds of the source; clips well past that are rejected. `creativity` selects precise source-faithful upscaling (0) or creative detail enhancement (1).
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/flux-tools/video-upscale-v1 (the `GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1Post` operationId).
	GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1PostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1PostResponse, error)

	// GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1PostWithResponse Upscale a video with FLUX 3.
	//
	// Submits a video upscaling task: 1.5x-3x super-resolution of the source clip (up to 2560x1440 in, 13.75 MP output frames). The upscale covers the first 20 seconds of the source; clips well past that are rejected. `creativity` selects precise source-faithful upscaling (0) or creative detail enhancement (1).
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/flux-tools/video-upscale-v1 (the `GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1Post` operationId).
	GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1PostWithResponse(ctx context.Context, body GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1PostJSONRequestBody, reqEditors ...RequestEditorFn) (*GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1PostResponse, error)

	// GenerateFluxToolsVtoV1V1FluxToolsVtoV1PostWithBodyWithResponse Virtual try-on
	//
	// Submits a virtual try-on task. Person and garment images are mapped to the underlying input image slots; prompts steer attribute transfer.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/flux-tools/vto-v1 (the `GenerateFluxToolsVtoV1V1FluxToolsVtoV1Post` operationId).
	GenerateFluxToolsVtoV1V1FluxToolsVtoV1PostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GenerateFluxToolsVtoV1V1FluxToolsVtoV1PostResponse, error)

	// GenerateFluxToolsVtoV1V1FluxToolsVtoV1PostWithResponse Virtual try-on
	//
	// Submits a virtual try-on task. Person and garment images are mapped to the underlying input image slots; prompts steer attribute transfer.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/flux-tools/vto-v1 (the `GenerateFluxToolsVtoV1V1FluxToolsVtoV1Post` operationId).
	GenerateFluxToolsVtoV1V1FluxToolsVtoV1PostWithResponse(ctx context.Context, body GenerateFluxToolsVtoV1V1FluxToolsVtoV1PostJSONRequestBody, reqEditors ...RequestEditorFn) (*GenerateFluxToolsVtoV1V1FluxToolsVtoV1PostResponse, error)

	// GenerateFluxToolsVtoV2V1FluxToolsVtoV2PostWithBodyWithResponse Virtual try-on (v2)
	//
	// Submits a virtual try-on task against the v2 model. Identical request shape to /vto-v1, with reference and output resolution supported up to 4MP. Person and garment images are mapped to the underlying input image slots. An edit instruction is generated from the person and garment images, with the supplied prompt used as a fallback.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/flux-tools/vto-v2 (the `GenerateFluxToolsVtoV2V1FluxToolsVtoV2Post` operationId).
	GenerateFluxToolsVtoV2V1FluxToolsVtoV2PostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GenerateFluxToolsVtoV2V1FluxToolsVtoV2PostResponse, error)

	// GenerateFluxToolsVtoV2V1FluxToolsVtoV2PostWithResponse Virtual try-on (v2)
	//
	// Submits a virtual try-on task against the v2 model. Identical request shape to /vto-v1, with reference and output resolution supported up to 4MP. Person and garment images are mapped to the underlying input image slots. An edit instruction is generated from the person and garment images, with the supplied prompt used as a fallback.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/flux-tools/vto-v2 (the `GenerateFluxToolsVtoV2V1FluxToolsVtoV2Post` operationId).
	GenerateFluxToolsVtoV2V1FluxToolsVtoV2PostWithResponse(ctx context.Context, body GenerateFluxToolsVtoV2V1FluxToolsVtoV2PostJSONRequestBody, reqEditors ...RequestEditorFn) (*GenerateFluxToolsVtoV2V1FluxToolsVtoV2PostResponse, error)

	// GetResultV1GetResultGetWithResponse Get Result
	//
	// An endpoint for getting generation task result.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/get_result (the `GetResultV1GetResultGet` operationId).
	GetResultV1GetResultGetWithResponse(ctx context.Context, params *GetResultV1GetResultGetParams, reqEditors ...RequestEditorFn) (*GetResultV1GetResultGetResponse, error)

	// MyFinetunesV1MyFinetunesGetWithResponse My Finetunes
	//
	// List all finetune_ids created by the user.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/my_finetunes (the `MyFinetunesV1MyFinetunesGet` operationId).
	MyFinetunesV1MyFinetunesGetWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*MyFinetunesV1MyFinetunesGetResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type CreditsResponse

type CreditsResponse struct {
	// Credits User's current credit balance
	Credits float64 `json:"credits"`
}

CreditsResponse defines model for CreditsResponse.

type DeleteFinetuneInputs

type DeleteFinetuneInputs struct {
	// FinetuneId Name of the LoRA to delete.
	//
	// Example: my-finetune
	FinetuneId string `json:"finetune_id"`
}

DeleteFinetuneInputs defines model for DeleteFinetuneInputs.

type DeleteFinetuneResponse

type DeleteFinetuneResponse struct {
	// DeletedFinetuneId ID of the deleted finetune
	DeletedFinetuneId string `json:"deleted_finetune_id"`

	// Message Message about the deletion
	Message string `json:"message"`

	// Status Status of the deletion
	Status string `json:"status"`

	// Timestamp Timestamp of the deletion
	Timestamp string `json:"timestamp"`
}

DeleteFinetuneResponse defines model for DeleteFinetuneResponse.

type DeleteFinetuneV1DeleteFinetunePostJSONRequestBody

type DeleteFinetuneV1DeleteFinetunePostJSONRequestBody = DeleteFinetuneInputs

DeleteFinetuneV1DeleteFinetunePostJSONRequestBody defines body for DeleteFinetuneV1DeleteFinetunePost for application/json ContentType.

type DeleteFinetuneV1DeleteFinetunePostResponse

type DeleteFinetuneV1DeleteFinetunePostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *DeleteFinetuneResponse
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseDeleteFinetuneV1DeleteFinetunePostResponse

func ParseDeleteFinetuneV1DeleteFinetunePostResponse(rsp *http.Response) (*DeleteFinetuneV1DeleteFinetunePostResponse, error)

ParseDeleteFinetuneV1DeleteFinetunePostResponse parses an HTTP response from a DeleteFinetuneV1DeleteFinetunePostWithResponse call

func (DeleteFinetuneV1DeleteFinetunePostResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteFinetuneV1DeleteFinetunePostResponse) GetBody

GetBody returns the raw response body bytes

func (DeleteFinetuneV1DeleteFinetunePostResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (DeleteFinetuneV1DeleteFinetunePostResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (DeleteFinetuneV1DeleteFinetunePostResponse) Status

Status returns HTTPResponse.Status

func (DeleteFinetuneV1DeleteFinetunePostResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ExpandV1FluxPro10ExpandPost200JSONResponseBody

type ExpandV1FluxPro10ExpandPost200JSONResponseBody struct {
	// contains filtered or unexported fields
}

ExpandV1FluxPro10ExpandPost200JSONResponseBody defines parameters for ExpandV1FluxPro10ExpandPost.

func (ExpandV1FluxPro10ExpandPost200JSONResponseBody) AsAsyncResponse

AsAsyncResponse returns the union data inside the ExpandV1FluxPro10ExpandPost200JSONResponseBody as a AsyncResponse

func (ExpandV1FluxPro10ExpandPost200JSONResponseBody) AsAsyncWebhookResponse

AsAsyncWebhookResponse returns the union data inside the ExpandV1FluxPro10ExpandPost200JSONResponseBody as a AsyncWebhookResponse

func (*ExpandV1FluxPro10ExpandPost200JSONResponseBody) FromAsyncResponse

FromAsyncResponse overwrites any union data inside the ExpandV1FluxPro10ExpandPost200JSONResponseBody as the provided AsyncResponse

func (*ExpandV1FluxPro10ExpandPost200JSONResponseBody) FromAsyncWebhookResponse

FromAsyncWebhookResponse overwrites any union data inside the ExpandV1FluxPro10ExpandPost200JSONResponseBody as the provided AsyncWebhookResponse

func (ExpandV1FluxPro10ExpandPost200JSONResponseBody) MarshalJSON

func (*ExpandV1FluxPro10ExpandPost200JSONResponseBody) MergeAsyncResponse

MergeAsyncResponse performs a merge with any union data inside the ExpandV1FluxPro10ExpandPost200JSONResponseBody, using the provided AsyncResponse

func (*ExpandV1FluxPro10ExpandPost200JSONResponseBody) MergeAsyncWebhookResponse

MergeAsyncWebhookResponse performs a merge with any union data inside the ExpandV1FluxPro10ExpandPost200JSONResponseBody, using the provided AsyncWebhookResponse

func (*ExpandV1FluxPro10ExpandPost200JSONResponseBody) UnmarshalJSON

type ExpandV1FluxPro10ExpandPostJSONRequestBody

type ExpandV1FluxPro10ExpandPostJSONRequestBody = FluxProExpandInputs

ExpandV1FluxPro10ExpandPostJSONRequestBody defines body for ExpandV1FluxPro10ExpandPost for application/json ContentType.

type ExpandV1FluxPro10ExpandPostResponse

type ExpandV1FluxPro10ExpandPostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *ExpandV1FluxPro10ExpandPost200JSONResponseBody
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseExpandV1FluxPro10ExpandPostResponse

func ParseExpandV1FluxPro10ExpandPostResponse(rsp *http.Response) (*ExpandV1FluxPro10ExpandPostResponse, error)

ParseExpandV1FluxPro10ExpandPostResponse parses an HTTP response from a ExpandV1FluxPro10ExpandPostWithResponse call

func (ExpandV1FluxPro10ExpandPostResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ExpandV1FluxPro10ExpandPostResponse) GetBody

GetBody returns the raw response body bytes

func (ExpandV1FluxPro10ExpandPostResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ExpandV1FluxPro10ExpandPostResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (ExpandV1FluxPro10ExpandPostResponse) Status

Status returns HTTPResponse.Status

func (ExpandV1FluxPro10ExpandPostResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type FillV1FluxPro10FillPost200JSONResponseBody

type FillV1FluxPro10FillPost200JSONResponseBody struct {
	// contains filtered or unexported fields
}

FillV1FluxPro10FillPost200JSONResponseBody defines parameters for FillV1FluxPro10FillPost.

func (FillV1FluxPro10FillPost200JSONResponseBody) AsAsyncResponse

AsAsyncResponse returns the union data inside the FillV1FluxPro10FillPost200JSONResponseBody as a AsyncResponse

func (FillV1FluxPro10FillPost200JSONResponseBody) AsAsyncWebhookResponse

AsAsyncWebhookResponse returns the union data inside the FillV1FluxPro10FillPost200JSONResponseBody as a AsyncWebhookResponse

func (*FillV1FluxPro10FillPost200JSONResponseBody) FromAsyncResponse

FromAsyncResponse overwrites any union data inside the FillV1FluxPro10FillPost200JSONResponseBody as the provided AsyncResponse

func (*FillV1FluxPro10FillPost200JSONResponseBody) FromAsyncWebhookResponse

FromAsyncWebhookResponse overwrites any union data inside the FillV1FluxPro10FillPost200JSONResponseBody as the provided AsyncWebhookResponse

func (FillV1FluxPro10FillPost200JSONResponseBody) MarshalJSON

func (*FillV1FluxPro10FillPost200JSONResponseBody) MergeAsyncResponse

MergeAsyncResponse performs a merge with any union data inside the FillV1FluxPro10FillPost200JSONResponseBody, using the provided AsyncResponse

func (*FillV1FluxPro10FillPost200JSONResponseBody) MergeAsyncWebhookResponse

MergeAsyncWebhookResponse performs a merge with any union data inside the FillV1FluxPro10FillPost200JSONResponseBody, using the provided AsyncWebhookResponse

func (*FillV1FluxPro10FillPost200JSONResponseBody) UnmarshalJSON

type FillV1FluxPro10FillPostJSONRequestBody

type FillV1FluxPro10FillPostJSONRequestBody = FluxProFillInputs

FillV1FluxPro10FillPostJSONRequestBody defines body for FillV1FluxPro10FillPost for application/json ContentType.

type FillV1FluxPro10FillPostResponse

type FillV1FluxPro10FillPostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *FillV1FluxPro10FillPost200JSONResponseBody
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseFillV1FluxPro10FillPostResponse

func ParseFillV1FluxPro10FillPostResponse(rsp *http.Response) (*FillV1FluxPro10FillPostResponse, error)

ParseFillV1FluxPro10FillPostResponse parses an HTTP response from a FillV1FluxPro10FillPostWithResponse call

func (FillV1FluxPro10FillPostResponse) ContentType

func (r FillV1FluxPro10FillPostResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (FillV1FluxPro10FillPostResponse) GetBody

func (r FillV1FluxPro10FillPostResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (FillV1FluxPro10FillPostResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (FillV1FluxPro10FillPostResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (FillV1FluxPro10FillPostResponse) Status

Status returns HTTPResponse.Status

func (FillV1FluxPro10FillPostResponse) StatusCode

func (r FillV1FluxPro10FillPostResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type FinetuneDetailResponse

type FinetuneDetailResponse struct {
	// FinetuneDetails Details about the parameters used for finetuning
	FinetuneDetails map[string]interface{} `json:"finetune_details"`
}

FinetuneDetailResponse defines model for FinetuneDetailResponse.

type FinetuneDetailsV1FinetuneDetailsGetParams

type FinetuneDetailsV1FinetuneDetailsGetParams struct {
	FinetuneId string `form:"finetune_id" json:"finetune_id"`
}

FinetuneDetailsV1FinetuneDetailsGetParams defines parameters for FinetuneDetailsV1FinetuneDetailsGet.

type FinetuneDetailsV1FinetuneDetailsGetResponse

type FinetuneDetailsV1FinetuneDetailsGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *FinetuneDetailResponse
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseFinetuneDetailsV1FinetuneDetailsGetResponse

func ParseFinetuneDetailsV1FinetuneDetailsGetResponse(rsp *http.Response) (*FinetuneDetailsV1FinetuneDetailsGetResponse, error)

ParseFinetuneDetailsV1FinetuneDetailsGetResponse parses an HTTP response from a FinetuneDetailsV1FinetuneDetailsGetWithResponse call

func (FinetuneDetailsV1FinetuneDetailsGetResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (FinetuneDetailsV1FinetuneDetailsGetResponse) GetBody

GetBody returns the raw response body bytes

func (FinetuneDetailsV1FinetuneDetailsGetResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (FinetuneDetailsV1FinetuneDetailsGetResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (FinetuneDetailsV1FinetuneDetailsGetResponse) Status

Status returns HTTPResponse.Status

func (FinetuneDetailsV1FinetuneDetailsGetResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type FinetuneFluxUltraInput

type FinetuneFluxUltraInput struct {
	// AspectRatio Aspect ratio of the image between 21:9 and 9:21
	AspectRatio *string `json:"aspect_ratio,omitempty"`

	// FinetuneId Name of the LoRA to use. For LoRAs from other organizations (public or shared), use the format 'org-id/lora-name'.
	//
	// Example: my-finetune
	FinetuneId string `json:"finetune_id"`

	// FinetuneStrength Strength of the fine-tuned model. 0.0 means no influence, 1.0 means full influence. Allowed values up to 2.0
	FinetuneStrength *float64 `json:"finetune_strength,omitempty"`

	// ImagePrompt Optional image to remix in base64 format
	ImagePrompt *string `json:"image_prompt,omitempty"`

	// ImagePromptStrength Blend between the prompt and the image prompt
	ImagePromptStrength *float64      `json:"image_prompt_strength,omitempty"`
	OutputFormat        *OutputFormat `json:"output_format,omitempty"`

	// Prompt The prompt to use for image generation.
	//
	// Example: A beautiful landscape with mountains and a lake
	Prompt *string `json:"prompt,omitempty"`

	// PromptUpsampling Whether to perform upsampling on the prompt. If active, automatically modifies the prompt for more creative generation
	PromptUpsampling *bool `json:"prompt_upsampling,omitempty"`

	// SafetyTolerance Tolerance level for input and output moderation. Between 0 and 6, 0 being most strict, 6 being least strict.
	//
	// Example: 2
	SafetyTolerance *int `json:"safety_tolerance,omitempty"`

	// Seed Optional seed for reproducibility. If not provided, a random seed will be used.
	//
	// Example: 42
	Seed *int `json:"seed,omitempty"`

	// User Opaque identifier for the end user supplied by the calling platform.
	User *string `json:"user,omitempty"`

	// WebhookSecret Optional secret for webhook signature verification
	WebhookSecret *string `json:"webhook_secret,omitempty"`

	// WebhookUrl URL to receive webhook notifications
	WebhookUrl *string `json:"webhook_url,omitempty"`
}

FinetuneFluxUltraInput defines model for FinetuneFluxUltraInput.

type Flux2DeblurInputs

type Flux2DeblurInputs struct {
	// Image Base64-encoded input image or HTTP(S) image URL.
	Image        string        `json:"image"`
	OutputFormat *OutputFormat `json:"output_format,omitempty"`

	// SafetyTolerance Harm moderation tolerance from 0 to 7, with 0 the strictest. The route and organization determine the approved maximum and per-category ceilings. Unapproved levels return 422 with approved levels.
	SafetyTolerance *int `json:"safety_tolerance,omitempty"`

	// Seed Optional seed for reproducibility.
	//
	// Example: 42
	Seed *int `json:"seed,omitempty"`

	// User Opaque identifier for the end user supplied by the calling platform.
	User *string `json:"user,omitempty"`

	// WebhookSecret Optional secret for webhook signature verification
	WebhookSecret *string `json:"webhook_secret,omitempty"`

	// WebhookUrl URL to receive webhook notifications
	WebhookUrl *string `json:"webhook_url,omitempty"`
}

Flux2DeblurInputs Input model for public FLUX.2 deblur.

Deblur takes only an image (no mask, no prompt): the whole image is regenerated by a fixed Klein 9B KV BF16 blur-removal LoRA with a fixed prompt, so the caller controls nothing but the input image.

type Flux2EraseInputs

type Flux2EraseInputs struct {
	// DilatePixels Number of pixels to dilate the mask by before removal. Dilation helps cover object edges. Maximum is 25 pixels.
	DilatePixels *int `json:"dilate_pixels,omitempty"`

	// Image Base64-encoded input image or HTTP(S) image URL.
	Image string `json:"image"`

	// Mask Base64-encoded black/white mask or HTTP(S) image URL. White pixels indicate the object to remove; black pixels are preserved. Must have the same dimensions as the input image.
	Mask         string        `json:"mask"`
	OutputFormat *OutputFormat `json:"output_format,omitempty"`

	// SafetyTolerance Harm moderation tolerance from 0 to 7, with 0 the strictest. The route and organization determine the approved maximum and per-category ceilings. Unapproved levels return 422 with approved levels.
	SafetyTolerance *int `json:"safety_tolerance,omitempty"`

	// Seed Optional seed for reproducibility.
	//
	// Example: 42
	Seed *int `json:"seed,omitempty"`

	// User Opaque identifier for the end user supplied by the calling platform.
	User *string `json:"user,omitempty"`

	// WebhookSecret Optional secret for webhook signature verification
	WebhookSecret *string `json:"webhook_secret,omitempty"`

	// WebhookUrl URL to receive webhook notifications
	WebhookUrl *string `json:"webhook_url,omitempty"`
}

Flux2EraseInputs Input model for public FLUX.2 erase.

type Flux2FlexInputs

type Flux2FlexInputs struct {
	// Guidance Guidance scale for image generation. High guidance scales improve prompt adherence at the cost of reduced realism.
	//
	// Example: 5
	Guidance *float64 `json:"guidance,omitempty"`

	// Height Height of the image
	Height *int `json:"height,omitempty"`

	// InputImage Path to the input image.
	InputImage *string `json:"input_image,omitempty"`

	// InputImage2 Path to the second input image.
	InputImage2 *string `json:"input_image_2,omitempty"`

	// InputImage3 Path to the third input image.
	InputImage3 *string `json:"input_image_3,omitempty"`

	// InputImage4 Path to the fourth input image.
	InputImage4 *string `json:"input_image_4,omitempty"`

	// InputImage5 Path to the fifth input image.
	InputImage5 *string `json:"input_image_5,omitempty"`

	// InputImage6 Path to the sixth input image.
	InputImage6 *string `json:"input_image_6,omitempty"`

	// InputImage7 Path to the seventh input image.
	InputImage7 *string `json:"input_image_7,omitempty"`

	// InputImage8 Path to the eighth input image.
	InputImage8 *string `json:"input_image_8,omitempty"`

	// InputImageBlobPath Blob path to the input image.
	InputImageBlobPath *string       `json:"input_image_blob_path,omitempty"`
	OutputFormat       *OutputFormat `json:"output_format,omitempty"`

	// Prompt Text prompt for image generation.
	//
	// Example: ein fantastisches bild
	Prompt string `json:"prompt"`

	// PromptUpsampling Whether to use prompt upsampling.
	PromptUpsampling *bool `json:"prompt_upsampling,omitempty"`

	// SafetyTolerance Harm moderation tolerance from 0 to 7, with 0 the strictest. The route and organization determine the approved maximum and per-category ceilings. Unapproved levels return 422 with approved levels.
	SafetyTolerance *int `json:"safety_tolerance,omitempty"`

	// Seed Optional seed for reproducibility.
	//
	// Example: 42
	Seed *int `json:"seed,omitempty"`

	// Steps Number of steps for image generation. Higher steps lead to more detailed and realistic images.
	//
	// Example: 50
	Steps *int `json:"steps,omitempty"`

	// User Opaque identifier for the end user supplied by the calling platform.
	User *string `json:"user,omitempty"`

	// WebhookSecret Optional secret for webhook signature verification
	WebhookSecret *string `json:"webhook_secret,omitempty"`

	// WebhookUrl URL to receive webhook notifications
	WebhookUrl *string `json:"webhook_url,omitempty"`

	// Width Width of the image
	Width *int `json:"width,omitempty"`
}

Flux2FlexInputs defines model for Flux2FlexInputs.

type Flux2Inputs

type Flux2Inputs struct {
	// DisablePup Disable automatic prompt upsampling for this request. FLUX.2 [pro] and [max] apply prompt upsampling by default; set this to true to generate from your prompt exactly as written.
	DisablePup *bool `json:"disable_pup,omitempty"`

	// Height Height of the image
	Height *int `json:"height,omitempty"`

	// InputImage Path to the input image.
	InputImage *string `json:"input_image,omitempty"`

	// InputImage2 Path to the second input image.
	InputImage2 *string `json:"input_image_2,omitempty"`

	// InputImage3 Path to the third input image.
	InputImage3 *string `json:"input_image_3,omitempty"`

	// InputImage4 Path to the fourth input image.
	InputImage4 *string `json:"input_image_4,omitempty"`

	// InputImage5 Path to the fifth input image.
	InputImage5 *string `json:"input_image_5,omitempty"`

	// InputImage6 Path to the sixth input image.
	InputImage6 *string `json:"input_image_6,omitempty"`

	// InputImage7 Path to the seventh input image.
	InputImage7 *string `json:"input_image_7,omitempty"`

	// InputImage8 Path to the eighth input image.
	InputImage8  *string       `json:"input_image_8,omitempty"`
	OutputFormat *OutputFormat `json:"output_format,omitempty"`

	// Prompt Text prompt for image generation.
	//
	// Example: ein fantastisches bild
	Prompt string `json:"prompt"`

	// SafetyTolerance Harm moderation tolerance from 0 to 7, with 0 the strictest. The route and organization determine the approved maximum and per-category ceilings. Unapproved levels return 422 with approved levels.
	SafetyTolerance *int `json:"safety_tolerance,omitempty"`

	// Seed Optional seed for reproducibility.
	//
	// Example: 42
	Seed *int `json:"seed,omitempty"`

	// User Opaque identifier for the end user supplied by the calling platform.
	User *string `json:"user,omitempty"`

	// WebhookSecret Optional secret for webhook signature verification
	WebhookSecret *string `json:"webhook_secret,omitempty"`

	// WebhookUrl URL to receive webhook notifications
	WebhookUrl *string `json:"webhook_url,omitempty"`

	// Width Width of the image
	Width *int `json:"width,omitempty"`
}

Flux2Inputs defines model for Flux2Inputs.

type Flux2KleinInputs

type Flux2KleinInputs struct {
	// Height Height of the image
	Height *int `json:"height,omitempty"`

	// InputImage Path to the input image.
	InputImage *string `json:"input_image,omitempty"`

	// InputImage2 Path to the second input image.
	InputImage2 *string `json:"input_image_2,omitempty"`

	// InputImage3 Path to the third input image.
	InputImage3 *string `json:"input_image_3,omitempty"`

	// InputImage4 Path to the fourth input image.
	InputImage4  *string       `json:"input_image_4,omitempty"`
	OutputFormat *OutputFormat `json:"output_format,omitempty"`

	// Prompt Text prompt for image generation.
	//
	// Example: ein fantastisches bild
	Prompt string `json:"prompt"`

	// SafetyTolerance Harm moderation tolerance from 0 to 7, with 0 the strictest. The route and organization determine the approved maximum and per-category ceilings. Unapproved levels return 422 with approved levels.
	SafetyTolerance *int `json:"safety_tolerance,omitempty"`

	// Seed Optional seed for reproducibility.
	//
	// Example: 42
	Seed *int `json:"seed,omitempty"`

	// User Opaque identifier for the end user supplied by the calling platform.
	User *string `json:"user,omitempty"`

	// WebhookSecret Optional secret for webhook signature verification
	WebhookSecret *string `json:"webhook_secret,omitempty"`

	// WebhookUrl URL to receive webhook notifications
	WebhookUrl *string `json:"webhook_url,omitempty"`

	// Width Width of the image
	Width *int `json:"width,omitempty"`
}

Flux2KleinInputs Input model for FLUX.2 Klein (non-base) - like Pro but max 4 images.

type Flux2KleinTryonInputs

type Flux2KleinTryonInputs struct {
	// Garment Image of one more garments (maps internally to input_image_2).
	Garment      string        `json:"garment"`
	OutputFormat *OutputFormat `json:"output_format,omitempty"`

	// Person Person image (maps internally to input_image).
	Person string `json:"person"`

	// Prompt Text prompt for VTO generation.
	//
	// Example: TRY-ON: The person of image 1 wearing the garments of image 2.
	Prompt string `json:"prompt"`

	// SafetyTolerance Harm moderation tolerance from 0 to 7, with 0 the strictest. The route and organization determine the approved maximum and per-category ceilings. Unapproved levels return 422 with approved levels.
	SafetyTolerance *int `json:"safety_tolerance,omitempty"`

	// Seed Optional seed for reproducibility.
	//
	// Example: 42
	Seed *int `json:"seed,omitempty"`

	// User Opaque identifier for the end user supplied by the calling platform.
	User *string `json:"user,omitempty"`

	// WebhookSecret Optional secret for webhook signature verification
	WebhookSecret *string `json:"webhook_secret,omitempty"`

	// WebhookUrl URL to receive webhook notifications
	WebhookUrl *string `json:"webhook_url,omitempty"`
}

Flux2KleinTryonInputs Input model for FLUX.2 Klein VTO endpoint.

Exposes only person/garment image fields for cleaner API ergonomics.

type Flux3ImageInputs

type Flux3ImageInputs struct {
	// AspectRatio Output aspect ratio. Under `auto` a ratio the prompt asks for wins, otherwise the output keeps the first reference image's framing; without references the prompt decides, else 1:1.
	AspectRatio *Flux3ImageInputs_AspectRatio `json:"aspect_ratio,omitempty"`

	// Grounding When true (default) the prompt may be grounded in external research: web search and image search. When false, both are off.
	Grounding *bool `json:"grounding,omitempty"`

	// Height Exact output height in pixels, [256, 6256]; width x height at most 16822272 pixels, and at most 4194304 with reference images.
	Height *int `json:"height,omitempty"`

	// Images Optional reference image(s) the prompt edits or draws from; each is an http(s) URL or base64, one to 10 total.
	Images *Flux3ImageInputs_Images `json:"images,omitempty"`

	// Prompt Free-form prompt describing the image.
	Prompt string `json:"prompt"`

	// Resolution Image resolution class, an equal-pixel-area tier: `768sq`, `1k` (default), `1.5k`, `2k`, or `4k`. Exact dimensions vary with the aspect ratio. `match_input` (edits only): the output keeps the first reference's own size (shrunk to 4 MP when larger), or its nearest tier when aspect_ratio is set. Ignored when width and height are set.
	Resolution *Flux3ImageInputsResolution `json:"resolution,omitempty"`

	// SafetyTolerance Harm moderation tolerance from 0 to 7, with 0 the strictest. The route and organization determine the approved maximum and per-category ceilings. Unapproved levels return 422 with approved levels.
	SafetyTolerance *int `json:"safety_tolerance,omitempty"`

	// User Opaque identifier for the end user supplied by the calling platform.
	User *string `json:"user,omitempty"`

	// Version Endpoint version. `latest` (default) serves the current release; dated pinnable release tags are added here as they are published.
	Version *Flux3ImageInputsVersion `json:"version,omitempty"`

	// Width Exact output width in pixels, [256, 6256]; set together with height. Overrides resolution and aspect_ratio.
	Width *int `json:"width,omitempty"`
}

Flux3ImageInputs defines model for Flux3ImageInputs.

type Flux3ImageInputsAspectRatio0

type Flux3ImageInputsAspectRatio0 string

Flux3ImageInputsAspectRatio0 defines model for Flux3ImageInputs.AspectRatio.0.

const (
	Flux3ImageInputsAspectRatio0N11  Flux3ImageInputsAspectRatio0 = "1:1"
	Flux3ImageInputsAspectRatio0N12  Flux3ImageInputsAspectRatio0 = "1:2"
	Flux3ImageInputsAspectRatio0N169 Flux3ImageInputsAspectRatio0 = "16:9"
	Flux3ImageInputsAspectRatio0N21  Flux3ImageInputsAspectRatio0 = "2:1"
	Flux3ImageInputsAspectRatio0N219 Flux3ImageInputsAspectRatio0 = "21:9"
	Flux3ImageInputsAspectRatio0N23  Flux3ImageInputsAspectRatio0 = "2:3"
	Flux3ImageInputsAspectRatio0N32  Flux3ImageInputsAspectRatio0 = "3:2"
	Flux3ImageInputsAspectRatio0N34  Flux3ImageInputsAspectRatio0 = "3:4"
	Flux3ImageInputsAspectRatio0N43  Flux3ImageInputsAspectRatio0 = "4:3"
	Flux3ImageInputsAspectRatio0N45  Flux3ImageInputsAspectRatio0 = "4:5"
	Flux3ImageInputsAspectRatio0N54  Flux3ImageInputsAspectRatio0 = "5:4"
	Flux3ImageInputsAspectRatio0N57  Flux3ImageInputsAspectRatio0 = "5:7"
	Flux3ImageInputsAspectRatio0N75  Flux3ImageInputsAspectRatio0 = "7:5"
	Flux3ImageInputsAspectRatio0N916 Flux3ImageInputsAspectRatio0 = "9:16"
	Flux3ImageInputsAspectRatio0N921 Flux3ImageInputsAspectRatio0 = "9:21"
)

Defines values for Flux3ImageInputsAspectRatio0.

func (Flux3ImageInputsAspectRatio0) Valid

Valid indicates whether the value is a known member of the Flux3ImageInputsAspectRatio0 enum.

type Flux3ImageInputsAspectRatio1

type Flux3ImageInputsAspectRatio1 string

Flux3ImageInputsAspectRatio1 defines model for Flux3ImageInputs.AspectRatio.1.

const (
	Flux3ImageInputsAspectRatio1Auto Flux3ImageInputsAspectRatio1 = "auto"
)

Defines values for Flux3ImageInputsAspectRatio1.

func (Flux3ImageInputsAspectRatio1) Valid

Valid indicates whether the value is a known member of the Flux3ImageInputsAspectRatio1 enum.

type Flux3ImageInputsImages0

type Flux3ImageInputsImages0 = string

Flux3ImageInputsImages0 defines model for Flux3ImageInputs.Images.0.

type Flux3ImageInputsImages1

type Flux3ImageInputsImages1 = []string

Flux3ImageInputsImages1 defines model for Flux3ImageInputs.Images.1.

type Flux3ImageInputsResolution

type Flux3ImageInputsResolution string

Flux3ImageInputsResolution Image resolution class, an equal-pixel-area tier: `768sq`, `1k` (default), `1.5k`, `2k`, or `4k`. Exact dimensions vary with the aspect ratio. `match_input` (edits only): the output keeps the first reference's own size (shrunk to 4 MP when larger), or its nearest tier when aspect_ratio is set. Ignored when width and height are set.

const (
	Flux3ImageInputsResolutionMatchInput Flux3ImageInputsResolution = "match_input"
	Flux3ImageInputsResolutionN15k       Flux3ImageInputsResolution = "1.5k"
	Flux3ImageInputsResolutionN1k        Flux3ImageInputsResolution = "1k"
	Flux3ImageInputsResolutionN2k        Flux3ImageInputsResolution = "2k"
	Flux3ImageInputsResolutionN4k        Flux3ImageInputsResolution = "4k"
	Flux3ImageInputsResolutionN768sq     Flux3ImageInputsResolution = "768sq"
)

Defines values for Flux3ImageInputsResolution.

func (Flux3ImageInputsResolution) Valid

func (e Flux3ImageInputsResolution) Valid() bool

Valid indicates whether the value is a known member of the Flux3ImageInputsResolution enum.

type Flux3ImageInputsVersion

type Flux3ImageInputsVersion string

Flux3ImageInputsVersion Endpoint version. `latest` (default) serves the current release; dated pinnable release tags are added here as they are published.

const (
	Flux3ImageInputsVersionLatest Flux3ImageInputsVersion = "latest"
)

Defines values for Flux3ImageInputsVersion.

func (Flux3ImageInputsVersion) Valid

func (e Flux3ImageInputsVersion) Valid() bool

Valid indicates whether the value is a known member of the Flux3ImageInputsVersion enum.

type Flux3ImageInputs_AspectRatio

type Flux3ImageInputs_AspectRatio struct {
	// contains filtered or unexported fields
}

Flux3ImageInputs_AspectRatio Output aspect ratio. Under `auto` a ratio the prompt asks for wins, otherwise the output keeps the first reference image's framing; without references the prompt decides, else 1:1.

func (Flux3ImageInputs_AspectRatio) AsFlux3ImageInputsAspectRatio0

func (t Flux3ImageInputs_AspectRatio) AsFlux3ImageInputsAspectRatio0() (Flux3ImageInputsAspectRatio0, error)

AsFlux3ImageInputsAspectRatio0 returns the union data inside the Flux3ImageInputs_AspectRatio as a Flux3ImageInputsAspectRatio0

func (Flux3ImageInputs_AspectRatio) AsFlux3ImageInputsAspectRatio1

func (t Flux3ImageInputs_AspectRatio) AsFlux3ImageInputsAspectRatio1() (Flux3ImageInputsAspectRatio1, error)

AsFlux3ImageInputsAspectRatio1 returns the union data inside the Flux3ImageInputs_AspectRatio as a Flux3ImageInputsAspectRatio1

func (*Flux3ImageInputs_AspectRatio) FromFlux3ImageInputsAspectRatio0

func (t *Flux3ImageInputs_AspectRatio) FromFlux3ImageInputsAspectRatio0(v Flux3ImageInputsAspectRatio0) error

FromFlux3ImageInputsAspectRatio0 overwrites any union data inside the Flux3ImageInputs_AspectRatio as the provided Flux3ImageInputsAspectRatio0

func (*Flux3ImageInputs_AspectRatio) FromFlux3ImageInputsAspectRatio1

func (t *Flux3ImageInputs_AspectRatio) FromFlux3ImageInputsAspectRatio1(v Flux3ImageInputsAspectRatio1) error

FromFlux3ImageInputsAspectRatio1 overwrites any union data inside the Flux3ImageInputs_AspectRatio as the provided Flux3ImageInputsAspectRatio1

func (Flux3ImageInputs_AspectRatio) MarshalJSON

func (t Flux3ImageInputs_AspectRatio) MarshalJSON() ([]byte, error)

func (*Flux3ImageInputs_AspectRatio) MergeFlux3ImageInputsAspectRatio0

func (t *Flux3ImageInputs_AspectRatio) MergeFlux3ImageInputsAspectRatio0(v Flux3ImageInputsAspectRatio0) error

MergeFlux3ImageInputsAspectRatio0 performs a merge with any union data inside the Flux3ImageInputs_AspectRatio, using the provided Flux3ImageInputsAspectRatio0

func (*Flux3ImageInputs_AspectRatio) MergeFlux3ImageInputsAspectRatio1

func (t *Flux3ImageInputs_AspectRatio) MergeFlux3ImageInputsAspectRatio1(v Flux3ImageInputsAspectRatio1) error

MergeFlux3ImageInputsAspectRatio1 performs a merge with any union data inside the Flux3ImageInputs_AspectRatio, using the provided Flux3ImageInputsAspectRatio1

func (*Flux3ImageInputs_AspectRatio) UnmarshalJSON

func (t *Flux3ImageInputs_AspectRatio) UnmarshalJSON(b []byte) error

type Flux3ImageInputs_Images

type Flux3ImageInputs_Images struct {
	// contains filtered or unexported fields
}

Flux3ImageInputs_Images Optional reference image(s) the prompt edits or draws from; each is an http(s) URL or base64, one to 10 total.

func (Flux3ImageInputs_Images) AsFlux3ImageInputsImages0

func (t Flux3ImageInputs_Images) AsFlux3ImageInputsImages0() (Flux3ImageInputsImages0, error)

AsFlux3ImageInputsImages0 returns the union data inside the Flux3ImageInputs_Images as a Flux3ImageInputsImages0

func (Flux3ImageInputs_Images) AsFlux3ImageInputsImages1

func (t Flux3ImageInputs_Images) AsFlux3ImageInputsImages1() (Flux3ImageInputsImages1, error)

AsFlux3ImageInputsImages1 returns the union data inside the Flux3ImageInputs_Images as a Flux3ImageInputsImages1

func (*Flux3ImageInputs_Images) FromFlux3ImageInputsImages0

func (t *Flux3ImageInputs_Images) FromFlux3ImageInputsImages0(v Flux3ImageInputsImages0) error

FromFlux3ImageInputsImages0 overwrites any union data inside the Flux3ImageInputs_Images as the provided Flux3ImageInputsImages0

func (*Flux3ImageInputs_Images) FromFlux3ImageInputsImages1

func (t *Flux3ImageInputs_Images) FromFlux3ImageInputsImages1(v Flux3ImageInputsImages1) error

FromFlux3ImageInputsImages1 overwrites any union data inside the Flux3ImageInputs_Images as the provided Flux3ImageInputsImages1

func (Flux3ImageInputs_Images) MarshalJSON

func (t Flux3ImageInputs_Images) MarshalJSON() ([]byte, error)

func (*Flux3ImageInputs_Images) MergeFlux3ImageInputsImages0

func (t *Flux3ImageInputs_Images) MergeFlux3ImageInputsImages0(v Flux3ImageInputsImages0) error

MergeFlux3ImageInputsImages0 performs a merge with any union data inside the Flux3ImageInputs_Images, using the provided Flux3ImageInputsImages0

func (*Flux3ImageInputs_Images) MergeFlux3ImageInputsImages1

func (t *Flux3ImageInputs_Images) MergeFlux3ImageInputsImages1(v Flux3ImageInputsImages1) error

MergeFlux3ImageInputsImages1 performs a merge with any union data inside the Flux3ImageInputs_Images, using the provided Flux3ImageInputsImages1

func (*Flux3ImageInputs_Images) UnmarshalJSON

func (t *Flux3ImageInputs_Images) UnmarshalJSON(b []byte) error

type Flux3ImageKleinInputs

type Flux3ImageKleinInputs struct {
	// AspectRatio Output aspect ratio, as in flux-3-image. `auto` (default): for edits, the first reference's exact aspect; for text-to-image, a ratio picked from the prompt (prompt rewrite, else ratio keywords, else 16:9) at the requested tier. Ignored when width and height are set.
	AspectRatio *Flux3ImageKleinInputs_AspectRatio `json:"aspect_ratio,omitempty"`

	// Height Exact output height in pixels, [64, 6256]; width x height at most 16822272 pixels (16.8 MP, the largest 4k bin).
	Height *int `json:"height,omitempty"`

	// Images Optional reference image(s), each an http(s) URL or base64, one to 10 total. The first is the image being edited and sets the default output size.
	Images *Flux3ImageKleinInputs_Images `json:"images,omitempty"`

	// OutputFormat Output image format: `jpeg` (default) or `png`.
	OutputFormat *Flux3ImageKleinInputsOutputFormat `json:"output_format,omitempty"`

	// Prompt Free-form prompt describing the image.
	Prompt string `json:"prompt"`

	// Resolution Equal-area size tier, as in flux-3-image: `768sq`, `1k`, `1.5k`, `2k` or `4k`. Omitted: `1k` for text-to-image; for edits the first reference's own size, or its nearest tier when aspect_ratio is set. Ignored when width and height are set.
	Resolution *Flux3ImageKleinInputsResolution `json:"resolution,omitempty"`

	// SafetyTolerance Harm moderation tolerance from 0 to 7, with 0 the strictest. The route and organization determine the approved maximum and per-category ceilings. Unapproved levels return 422 with approved levels.
	SafetyTolerance *int `json:"safety_tolerance,omitempty"`

	// Seed Seed for reproducibility; random when omitted.
	Seed *int `json:"seed,omitempty"`

	// Steps Denoising steps (default 16).
	Steps *int `json:"steps,omitempty"`

	// User Opaque identifier for the end user supplied by the calling platform.
	User *string `json:"user,omitempty"`

	// Width Exact output width in pixels, [64, 6256]; set together with height. Overrides resolution and aspect_ratio.
	Width *int `json:"width,omitempty"`
}

Flux3ImageKleinInputs FLUX 3 Image Klein: text-to-image, or editing with up to 10 reference images.

type Flux3ImageKleinInputsAspectRatio0

type Flux3ImageKleinInputsAspectRatio0 string

Flux3ImageKleinInputsAspectRatio0 defines model for Flux3ImageKleinInputs.AspectRatio.0.

const (
	Flux3ImageKleinInputsAspectRatio0N11  Flux3ImageKleinInputsAspectRatio0 = "1:1"
	Flux3ImageKleinInputsAspectRatio0N12  Flux3ImageKleinInputsAspectRatio0 = "1:2"
	Flux3ImageKleinInputsAspectRatio0N169 Flux3ImageKleinInputsAspectRatio0 = "16:9"
	Flux3ImageKleinInputsAspectRatio0N21  Flux3ImageKleinInputsAspectRatio0 = "2:1"
	Flux3ImageKleinInputsAspectRatio0N219 Flux3ImageKleinInputsAspectRatio0 = "21:9"
	Flux3ImageKleinInputsAspectRatio0N23  Flux3ImageKleinInputsAspectRatio0 = "2:3"
	Flux3ImageKleinInputsAspectRatio0N32  Flux3ImageKleinInputsAspectRatio0 = "3:2"
	Flux3ImageKleinInputsAspectRatio0N34  Flux3ImageKleinInputsAspectRatio0 = "3:4"
	Flux3ImageKleinInputsAspectRatio0N43  Flux3ImageKleinInputsAspectRatio0 = "4:3"
	Flux3ImageKleinInputsAspectRatio0N45  Flux3ImageKleinInputsAspectRatio0 = "4:5"
	Flux3ImageKleinInputsAspectRatio0N54  Flux3ImageKleinInputsAspectRatio0 = "5:4"
	Flux3ImageKleinInputsAspectRatio0N57  Flux3ImageKleinInputsAspectRatio0 = "5:7"
	Flux3ImageKleinInputsAspectRatio0N75  Flux3ImageKleinInputsAspectRatio0 = "7:5"
	Flux3ImageKleinInputsAspectRatio0N916 Flux3ImageKleinInputsAspectRatio0 = "9:16"
	Flux3ImageKleinInputsAspectRatio0N921 Flux3ImageKleinInputsAspectRatio0 = "9:21"
)

Defines values for Flux3ImageKleinInputsAspectRatio0.

func (Flux3ImageKleinInputsAspectRatio0) Valid

Valid indicates whether the value is a known member of the Flux3ImageKleinInputsAspectRatio0 enum.

type Flux3ImageKleinInputsAspectRatio1

type Flux3ImageKleinInputsAspectRatio1 string

Flux3ImageKleinInputsAspectRatio1 defines model for Flux3ImageKleinInputs.AspectRatio.1.

const (
	Flux3ImageKleinInputsAspectRatio1Auto Flux3ImageKleinInputsAspectRatio1 = "auto"
)

Defines values for Flux3ImageKleinInputsAspectRatio1.

func (Flux3ImageKleinInputsAspectRatio1) Valid

Valid indicates whether the value is a known member of the Flux3ImageKleinInputsAspectRatio1 enum.

type Flux3ImageKleinInputsImages0

type Flux3ImageKleinInputsImages0 = string

Flux3ImageKleinInputsImages0 defines model for Flux3ImageKleinInputs.Images.0.

type Flux3ImageKleinInputsImages1

type Flux3ImageKleinInputsImages1 = []string

Flux3ImageKleinInputsImages1 defines model for Flux3ImageKleinInputs.Images.1.

type Flux3ImageKleinInputsOutputFormat

type Flux3ImageKleinInputsOutputFormat string

Flux3ImageKleinInputsOutputFormat Output image format: `jpeg` (default) or `png`.

const (
	Flux3ImageKleinInputsOutputFormatJpeg Flux3ImageKleinInputsOutputFormat = "jpeg"
	Flux3ImageKleinInputsOutputFormatPng  Flux3ImageKleinInputsOutputFormat = "png"
)

Defines values for Flux3ImageKleinInputsOutputFormat.

func (Flux3ImageKleinInputsOutputFormat) Valid

Valid indicates whether the value is a known member of the Flux3ImageKleinInputsOutputFormat enum.

type Flux3ImageKleinInputsResolution

type Flux3ImageKleinInputsResolution string

Flux3ImageKleinInputsResolution Equal-area size tier, as in flux-3-image: `768sq`, `1k`, `1.5k`, `2k` or `4k`. Omitted: `1k` for text-to-image; for edits the first reference's own size, or its nearest tier when aspect_ratio is set. Ignored when width and height are set.

const (
	Flux3ImageKleinInputsResolutionN15k   Flux3ImageKleinInputsResolution = "1.5k"
	Flux3ImageKleinInputsResolutionN1k    Flux3ImageKleinInputsResolution = "1k"
	Flux3ImageKleinInputsResolutionN2k    Flux3ImageKleinInputsResolution = "2k"
	Flux3ImageKleinInputsResolutionN4k    Flux3ImageKleinInputsResolution = "4k"
	Flux3ImageKleinInputsResolutionN768sq Flux3ImageKleinInputsResolution = "768sq"
)

Defines values for Flux3ImageKleinInputsResolution.

func (Flux3ImageKleinInputsResolution) Valid

Valid indicates whether the value is a known member of the Flux3ImageKleinInputsResolution enum.

type Flux3ImageKleinInputs_AspectRatio

type Flux3ImageKleinInputs_AspectRatio struct {
	// contains filtered or unexported fields
}

Flux3ImageKleinInputs_AspectRatio Output aspect ratio, as in flux-3-image. `auto` (default): for edits, the first reference's exact aspect; for text-to-image, a ratio picked from the prompt (prompt rewrite, else ratio keywords, else 16:9) at the requested tier. Ignored when width and height are set.

func (Flux3ImageKleinInputs_AspectRatio) AsFlux3ImageKleinInputsAspectRatio0

func (t Flux3ImageKleinInputs_AspectRatio) AsFlux3ImageKleinInputsAspectRatio0() (Flux3ImageKleinInputsAspectRatio0, error)

AsFlux3ImageKleinInputsAspectRatio0 returns the union data inside the Flux3ImageKleinInputs_AspectRatio as a Flux3ImageKleinInputsAspectRatio0

func (Flux3ImageKleinInputs_AspectRatio) AsFlux3ImageKleinInputsAspectRatio1

func (t Flux3ImageKleinInputs_AspectRatio) AsFlux3ImageKleinInputsAspectRatio1() (Flux3ImageKleinInputsAspectRatio1, error)

AsFlux3ImageKleinInputsAspectRatio1 returns the union data inside the Flux3ImageKleinInputs_AspectRatio as a Flux3ImageKleinInputsAspectRatio1

func (*Flux3ImageKleinInputs_AspectRatio) FromFlux3ImageKleinInputsAspectRatio0

func (t *Flux3ImageKleinInputs_AspectRatio) FromFlux3ImageKleinInputsAspectRatio0(v Flux3ImageKleinInputsAspectRatio0) error

FromFlux3ImageKleinInputsAspectRatio0 overwrites any union data inside the Flux3ImageKleinInputs_AspectRatio as the provided Flux3ImageKleinInputsAspectRatio0

func (*Flux3ImageKleinInputs_AspectRatio) FromFlux3ImageKleinInputsAspectRatio1

func (t *Flux3ImageKleinInputs_AspectRatio) FromFlux3ImageKleinInputsAspectRatio1(v Flux3ImageKleinInputsAspectRatio1) error

FromFlux3ImageKleinInputsAspectRatio1 overwrites any union data inside the Flux3ImageKleinInputs_AspectRatio as the provided Flux3ImageKleinInputsAspectRatio1

func (Flux3ImageKleinInputs_AspectRatio) MarshalJSON

func (t Flux3ImageKleinInputs_AspectRatio) MarshalJSON() ([]byte, error)

func (*Flux3ImageKleinInputs_AspectRatio) MergeFlux3ImageKleinInputsAspectRatio0

func (t *Flux3ImageKleinInputs_AspectRatio) MergeFlux3ImageKleinInputsAspectRatio0(v Flux3ImageKleinInputsAspectRatio0) error

MergeFlux3ImageKleinInputsAspectRatio0 performs a merge with any union data inside the Flux3ImageKleinInputs_AspectRatio, using the provided Flux3ImageKleinInputsAspectRatio0

func (*Flux3ImageKleinInputs_AspectRatio) MergeFlux3ImageKleinInputsAspectRatio1

func (t *Flux3ImageKleinInputs_AspectRatio) MergeFlux3ImageKleinInputsAspectRatio1(v Flux3ImageKleinInputsAspectRatio1) error

MergeFlux3ImageKleinInputsAspectRatio1 performs a merge with any union data inside the Flux3ImageKleinInputs_AspectRatio, using the provided Flux3ImageKleinInputsAspectRatio1

func (*Flux3ImageKleinInputs_AspectRatio) UnmarshalJSON

func (t *Flux3ImageKleinInputs_AspectRatio) UnmarshalJSON(b []byte) error

type Flux3ImageKleinInputs_Images

type Flux3ImageKleinInputs_Images struct {
	// contains filtered or unexported fields
}

Flux3ImageKleinInputs_Images Optional reference image(s), each an http(s) URL or base64, one to 10 total. The first is the image being edited and sets the default output size.

func (Flux3ImageKleinInputs_Images) AsFlux3ImageKleinInputsImages0

func (t Flux3ImageKleinInputs_Images) AsFlux3ImageKleinInputsImages0() (Flux3ImageKleinInputsImages0, error)

AsFlux3ImageKleinInputsImages0 returns the union data inside the Flux3ImageKleinInputs_Images as a Flux3ImageKleinInputsImages0

func (Flux3ImageKleinInputs_Images) AsFlux3ImageKleinInputsImages1

func (t Flux3ImageKleinInputs_Images) AsFlux3ImageKleinInputsImages1() (Flux3ImageKleinInputsImages1, error)

AsFlux3ImageKleinInputsImages1 returns the union data inside the Flux3ImageKleinInputs_Images as a Flux3ImageKleinInputsImages1

func (*Flux3ImageKleinInputs_Images) FromFlux3ImageKleinInputsImages0

func (t *Flux3ImageKleinInputs_Images) FromFlux3ImageKleinInputsImages0(v Flux3ImageKleinInputsImages0) error

FromFlux3ImageKleinInputsImages0 overwrites any union data inside the Flux3ImageKleinInputs_Images as the provided Flux3ImageKleinInputsImages0

func (*Flux3ImageKleinInputs_Images) FromFlux3ImageKleinInputsImages1

func (t *Flux3ImageKleinInputs_Images) FromFlux3ImageKleinInputsImages1(v Flux3ImageKleinInputsImages1) error

FromFlux3ImageKleinInputsImages1 overwrites any union data inside the Flux3ImageKleinInputs_Images as the provided Flux3ImageKleinInputsImages1

func (Flux3ImageKleinInputs_Images) MarshalJSON

func (t Flux3ImageKleinInputs_Images) MarshalJSON() ([]byte, error)

func (*Flux3ImageKleinInputs_Images) MergeFlux3ImageKleinInputsImages0

func (t *Flux3ImageKleinInputs_Images) MergeFlux3ImageKleinInputsImages0(v Flux3ImageKleinInputsImages0) error

MergeFlux3ImageKleinInputsImages0 performs a merge with any union data inside the Flux3ImageKleinInputs_Images, using the provided Flux3ImageKleinInputsImages0

func (*Flux3ImageKleinInputs_Images) MergeFlux3ImageKleinInputsImages1

func (t *Flux3ImageKleinInputs_Images) MergeFlux3ImageKleinInputsImages1(v Flux3ImageKleinInputsImages1) error

MergeFlux3ImageKleinInputsImages1 performs a merge with any union data inside the Flux3ImageKleinInputs_Images, using the provided Flux3ImageKleinInputsImages1

func (*Flux3ImageKleinInputs_Images) UnmarshalJSON

func (t *Flux3ImageKleinInputs_Images) UnmarshalJSON(b []byte) error

type Flux3ImageKleinV1Flux3ImageKleinPostJSONRequestBody

type Flux3ImageKleinV1Flux3ImageKleinPostJSONRequestBody = Flux3ImageKleinInputs

Flux3ImageKleinV1Flux3ImageKleinPostJSONRequestBody defines body for Flux3ImageKleinV1Flux3ImageKleinPost for application/json ContentType.

type Flux3ImageKleinV1Flux3ImageKleinPostResponse

type Flux3ImageKleinV1Flux3ImageKleinPostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *AsyncResponse
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseFlux3ImageKleinV1Flux3ImageKleinPostResponse

func ParseFlux3ImageKleinV1Flux3ImageKleinPostResponse(rsp *http.Response) (*Flux3ImageKleinV1Flux3ImageKleinPostResponse, error)

ParseFlux3ImageKleinV1Flux3ImageKleinPostResponse parses an HTTP response from a Flux3ImageKleinV1Flux3ImageKleinPostWithResponse call

func (Flux3ImageKleinV1Flux3ImageKleinPostResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (Flux3ImageKleinV1Flux3ImageKleinPostResponse) GetBody

GetBody returns the raw response body bytes

func (Flux3ImageKleinV1Flux3ImageKleinPostResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (Flux3ImageKleinV1Flux3ImageKleinPostResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (Flux3ImageKleinV1Flux3ImageKleinPostResponse) Status

Status returns HTTPResponse.Status

func (Flux3ImageKleinV1Flux3ImageKleinPostResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type Flux3ImageV1Flux3ImagePostJSONRequestBody

type Flux3ImageV1Flux3ImagePostJSONRequestBody = Flux3ImageInputs

Flux3ImageV1Flux3ImagePostJSONRequestBody defines body for Flux3ImageV1Flux3ImagePost for application/json ContentType.

type Flux3ImageV1Flux3ImagePostResponse

type Flux3ImageV1Flux3ImagePostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *AsyncResponse
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseFlux3ImageV1Flux3ImagePostResponse

func ParseFlux3ImageV1Flux3ImagePostResponse(rsp *http.Response) (*Flux3ImageV1Flux3ImagePostResponse, error)

ParseFlux3ImageV1Flux3ImagePostResponse parses an HTTP response from a Flux3ImageV1Flux3ImagePostWithResponse call

func (Flux3ImageV1Flux3ImagePostResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (Flux3ImageV1Flux3ImagePostResponse) GetBody

GetBody returns the raw response body bytes

func (Flux3ImageV1Flux3ImagePostResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (Flux3ImageV1Flux3ImagePostResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (Flux3ImageV1Flux3ImagePostResponse) Status

Status returns HTTPResponse.Status

func (Flux3ImageV1Flux3ImagePostResponse) StatusCode

func (r Flux3ImageV1Flux3ImagePostResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Flux3VideoDraftEnhanceInputs

type Flux3VideoDraftEnhanceInputs struct {
	// DraftCache Encrypted draft-cache bundle from a prior `draft` generation. Primary form: the base64-encoded `.bin` file downloaded from the prior result's `draft_cache` URL. An http(s) URL is also accepted for replays within the download URL's expiry window. The harness is skipped and the original FLUX call is reproduced at full quality; the original inputs are embedded in the bundle.
	DraftCache string                           `json:"draft_cache"`
	Mode       Flux3VideoDraftEnhanceInputsMode `json:"mode"`

	// Resolution Video resolution class of the enhanced result: `fhd` (default), `qhd`, and `uhd` finish the reproduced generation with the video upsampler at that canvas, `hd` returns it without that pass. The reproduced generation is identical whichever is chosen; only the finishing pass differs.
	Resolution *Flux3VideoDraftEnhanceInputsResolution `json:"resolution,omitempty"`

	// SafetyTolerance Harm moderation tolerance from 0 to 7, with 0 the strictest. The route and organization determine the approved maximum and per-category ceilings. Unapproved levels return 422 with approved levels.
	SafetyTolerance *int `json:"safety_tolerance,omitempty"`

	// User Opaque identifier for the end user supplied by the calling platform.
	User *string `json:"user,omitempty"`
}

Flux3VideoDraftEnhanceInputs Full-quality render of a prior `draft` generation. The bundle pins the generation itself -- the original mode, prompt, seed, and conditioning media -- so `resolution` is the only output choice left to the caller.

type Flux3VideoDraftEnhanceInputsMode

type Flux3VideoDraftEnhanceInputsMode string

Flux3VideoDraftEnhanceInputsMode defines model for Flux3VideoDraftEnhanceInputs.Mode.

const (
	Flux3VideoDraftEnhanceInputsModeDraftEnhance Flux3VideoDraftEnhanceInputsMode = "draft_enhance"
)

Defines values for Flux3VideoDraftEnhanceInputsMode.

func (Flux3VideoDraftEnhanceInputsMode) Valid

Valid indicates whether the value is a known member of the Flux3VideoDraftEnhanceInputsMode enum.

type Flux3VideoDraftEnhanceInputsResolution

type Flux3VideoDraftEnhanceInputsResolution string

Flux3VideoDraftEnhanceInputsResolution Video resolution class of the enhanced result: `fhd` (default), `qhd`, and `uhd` finish the reproduced generation with the video upsampler at that canvas, `hd` returns it without that pass. The reproduced generation is identical whichever is chosen; only the finishing pass differs.

const (
	Flux3VideoDraftEnhanceInputsResolutionFhd Flux3VideoDraftEnhanceInputsResolution = "fhd"
	Flux3VideoDraftEnhanceInputsResolutionHd  Flux3VideoDraftEnhanceInputsResolution = "hd"
	Flux3VideoDraftEnhanceInputsResolutionQhd Flux3VideoDraftEnhanceInputsResolution = "qhd"
	Flux3VideoDraftEnhanceInputsResolutionUhd Flux3VideoDraftEnhanceInputsResolution = "uhd"
)

Defines values for Flux3VideoDraftEnhanceInputsResolution.

func (Flux3VideoDraftEnhanceInputsResolution) Valid

Valid indicates whether the value is a known member of the Flux3VideoDraftEnhanceInputsResolution enum.

type Flux3VideoI2VInputs

type Flux3VideoI2VInputs struct {
	// AspectRatio Output aspect ratio. `auto` lets the harness choose from the prompt and any references.
	AspectRatio *Flux3VideoI2VInputs_AspectRatio `json:"aspect_ratio,omitempty"`

	// Draft Draft mode: generate a fast preview and return a `draft_cache` download URL in the result. Download that bundle and pass it back later to render the full-quality version of the same generation.
	Draft *bool `json:"draft,omitempty"`

	// Duration Video duration in seconds (any whole second from 5 to 20), or `auto` to fit the content.
	Duration *Flux3VideoI2VInputs_Duration `json:"duration,omitempty"`

	// GenerateAudio Generate synchronized audio alongside the video.
	GenerateAudio *bool `json:"generate_audio,omitempty"`

	// Keyframes Your images become frames of the video; each is an http(s) URL or base64, one to ten total. Plain images: one starts the video, two start and end it, with more the first starts it, the last ends it, and the rest fall evenly in between (3 or more need a set `duration`). To control the timing yourself, send `[seconds, image]` pairs in time order, e.g. `[[0, "..."], [3.5, "..."]]`: each image becomes the frame at that second, and with `duration: "auto"` the video runs to the last pair's second, rounded up (20s max).
	Keyframes Flux3VideoI2VInputs_Keyframes `json:"keyframes"`
	Mode      Flux3VideoI2VInputsMode       `json:"mode"`

	// Prompt Free-form prompt describing the video.
	Prompt string `json:"prompt"`

	// Resolution Video resolution class: `hd`, or `fhd`/`qhd`/`uhd` for a higher-resolution result finished by the video upsampler. Exact dimensions vary with the aspect ratio.
	Resolution *Flux3VideoI2VInputsResolution `json:"resolution,omitempty"`

	// SafetyTolerance Harm moderation tolerance from 0 to 7, with 0 the strictest. The route and organization determine the approved maximum and per-category ceilings. Unapproved levels return 422 with approved levels.
	SafetyTolerance *int `json:"safety_tolerance,omitempty"`

	// User Opaque identifier for the end user supplied by the calling platform.
	User *string `json:"user,omitempty"`

	// Version Endpoint version. `latest` (default) serves the current release; dated pinnable release tags are added here as they are published.
	Version *Flux3VideoI2VInputsVersion `json:"version,omitempty"`
}

Flux3VideoI2VInputs Image continuation: your images become frames of the video. One image starts the video; two start and end it; with more, the first starts it, the last ends it, and the rest fall evenly in between. To control the timing yourself, send `[seconds, image]` pairs: each image becomes the frame at that second.

type Flux3VideoI2VInputsAspectRatio0

type Flux3VideoI2VInputsAspectRatio0 string

Flux3VideoI2VInputsAspectRatio0 defines model for Flux3VideoI2VInputs.AspectRatio.0.

const (
	Flux3VideoI2VInputsAspectRatio0N11  Flux3VideoI2VInputsAspectRatio0 = "1:1"
	Flux3VideoI2VInputsAspectRatio0N169 Flux3VideoI2VInputsAspectRatio0 = "16:9"
	Flux3VideoI2VInputsAspectRatio0N21  Flux3VideoI2VInputsAspectRatio0 = "2:1"
	Flux3VideoI2VInputsAspectRatio0N219 Flux3VideoI2VInputsAspectRatio0 = "21:9"
	Flux3VideoI2VInputsAspectRatio0N34  Flux3VideoI2VInputsAspectRatio0 = "3:4"
	Flux3VideoI2VInputsAspectRatio0N43  Flux3VideoI2VInputsAspectRatio0 = "4:3"
	Flux3VideoI2VInputsAspectRatio0N916 Flux3VideoI2VInputsAspectRatio0 = "9:16"
	Flux3VideoI2VInputsAspectRatio0N921 Flux3VideoI2VInputsAspectRatio0 = "9:21"
)

Defines values for Flux3VideoI2VInputsAspectRatio0.

func (Flux3VideoI2VInputsAspectRatio0) Valid

Valid indicates whether the value is a known member of the Flux3VideoI2VInputsAspectRatio0 enum.

type Flux3VideoI2VInputsAspectRatio1

type Flux3VideoI2VInputsAspectRatio1 string

Flux3VideoI2VInputsAspectRatio1 defines model for Flux3VideoI2VInputs.AspectRatio.1.

const (
	Flux3VideoI2VInputsAspectRatio1Auto Flux3VideoI2VInputsAspectRatio1 = "auto"
)

Defines values for Flux3VideoI2VInputsAspectRatio1.

func (Flux3VideoI2VInputsAspectRatio1) Valid

Valid indicates whether the value is a known member of the Flux3VideoI2VInputsAspectRatio1 enum.

type Flux3VideoI2VInputsDuration0

type Flux3VideoI2VInputsDuration0 = int

Flux3VideoI2VInputsDuration0 defines model for Flux3VideoI2VInputs.Duration.0.

type Flux3VideoI2VInputsDuration1

type Flux3VideoI2VInputsDuration1 string

Flux3VideoI2VInputsDuration1 defines model for Flux3VideoI2VInputs.Duration.1.

const (
	Flux3VideoI2VInputsDuration1Auto Flux3VideoI2VInputsDuration1 = "auto"
)

Defines values for Flux3VideoI2VInputsDuration1.

func (Flux3VideoI2VInputsDuration1) Valid

Valid indicates whether the value is a known member of the Flux3VideoI2VInputsDuration1 enum.

type Flux3VideoI2VInputsKeyframes0

type Flux3VideoI2VInputsKeyframes0 = string

Flux3VideoI2VInputsKeyframes0 defines model for Flux3VideoI2VInputs.Keyframes.0.

type Flux3VideoI2VInputsKeyframes1

type Flux3VideoI2VInputsKeyframes1 = []interface{}

Flux3VideoI2VInputsKeyframes1 defines model for Flux3VideoI2VInputs.Keyframes.1.

type Flux3VideoI2VInputsKeyframes2

type Flux3VideoI2VInputsKeyframes2 = []string

Flux3VideoI2VInputsKeyframes2 defines model for Flux3VideoI2VInputs.Keyframes.2.

type Flux3VideoI2VInputsKeyframes3

type Flux3VideoI2VInputsKeyframes3 = [][]interface{}

Flux3VideoI2VInputsKeyframes3 defines model for Flux3VideoI2VInputs.Keyframes.3.

type Flux3VideoI2VInputsMode

type Flux3VideoI2VInputsMode string

Flux3VideoI2VInputsMode defines model for Flux3VideoI2VInputs.Mode.

const (
	Flux3VideoI2VInputsModeI2v Flux3VideoI2VInputsMode = "i2v"
)

Defines values for Flux3VideoI2VInputsMode.

func (Flux3VideoI2VInputsMode) Valid

func (e Flux3VideoI2VInputsMode) Valid() bool

Valid indicates whether the value is a known member of the Flux3VideoI2VInputsMode enum.

type Flux3VideoI2VInputsResolution

type Flux3VideoI2VInputsResolution string

Flux3VideoI2VInputsResolution Video resolution class: `hd`, or `fhd`/`qhd`/`uhd` for a higher-resolution result finished by the video upsampler. Exact dimensions vary with the aspect ratio.

const (
	Flux3VideoI2VInputsResolutionFhd Flux3VideoI2VInputsResolution = "fhd"
	Flux3VideoI2VInputsResolutionHd  Flux3VideoI2VInputsResolution = "hd"
	Flux3VideoI2VInputsResolutionQhd Flux3VideoI2VInputsResolution = "qhd"
	Flux3VideoI2VInputsResolutionUhd Flux3VideoI2VInputsResolution = "uhd"
)

Defines values for Flux3VideoI2VInputsResolution.

func (Flux3VideoI2VInputsResolution) Valid

Valid indicates whether the value is a known member of the Flux3VideoI2VInputsResolution enum.

type Flux3VideoI2VInputsVersion

type Flux3VideoI2VInputsVersion string

Flux3VideoI2VInputsVersion Endpoint version. `latest` (default) serves the current release; dated pinnable release tags are added here as they are published.

const (
	Flux3VideoI2VInputsVersionLatest Flux3VideoI2VInputsVersion = "latest"
)

Defines values for Flux3VideoI2VInputsVersion.

func (Flux3VideoI2VInputsVersion) Valid

func (e Flux3VideoI2VInputsVersion) Valid() bool

Valid indicates whether the value is a known member of the Flux3VideoI2VInputsVersion enum.

type Flux3VideoI2VInputs_AspectRatio

type Flux3VideoI2VInputs_AspectRatio struct {
	// contains filtered or unexported fields
}

Flux3VideoI2VInputs_AspectRatio Output aspect ratio. `auto` lets the harness choose from the prompt and any references.

func (Flux3VideoI2VInputs_AspectRatio) AsFlux3VideoI2VInputsAspectRatio0

func (t Flux3VideoI2VInputs_AspectRatio) AsFlux3VideoI2VInputsAspectRatio0() (Flux3VideoI2VInputsAspectRatio0, error)

AsFlux3VideoI2VInputsAspectRatio0 returns the union data inside the Flux3VideoI2VInputs_AspectRatio as a Flux3VideoI2VInputsAspectRatio0

func (Flux3VideoI2VInputs_AspectRatio) AsFlux3VideoI2VInputsAspectRatio1

func (t Flux3VideoI2VInputs_AspectRatio) AsFlux3VideoI2VInputsAspectRatio1() (Flux3VideoI2VInputsAspectRatio1, error)

AsFlux3VideoI2VInputsAspectRatio1 returns the union data inside the Flux3VideoI2VInputs_AspectRatio as a Flux3VideoI2VInputsAspectRatio1

func (*Flux3VideoI2VInputs_AspectRatio) FromFlux3VideoI2VInputsAspectRatio0

func (t *Flux3VideoI2VInputs_AspectRatio) FromFlux3VideoI2VInputsAspectRatio0(v Flux3VideoI2VInputsAspectRatio0) error

FromFlux3VideoI2VInputsAspectRatio0 overwrites any union data inside the Flux3VideoI2VInputs_AspectRatio as the provided Flux3VideoI2VInputsAspectRatio0

func (*Flux3VideoI2VInputs_AspectRatio) FromFlux3VideoI2VInputsAspectRatio1

func (t *Flux3VideoI2VInputs_AspectRatio) FromFlux3VideoI2VInputsAspectRatio1(v Flux3VideoI2VInputsAspectRatio1) error

FromFlux3VideoI2VInputsAspectRatio1 overwrites any union data inside the Flux3VideoI2VInputs_AspectRatio as the provided Flux3VideoI2VInputsAspectRatio1

func (Flux3VideoI2VInputs_AspectRatio) MarshalJSON

func (t Flux3VideoI2VInputs_AspectRatio) MarshalJSON() ([]byte, error)

func (*Flux3VideoI2VInputs_AspectRatio) MergeFlux3VideoI2VInputsAspectRatio0

func (t *Flux3VideoI2VInputs_AspectRatio) MergeFlux3VideoI2VInputsAspectRatio0(v Flux3VideoI2VInputsAspectRatio0) error

MergeFlux3VideoI2VInputsAspectRatio0 performs a merge with any union data inside the Flux3VideoI2VInputs_AspectRatio, using the provided Flux3VideoI2VInputsAspectRatio0

func (*Flux3VideoI2VInputs_AspectRatio) MergeFlux3VideoI2VInputsAspectRatio1

func (t *Flux3VideoI2VInputs_AspectRatio) MergeFlux3VideoI2VInputsAspectRatio1(v Flux3VideoI2VInputsAspectRatio1) error

MergeFlux3VideoI2VInputsAspectRatio1 performs a merge with any union data inside the Flux3VideoI2VInputs_AspectRatio, using the provided Flux3VideoI2VInputsAspectRatio1

func (*Flux3VideoI2VInputs_AspectRatio) UnmarshalJSON

func (t *Flux3VideoI2VInputs_AspectRatio) UnmarshalJSON(b []byte) error

type Flux3VideoI2VInputs_Duration

type Flux3VideoI2VInputs_Duration struct {
	// contains filtered or unexported fields
}

Flux3VideoI2VInputs_Duration Video duration in seconds (any whole second from 5 to 20), or `auto` to fit the content.

func (Flux3VideoI2VInputs_Duration) AsFlux3VideoI2VInputsDuration0

func (t Flux3VideoI2VInputs_Duration) AsFlux3VideoI2VInputsDuration0() (Flux3VideoI2VInputsDuration0, error)

AsFlux3VideoI2VInputsDuration0 returns the union data inside the Flux3VideoI2VInputs_Duration as a Flux3VideoI2VInputsDuration0

func (Flux3VideoI2VInputs_Duration) AsFlux3VideoI2VInputsDuration1

func (t Flux3VideoI2VInputs_Duration) AsFlux3VideoI2VInputsDuration1() (Flux3VideoI2VInputsDuration1, error)

AsFlux3VideoI2VInputsDuration1 returns the union data inside the Flux3VideoI2VInputs_Duration as a Flux3VideoI2VInputsDuration1

func (*Flux3VideoI2VInputs_Duration) FromFlux3VideoI2VInputsDuration0

func (t *Flux3VideoI2VInputs_Duration) FromFlux3VideoI2VInputsDuration0(v Flux3VideoI2VInputsDuration0) error

FromFlux3VideoI2VInputsDuration0 overwrites any union data inside the Flux3VideoI2VInputs_Duration as the provided Flux3VideoI2VInputsDuration0

func (*Flux3VideoI2VInputs_Duration) FromFlux3VideoI2VInputsDuration1

func (t *Flux3VideoI2VInputs_Duration) FromFlux3VideoI2VInputsDuration1(v Flux3VideoI2VInputsDuration1) error

FromFlux3VideoI2VInputsDuration1 overwrites any union data inside the Flux3VideoI2VInputs_Duration as the provided Flux3VideoI2VInputsDuration1

func (Flux3VideoI2VInputs_Duration) MarshalJSON

func (t Flux3VideoI2VInputs_Duration) MarshalJSON() ([]byte, error)

func (*Flux3VideoI2VInputs_Duration) MergeFlux3VideoI2VInputsDuration0

func (t *Flux3VideoI2VInputs_Duration) MergeFlux3VideoI2VInputsDuration0(v Flux3VideoI2VInputsDuration0) error

MergeFlux3VideoI2VInputsDuration0 performs a merge with any union data inside the Flux3VideoI2VInputs_Duration, using the provided Flux3VideoI2VInputsDuration0

func (*Flux3VideoI2VInputs_Duration) MergeFlux3VideoI2VInputsDuration1

func (t *Flux3VideoI2VInputs_Duration) MergeFlux3VideoI2VInputsDuration1(v Flux3VideoI2VInputsDuration1) error

MergeFlux3VideoI2VInputsDuration1 performs a merge with any union data inside the Flux3VideoI2VInputs_Duration, using the provided Flux3VideoI2VInputsDuration1

func (*Flux3VideoI2VInputs_Duration) UnmarshalJSON

func (t *Flux3VideoI2VInputs_Duration) UnmarshalJSON(b []byte) error

type Flux3VideoI2VInputs_Keyframes

type Flux3VideoI2VInputs_Keyframes struct {
	// contains filtered or unexported fields
}

Flux3VideoI2VInputs_Keyframes Your images become frames of the video; each is an http(s) URL or base64, one to ten total. Plain images: one starts the video, two start and end it, with more the first starts it, the last ends it, and the rest fall evenly in between (3 or more need a set `duration`). To control the timing yourself, send `[seconds, image]` pairs in time order, e.g. `[[0, "..."], [3.5, "..."]]`: each image becomes the frame at that second, and with `duration: "auto"` the video runs to the last pair's second, rounded up (20s max).

func (Flux3VideoI2VInputs_Keyframes) AsFlux3VideoI2VInputsKeyframes0

func (t Flux3VideoI2VInputs_Keyframes) AsFlux3VideoI2VInputsKeyframes0() (Flux3VideoI2VInputsKeyframes0, error)

AsFlux3VideoI2VInputsKeyframes0 returns the union data inside the Flux3VideoI2VInputs_Keyframes as a Flux3VideoI2VInputsKeyframes0

func (Flux3VideoI2VInputs_Keyframes) AsFlux3VideoI2VInputsKeyframes1

func (t Flux3VideoI2VInputs_Keyframes) AsFlux3VideoI2VInputsKeyframes1() (Flux3VideoI2VInputsKeyframes1, error)

AsFlux3VideoI2VInputsKeyframes1 returns the union data inside the Flux3VideoI2VInputs_Keyframes as a Flux3VideoI2VInputsKeyframes1

func (Flux3VideoI2VInputs_Keyframes) AsFlux3VideoI2VInputsKeyframes2

func (t Flux3VideoI2VInputs_Keyframes) AsFlux3VideoI2VInputsKeyframes2() (Flux3VideoI2VInputsKeyframes2, error)

AsFlux3VideoI2VInputsKeyframes2 returns the union data inside the Flux3VideoI2VInputs_Keyframes as a Flux3VideoI2VInputsKeyframes2

func (Flux3VideoI2VInputs_Keyframes) AsFlux3VideoI2VInputsKeyframes3

func (t Flux3VideoI2VInputs_Keyframes) AsFlux3VideoI2VInputsKeyframes3() (Flux3VideoI2VInputsKeyframes3, error)

AsFlux3VideoI2VInputsKeyframes3 returns the union data inside the Flux3VideoI2VInputs_Keyframes as a Flux3VideoI2VInputsKeyframes3

func (*Flux3VideoI2VInputs_Keyframes) FromFlux3VideoI2VInputsKeyframes0

func (t *Flux3VideoI2VInputs_Keyframes) FromFlux3VideoI2VInputsKeyframes0(v Flux3VideoI2VInputsKeyframes0) error

FromFlux3VideoI2VInputsKeyframes0 overwrites any union data inside the Flux3VideoI2VInputs_Keyframes as the provided Flux3VideoI2VInputsKeyframes0

func (*Flux3VideoI2VInputs_Keyframes) FromFlux3VideoI2VInputsKeyframes1

func (t *Flux3VideoI2VInputs_Keyframes) FromFlux3VideoI2VInputsKeyframes1(v Flux3VideoI2VInputsKeyframes1) error

FromFlux3VideoI2VInputsKeyframes1 overwrites any union data inside the Flux3VideoI2VInputs_Keyframes as the provided Flux3VideoI2VInputsKeyframes1

func (*Flux3VideoI2VInputs_Keyframes) FromFlux3VideoI2VInputsKeyframes2

func (t *Flux3VideoI2VInputs_Keyframes) FromFlux3VideoI2VInputsKeyframes2(v Flux3VideoI2VInputsKeyframes2) error

FromFlux3VideoI2VInputsKeyframes2 overwrites any union data inside the Flux3VideoI2VInputs_Keyframes as the provided Flux3VideoI2VInputsKeyframes2

func (*Flux3VideoI2VInputs_Keyframes) FromFlux3VideoI2VInputsKeyframes3

func (t *Flux3VideoI2VInputs_Keyframes) FromFlux3VideoI2VInputsKeyframes3(v Flux3VideoI2VInputsKeyframes3) error

FromFlux3VideoI2VInputsKeyframes3 overwrites any union data inside the Flux3VideoI2VInputs_Keyframes as the provided Flux3VideoI2VInputsKeyframes3

func (Flux3VideoI2VInputs_Keyframes) MarshalJSON

func (t Flux3VideoI2VInputs_Keyframes) MarshalJSON() ([]byte, error)

func (*Flux3VideoI2VInputs_Keyframes) MergeFlux3VideoI2VInputsKeyframes0

func (t *Flux3VideoI2VInputs_Keyframes) MergeFlux3VideoI2VInputsKeyframes0(v Flux3VideoI2VInputsKeyframes0) error

MergeFlux3VideoI2VInputsKeyframes0 performs a merge with any union data inside the Flux3VideoI2VInputs_Keyframes, using the provided Flux3VideoI2VInputsKeyframes0

func (*Flux3VideoI2VInputs_Keyframes) MergeFlux3VideoI2VInputsKeyframes1

func (t *Flux3VideoI2VInputs_Keyframes) MergeFlux3VideoI2VInputsKeyframes1(v Flux3VideoI2VInputsKeyframes1) error

MergeFlux3VideoI2VInputsKeyframes1 performs a merge with any union data inside the Flux3VideoI2VInputs_Keyframes, using the provided Flux3VideoI2VInputsKeyframes1

func (*Flux3VideoI2VInputs_Keyframes) MergeFlux3VideoI2VInputsKeyframes2

func (t *Flux3VideoI2VInputs_Keyframes) MergeFlux3VideoI2VInputsKeyframes2(v Flux3VideoI2VInputsKeyframes2) error

MergeFlux3VideoI2VInputsKeyframes2 performs a merge with any union data inside the Flux3VideoI2VInputs_Keyframes, using the provided Flux3VideoI2VInputsKeyframes2

func (*Flux3VideoI2VInputs_Keyframes) MergeFlux3VideoI2VInputsKeyframes3

func (t *Flux3VideoI2VInputs_Keyframes) MergeFlux3VideoI2VInputsKeyframes3(v Flux3VideoI2VInputsKeyframes3) error

MergeFlux3VideoI2VInputsKeyframes3 performs a merge with any union data inside the Flux3VideoI2VInputs_Keyframes, using the provided Flux3VideoI2VInputsKeyframes3

func (*Flux3VideoI2VInputs_Keyframes) UnmarshalJSON

func (t *Flux3VideoI2VInputs_Keyframes) UnmarshalJSON(b []byte) error

type Flux3VideoInputsBody

type Flux3VideoInputsBody struct {
	// contains filtered or unexported fields
}

Flux3VideoInputsBody Route body wrapper: FastAPI drops the union's discriminator when the bare union is the top-level body param, so 422s enumerate every mode class instead of the one the client sent. The RootModel keeps discrimination inside pydantic; routes unwrap `.root`.

func (Flux3VideoInputsBody) AsFlux3VideoDraftEnhanceInputs

func (t Flux3VideoInputsBody) AsFlux3VideoDraftEnhanceInputs() (Flux3VideoDraftEnhanceInputs, error)

AsFlux3VideoDraftEnhanceInputs returns the union data inside the Flux3VideoInputsBody as a Flux3VideoDraftEnhanceInputs

func (Flux3VideoInputsBody) AsFlux3VideoI2VInputs

func (t Flux3VideoInputsBody) AsFlux3VideoI2VInputs() (Flux3VideoI2VInputs, error)

AsFlux3VideoI2VInputs returns the union data inside the Flux3VideoInputsBody as a Flux3VideoI2VInputs

func (Flux3VideoInputsBody) AsFlux3VideoT2VInputs

func (t Flux3VideoInputsBody) AsFlux3VideoT2VInputs() (Flux3VideoT2VInputs, error)

AsFlux3VideoT2VInputs returns the union data inside the Flux3VideoInputsBody as a Flux3VideoT2VInputs

func (Flux3VideoInputsBody) AsFlux3VideoV2VInputs

func (t Flux3VideoInputsBody) AsFlux3VideoV2VInputs() (Flux3VideoV2VInputs, error)

AsFlux3VideoV2VInputs returns the union data inside the Flux3VideoInputsBody as a Flux3VideoV2VInputs

func (Flux3VideoInputsBody) Discriminator

func (t Flux3VideoInputsBody) Discriminator() (string, error)

func (*Flux3VideoInputsBody) FromFlux3VideoDraftEnhanceInputs

func (t *Flux3VideoInputsBody) FromFlux3VideoDraftEnhanceInputs(v Flux3VideoDraftEnhanceInputs) error

FromFlux3VideoDraftEnhanceInputs overwrites any union data inside the Flux3VideoInputsBody as the provided Flux3VideoDraftEnhanceInputs

func (*Flux3VideoInputsBody) FromFlux3VideoI2VInputs

func (t *Flux3VideoInputsBody) FromFlux3VideoI2VInputs(v Flux3VideoI2VInputs) error

FromFlux3VideoI2VInputs overwrites any union data inside the Flux3VideoInputsBody as the provided Flux3VideoI2VInputs

func (*Flux3VideoInputsBody) FromFlux3VideoT2VInputs

func (t *Flux3VideoInputsBody) FromFlux3VideoT2VInputs(v Flux3VideoT2VInputs) error

FromFlux3VideoT2VInputs overwrites any union data inside the Flux3VideoInputsBody as the provided Flux3VideoT2VInputs

func (*Flux3VideoInputsBody) FromFlux3VideoV2VInputs

func (t *Flux3VideoInputsBody) FromFlux3VideoV2VInputs(v Flux3VideoV2VInputs) error

FromFlux3VideoV2VInputs overwrites any union data inside the Flux3VideoInputsBody as the provided Flux3VideoV2VInputs

func (Flux3VideoInputsBody) MarshalJSON

func (t Flux3VideoInputsBody) MarshalJSON() ([]byte, error)

func (*Flux3VideoInputsBody) MergeFlux3VideoDraftEnhanceInputs

func (t *Flux3VideoInputsBody) MergeFlux3VideoDraftEnhanceInputs(v Flux3VideoDraftEnhanceInputs) error

MergeFlux3VideoDraftEnhanceInputs performs a merge with any union data inside the Flux3VideoInputsBody, using the provided Flux3VideoDraftEnhanceInputs

func (*Flux3VideoInputsBody) MergeFlux3VideoI2VInputs

func (t *Flux3VideoInputsBody) MergeFlux3VideoI2VInputs(v Flux3VideoI2VInputs) error

MergeFlux3VideoI2VInputs performs a merge with any union data inside the Flux3VideoInputsBody, using the provided Flux3VideoI2VInputs

func (*Flux3VideoInputsBody) MergeFlux3VideoT2VInputs

func (t *Flux3VideoInputsBody) MergeFlux3VideoT2VInputs(v Flux3VideoT2VInputs) error

MergeFlux3VideoT2VInputs performs a merge with any union data inside the Flux3VideoInputsBody, using the provided Flux3VideoT2VInputs

func (*Flux3VideoInputsBody) MergeFlux3VideoV2VInputs

func (t *Flux3VideoInputsBody) MergeFlux3VideoV2VInputs(v Flux3VideoV2VInputs) error

MergeFlux3VideoV2VInputs performs a merge with any union data inside the Flux3VideoInputsBody, using the provided Flux3VideoV2VInputs

func (*Flux3VideoInputsBody) UnmarshalJSON

func (t *Flux3VideoInputsBody) UnmarshalJSON(b []byte) error

func (Flux3VideoInputsBody) ValueByDiscriminator

func (t Flux3VideoInputsBody) ValueByDiscriminator() (interface{}, error)

type Flux3VideoT2VInputs

type Flux3VideoT2VInputs struct {
	// AspectRatio Output aspect ratio. `auto` lets the harness choose from the prompt and any references.
	AspectRatio *Flux3VideoT2VInputs_AspectRatio `json:"aspect_ratio,omitempty"`

	// Draft Draft mode: generate a fast preview and return a `draft_cache` download URL in the result. Download that bundle and pass it back later to render the full-quality version of the same generation.
	Draft *bool `json:"draft,omitempty"`

	// Duration Video duration in seconds (any whole second from 5 to 20), or `auto` to fit the content.
	Duration *Flux3VideoT2VInputs_Duration `json:"duration,omitempty"`

	// GenerateAudio Generate synchronized audio alongside the video.
	GenerateAudio *bool                   `json:"generate_audio,omitempty"`
	Mode          Flux3VideoT2VInputsMode `json:"mode"`

	// Prompt Free-form prompt describing the video.
	Prompt string `json:"prompt"`

	// Resolution Video resolution class: `hd`, or `fhd`/`qhd`/`uhd` for a higher-resolution result finished by the video upsampler. Exact dimensions vary with the aspect ratio.
	Resolution *Flux3VideoT2VInputsResolution `json:"resolution,omitempty"`

	// SafetyTolerance Harm moderation tolerance from 0 to 7, with 0 the strictest. The route and organization determine the approved maximum and per-category ceilings. Unapproved levels return 422 with approved levels.
	SafetyTolerance *int `json:"safety_tolerance,omitempty"`

	// User Opaque identifier for the end user supplied by the calling platform.
	User *string `json:"user,omitempty"`

	// Version Endpoint version. `latest` (default) serves the current release; dated pinnable release tags are added here as they are published.
	Version *Flux3VideoT2VInputsVersion `json:"version,omitempty"`
}

Flux3VideoT2VInputs defines model for Flux3VideoT2VInputs.

type Flux3VideoT2VInputsAspectRatio0

type Flux3VideoT2VInputsAspectRatio0 string

Flux3VideoT2VInputsAspectRatio0 defines model for Flux3VideoT2VInputs.AspectRatio.0.

const (
	Flux3VideoT2VInputsAspectRatio0N11  Flux3VideoT2VInputsAspectRatio0 = "1:1"
	Flux3VideoT2VInputsAspectRatio0N169 Flux3VideoT2VInputsAspectRatio0 = "16:9"
	Flux3VideoT2VInputsAspectRatio0N21  Flux3VideoT2VInputsAspectRatio0 = "2:1"
	Flux3VideoT2VInputsAspectRatio0N219 Flux3VideoT2VInputsAspectRatio0 = "21:9"
	Flux3VideoT2VInputsAspectRatio0N34  Flux3VideoT2VInputsAspectRatio0 = "3:4"
	Flux3VideoT2VInputsAspectRatio0N43  Flux3VideoT2VInputsAspectRatio0 = "4:3"
	Flux3VideoT2VInputsAspectRatio0N916 Flux3VideoT2VInputsAspectRatio0 = "9:16"
	Flux3VideoT2VInputsAspectRatio0N921 Flux3VideoT2VInputsAspectRatio0 = "9:21"
)

Defines values for Flux3VideoT2VInputsAspectRatio0.

func (Flux3VideoT2VInputsAspectRatio0) Valid

Valid indicates whether the value is a known member of the Flux3VideoT2VInputsAspectRatio0 enum.

type Flux3VideoT2VInputsAspectRatio1

type Flux3VideoT2VInputsAspectRatio1 string

Flux3VideoT2VInputsAspectRatio1 defines model for Flux3VideoT2VInputs.AspectRatio.1.

const (
	Flux3VideoT2VInputsAspectRatio1Auto Flux3VideoT2VInputsAspectRatio1 = "auto"
)

Defines values for Flux3VideoT2VInputsAspectRatio1.

func (Flux3VideoT2VInputsAspectRatio1) Valid

Valid indicates whether the value is a known member of the Flux3VideoT2VInputsAspectRatio1 enum.

type Flux3VideoT2VInputsDuration0

type Flux3VideoT2VInputsDuration0 = int

Flux3VideoT2VInputsDuration0 defines model for Flux3VideoT2VInputs.Duration.0.

type Flux3VideoT2VInputsDuration1

type Flux3VideoT2VInputsDuration1 string

Flux3VideoT2VInputsDuration1 defines model for Flux3VideoT2VInputs.Duration.1.

const (
	Flux3VideoT2VInputsDuration1Auto Flux3VideoT2VInputsDuration1 = "auto"
)

Defines values for Flux3VideoT2VInputsDuration1.

func (Flux3VideoT2VInputsDuration1) Valid

Valid indicates whether the value is a known member of the Flux3VideoT2VInputsDuration1 enum.

type Flux3VideoT2VInputsMode

type Flux3VideoT2VInputsMode string

Flux3VideoT2VInputsMode defines model for Flux3VideoT2VInputs.Mode.

const (
	Flux3VideoT2VInputsModeT2v Flux3VideoT2VInputsMode = "t2v"
)

Defines values for Flux3VideoT2VInputsMode.

func (Flux3VideoT2VInputsMode) Valid

func (e Flux3VideoT2VInputsMode) Valid() bool

Valid indicates whether the value is a known member of the Flux3VideoT2VInputsMode enum.

type Flux3VideoT2VInputsResolution

type Flux3VideoT2VInputsResolution string

Flux3VideoT2VInputsResolution Video resolution class: `hd`, or `fhd`/`qhd`/`uhd` for a higher-resolution result finished by the video upsampler. Exact dimensions vary with the aspect ratio.

const (
	Flux3VideoT2VInputsResolutionFhd Flux3VideoT2VInputsResolution = "fhd"
	Flux3VideoT2VInputsResolutionHd  Flux3VideoT2VInputsResolution = "hd"
	Flux3VideoT2VInputsResolutionQhd Flux3VideoT2VInputsResolution = "qhd"
	Flux3VideoT2VInputsResolutionUhd Flux3VideoT2VInputsResolution = "uhd"
)

Defines values for Flux3VideoT2VInputsResolution.

func (Flux3VideoT2VInputsResolution) Valid

Valid indicates whether the value is a known member of the Flux3VideoT2VInputsResolution enum.

type Flux3VideoT2VInputsVersion

type Flux3VideoT2VInputsVersion string

Flux3VideoT2VInputsVersion Endpoint version. `latest` (default) serves the current release; dated pinnable release tags are added here as they are published.

const (
	Flux3VideoT2VInputsVersionLatest Flux3VideoT2VInputsVersion = "latest"
)

Defines values for Flux3VideoT2VInputsVersion.

func (Flux3VideoT2VInputsVersion) Valid

func (e Flux3VideoT2VInputsVersion) Valid() bool

Valid indicates whether the value is a known member of the Flux3VideoT2VInputsVersion enum.

type Flux3VideoT2VInputs_AspectRatio

type Flux3VideoT2VInputs_AspectRatio struct {
	// contains filtered or unexported fields
}

Flux3VideoT2VInputs_AspectRatio Output aspect ratio. `auto` lets the harness choose from the prompt and any references.

func (Flux3VideoT2VInputs_AspectRatio) AsFlux3VideoT2VInputsAspectRatio0

func (t Flux3VideoT2VInputs_AspectRatio) AsFlux3VideoT2VInputsAspectRatio0() (Flux3VideoT2VInputsAspectRatio0, error)

AsFlux3VideoT2VInputsAspectRatio0 returns the union data inside the Flux3VideoT2VInputs_AspectRatio as a Flux3VideoT2VInputsAspectRatio0

func (Flux3VideoT2VInputs_AspectRatio) AsFlux3VideoT2VInputsAspectRatio1

func (t Flux3VideoT2VInputs_AspectRatio) AsFlux3VideoT2VInputsAspectRatio1() (Flux3VideoT2VInputsAspectRatio1, error)

AsFlux3VideoT2VInputsAspectRatio1 returns the union data inside the Flux3VideoT2VInputs_AspectRatio as a Flux3VideoT2VInputsAspectRatio1

func (*Flux3VideoT2VInputs_AspectRatio) FromFlux3VideoT2VInputsAspectRatio0

func (t *Flux3VideoT2VInputs_AspectRatio) FromFlux3VideoT2VInputsAspectRatio0(v Flux3VideoT2VInputsAspectRatio0) error

FromFlux3VideoT2VInputsAspectRatio0 overwrites any union data inside the Flux3VideoT2VInputs_AspectRatio as the provided Flux3VideoT2VInputsAspectRatio0

func (*Flux3VideoT2VInputs_AspectRatio) FromFlux3VideoT2VInputsAspectRatio1

func (t *Flux3VideoT2VInputs_AspectRatio) FromFlux3VideoT2VInputsAspectRatio1(v Flux3VideoT2VInputsAspectRatio1) error

FromFlux3VideoT2VInputsAspectRatio1 overwrites any union data inside the Flux3VideoT2VInputs_AspectRatio as the provided Flux3VideoT2VInputsAspectRatio1

func (Flux3VideoT2VInputs_AspectRatio) MarshalJSON

func (t Flux3VideoT2VInputs_AspectRatio) MarshalJSON() ([]byte, error)

func (*Flux3VideoT2VInputs_AspectRatio) MergeFlux3VideoT2VInputsAspectRatio0

func (t *Flux3VideoT2VInputs_AspectRatio) MergeFlux3VideoT2VInputsAspectRatio0(v Flux3VideoT2VInputsAspectRatio0) error

MergeFlux3VideoT2VInputsAspectRatio0 performs a merge with any union data inside the Flux3VideoT2VInputs_AspectRatio, using the provided Flux3VideoT2VInputsAspectRatio0

func (*Flux3VideoT2VInputs_AspectRatio) MergeFlux3VideoT2VInputsAspectRatio1

func (t *Flux3VideoT2VInputs_AspectRatio) MergeFlux3VideoT2VInputsAspectRatio1(v Flux3VideoT2VInputsAspectRatio1) error

MergeFlux3VideoT2VInputsAspectRatio1 performs a merge with any union data inside the Flux3VideoT2VInputs_AspectRatio, using the provided Flux3VideoT2VInputsAspectRatio1

func (*Flux3VideoT2VInputs_AspectRatio) UnmarshalJSON

func (t *Flux3VideoT2VInputs_AspectRatio) UnmarshalJSON(b []byte) error

type Flux3VideoT2VInputs_Duration

type Flux3VideoT2VInputs_Duration struct {
	// contains filtered or unexported fields
}

Flux3VideoT2VInputs_Duration Video duration in seconds (any whole second from 5 to 20), or `auto` to fit the content.

func (Flux3VideoT2VInputs_Duration) AsFlux3VideoT2VInputsDuration0

func (t Flux3VideoT2VInputs_Duration) AsFlux3VideoT2VInputsDuration0() (Flux3VideoT2VInputsDuration0, error)

AsFlux3VideoT2VInputsDuration0 returns the union data inside the Flux3VideoT2VInputs_Duration as a Flux3VideoT2VInputsDuration0

func (Flux3VideoT2VInputs_Duration) AsFlux3VideoT2VInputsDuration1

func (t Flux3VideoT2VInputs_Duration) AsFlux3VideoT2VInputsDuration1() (Flux3VideoT2VInputsDuration1, error)

AsFlux3VideoT2VInputsDuration1 returns the union data inside the Flux3VideoT2VInputs_Duration as a Flux3VideoT2VInputsDuration1

func (*Flux3VideoT2VInputs_Duration) FromFlux3VideoT2VInputsDuration0

func (t *Flux3VideoT2VInputs_Duration) FromFlux3VideoT2VInputsDuration0(v Flux3VideoT2VInputsDuration0) error

FromFlux3VideoT2VInputsDuration0 overwrites any union data inside the Flux3VideoT2VInputs_Duration as the provided Flux3VideoT2VInputsDuration0

func (*Flux3VideoT2VInputs_Duration) FromFlux3VideoT2VInputsDuration1

func (t *Flux3VideoT2VInputs_Duration) FromFlux3VideoT2VInputsDuration1(v Flux3VideoT2VInputsDuration1) error

FromFlux3VideoT2VInputsDuration1 overwrites any union data inside the Flux3VideoT2VInputs_Duration as the provided Flux3VideoT2VInputsDuration1

func (Flux3VideoT2VInputs_Duration) MarshalJSON

func (t Flux3VideoT2VInputs_Duration) MarshalJSON() ([]byte, error)

func (*Flux3VideoT2VInputs_Duration) MergeFlux3VideoT2VInputsDuration0

func (t *Flux3VideoT2VInputs_Duration) MergeFlux3VideoT2VInputsDuration0(v Flux3VideoT2VInputsDuration0) error

MergeFlux3VideoT2VInputsDuration0 performs a merge with any union data inside the Flux3VideoT2VInputs_Duration, using the provided Flux3VideoT2VInputsDuration0

func (*Flux3VideoT2VInputs_Duration) MergeFlux3VideoT2VInputsDuration1

func (t *Flux3VideoT2VInputs_Duration) MergeFlux3VideoT2VInputsDuration1(v Flux3VideoT2VInputsDuration1) error

MergeFlux3VideoT2VInputsDuration1 performs a merge with any union data inside the Flux3VideoT2VInputs_Duration, using the provided Flux3VideoT2VInputsDuration1

func (*Flux3VideoT2VInputs_Duration) UnmarshalJSON

func (t *Flux3VideoT2VInputs_Duration) UnmarshalJSON(b []byte) error

type Flux3VideoUpscaleInputs

type Flux3VideoUpscaleInputs struct {
	// Creativity Upscale behavior: 0 preserves the source precisely; 1 allows creative detail enhancement.
	Creativity *Flux3VideoUpscaleInputsCreativity `json:"creativity,omitempty"`

	// InputVideo The clip to upscale: base64-encoded mp4 (max 50MB) or an http(s) URL. The upscale covers the first 20 seconds; a clip slightly over that is upscaled up to the 20 second mark, and one well over is rejected. At most 2560x1440 (3.7 megapixels) per frame: this endpoint upscales toward 4K, so downscale a larger source before submitting it.
	InputVideo string `json:"input_video"`

	// Prompt Optional description of the clip's content, steering the enhanced detail. Leave empty for a neutral upscale.
	Prompt *string `json:"prompt,omitempty"`

	// SafetyTolerance Harm moderation tolerance from 0 to 7, with 0 the strictest. The route and organization determine the approved maximum and per-category ceilings. Unapproved levels return 422 with approved levels.
	SafetyTolerance *int `json:"safety_tolerance,omitempty"`

	// UpscaleFactor Output scaling relative to the source resolution, between 1.5 and 3. The output preserves the source aspect ratio and is capped at a 13.75 MP frame: very large sources are upscaled by less than the requested factor.
	UpscaleFactor *float64 `json:"upscale_factor,omitempty"`

	// User Opaque identifier for the end user supplied by the calling platform.
	User *string `json:"user,omitempty"`

	// WebhookSecret Secret echoed in the webhook signature header.
	WebhookSecret *string `json:"webhook_secret,omitempty"`

	// WebhookUrl URL to receive the result callback.
	WebhookUrl *string `json:"webhook_url,omitempty"`
}

Flux3VideoUpscaleInputs defines model for Flux3VideoUpscaleInputs.

type Flux3VideoUpscaleInputsCreativity

type Flux3VideoUpscaleInputsCreativity int

Flux3VideoUpscaleInputsCreativity Upscale behavior: 0 preserves the source precisely; 1 allows creative detail enhancement.

const (
	Flux3VideoUpscaleInputsCreativityN0 Flux3VideoUpscaleInputsCreativity = 0
	Flux3VideoUpscaleInputsCreativityN1 Flux3VideoUpscaleInputsCreativity = 1
)

Defines values for Flux3VideoUpscaleInputsCreativity.

func (Flux3VideoUpscaleInputsCreativity) Valid

Valid indicates whether the value is a known member of the Flux3VideoUpscaleInputsCreativity enum.

type Flux3VideoV1Flux3VideoPost200JSONResponseBody

type Flux3VideoV1Flux3VideoPost200JSONResponseBody struct {
	// contains filtered or unexported fields
}

Flux3VideoV1Flux3VideoPost200JSONResponseBody defines parameters for Flux3VideoV1Flux3VideoPost.

func (Flux3VideoV1Flux3VideoPost200JSONResponseBody) AsAsyncResponse

AsAsyncResponse returns the union data inside the Flux3VideoV1Flux3VideoPost200JSONResponseBody as a AsyncResponse

func (Flux3VideoV1Flux3VideoPost200JSONResponseBody) AsAsyncWebhookResponse

AsAsyncWebhookResponse returns the union data inside the Flux3VideoV1Flux3VideoPost200JSONResponseBody as a AsyncWebhookResponse

func (*Flux3VideoV1Flux3VideoPost200JSONResponseBody) FromAsyncResponse

FromAsyncResponse overwrites any union data inside the Flux3VideoV1Flux3VideoPost200JSONResponseBody as the provided AsyncResponse

func (*Flux3VideoV1Flux3VideoPost200JSONResponseBody) FromAsyncWebhookResponse

FromAsyncWebhookResponse overwrites any union data inside the Flux3VideoV1Flux3VideoPost200JSONResponseBody as the provided AsyncWebhookResponse

func (Flux3VideoV1Flux3VideoPost200JSONResponseBody) MarshalJSON

func (*Flux3VideoV1Flux3VideoPost200JSONResponseBody) MergeAsyncResponse

MergeAsyncResponse performs a merge with any union data inside the Flux3VideoV1Flux3VideoPost200JSONResponseBody, using the provided AsyncResponse

func (*Flux3VideoV1Flux3VideoPost200JSONResponseBody) MergeAsyncWebhookResponse

MergeAsyncWebhookResponse performs a merge with any union data inside the Flux3VideoV1Flux3VideoPost200JSONResponseBody, using the provided AsyncWebhookResponse

func (*Flux3VideoV1Flux3VideoPost200JSONResponseBody) UnmarshalJSON

type Flux3VideoV1Flux3VideoPostJSONRequestBody

type Flux3VideoV1Flux3VideoPostJSONRequestBody = Flux3VideoInputsBody

Flux3VideoV1Flux3VideoPostJSONRequestBody defines body for Flux3VideoV1Flux3VideoPost for application/json ContentType.

type Flux3VideoV1Flux3VideoPostResponse

type Flux3VideoV1Flux3VideoPostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Flux3VideoV1Flux3VideoPost200JSONResponseBody
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseFlux3VideoV1Flux3VideoPostResponse

func ParseFlux3VideoV1Flux3VideoPostResponse(rsp *http.Response) (*Flux3VideoV1Flux3VideoPostResponse, error)

ParseFlux3VideoV1Flux3VideoPostResponse parses an HTTP response from a Flux3VideoV1Flux3VideoPostWithResponse call

func (Flux3VideoV1Flux3VideoPostResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (Flux3VideoV1Flux3VideoPostResponse) GetBody

GetBody returns the raw response body bytes

func (Flux3VideoV1Flux3VideoPostResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (Flux3VideoV1Flux3VideoPostResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (Flux3VideoV1Flux3VideoPostResponse) Status

Status returns HTTPResponse.Status

func (Flux3VideoV1Flux3VideoPostResponse) StatusCode

func (r Flux3VideoV1Flux3VideoPostResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Flux3VideoV2VInputs

type Flux3VideoV2VInputs struct {
	// AspectRatio Output aspect ratio. `auto` lets the harness choose from the prompt and any references.
	AspectRatio *Flux3VideoV2VInputs_AspectRatio `json:"aspect_ratio,omitempty"`

	// Draft Draft mode: generate a fast preview and return a `draft_cache` download URL in the result. Download that bundle and pass it back later to render the full-quality version of the same generation.
	Draft *bool `json:"draft,omitempty"`

	// Duration Video duration in seconds (any whole second from 5 to 15), or `auto` to fit the content.
	Duration *Flux3VideoV2VInputs_Duration `json:"duration,omitempty"`

	// GenerateAudio Generate synchronized audio alongside the video.
	GenerateAudio *bool                   `json:"generate_audio,omitempty"`
	Mode          Flux3VideoV2VInputsMode `json:"mode"`

	// Prompt Free-form prompt describing the video.
	Prompt string `json:"prompt"`

	// Resolution Video resolution class: `hd`, or `fhd`/`qhd`/`uhd` for a higher-resolution result finished by the video upsampler. Exact dimensions vary with the aspect ratio.
	Resolution *Flux3VideoV2VInputsResolution `json:"resolution,omitempty"`

	// SafetyTolerance Harm moderation tolerance from 0 to 7, with 0 the strictest. The route and organization determine the approved maximum and per-category ceilings. Unapproved levels return 422 with approved levels.
	SafetyTolerance *int `json:"safety_tolerance,omitempty"`

	// StartVideo The video to continue, an http(s) URL or base64 mp4; the generated clip carries on from its final frames.
	StartVideo string `json:"start_video"`

	// User Opaque identifier for the end user supplied by the calling platform.
	User *string `json:"user,omitempty"`

	// Version Endpoint version. `latest` (default) serves the current release; dated pinnable release tags are added here as they are published.
	Version *Flux3VideoV2VInputsVersion `json:"version,omitempty"`
}

Flux3VideoV2VInputs Video continuation: the generated clip carries on from your video's final frames.

type Flux3VideoV2VInputsAspectRatio0

type Flux3VideoV2VInputsAspectRatio0 string

Flux3VideoV2VInputsAspectRatio0 defines model for Flux3VideoV2VInputs.AspectRatio.0.

const (
	Flux3VideoV2VInputsAspectRatio0N11  Flux3VideoV2VInputsAspectRatio0 = "1:1"
	Flux3VideoV2VInputsAspectRatio0N169 Flux3VideoV2VInputsAspectRatio0 = "16:9"
	Flux3VideoV2VInputsAspectRatio0N21  Flux3VideoV2VInputsAspectRatio0 = "2:1"
	Flux3VideoV2VInputsAspectRatio0N219 Flux3VideoV2VInputsAspectRatio0 = "21:9"
	Flux3VideoV2VInputsAspectRatio0N34  Flux3VideoV2VInputsAspectRatio0 = "3:4"
	Flux3VideoV2VInputsAspectRatio0N43  Flux3VideoV2VInputsAspectRatio0 = "4:3"
	Flux3VideoV2VInputsAspectRatio0N916 Flux3VideoV2VInputsAspectRatio0 = "9:16"
	Flux3VideoV2VInputsAspectRatio0N921 Flux3VideoV2VInputsAspectRatio0 = "9:21"
)

Defines values for Flux3VideoV2VInputsAspectRatio0.

func (Flux3VideoV2VInputsAspectRatio0) Valid

Valid indicates whether the value is a known member of the Flux3VideoV2VInputsAspectRatio0 enum.

type Flux3VideoV2VInputsAspectRatio1

type Flux3VideoV2VInputsAspectRatio1 string

Flux3VideoV2VInputsAspectRatio1 defines model for Flux3VideoV2VInputs.AspectRatio.1.

const (
	Flux3VideoV2VInputsAspectRatio1Auto Flux3VideoV2VInputsAspectRatio1 = "auto"
)

Defines values for Flux3VideoV2VInputsAspectRatio1.

func (Flux3VideoV2VInputsAspectRatio1) Valid

Valid indicates whether the value is a known member of the Flux3VideoV2VInputsAspectRatio1 enum.

type Flux3VideoV2VInputsDuration0

type Flux3VideoV2VInputsDuration0 = int

Flux3VideoV2VInputsDuration0 defines model for Flux3VideoV2VInputs.Duration.0.

type Flux3VideoV2VInputsDuration1

type Flux3VideoV2VInputsDuration1 string

Flux3VideoV2VInputsDuration1 defines model for Flux3VideoV2VInputs.Duration.1.

const (
	Flux3VideoV2VInputsDuration1Auto Flux3VideoV2VInputsDuration1 = "auto"
)

Defines values for Flux3VideoV2VInputsDuration1.

func (Flux3VideoV2VInputsDuration1) Valid

Valid indicates whether the value is a known member of the Flux3VideoV2VInputsDuration1 enum.

type Flux3VideoV2VInputsMode

type Flux3VideoV2VInputsMode string

Flux3VideoV2VInputsMode defines model for Flux3VideoV2VInputs.Mode.

const (
	Flux3VideoV2VInputsModeV2v Flux3VideoV2VInputsMode = "v2v"
)

Defines values for Flux3VideoV2VInputsMode.

func (Flux3VideoV2VInputsMode) Valid

func (e Flux3VideoV2VInputsMode) Valid() bool

Valid indicates whether the value is a known member of the Flux3VideoV2VInputsMode enum.

type Flux3VideoV2VInputsResolution

type Flux3VideoV2VInputsResolution string

Flux3VideoV2VInputsResolution Video resolution class: `hd`, or `fhd`/`qhd`/`uhd` for a higher-resolution result finished by the video upsampler. Exact dimensions vary with the aspect ratio.

const (
	Flux3VideoV2VInputsResolutionFhd Flux3VideoV2VInputsResolution = "fhd"
	Flux3VideoV2VInputsResolutionHd  Flux3VideoV2VInputsResolution = "hd"
	Flux3VideoV2VInputsResolutionQhd Flux3VideoV2VInputsResolution = "qhd"
	Flux3VideoV2VInputsResolutionUhd Flux3VideoV2VInputsResolution = "uhd"
)

Defines values for Flux3VideoV2VInputsResolution.

func (Flux3VideoV2VInputsResolution) Valid

Valid indicates whether the value is a known member of the Flux3VideoV2VInputsResolution enum.

type Flux3VideoV2VInputsVersion

type Flux3VideoV2VInputsVersion string

Flux3VideoV2VInputsVersion Endpoint version. `latest` (default) serves the current release; dated pinnable release tags are added here as they are published.

const (
	Flux3VideoV2VInputsVersionLatest Flux3VideoV2VInputsVersion = "latest"
)

Defines values for Flux3VideoV2VInputsVersion.

func (Flux3VideoV2VInputsVersion) Valid

func (e Flux3VideoV2VInputsVersion) Valid() bool

Valid indicates whether the value is a known member of the Flux3VideoV2VInputsVersion enum.

type Flux3VideoV2VInputs_AspectRatio

type Flux3VideoV2VInputs_AspectRatio struct {
	// contains filtered or unexported fields
}

Flux3VideoV2VInputs_AspectRatio Output aspect ratio. `auto` lets the harness choose from the prompt and any references.

func (Flux3VideoV2VInputs_AspectRatio) AsFlux3VideoV2VInputsAspectRatio0

func (t Flux3VideoV2VInputs_AspectRatio) AsFlux3VideoV2VInputsAspectRatio0() (Flux3VideoV2VInputsAspectRatio0, error)

AsFlux3VideoV2VInputsAspectRatio0 returns the union data inside the Flux3VideoV2VInputs_AspectRatio as a Flux3VideoV2VInputsAspectRatio0

func (Flux3VideoV2VInputs_AspectRatio) AsFlux3VideoV2VInputsAspectRatio1

func (t Flux3VideoV2VInputs_AspectRatio) AsFlux3VideoV2VInputsAspectRatio1() (Flux3VideoV2VInputsAspectRatio1, error)

AsFlux3VideoV2VInputsAspectRatio1 returns the union data inside the Flux3VideoV2VInputs_AspectRatio as a Flux3VideoV2VInputsAspectRatio1

func (*Flux3VideoV2VInputs_AspectRatio) FromFlux3VideoV2VInputsAspectRatio0

func (t *Flux3VideoV2VInputs_AspectRatio) FromFlux3VideoV2VInputsAspectRatio0(v Flux3VideoV2VInputsAspectRatio0) error

FromFlux3VideoV2VInputsAspectRatio0 overwrites any union data inside the Flux3VideoV2VInputs_AspectRatio as the provided Flux3VideoV2VInputsAspectRatio0

func (*Flux3VideoV2VInputs_AspectRatio) FromFlux3VideoV2VInputsAspectRatio1

func (t *Flux3VideoV2VInputs_AspectRatio) FromFlux3VideoV2VInputsAspectRatio1(v Flux3VideoV2VInputsAspectRatio1) error

FromFlux3VideoV2VInputsAspectRatio1 overwrites any union data inside the Flux3VideoV2VInputs_AspectRatio as the provided Flux3VideoV2VInputsAspectRatio1

func (Flux3VideoV2VInputs_AspectRatio) MarshalJSON

func (t Flux3VideoV2VInputs_AspectRatio) MarshalJSON() ([]byte, error)

func (*Flux3VideoV2VInputs_AspectRatio) MergeFlux3VideoV2VInputsAspectRatio0

func (t *Flux3VideoV2VInputs_AspectRatio) MergeFlux3VideoV2VInputsAspectRatio0(v Flux3VideoV2VInputsAspectRatio0) error

MergeFlux3VideoV2VInputsAspectRatio0 performs a merge with any union data inside the Flux3VideoV2VInputs_AspectRatio, using the provided Flux3VideoV2VInputsAspectRatio0

func (*Flux3VideoV2VInputs_AspectRatio) MergeFlux3VideoV2VInputsAspectRatio1

func (t *Flux3VideoV2VInputs_AspectRatio) MergeFlux3VideoV2VInputsAspectRatio1(v Flux3VideoV2VInputsAspectRatio1) error

MergeFlux3VideoV2VInputsAspectRatio1 performs a merge with any union data inside the Flux3VideoV2VInputs_AspectRatio, using the provided Flux3VideoV2VInputsAspectRatio1

func (*Flux3VideoV2VInputs_AspectRatio) UnmarshalJSON

func (t *Flux3VideoV2VInputs_AspectRatio) UnmarshalJSON(b []byte) error

type Flux3VideoV2VInputs_Duration

type Flux3VideoV2VInputs_Duration struct {
	// contains filtered or unexported fields
}

Flux3VideoV2VInputs_Duration Video duration in seconds (any whole second from 5 to 15), or `auto` to fit the content.

func (Flux3VideoV2VInputs_Duration) AsFlux3VideoV2VInputsDuration0

func (t Flux3VideoV2VInputs_Duration) AsFlux3VideoV2VInputsDuration0() (Flux3VideoV2VInputsDuration0, error)

AsFlux3VideoV2VInputsDuration0 returns the union data inside the Flux3VideoV2VInputs_Duration as a Flux3VideoV2VInputsDuration0

func (Flux3VideoV2VInputs_Duration) AsFlux3VideoV2VInputsDuration1

func (t Flux3VideoV2VInputs_Duration) AsFlux3VideoV2VInputsDuration1() (Flux3VideoV2VInputsDuration1, error)

AsFlux3VideoV2VInputsDuration1 returns the union data inside the Flux3VideoV2VInputs_Duration as a Flux3VideoV2VInputsDuration1

func (*Flux3VideoV2VInputs_Duration) FromFlux3VideoV2VInputsDuration0

func (t *Flux3VideoV2VInputs_Duration) FromFlux3VideoV2VInputsDuration0(v Flux3VideoV2VInputsDuration0) error

FromFlux3VideoV2VInputsDuration0 overwrites any union data inside the Flux3VideoV2VInputs_Duration as the provided Flux3VideoV2VInputsDuration0

func (*Flux3VideoV2VInputs_Duration) FromFlux3VideoV2VInputsDuration1

func (t *Flux3VideoV2VInputs_Duration) FromFlux3VideoV2VInputsDuration1(v Flux3VideoV2VInputsDuration1) error

FromFlux3VideoV2VInputsDuration1 overwrites any union data inside the Flux3VideoV2VInputs_Duration as the provided Flux3VideoV2VInputsDuration1

func (Flux3VideoV2VInputs_Duration) MarshalJSON

func (t Flux3VideoV2VInputs_Duration) MarshalJSON() ([]byte, error)

func (*Flux3VideoV2VInputs_Duration) MergeFlux3VideoV2VInputsDuration0

func (t *Flux3VideoV2VInputs_Duration) MergeFlux3VideoV2VInputsDuration0(v Flux3VideoV2VInputsDuration0) error

MergeFlux3VideoV2VInputsDuration0 performs a merge with any union data inside the Flux3VideoV2VInputs_Duration, using the provided Flux3VideoV2VInputsDuration0

func (*Flux3VideoV2VInputs_Duration) MergeFlux3VideoV2VInputsDuration1

func (t *Flux3VideoV2VInputs_Duration) MergeFlux3VideoV2VInputsDuration1(v Flux3VideoV2VInputsDuration1) error

MergeFlux3VideoV2VInputsDuration1 performs a merge with any union data inside the Flux3VideoV2VInputs_Duration, using the provided Flux3VideoV2VInputsDuration1

func (*Flux3VideoV2VInputs_Duration) UnmarshalJSON

func (t *Flux3VideoV2VInputs_Duration) UnmarshalJSON(b []byte) error

type Flux3VideoVE2VNamedInputs

type Flux3VideoVE2VNamedInputs struct {
	// Prompt Edit instruction, stripped of surrounding whitespace.
	Prompt string `json:"prompt"`

	// SafetyTolerance Harm moderation tolerance from 0 to 7, with 0 the strictest. The route and organization determine the approved maximum and per-category ceilings. Unapproved levels return 422 with approved levels.
	SafetyTolerance *int `json:"safety_tolerance,omitempty"`

	// User Opaque identifier for the end user supplied by the calling platform.
	User *string `json:"user,omitempty"`

	// Video The video to edit, an http(s) URL or base64-encoded mp4.
	Video string `json:"video"`
}

Flux3VideoVE2VNamedInputs Video edit on a dedicated route: the clip and the instruction.

The public `/flux-tools/video-edit-v1` body. The route pins the recipe, so the body has no `mode` and no `version` to pick, and every serving control -- duration, resolution, aspect ratio, audio, steps, guidance, seed -- stays server-pinned.

type FluxDevInputs

type FluxDevInputs struct {
	// Guidance Guidance scale for image generation. High guidance scales improve prompt adherence at the cost of reduced realism.
	//
	// Example: 3
	Guidance *float64 `json:"guidance,omitempty"`

	// Height Height of the generated image in pixels. Must be a multiple of 32.
	Height *int `json:"height,omitempty"`

	// ImagePrompt Optional base64 encoded image to use as a prompt for generation.
	ImagePrompt  *string       `json:"image_prompt,omitempty"`
	OutputFormat *OutputFormat `json:"output_format,omitempty"`

	// Prompt Text prompt for image generation.
	//
	// Example: ein fantastisches bild
	Prompt *string `json:"prompt,omitempty"`

	// PromptUpsampling Whether to perform upsampling on the prompt. If active, automatically modifies the prompt for more creative generation.
	PromptUpsampling *bool `json:"prompt_upsampling,omitempty"`

	// SafetyTolerance Tolerance level for input and output moderation. Between 0 and 6, 0 being most strict, 6 being least strict.
	//
	// Example: 2
	SafetyTolerance *int `json:"safety_tolerance,omitempty"`

	// Seed Optional seed for reproducibility.
	//
	// Example: 42
	Seed *int `json:"seed,omitempty"`

	// Steps Number of steps for the image generation process.
	//
	// Example: 28
	Steps *int `json:"steps,omitempty"`

	// User Opaque identifier for the end user supplied by the calling platform.
	User *string `json:"user,omitempty"`

	// WebhookSecret Optional secret for webhook signature verification
	WebhookSecret *string `json:"webhook_secret,omitempty"`

	// WebhookUrl URL to receive webhook notifications
	WebhookUrl *string `json:"webhook_url,omitempty"`

	// Width Width of the generated image in pixels. Must be a multiple of 32.
	Width *int `json:"width,omitempty"`
}

FluxDevInputs defines model for FluxDevInputs.

type FluxDevV1FluxDevPost200JSONResponseBody

type FluxDevV1FluxDevPost200JSONResponseBody struct {
	// contains filtered or unexported fields
}

FluxDevV1FluxDevPost200JSONResponseBody defines parameters for FluxDevV1FluxDevPost.

func (FluxDevV1FluxDevPost200JSONResponseBody) AsAsyncResponse

AsAsyncResponse returns the union data inside the FluxDevV1FluxDevPost200JSONResponseBody as a AsyncResponse

func (FluxDevV1FluxDevPost200JSONResponseBody) AsAsyncWebhookResponse

AsAsyncWebhookResponse returns the union data inside the FluxDevV1FluxDevPost200JSONResponseBody as a AsyncWebhookResponse

func (*FluxDevV1FluxDevPost200JSONResponseBody) FromAsyncResponse

FromAsyncResponse overwrites any union data inside the FluxDevV1FluxDevPost200JSONResponseBody as the provided AsyncResponse

func (*FluxDevV1FluxDevPost200JSONResponseBody) FromAsyncWebhookResponse

FromAsyncWebhookResponse overwrites any union data inside the FluxDevV1FluxDevPost200JSONResponseBody as the provided AsyncWebhookResponse

func (FluxDevV1FluxDevPost200JSONResponseBody) MarshalJSON

func (t FluxDevV1FluxDevPost200JSONResponseBody) MarshalJSON() ([]byte, error)

func (*FluxDevV1FluxDevPost200JSONResponseBody) MergeAsyncResponse

MergeAsyncResponse performs a merge with any union data inside the FluxDevV1FluxDevPost200JSONResponseBody, using the provided AsyncResponse

func (*FluxDevV1FluxDevPost200JSONResponseBody) MergeAsyncWebhookResponse

func (t *FluxDevV1FluxDevPost200JSONResponseBody) MergeAsyncWebhookResponse(v AsyncWebhookResponse) error

MergeAsyncWebhookResponse performs a merge with any union data inside the FluxDevV1FluxDevPost200JSONResponseBody, using the provided AsyncWebhookResponse

func (*FluxDevV1FluxDevPost200JSONResponseBody) UnmarshalJSON

func (t *FluxDevV1FluxDevPost200JSONResponseBody) UnmarshalJSON(b []byte) error

type FluxDevV1FluxDevPostJSONRequestBody

type FluxDevV1FluxDevPostJSONRequestBody = FluxDevInputs

FluxDevV1FluxDevPostJSONRequestBody defines body for FluxDevV1FluxDevPost for application/json ContentType.

type FluxDevV1FluxDevPostResponse

type FluxDevV1FluxDevPostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *FluxDevV1FluxDevPost200JSONResponseBody
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseFluxDevV1FluxDevPostResponse

func ParseFluxDevV1FluxDevPostResponse(rsp *http.Response) (*FluxDevV1FluxDevPostResponse, error)

ParseFluxDevV1FluxDevPostResponse parses an HTTP response from a FluxDevV1FluxDevPostWithResponse call

func (FluxDevV1FluxDevPostResponse) ContentType

func (r FluxDevV1FluxDevPostResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (FluxDevV1FluxDevPostResponse) GetBody

func (r FluxDevV1FluxDevPostResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (FluxDevV1FluxDevPostResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (FluxDevV1FluxDevPostResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (FluxDevV1FluxDevPostResponse) Status

Status returns HTTPResponse.Status

func (FluxDevV1FluxDevPostResponse) StatusCode

func (r FluxDevV1FluxDevPostResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type FluxKontextProInputs

type FluxKontextProInputs struct {
	// AspectRatio Aspect ratio of the image between 21:9 and 9:21
	AspectRatio *string `json:"aspect_ratio,omitempty"`

	// InputImage Base64 encoded image or URL to use with Kontext.
	InputImage *string `json:"input_image,omitempty"`

	// InputImage2 Base64 encoded image or URL to use with Kontext. *Experimental Multiref*
	InputImage2 *string `json:"input_image_2,omitempty"`

	// InputImage3 Base64 encoded image or URL to use with Kontext. *Experimental Multiref*
	InputImage3 *string `json:"input_image_3,omitempty"`

	// InputImage4 Base64 encoded image or URL to use with Kontext. *Experimental Multiref*
	InputImage4  *string       `json:"input_image_4,omitempty"`
	OutputFormat *OutputFormat `json:"output_format,omitempty"`

	// Prompt Text prompt for image generation.
	//
	// Example: ein fantastisches bild
	Prompt string `json:"prompt"`

	// PromptUpsampling Whether to perform upsampling on the prompt. If active, automatically modifies the prompt for more creative generation.
	PromptUpsampling *bool `json:"prompt_upsampling,omitempty"`

	// SafetyTolerance Tolerance level for input and output moderation. Between 0 and 6, 0 being most strict, 6 being least strict.
	//
	// Example: 2
	SafetyTolerance *int `json:"safety_tolerance,omitempty"`

	// Seed Optional seed for reproducibility.
	//
	// Example: 42
	Seed *int `json:"seed,omitempty"`

	// User Opaque identifier for the end user supplied by the calling platform.
	User *string `json:"user,omitempty"`

	// WebhookSecret Optional secret for webhook signature verification
	WebhookSecret *string `json:"webhook_secret,omitempty"`

	// WebhookUrl URL to receive webhook notifications
	WebhookUrl *string `json:"webhook_url,omitempty"`
}

FluxKontextProInputs defines model for FluxKontextProInputs.

type FluxOutpaintingInputs

type FluxOutpaintingInputs struct {
	// AutoCrop If True, crop the input image to the canvas bounds when it extends beyond the edges. If False, an error is raised instead.
	AutoCrop *bool `json:"auto_crop,omitempty"`

	// DisablePup Skip the image-aware prompt upsampler for lower latency. The prompt (or a default extension prompt) is sent directly to the generation model; quality in the extended region may be lower for scenes that benefit from semantic guidance. Applies to both modes.
	DisablePup *bool `json:"disable_pup,omitempty"`

	// Height Target output height.
	Height int `json:"height"`

	// InputImage Base64-encoded input (reference) image or HTTP(S) image URL.
	InputImage string `json:"input_image"`

	// Mode Quality/speed trade-off. 'high' (default): highest-fidelity results, recommended whenever fine detail, prompt adherence, or consistency with complex content in the source image matters; slower. 'fast': significantly faster and well-suited for naturally extending most scenes (landscapes, backgrounds, textures, products); may produce lower fidelity in the extended region than 'high'.
	Mode         *FluxOutpaintingInputsMode `json:"mode,omitempty"`
	OutputFormat *OutputFormat              `json:"output_format,omitempty"`

	// Prompt Experimental: optional text guidance for the outpainted region. The model may not strictly follow this prompt; the visual content of the input image is the primary signal. Leave unset for default behavior.
	Prompt *string `json:"prompt,omitempty"`

	// ReferenceOffsetX Left offset (px) of the reference image's top-left corner on the output canvas. Negative values are allowed. None = center horizontally.
	ReferenceOffsetX *int `json:"reference_offset_x,omitempty"`

	// ReferenceOffsetY Top offset (px) of the reference image's top-left corner on the output canvas. Negative values are allowed. None = center vertically.
	ReferenceOffsetY *int `json:"reference_offset_y,omitempty"`

	// SafetyTolerance Harm moderation tolerance from 0 to 7, with 0 the strictest. The route and organization determine the approved maximum and per-category ceilings. Unapproved levels return 422 with approved levels.
	SafetyTolerance *int `json:"safety_tolerance,omitempty"`

	// User Opaque identifier for the end user supplied by the calling platform.
	User *string `json:"user,omitempty"`

	// Width Target output width.
	Width int `json:"width"`
}

FluxOutpaintingInputs Public contract for “/v1/flux-tools/outpainting-v1“.

type FluxOutpaintingInputsMode

type FluxOutpaintingInputsMode string

FluxOutpaintingInputsMode Quality/speed trade-off. 'high' (default): highest-fidelity results, recommended whenever fine detail, prompt adherence, or consistency with complex content in the source image matters; slower. 'fast': significantly faster and well-suited for naturally extending most scenes (landscapes, backgrounds, textures, products); may produce lower fidelity in the extended region than 'high'.

const (
	FluxOutpaintingInputsModeFast FluxOutpaintingInputsMode = "fast"
	FluxOutpaintingInputsModeHigh FluxOutpaintingInputsMode = "high"
)

Defines values for FluxOutpaintingInputsMode.

func (FluxOutpaintingInputsMode) Valid

func (e FluxOutpaintingInputsMode) Valid() bool

Valid indicates whether the value is a known member of the FluxOutpaintingInputsMode enum.

type FluxPro11Inputs

type FluxPro11Inputs struct {
	// Height Height of the generated image in pixels. Must be a multiple of 32.
	Height *int `json:"height,omitempty"`

	// ImagePrompt Optional base64 encoded image to use with Flux Redux.
	ImagePrompt  *string       `json:"image_prompt,omitempty"`
	OutputFormat *OutputFormat `json:"output_format,omitempty"`

	// Prompt Text prompt for image generation.
	//
	// Example: ein fantastisches bild
	Prompt *string `json:"prompt,omitempty"`

	// PromptUpsampling Whether to perform upsampling on the prompt. If active, automatically modifies the prompt for more creative generation.
	PromptUpsampling *bool `json:"prompt_upsampling,omitempty"`

	// SafetyTolerance Tolerance level for input and output moderation. Between 0 and 6, 0 being most strict, 6 being least strict.
	//
	// Example: 2
	SafetyTolerance *int `json:"safety_tolerance,omitempty"`

	// Seed Optional seed for reproducibility.
	//
	// Example: 42
	Seed *int `json:"seed,omitempty"`

	// User Opaque identifier for the end user supplied by the calling platform.
	User *string `json:"user,omitempty"`

	// WebhookSecret Optional secret for webhook signature verification
	WebhookSecret *string `json:"webhook_secret,omitempty"`

	// WebhookUrl URL to receive webhook notifications
	WebhookUrl *string `json:"webhook_url,omitempty"`

	// Width Width of the generated image in pixels. Must be a multiple of 32.
	Width *int `json:"width,omitempty"`
}

FluxPro11Inputs defines model for FluxPro11Inputs.

type FluxPro11V1FluxPro11Post200JSONResponseBody

type FluxPro11V1FluxPro11Post200JSONResponseBody struct {
	// contains filtered or unexported fields
}

FluxPro11V1FluxPro11Post200JSONResponseBody defines parameters for FluxPro11V1FluxPro11Post.

func (FluxPro11V1FluxPro11Post200JSONResponseBody) AsAsyncResponse

AsAsyncResponse returns the union data inside the FluxPro11V1FluxPro11Post200JSONResponseBody as a AsyncResponse

func (FluxPro11V1FluxPro11Post200JSONResponseBody) AsAsyncWebhookResponse

AsAsyncWebhookResponse returns the union data inside the FluxPro11V1FluxPro11Post200JSONResponseBody as a AsyncWebhookResponse

func (*FluxPro11V1FluxPro11Post200JSONResponseBody) FromAsyncResponse

FromAsyncResponse overwrites any union data inside the FluxPro11V1FluxPro11Post200JSONResponseBody as the provided AsyncResponse

func (*FluxPro11V1FluxPro11Post200JSONResponseBody) FromAsyncWebhookResponse

FromAsyncWebhookResponse overwrites any union data inside the FluxPro11V1FluxPro11Post200JSONResponseBody as the provided AsyncWebhookResponse

func (FluxPro11V1FluxPro11Post200JSONResponseBody) MarshalJSON

func (*FluxPro11V1FluxPro11Post200JSONResponseBody) MergeAsyncResponse

MergeAsyncResponse performs a merge with any union data inside the FluxPro11V1FluxPro11Post200JSONResponseBody, using the provided AsyncResponse

func (*FluxPro11V1FluxPro11Post200JSONResponseBody) MergeAsyncWebhookResponse

MergeAsyncWebhookResponse performs a merge with any union data inside the FluxPro11V1FluxPro11Post200JSONResponseBody, using the provided AsyncWebhookResponse

func (*FluxPro11V1FluxPro11Post200JSONResponseBody) UnmarshalJSON

type FluxPro11V1FluxPro11PostJSONRequestBody

type FluxPro11V1FluxPro11PostJSONRequestBody = FluxPro11Inputs

FluxPro11V1FluxPro11PostJSONRequestBody defines body for FluxPro11V1FluxPro11Post for application/json ContentType.

type FluxPro11V1FluxPro11PostResponse

type FluxPro11V1FluxPro11PostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *FluxPro11V1FluxPro11Post200JSONResponseBody
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseFluxPro11V1FluxPro11PostResponse

func ParseFluxPro11V1FluxPro11PostResponse(rsp *http.Response) (*FluxPro11V1FluxPro11PostResponse, error)

ParseFluxPro11V1FluxPro11PostResponse parses an HTTP response from a FluxPro11V1FluxPro11PostWithResponse call

func (FluxPro11V1FluxPro11PostResponse) ContentType

func (r FluxPro11V1FluxPro11PostResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (FluxPro11V1FluxPro11PostResponse) GetBody

func (r FluxPro11V1FluxPro11PostResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (FluxPro11V1FluxPro11PostResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (FluxPro11V1FluxPro11PostResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (FluxPro11V1FluxPro11PostResponse) Status

Status returns HTTPResponse.Status

func (FluxPro11V1FluxPro11PostResponse) StatusCode

func (r FluxPro11V1FluxPro11PostResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type FluxProExpandInputs

type FluxProExpandInputs struct {
	// Bottom Number of pixels to expand at the bottom of the image
	Bottom *int `json:"bottom,omitempty"`

	// Guidance Guidance strength for the image generation process
	Guidance *float64 `json:"guidance,omitempty"`

	// Image A Base64-encoded string representing the image you wish to expand.
	Image string `json:"image"`

	// Left Number of pixels to expand on the left side of the image
	Left         *int          `json:"left,omitempty"`
	OutputFormat *OutputFormat `json:"output_format,omitempty"`

	// Prompt The description of the changes you want to make. This text guides the expansion process, allowing you to specify features, styles, or modifications for the expanded areas.
	//
	// Example: ein fantastisches bild
	Prompt *string `json:"prompt,omitempty"`

	// PromptUpsampling Whether to perform upsampling on the prompt. If active, automatically modifies the prompt for more creative generation
	PromptUpsampling *bool `json:"prompt_upsampling,omitempty"`

	// Right Number of pixels to expand on the right side of the image
	Right *int `json:"right,omitempty"`

	// SafetyTolerance Tolerance level for input and output moderation. Between 0 and 6, 0 being most strict, 6 being least strict.
	//
	// Example: 2
	SafetyTolerance *int `json:"safety_tolerance,omitempty"`

	// Seed Optional seed for reproducibility
	Seed *int `json:"seed,omitempty"`

	// Steps Number of steps for the image generation process
	//
	// Example: 50
	Steps *int `json:"steps,omitempty"`

	// Top Number of pixels to expand at the top of the image
	Top *int `json:"top,omitempty"`

	// User Opaque identifier for the end user supplied by the calling platform.
	User *string `json:"user,omitempty"`

	// WebhookSecret Optional secret for webhook signature verification
	WebhookSecret *string `json:"webhook_secret,omitempty"`

	// WebhookUrl URL to receive webhook notifications
	WebhookUrl *string `json:"webhook_url,omitempty"`
}

FluxProExpandInputs defines model for FluxProExpandInputs.

type FluxProFillInputs

type FluxProFillInputs struct {
	// Guidance Guidance strength for the image generation process
	Guidance *float64 `json:"guidance,omitempty"`

	// Image A Base64-encoded string representing the image you wish to modify. Can contain alpha mask if desired.
	Image string `json:"image"`

	// Mask A Base64-encoded string representing a mask for the areas you want to modify in the image. The mask should be the same dimensions as the image and in black and white. Black areas (0%) indicate no modification, while white areas (100%) specify areas for inpainting. Optional if you provide an alpha mask in the original image. Validation: The endpoint verifies that the dimensions of the mask match the original image.
	Mask         *string       `json:"mask,omitempty"`
	OutputFormat *OutputFormat `json:"output_format,omitempty"`

	// Prompt The description of the changes you want to make. This text guides the inpainting process, allowing you to specify features, styles, or modifications for the masked area.
	//
	// Example: ein fantastisches bild
	Prompt *string `json:"prompt,omitempty"`

	// PromptUpsampling Whether to perform upsampling on the prompt. If active, automatically modifies the prompt for more creative generation
	PromptUpsampling *bool `json:"prompt_upsampling,omitempty"`

	// SafetyTolerance Tolerance level for input and output moderation. Between 0 and 6, 0 being most strict, 6 being least strict.
	//
	// Example: 2
	SafetyTolerance *int `json:"safety_tolerance,omitempty"`

	// Seed Optional seed for reproducibility
	Seed *int `json:"seed,omitempty"`

	// Steps Number of steps for the image generation process
	//
	// Example: 50
	Steps *int `json:"steps,omitempty"`

	// User Opaque identifier for the end user supplied by the calling platform.
	User *string `json:"user,omitempty"`

	// WebhookSecret Optional secret for webhook signature verification
	WebhookSecret *string `json:"webhook_secret,omitempty"`

	// WebhookUrl URL to receive webhook notifications
	WebhookUrl *string `json:"webhook_url,omitempty"`
}

FluxProFillInputs defines model for FluxProFillInputs.

type FluxUltraInput

type FluxUltraInput struct {
	// AspectRatio Aspect ratio of the image between 21:9 and 9:21
	AspectRatio *string `json:"aspect_ratio,omitempty"`

	// ImagePrompt Optional image to remix in base64 format
	ImagePrompt *string `json:"image_prompt,omitempty"`

	// ImagePromptStrength Blend between the prompt and the image prompt
	ImagePromptStrength *float64      `json:"image_prompt_strength,omitempty"`
	OutputFormat        *OutputFormat `json:"output_format,omitempty"`

	// Prompt The prompt to use for image generation.
	//
	// Example: A beautiful landscape with mountains and a lake
	Prompt *string `json:"prompt,omitempty"`

	// PromptUpsampling Whether to perform upsampling on the prompt. If active, automatically modifies the prompt for more creative generation.
	PromptUpsampling *bool `json:"prompt_upsampling,omitempty"`

	// Raw Generate less processed, more natural-looking images
	//
	// Example: false
	Raw *bool `json:"raw,omitempty"`

	// SafetyTolerance Tolerance level for input and output moderation. Between 0 and 6, 0 being most strict, 6 being least strict.
	//
	// Example: 2
	SafetyTolerance *int `json:"safety_tolerance,omitempty"`

	// Seed Optional seed for reproducibility. If not provided, a random seed will be used.
	//
	// Example: 42
	Seed *int `json:"seed,omitempty"`

	// User Opaque identifier for the end user supplied by the calling platform.
	User *string `json:"user,omitempty"`

	// WebhookSecret Optional secret for webhook signature verification
	WebhookSecret *string `json:"webhook_secret,omitempty"`

	// WebhookUrl URL to receive webhook notifications
	WebhookUrl *string `json:"webhook_url,omitempty"`
}

FluxUltraInput defines model for FluxUltraInput.

type GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPost200JSONResponseBody

type GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPost200JSONResponseBody struct {
	// contains filtered or unexported fields
}

GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPost200JSONResponseBody defines parameters for GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPost.

func (GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPost200JSONResponseBody) AsAsyncResponse

AsAsyncResponse returns the union data inside the GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPost200JSONResponseBody as a AsyncResponse

func (GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPost200JSONResponseBody) AsAsyncWebhookResponse

AsAsyncWebhookResponse returns the union data inside the GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPost200JSONResponseBody as a AsyncWebhookResponse

func (*GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPost200JSONResponseBody) FromAsyncResponse

FromAsyncResponse overwrites any union data inside the GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPost200JSONResponseBody as the provided AsyncResponse

func (*GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPost200JSONResponseBody) FromAsyncWebhookResponse

FromAsyncWebhookResponse overwrites any union data inside the GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPost200JSONResponseBody as the provided AsyncWebhookResponse

func (GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPost200JSONResponseBody) MarshalJSON

func (*GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPost200JSONResponseBody) MergeAsyncResponse

MergeAsyncResponse performs a merge with any union data inside the GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPost200JSONResponseBody, using the provided AsyncResponse

func (*GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPost200JSONResponseBody) MergeAsyncWebhookResponse

MergeAsyncWebhookResponse performs a merge with any union data inside the GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPost200JSONResponseBody, using the provided AsyncWebhookResponse

func (*GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPost200JSONResponseBody) UnmarshalJSON

type GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPostJSONRequestBody

type GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPostJSONRequestBody = FinetuneFluxUltraInput

GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPostJSONRequestBody defines body for GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPost for application/json ContentType.

type GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPostResponse

type GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPost200JSONResponseBody
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseGenerateBigblueFinetunedV1FluxPro11UltraFinetunedPostResponse

func ParseGenerateBigblueFinetunedV1FluxPro11UltraFinetunedPostResponse(rsp *http.Response) (*GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPostResponse, error)

ParseGenerateBigblueFinetunedV1FluxPro11UltraFinetunedPostResponse parses an HTTP response from a GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPostWithResponse call

func (GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPostResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPostResponse) GetBody

GetBody returns the raw response body bytes

func (GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPostResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPostResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPostResponse) Status

Status returns HTTPResponse.Status

func (GenerateBigblueFinetunedV1FluxPro11UltraFinetunedPostResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GenerateFlux2FlexV1Flux2FlexPost200JSONResponseBody

type GenerateFlux2FlexV1Flux2FlexPost200JSONResponseBody struct {
	// contains filtered or unexported fields
}

GenerateFlux2FlexV1Flux2FlexPost200JSONResponseBody defines parameters for GenerateFlux2FlexV1Flux2FlexPost.

func (GenerateFlux2FlexV1Flux2FlexPost200JSONResponseBody) AsAsyncResponse

AsAsyncResponse returns the union data inside the GenerateFlux2FlexV1Flux2FlexPost200JSONResponseBody as a AsyncResponse

func (GenerateFlux2FlexV1Flux2FlexPost200JSONResponseBody) AsAsyncWebhookResponse

AsAsyncWebhookResponse returns the union data inside the GenerateFlux2FlexV1Flux2FlexPost200JSONResponseBody as a AsyncWebhookResponse

func (*GenerateFlux2FlexV1Flux2FlexPost200JSONResponseBody) FromAsyncResponse

FromAsyncResponse overwrites any union data inside the GenerateFlux2FlexV1Flux2FlexPost200JSONResponseBody as the provided AsyncResponse

func (*GenerateFlux2FlexV1Flux2FlexPost200JSONResponseBody) FromAsyncWebhookResponse

FromAsyncWebhookResponse overwrites any union data inside the GenerateFlux2FlexV1Flux2FlexPost200JSONResponseBody as the provided AsyncWebhookResponse

func (GenerateFlux2FlexV1Flux2FlexPost200JSONResponseBody) MarshalJSON

func (*GenerateFlux2FlexV1Flux2FlexPost200JSONResponseBody) MergeAsyncResponse

MergeAsyncResponse performs a merge with any union data inside the GenerateFlux2FlexV1Flux2FlexPost200JSONResponseBody, using the provided AsyncResponse

func (*GenerateFlux2FlexV1Flux2FlexPost200JSONResponseBody) MergeAsyncWebhookResponse

MergeAsyncWebhookResponse performs a merge with any union data inside the GenerateFlux2FlexV1Flux2FlexPost200JSONResponseBody, using the provided AsyncWebhookResponse

func (*GenerateFlux2FlexV1Flux2FlexPost200JSONResponseBody) UnmarshalJSON

type GenerateFlux2FlexV1Flux2FlexPostJSONRequestBody

type GenerateFlux2FlexV1Flux2FlexPostJSONRequestBody = Flux2FlexInputs

GenerateFlux2FlexV1Flux2FlexPostJSONRequestBody defines body for GenerateFlux2FlexV1Flux2FlexPost for application/json ContentType.

type GenerateFlux2FlexV1Flux2FlexPostResponse

type GenerateFlux2FlexV1Flux2FlexPostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *GenerateFlux2FlexV1Flux2FlexPost200JSONResponseBody
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseGenerateFlux2FlexV1Flux2FlexPostResponse

func ParseGenerateFlux2FlexV1Flux2FlexPostResponse(rsp *http.Response) (*GenerateFlux2FlexV1Flux2FlexPostResponse, error)

ParseGenerateFlux2FlexV1Flux2FlexPostResponse parses an HTTP response from a GenerateFlux2FlexV1Flux2FlexPostWithResponse call

func (GenerateFlux2FlexV1Flux2FlexPostResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GenerateFlux2FlexV1Flux2FlexPostResponse) GetBody

GetBody returns the raw response body bytes

func (GenerateFlux2FlexV1Flux2FlexPostResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GenerateFlux2FlexV1Flux2FlexPostResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (GenerateFlux2FlexV1Flux2FlexPostResponse) Status

Status returns HTTPResponse.Status

func (GenerateFlux2FlexV1Flux2FlexPostResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GenerateFlux2Klein4bV1Flux2Klein4bPost200JSONResponseBody

type GenerateFlux2Klein4bV1Flux2Klein4bPost200JSONResponseBody struct {
	// contains filtered or unexported fields
}

GenerateFlux2Klein4bV1Flux2Klein4bPost200JSONResponseBody defines parameters for GenerateFlux2Klein4bV1Flux2Klein4bPost.

func (GenerateFlux2Klein4bV1Flux2Klein4bPost200JSONResponseBody) AsAsyncResponse

AsAsyncResponse returns the union data inside the GenerateFlux2Klein4bV1Flux2Klein4bPost200JSONResponseBody as a AsyncResponse

func (GenerateFlux2Klein4bV1Flux2Klein4bPost200JSONResponseBody) AsAsyncWebhookResponse

AsAsyncWebhookResponse returns the union data inside the GenerateFlux2Klein4bV1Flux2Klein4bPost200JSONResponseBody as a AsyncWebhookResponse

func (*GenerateFlux2Klein4bV1Flux2Klein4bPost200JSONResponseBody) FromAsyncResponse

FromAsyncResponse overwrites any union data inside the GenerateFlux2Klein4bV1Flux2Klein4bPost200JSONResponseBody as the provided AsyncResponse

func (*GenerateFlux2Klein4bV1Flux2Klein4bPost200JSONResponseBody) FromAsyncWebhookResponse

FromAsyncWebhookResponse overwrites any union data inside the GenerateFlux2Klein4bV1Flux2Klein4bPost200JSONResponseBody as the provided AsyncWebhookResponse

func (GenerateFlux2Klein4bV1Flux2Klein4bPost200JSONResponseBody) MarshalJSON

func (*GenerateFlux2Klein4bV1Flux2Klein4bPost200JSONResponseBody) MergeAsyncResponse

MergeAsyncResponse performs a merge with any union data inside the GenerateFlux2Klein4bV1Flux2Klein4bPost200JSONResponseBody, using the provided AsyncResponse

func (*GenerateFlux2Klein4bV1Flux2Klein4bPost200JSONResponseBody) MergeAsyncWebhookResponse

MergeAsyncWebhookResponse performs a merge with any union data inside the GenerateFlux2Klein4bV1Flux2Klein4bPost200JSONResponseBody, using the provided AsyncWebhookResponse

func (*GenerateFlux2Klein4bV1Flux2Klein4bPost200JSONResponseBody) UnmarshalJSON

type GenerateFlux2Klein4bV1Flux2Klein4bPostJSONRequestBody

type GenerateFlux2Klein4bV1Flux2Klein4bPostJSONRequestBody = Flux2KleinInputs

GenerateFlux2Klein4bV1Flux2Klein4bPostJSONRequestBody defines body for GenerateFlux2Klein4bV1Flux2Klein4bPost for application/json ContentType.

type GenerateFlux2Klein4bV1Flux2Klein4bPostResponse

type GenerateFlux2Klein4bV1Flux2Klein4bPostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *GenerateFlux2Klein4bV1Flux2Klein4bPost200JSONResponseBody
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseGenerateFlux2Klein4bV1Flux2Klein4bPostResponse

func ParseGenerateFlux2Klein4bV1Flux2Klein4bPostResponse(rsp *http.Response) (*GenerateFlux2Klein4bV1Flux2Klein4bPostResponse, error)

ParseGenerateFlux2Klein4bV1Flux2Klein4bPostResponse parses an HTTP response from a GenerateFlux2Klein4bV1Flux2Klein4bPostWithResponse call

func (GenerateFlux2Klein4bV1Flux2Klein4bPostResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GenerateFlux2Klein4bV1Flux2Klein4bPostResponse) GetBody

GetBody returns the raw response body bytes

func (GenerateFlux2Klein4bV1Flux2Klein4bPostResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GenerateFlux2Klein4bV1Flux2Klein4bPostResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (GenerateFlux2Klein4bV1Flux2Klein4bPostResponse) Status

Status returns HTTPResponse.Status

func (GenerateFlux2Klein4bV1Flux2Klein4bPostResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPost200JSONResponseBody

type GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPost200JSONResponseBody struct {
	// contains filtered or unexported fields
}

GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPost200JSONResponseBody defines parameters for GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPost.

func (GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPost200JSONResponseBody) AsAsyncResponse

AsAsyncResponse returns the union data inside the GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPost200JSONResponseBody as a AsyncResponse

func (GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPost200JSONResponseBody) AsAsyncWebhookResponse

AsAsyncWebhookResponse returns the union data inside the GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPost200JSONResponseBody as a AsyncWebhookResponse

func (*GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPost200JSONResponseBody) FromAsyncResponse

FromAsyncResponse overwrites any union data inside the GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPost200JSONResponseBody as the provided AsyncResponse

func (*GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPost200JSONResponseBody) FromAsyncWebhookResponse

FromAsyncWebhookResponse overwrites any union data inside the GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPost200JSONResponseBody as the provided AsyncWebhookResponse

func (GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPost200JSONResponseBody) MarshalJSON

func (*GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPost200JSONResponseBody) MergeAsyncResponse

MergeAsyncResponse performs a merge with any union data inside the GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPost200JSONResponseBody, using the provided AsyncResponse

func (*GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPost200JSONResponseBody) MergeAsyncWebhookResponse

MergeAsyncWebhookResponse performs a merge with any union data inside the GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPost200JSONResponseBody, using the provided AsyncWebhookResponse

func (*GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPost200JSONResponseBody) UnmarshalJSON

type GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPostJSONRequestBody

type GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPostJSONRequestBody = Flux2KleinInputs

GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPostJSONRequestBody defines body for GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPost for application/json ContentType.

type GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPostResponse

type GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPost200JSONResponseBody
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseGenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPostResponse

func ParseGenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPostResponse(rsp *http.Response) (*GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPostResponse, error)

ParseGenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPostResponse parses an HTTP response from a GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPostWithResponse call

func (GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPostResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPostResponse) GetBody

GetBody returns the raw response body bytes

func (GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPostResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPostResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPostResponse) Status

Status returns HTTPResponse.Status

func (GenerateFlux2Klein9bKvV1Flux2Klein9bPreviewPostResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GenerateFlux2Klein9bV1Flux2Klein9bPost200JSONResponseBody

type GenerateFlux2Klein9bV1Flux2Klein9bPost200JSONResponseBody struct {
	// contains filtered or unexported fields
}

GenerateFlux2Klein9bV1Flux2Klein9bPost200JSONResponseBody defines parameters for GenerateFlux2Klein9bV1Flux2Klein9bPost.

func (GenerateFlux2Klein9bV1Flux2Klein9bPost200JSONResponseBody) AsAsyncResponse

AsAsyncResponse returns the union data inside the GenerateFlux2Klein9bV1Flux2Klein9bPost200JSONResponseBody as a AsyncResponse

func (GenerateFlux2Klein9bV1Flux2Klein9bPost200JSONResponseBody) AsAsyncWebhookResponse

AsAsyncWebhookResponse returns the union data inside the GenerateFlux2Klein9bV1Flux2Klein9bPost200JSONResponseBody as a AsyncWebhookResponse

func (*GenerateFlux2Klein9bV1Flux2Klein9bPost200JSONResponseBody) FromAsyncResponse

FromAsyncResponse overwrites any union data inside the GenerateFlux2Klein9bV1Flux2Klein9bPost200JSONResponseBody as the provided AsyncResponse

func (*GenerateFlux2Klein9bV1Flux2Klein9bPost200JSONResponseBody) FromAsyncWebhookResponse

FromAsyncWebhookResponse overwrites any union data inside the GenerateFlux2Klein9bV1Flux2Klein9bPost200JSONResponseBody as the provided AsyncWebhookResponse

func (GenerateFlux2Klein9bV1Flux2Klein9bPost200JSONResponseBody) MarshalJSON

func (*GenerateFlux2Klein9bV1Flux2Klein9bPost200JSONResponseBody) MergeAsyncResponse

MergeAsyncResponse performs a merge with any union data inside the GenerateFlux2Klein9bV1Flux2Klein9bPost200JSONResponseBody, using the provided AsyncResponse

func (*GenerateFlux2Klein9bV1Flux2Klein9bPost200JSONResponseBody) MergeAsyncWebhookResponse

MergeAsyncWebhookResponse performs a merge with any union data inside the GenerateFlux2Klein9bV1Flux2Klein9bPost200JSONResponseBody, using the provided AsyncWebhookResponse

func (*GenerateFlux2Klein9bV1Flux2Klein9bPost200JSONResponseBody) UnmarshalJSON

type GenerateFlux2Klein9bV1Flux2Klein9bPostJSONRequestBody

type GenerateFlux2Klein9bV1Flux2Klein9bPostJSONRequestBody = Flux2KleinInputs

GenerateFlux2Klein9bV1Flux2Klein9bPostJSONRequestBody defines body for GenerateFlux2Klein9bV1Flux2Klein9bPost for application/json ContentType.

type GenerateFlux2Klein9bV1Flux2Klein9bPostResponse

type GenerateFlux2Klein9bV1Flux2Klein9bPostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *GenerateFlux2Klein9bV1Flux2Klein9bPost200JSONResponseBody
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseGenerateFlux2Klein9bV1Flux2Klein9bPostResponse

func ParseGenerateFlux2Klein9bV1Flux2Klein9bPostResponse(rsp *http.Response) (*GenerateFlux2Klein9bV1Flux2Klein9bPostResponse, error)

ParseGenerateFlux2Klein9bV1Flux2Klein9bPostResponse parses an HTTP response from a GenerateFlux2Klein9bV1Flux2Klein9bPostWithResponse call

func (GenerateFlux2Klein9bV1Flux2Klein9bPostResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GenerateFlux2Klein9bV1Flux2Klein9bPostResponse) GetBody

GetBody returns the raw response body bytes

func (GenerateFlux2Klein9bV1Flux2Klein9bPostResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GenerateFlux2Klein9bV1Flux2Klein9bPostResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (GenerateFlux2Klein9bV1Flux2Klein9bPostResponse) Status

Status returns HTTPResponse.Status

func (GenerateFlux2Klein9bV1Flux2Klein9bPostResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GenerateFlux2MaxV1Flux2MaxPost200JSONResponseBody

type GenerateFlux2MaxV1Flux2MaxPost200JSONResponseBody struct {
	// contains filtered or unexported fields
}

GenerateFlux2MaxV1Flux2MaxPost200JSONResponseBody defines parameters for GenerateFlux2MaxV1Flux2MaxPost.

func (GenerateFlux2MaxV1Flux2MaxPost200JSONResponseBody) AsAsyncResponse

AsAsyncResponse returns the union data inside the GenerateFlux2MaxV1Flux2MaxPost200JSONResponseBody as a AsyncResponse

func (GenerateFlux2MaxV1Flux2MaxPost200JSONResponseBody) AsAsyncWebhookResponse

AsAsyncWebhookResponse returns the union data inside the GenerateFlux2MaxV1Flux2MaxPost200JSONResponseBody as a AsyncWebhookResponse

func (*GenerateFlux2MaxV1Flux2MaxPost200JSONResponseBody) FromAsyncResponse

FromAsyncResponse overwrites any union data inside the GenerateFlux2MaxV1Flux2MaxPost200JSONResponseBody as the provided AsyncResponse

func (*GenerateFlux2MaxV1Flux2MaxPost200JSONResponseBody) FromAsyncWebhookResponse

FromAsyncWebhookResponse overwrites any union data inside the GenerateFlux2MaxV1Flux2MaxPost200JSONResponseBody as the provided AsyncWebhookResponse

func (GenerateFlux2MaxV1Flux2MaxPost200JSONResponseBody) MarshalJSON

func (*GenerateFlux2MaxV1Flux2MaxPost200JSONResponseBody) MergeAsyncResponse

MergeAsyncResponse performs a merge with any union data inside the GenerateFlux2MaxV1Flux2MaxPost200JSONResponseBody, using the provided AsyncResponse

func (*GenerateFlux2MaxV1Flux2MaxPost200JSONResponseBody) MergeAsyncWebhookResponse

MergeAsyncWebhookResponse performs a merge with any union data inside the GenerateFlux2MaxV1Flux2MaxPost200JSONResponseBody, using the provided AsyncWebhookResponse

func (*GenerateFlux2MaxV1Flux2MaxPost200JSONResponseBody) UnmarshalJSON

type GenerateFlux2MaxV1Flux2MaxPostJSONRequestBody

type GenerateFlux2MaxV1Flux2MaxPostJSONRequestBody = Flux2Inputs

GenerateFlux2MaxV1Flux2MaxPostJSONRequestBody defines body for GenerateFlux2MaxV1Flux2MaxPost for application/json ContentType.

type GenerateFlux2MaxV1Flux2MaxPostResponse

type GenerateFlux2MaxV1Flux2MaxPostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *GenerateFlux2MaxV1Flux2MaxPost200JSONResponseBody
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseGenerateFlux2MaxV1Flux2MaxPostResponse

func ParseGenerateFlux2MaxV1Flux2MaxPostResponse(rsp *http.Response) (*GenerateFlux2MaxV1Flux2MaxPostResponse, error)

ParseGenerateFlux2MaxV1Flux2MaxPostResponse parses an HTTP response from a GenerateFlux2MaxV1Flux2MaxPostWithResponse call

func (GenerateFlux2MaxV1Flux2MaxPostResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GenerateFlux2MaxV1Flux2MaxPostResponse) GetBody

GetBody returns the raw response body bytes

func (GenerateFlux2MaxV1Flux2MaxPostResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GenerateFlux2MaxV1Flux2MaxPostResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (GenerateFlux2MaxV1Flux2MaxPostResponse) Status

Status returns HTTPResponse.Status

func (GenerateFlux2MaxV1Flux2MaxPostResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GenerateFlux2ProPreviewV1Flux2ProPreviewPost200JSONResponseBody

type GenerateFlux2ProPreviewV1Flux2ProPreviewPost200JSONResponseBody struct {
	// contains filtered or unexported fields
}

GenerateFlux2ProPreviewV1Flux2ProPreviewPost200JSONResponseBody defines parameters for GenerateFlux2ProPreviewV1Flux2ProPreviewPost.

func (GenerateFlux2ProPreviewV1Flux2ProPreviewPost200JSONResponseBody) AsAsyncResponse

AsAsyncResponse returns the union data inside the GenerateFlux2ProPreviewV1Flux2ProPreviewPost200JSONResponseBody as a AsyncResponse

func (GenerateFlux2ProPreviewV1Flux2ProPreviewPost200JSONResponseBody) AsAsyncWebhookResponse

AsAsyncWebhookResponse returns the union data inside the GenerateFlux2ProPreviewV1Flux2ProPreviewPost200JSONResponseBody as a AsyncWebhookResponse

func (*GenerateFlux2ProPreviewV1Flux2ProPreviewPost200JSONResponseBody) FromAsyncResponse

FromAsyncResponse overwrites any union data inside the GenerateFlux2ProPreviewV1Flux2ProPreviewPost200JSONResponseBody as the provided AsyncResponse

func (*GenerateFlux2ProPreviewV1Flux2ProPreviewPost200JSONResponseBody) FromAsyncWebhookResponse

FromAsyncWebhookResponse overwrites any union data inside the GenerateFlux2ProPreviewV1Flux2ProPreviewPost200JSONResponseBody as the provided AsyncWebhookResponse

func (GenerateFlux2ProPreviewV1Flux2ProPreviewPost200JSONResponseBody) MarshalJSON

func (*GenerateFlux2ProPreviewV1Flux2ProPreviewPost200JSONResponseBody) MergeAsyncResponse

MergeAsyncResponse performs a merge with any union data inside the GenerateFlux2ProPreviewV1Flux2ProPreviewPost200JSONResponseBody, using the provided AsyncResponse

func (*GenerateFlux2ProPreviewV1Flux2ProPreviewPost200JSONResponseBody) MergeAsyncWebhookResponse

MergeAsyncWebhookResponse performs a merge with any union data inside the GenerateFlux2ProPreviewV1Flux2ProPreviewPost200JSONResponseBody, using the provided AsyncWebhookResponse

func (*GenerateFlux2ProPreviewV1Flux2ProPreviewPost200JSONResponseBody) UnmarshalJSON

type GenerateFlux2ProPreviewV1Flux2ProPreviewPostJSONRequestBody

type GenerateFlux2ProPreviewV1Flux2ProPreviewPostJSONRequestBody = Flux2Inputs

GenerateFlux2ProPreviewV1Flux2ProPreviewPostJSONRequestBody defines body for GenerateFlux2ProPreviewV1Flux2ProPreviewPost for application/json ContentType.

type GenerateFlux2ProPreviewV1Flux2ProPreviewPostResponse

type GenerateFlux2ProPreviewV1Flux2ProPreviewPostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *GenerateFlux2ProPreviewV1Flux2ProPreviewPost200JSONResponseBody
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseGenerateFlux2ProPreviewV1Flux2ProPreviewPostResponse

func ParseGenerateFlux2ProPreviewV1Flux2ProPreviewPostResponse(rsp *http.Response) (*GenerateFlux2ProPreviewV1Flux2ProPreviewPostResponse, error)

ParseGenerateFlux2ProPreviewV1Flux2ProPreviewPostResponse parses an HTTP response from a GenerateFlux2ProPreviewV1Flux2ProPreviewPostWithResponse call

func (GenerateFlux2ProPreviewV1Flux2ProPreviewPostResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GenerateFlux2ProPreviewV1Flux2ProPreviewPostResponse) GetBody

GetBody returns the raw response body bytes

func (GenerateFlux2ProPreviewV1Flux2ProPreviewPostResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GenerateFlux2ProPreviewV1Flux2ProPreviewPostResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (GenerateFlux2ProPreviewV1Flux2ProPreviewPostResponse) Status

Status returns HTTPResponse.Status

func (GenerateFlux2ProPreviewV1Flux2ProPreviewPostResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GenerateFlux2ProV1Flux2ProPost200JSONResponseBody

type GenerateFlux2ProV1Flux2ProPost200JSONResponseBody struct {
	// contains filtered or unexported fields
}

GenerateFlux2ProV1Flux2ProPost200JSONResponseBody defines parameters for GenerateFlux2ProV1Flux2ProPost.

func (GenerateFlux2ProV1Flux2ProPost200JSONResponseBody) AsAsyncResponse

AsAsyncResponse returns the union data inside the GenerateFlux2ProV1Flux2ProPost200JSONResponseBody as a AsyncResponse

func (GenerateFlux2ProV1Flux2ProPost200JSONResponseBody) AsAsyncWebhookResponse

AsAsyncWebhookResponse returns the union data inside the GenerateFlux2ProV1Flux2ProPost200JSONResponseBody as a AsyncWebhookResponse

func (*GenerateFlux2ProV1Flux2ProPost200JSONResponseBody) FromAsyncResponse

FromAsyncResponse overwrites any union data inside the GenerateFlux2ProV1Flux2ProPost200JSONResponseBody as the provided AsyncResponse

func (*GenerateFlux2ProV1Flux2ProPost200JSONResponseBody) FromAsyncWebhookResponse

FromAsyncWebhookResponse overwrites any union data inside the GenerateFlux2ProV1Flux2ProPost200JSONResponseBody as the provided AsyncWebhookResponse

func (GenerateFlux2ProV1Flux2ProPost200JSONResponseBody) MarshalJSON

func (*GenerateFlux2ProV1Flux2ProPost200JSONResponseBody) MergeAsyncResponse

MergeAsyncResponse performs a merge with any union data inside the GenerateFlux2ProV1Flux2ProPost200JSONResponseBody, using the provided AsyncResponse

func (*GenerateFlux2ProV1Flux2ProPost200JSONResponseBody) MergeAsyncWebhookResponse

MergeAsyncWebhookResponse performs a merge with any union data inside the GenerateFlux2ProV1Flux2ProPost200JSONResponseBody, using the provided AsyncWebhookResponse

func (*GenerateFlux2ProV1Flux2ProPost200JSONResponseBody) UnmarshalJSON

type GenerateFlux2ProV1Flux2ProPostJSONRequestBody

type GenerateFlux2ProV1Flux2ProPostJSONRequestBody = Flux2Inputs

GenerateFlux2ProV1Flux2ProPostJSONRequestBody defines body for GenerateFlux2ProV1Flux2ProPost for application/json ContentType.

type GenerateFlux2ProV1Flux2ProPostResponse

type GenerateFlux2ProV1Flux2ProPostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *GenerateFlux2ProV1Flux2ProPost200JSONResponseBody
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseGenerateFlux2ProV1Flux2ProPostResponse

func ParseGenerateFlux2ProV1Flux2ProPostResponse(rsp *http.Response) (*GenerateFlux2ProV1Flux2ProPostResponse, error)

ParseGenerateFlux2ProV1Flux2ProPostResponse parses an HTTP response from a GenerateFlux2ProV1Flux2ProPostWithResponse call

func (GenerateFlux2ProV1Flux2ProPostResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GenerateFlux2ProV1Flux2ProPostResponse) GetBody

GetBody returns the raw response body bytes

func (GenerateFlux2ProV1Flux2ProPostResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GenerateFlux2ProV1Flux2ProPostResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (GenerateFlux2ProV1Flux2ProPostResponse) Status

Status returns HTTPResponse.Status

func (GenerateFlux2ProV1Flux2ProPostResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GenerateFlux11UltraV1FluxPro11UltraPost200JSONResponseBody

type GenerateFlux11UltraV1FluxPro11UltraPost200JSONResponseBody struct {
	// contains filtered or unexported fields
}

GenerateFlux11UltraV1FluxPro11UltraPost200JSONResponseBody defines parameters for GenerateFlux11UltraV1FluxPro11UltraPost.

func (GenerateFlux11UltraV1FluxPro11UltraPost200JSONResponseBody) AsAsyncResponse

AsAsyncResponse returns the union data inside the GenerateFlux11UltraV1FluxPro11UltraPost200JSONResponseBody as a AsyncResponse

func (GenerateFlux11UltraV1FluxPro11UltraPost200JSONResponseBody) AsAsyncWebhookResponse

AsAsyncWebhookResponse returns the union data inside the GenerateFlux11UltraV1FluxPro11UltraPost200JSONResponseBody as a AsyncWebhookResponse

func (*GenerateFlux11UltraV1FluxPro11UltraPost200JSONResponseBody) FromAsyncResponse

FromAsyncResponse overwrites any union data inside the GenerateFlux11UltraV1FluxPro11UltraPost200JSONResponseBody as the provided AsyncResponse

func (*GenerateFlux11UltraV1FluxPro11UltraPost200JSONResponseBody) FromAsyncWebhookResponse

FromAsyncWebhookResponse overwrites any union data inside the GenerateFlux11UltraV1FluxPro11UltraPost200JSONResponseBody as the provided AsyncWebhookResponse

func (GenerateFlux11UltraV1FluxPro11UltraPost200JSONResponseBody) MarshalJSON

func (*GenerateFlux11UltraV1FluxPro11UltraPost200JSONResponseBody) MergeAsyncResponse

MergeAsyncResponse performs a merge with any union data inside the GenerateFlux11UltraV1FluxPro11UltraPost200JSONResponseBody, using the provided AsyncResponse

func (*GenerateFlux11UltraV1FluxPro11UltraPost200JSONResponseBody) MergeAsyncWebhookResponse

MergeAsyncWebhookResponse performs a merge with any union data inside the GenerateFlux11UltraV1FluxPro11UltraPost200JSONResponseBody, using the provided AsyncWebhookResponse

func (*GenerateFlux11UltraV1FluxPro11UltraPost200JSONResponseBody) UnmarshalJSON

type GenerateFlux11UltraV1FluxPro11UltraPostJSONRequestBody

type GenerateFlux11UltraV1FluxPro11UltraPostJSONRequestBody = FluxUltraInput

GenerateFlux11UltraV1FluxPro11UltraPostJSONRequestBody defines body for GenerateFlux11UltraV1FluxPro11UltraPost for application/json ContentType.

type GenerateFlux11UltraV1FluxPro11UltraPostResponse

type GenerateFlux11UltraV1FluxPro11UltraPostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *GenerateFlux11UltraV1FluxPro11UltraPost200JSONResponseBody
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseGenerateFlux11UltraV1FluxPro11UltraPostResponse

func ParseGenerateFlux11UltraV1FluxPro11UltraPostResponse(rsp *http.Response) (*GenerateFlux11UltraV1FluxPro11UltraPostResponse, error)

ParseGenerateFlux11UltraV1FluxPro11UltraPostResponse parses an HTTP response from a GenerateFlux11UltraV1FluxPro11UltraPostWithResponse call

func (GenerateFlux11UltraV1FluxPro11UltraPostResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GenerateFlux11UltraV1FluxPro11UltraPostResponse) GetBody

GetBody returns the raw response body bytes

func (GenerateFlux11UltraV1FluxPro11UltraPostResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GenerateFlux11UltraV1FluxPro11UltraPostResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (GenerateFlux11UltraV1FluxPro11UltraPostResponse) Status

Status returns HTTPResponse.Status

func (GenerateFlux11UltraV1FluxPro11UltraPostResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GenerateFluxKontextMaxV1FluxKontextMaxPost200JSONResponseBody

type GenerateFluxKontextMaxV1FluxKontextMaxPost200JSONResponseBody struct {
	// contains filtered or unexported fields
}

GenerateFluxKontextMaxV1FluxKontextMaxPost200JSONResponseBody defines parameters for GenerateFluxKontextMaxV1FluxKontextMaxPost.

func (GenerateFluxKontextMaxV1FluxKontextMaxPost200JSONResponseBody) AsAsyncResponse

AsAsyncResponse returns the union data inside the GenerateFluxKontextMaxV1FluxKontextMaxPost200JSONResponseBody as a AsyncResponse

func (GenerateFluxKontextMaxV1FluxKontextMaxPost200JSONResponseBody) AsAsyncWebhookResponse

AsAsyncWebhookResponse returns the union data inside the GenerateFluxKontextMaxV1FluxKontextMaxPost200JSONResponseBody as a AsyncWebhookResponse

func (*GenerateFluxKontextMaxV1FluxKontextMaxPost200JSONResponseBody) FromAsyncResponse

FromAsyncResponse overwrites any union data inside the GenerateFluxKontextMaxV1FluxKontextMaxPost200JSONResponseBody as the provided AsyncResponse

func (*GenerateFluxKontextMaxV1FluxKontextMaxPost200JSONResponseBody) FromAsyncWebhookResponse

FromAsyncWebhookResponse overwrites any union data inside the GenerateFluxKontextMaxV1FluxKontextMaxPost200JSONResponseBody as the provided AsyncWebhookResponse

func (GenerateFluxKontextMaxV1FluxKontextMaxPost200JSONResponseBody) MarshalJSON

func (*GenerateFluxKontextMaxV1FluxKontextMaxPost200JSONResponseBody) MergeAsyncResponse

MergeAsyncResponse performs a merge with any union data inside the GenerateFluxKontextMaxV1FluxKontextMaxPost200JSONResponseBody, using the provided AsyncResponse

func (*GenerateFluxKontextMaxV1FluxKontextMaxPost200JSONResponseBody) MergeAsyncWebhookResponse

MergeAsyncWebhookResponse performs a merge with any union data inside the GenerateFluxKontextMaxV1FluxKontextMaxPost200JSONResponseBody, using the provided AsyncWebhookResponse

func (*GenerateFluxKontextMaxV1FluxKontextMaxPost200JSONResponseBody) UnmarshalJSON

type GenerateFluxKontextMaxV1FluxKontextMaxPostJSONRequestBody

type GenerateFluxKontextMaxV1FluxKontextMaxPostJSONRequestBody = FluxKontextProInputs

GenerateFluxKontextMaxV1FluxKontextMaxPostJSONRequestBody defines body for GenerateFluxKontextMaxV1FluxKontextMaxPost for application/json ContentType.

type GenerateFluxKontextMaxV1FluxKontextMaxPostResponse

type GenerateFluxKontextMaxV1FluxKontextMaxPostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *GenerateFluxKontextMaxV1FluxKontextMaxPost200JSONResponseBody
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseGenerateFluxKontextMaxV1FluxKontextMaxPostResponse

func ParseGenerateFluxKontextMaxV1FluxKontextMaxPostResponse(rsp *http.Response) (*GenerateFluxKontextMaxV1FluxKontextMaxPostResponse, error)

ParseGenerateFluxKontextMaxV1FluxKontextMaxPostResponse parses an HTTP response from a GenerateFluxKontextMaxV1FluxKontextMaxPostWithResponse call

func (GenerateFluxKontextMaxV1FluxKontextMaxPostResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GenerateFluxKontextMaxV1FluxKontextMaxPostResponse) GetBody

GetBody returns the raw response body bytes

func (GenerateFluxKontextMaxV1FluxKontextMaxPostResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GenerateFluxKontextMaxV1FluxKontextMaxPostResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (GenerateFluxKontextMaxV1FluxKontextMaxPostResponse) Status

Status returns HTTPResponse.Status

func (GenerateFluxKontextMaxV1FluxKontextMaxPostResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GenerateFluxKontextProV1FluxKontextProPost200JSONResponseBody

type GenerateFluxKontextProV1FluxKontextProPost200JSONResponseBody struct {
	// contains filtered or unexported fields
}

GenerateFluxKontextProV1FluxKontextProPost200JSONResponseBody defines parameters for GenerateFluxKontextProV1FluxKontextProPost.

func (GenerateFluxKontextProV1FluxKontextProPost200JSONResponseBody) AsAsyncResponse

AsAsyncResponse returns the union data inside the GenerateFluxKontextProV1FluxKontextProPost200JSONResponseBody as a AsyncResponse

func (GenerateFluxKontextProV1FluxKontextProPost200JSONResponseBody) AsAsyncWebhookResponse

AsAsyncWebhookResponse returns the union data inside the GenerateFluxKontextProV1FluxKontextProPost200JSONResponseBody as a AsyncWebhookResponse

func (*GenerateFluxKontextProV1FluxKontextProPost200JSONResponseBody) FromAsyncResponse

FromAsyncResponse overwrites any union data inside the GenerateFluxKontextProV1FluxKontextProPost200JSONResponseBody as the provided AsyncResponse

func (*GenerateFluxKontextProV1FluxKontextProPost200JSONResponseBody) FromAsyncWebhookResponse

FromAsyncWebhookResponse overwrites any union data inside the GenerateFluxKontextProV1FluxKontextProPost200JSONResponseBody as the provided AsyncWebhookResponse

func (GenerateFluxKontextProV1FluxKontextProPost200JSONResponseBody) MarshalJSON

func (*GenerateFluxKontextProV1FluxKontextProPost200JSONResponseBody) MergeAsyncResponse

MergeAsyncResponse performs a merge with any union data inside the GenerateFluxKontextProV1FluxKontextProPost200JSONResponseBody, using the provided AsyncResponse

func (*GenerateFluxKontextProV1FluxKontextProPost200JSONResponseBody) MergeAsyncWebhookResponse

MergeAsyncWebhookResponse performs a merge with any union data inside the GenerateFluxKontextProV1FluxKontextProPost200JSONResponseBody, using the provided AsyncWebhookResponse

func (*GenerateFluxKontextProV1FluxKontextProPost200JSONResponseBody) UnmarshalJSON

type GenerateFluxKontextProV1FluxKontextProPostJSONRequestBody

type GenerateFluxKontextProV1FluxKontextProPostJSONRequestBody = FluxKontextProInputs

GenerateFluxKontextProV1FluxKontextProPostJSONRequestBody defines body for GenerateFluxKontextProV1FluxKontextProPost for application/json ContentType.

type GenerateFluxKontextProV1FluxKontextProPostResponse

type GenerateFluxKontextProV1FluxKontextProPostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *GenerateFluxKontextProV1FluxKontextProPost200JSONResponseBody
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseGenerateFluxKontextProV1FluxKontextProPostResponse

func ParseGenerateFluxKontextProV1FluxKontextProPostResponse(rsp *http.Response) (*GenerateFluxKontextProV1FluxKontextProPostResponse, error)

ParseGenerateFluxKontextProV1FluxKontextProPostResponse parses an HTTP response from a GenerateFluxKontextProV1FluxKontextProPostWithResponse call

func (GenerateFluxKontextProV1FluxKontextProPostResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GenerateFluxKontextProV1FluxKontextProPostResponse) GetBody

GetBody returns the raw response body bytes

func (GenerateFluxKontextProV1FluxKontextProPostResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GenerateFluxKontextProV1FluxKontextProPostResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (GenerateFluxKontextProV1FluxKontextProPostResponse) Status

Status returns HTTPResponse.Status

func (GenerateFluxKontextProV1FluxKontextProPostResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1Post200JSONResponseBody

type GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1Post200JSONResponseBody struct {
	// contains filtered or unexported fields
}

GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1Post200JSONResponseBody defines parameters for GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1Post.

func (GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1Post200JSONResponseBody) AsAsyncResponse

AsAsyncResponse returns the union data inside the GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1Post200JSONResponseBody as a AsyncResponse

func (GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1Post200JSONResponseBody) AsAsyncWebhookResponse

AsAsyncWebhookResponse returns the union data inside the GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1Post200JSONResponseBody as a AsyncWebhookResponse

func (*GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1Post200JSONResponseBody) FromAsyncResponse

FromAsyncResponse overwrites any union data inside the GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1Post200JSONResponseBody as the provided AsyncResponse

func (*GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1Post200JSONResponseBody) FromAsyncWebhookResponse

FromAsyncWebhookResponse overwrites any union data inside the GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1Post200JSONResponseBody as the provided AsyncWebhookResponse

func (GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1Post200JSONResponseBody) MarshalJSON

func (*GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1Post200JSONResponseBody) MergeAsyncResponse

MergeAsyncResponse performs a merge with any union data inside the GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1Post200JSONResponseBody, using the provided AsyncResponse

func (*GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1Post200JSONResponseBody) MergeAsyncWebhookResponse

MergeAsyncWebhookResponse performs a merge with any union data inside the GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1Post200JSONResponseBody, using the provided AsyncWebhookResponse

func (*GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1Post200JSONResponseBody) UnmarshalJSON

type GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1PostJSONRequestBody

type GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1PostJSONRequestBody = Flux2DeblurInputs

GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1PostJSONRequestBody defines body for GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1Post for application/json ContentType.

type GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1PostResponse

type GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1PostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1Post200JSONResponseBody
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseGenerateFluxToolsDeblurV1V1FluxToolsDeblurV1PostResponse

func ParseGenerateFluxToolsDeblurV1V1FluxToolsDeblurV1PostResponse(rsp *http.Response) (*GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1PostResponse, error)

ParseGenerateFluxToolsDeblurV1V1FluxToolsDeblurV1PostResponse parses an HTTP response from a GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1PostWithResponse call

func (GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1PostResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1PostResponse) GetBody

GetBody returns the raw response body bytes

func (GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1PostResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1PostResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1PostResponse) Status

Status returns HTTPResponse.Status

func (GenerateFluxToolsDeblurV1V1FluxToolsDeblurV1PostResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GenerateFluxToolsEraseV1V1FluxToolsEraseV1Post200JSONResponseBody

type GenerateFluxToolsEraseV1V1FluxToolsEraseV1Post200JSONResponseBody struct {
	// contains filtered or unexported fields
}

GenerateFluxToolsEraseV1V1FluxToolsEraseV1Post200JSONResponseBody defines parameters for GenerateFluxToolsEraseV1V1FluxToolsEraseV1Post.

func (GenerateFluxToolsEraseV1V1FluxToolsEraseV1Post200JSONResponseBody) AsAsyncResponse

AsAsyncResponse returns the union data inside the GenerateFluxToolsEraseV1V1FluxToolsEraseV1Post200JSONResponseBody as a AsyncResponse

func (GenerateFluxToolsEraseV1V1FluxToolsEraseV1Post200JSONResponseBody) AsAsyncWebhookResponse

AsAsyncWebhookResponse returns the union data inside the GenerateFluxToolsEraseV1V1FluxToolsEraseV1Post200JSONResponseBody as a AsyncWebhookResponse

func (*GenerateFluxToolsEraseV1V1FluxToolsEraseV1Post200JSONResponseBody) FromAsyncResponse

FromAsyncResponse overwrites any union data inside the GenerateFluxToolsEraseV1V1FluxToolsEraseV1Post200JSONResponseBody as the provided AsyncResponse

func (*GenerateFluxToolsEraseV1V1FluxToolsEraseV1Post200JSONResponseBody) FromAsyncWebhookResponse

FromAsyncWebhookResponse overwrites any union data inside the GenerateFluxToolsEraseV1V1FluxToolsEraseV1Post200JSONResponseBody as the provided AsyncWebhookResponse

func (GenerateFluxToolsEraseV1V1FluxToolsEraseV1Post200JSONResponseBody) MarshalJSON

func (*GenerateFluxToolsEraseV1V1FluxToolsEraseV1Post200JSONResponseBody) MergeAsyncResponse

MergeAsyncResponse performs a merge with any union data inside the GenerateFluxToolsEraseV1V1FluxToolsEraseV1Post200JSONResponseBody, using the provided AsyncResponse

func (*GenerateFluxToolsEraseV1V1FluxToolsEraseV1Post200JSONResponseBody) MergeAsyncWebhookResponse

MergeAsyncWebhookResponse performs a merge with any union data inside the GenerateFluxToolsEraseV1V1FluxToolsEraseV1Post200JSONResponseBody, using the provided AsyncWebhookResponse

func (*GenerateFluxToolsEraseV1V1FluxToolsEraseV1Post200JSONResponseBody) UnmarshalJSON

type GenerateFluxToolsEraseV1V1FluxToolsEraseV1PostJSONRequestBody

type GenerateFluxToolsEraseV1V1FluxToolsEraseV1PostJSONRequestBody = Flux2EraseInputs

GenerateFluxToolsEraseV1V1FluxToolsEraseV1PostJSONRequestBody defines body for GenerateFluxToolsEraseV1V1FluxToolsEraseV1Post for application/json ContentType.

type GenerateFluxToolsEraseV1V1FluxToolsEraseV1PostResponse

type GenerateFluxToolsEraseV1V1FluxToolsEraseV1PostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *GenerateFluxToolsEraseV1V1FluxToolsEraseV1Post200JSONResponseBody
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseGenerateFluxToolsEraseV1V1FluxToolsEraseV1PostResponse

func ParseGenerateFluxToolsEraseV1V1FluxToolsEraseV1PostResponse(rsp *http.Response) (*GenerateFluxToolsEraseV1V1FluxToolsEraseV1PostResponse, error)

ParseGenerateFluxToolsEraseV1V1FluxToolsEraseV1PostResponse parses an HTTP response from a GenerateFluxToolsEraseV1V1FluxToolsEraseV1PostWithResponse call

func (GenerateFluxToolsEraseV1V1FluxToolsEraseV1PostResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GenerateFluxToolsEraseV1V1FluxToolsEraseV1PostResponse) GetBody

GetBody returns the raw response body bytes

func (GenerateFluxToolsEraseV1V1FluxToolsEraseV1PostResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GenerateFluxToolsEraseV1V1FluxToolsEraseV1PostResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (GenerateFluxToolsEraseV1V1FluxToolsEraseV1PostResponse) Status

Status returns HTTPResponse.Status

func (GenerateFluxToolsEraseV1V1FluxToolsEraseV1PostResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1Post200JSONResponseBody

type GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1Post200JSONResponseBody struct {
	// contains filtered or unexported fields
}

GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1Post200JSONResponseBody defines parameters for GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1Post.

func (GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1Post200JSONResponseBody) AsAsyncResponse

AsAsyncResponse returns the union data inside the GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1Post200JSONResponseBody as a AsyncResponse

func (GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1Post200JSONResponseBody) AsAsyncWebhookResponse

AsAsyncWebhookResponse returns the union data inside the GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1Post200JSONResponseBody as a AsyncWebhookResponse

func (*GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1Post200JSONResponseBody) FromAsyncResponse

FromAsyncResponse overwrites any union data inside the GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1Post200JSONResponseBody as the provided AsyncResponse

func (*GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1Post200JSONResponseBody) FromAsyncWebhookResponse

FromAsyncWebhookResponse overwrites any union data inside the GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1Post200JSONResponseBody as the provided AsyncWebhookResponse

func (GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1Post200JSONResponseBody) MarshalJSON

func (*GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1Post200JSONResponseBody) MergeAsyncResponse

MergeAsyncResponse performs a merge with any union data inside the GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1Post200JSONResponseBody, using the provided AsyncResponse

func (*GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1Post200JSONResponseBody) MergeAsyncWebhookResponse

MergeAsyncWebhookResponse performs a merge with any union data inside the GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1Post200JSONResponseBody, using the provided AsyncWebhookResponse

func (*GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1Post200JSONResponseBody) UnmarshalJSON

type GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1PostJSONRequestBody

type GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1PostJSONRequestBody = FluxOutpaintingInputs

GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1PostJSONRequestBody defines body for GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1Post for application/json ContentType.

type GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1PostResponse

type GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1PostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1Post200JSONResponseBody
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseGenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1PostResponse

func ParseGenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1PostResponse(rsp *http.Response) (*GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1PostResponse, error)

ParseGenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1PostResponse parses an HTTP response from a GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1PostWithResponse call

func (GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1PostResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1PostResponse) GetBody

GetBody returns the raw response body bytes

func (GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1PostResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1PostResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1PostResponse) Status

Status returns HTTPResponse.Status

func (GenerateFluxToolsOutpaintingV1V1FluxToolsOutpaintingV1PostResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1Post200JSONResponseBody

type GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1Post200JSONResponseBody struct {
	// contains filtered or unexported fields
}

GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1Post200JSONResponseBody defines parameters for GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1Post.

func (GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1Post200JSONResponseBody) AsAsyncResponse

AsAsyncResponse returns the union data inside the GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1Post200JSONResponseBody as a AsyncResponse

func (GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1Post200JSONResponseBody) AsAsyncWebhookResponse

AsAsyncWebhookResponse returns the union data inside the GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1Post200JSONResponseBody as a AsyncWebhookResponse

func (*GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1Post200JSONResponseBody) FromAsyncResponse

FromAsyncResponse overwrites any union data inside the GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1Post200JSONResponseBody as the provided AsyncResponse

func (*GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1Post200JSONResponseBody) FromAsyncWebhookResponse

FromAsyncWebhookResponse overwrites any union data inside the GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1Post200JSONResponseBody as the provided AsyncWebhookResponse

func (GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1Post200JSONResponseBody) MarshalJSON

func (*GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1Post200JSONResponseBody) MergeAsyncResponse

MergeAsyncResponse performs a merge with any union data inside the GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1Post200JSONResponseBody, using the provided AsyncResponse

func (*GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1Post200JSONResponseBody) MergeAsyncWebhookResponse

MergeAsyncWebhookResponse performs a merge with any union data inside the GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1Post200JSONResponseBody, using the provided AsyncWebhookResponse

func (*GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1Post200JSONResponseBody) UnmarshalJSON

type GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1PostJSONRequestBody

type GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1PostJSONRequestBody = Flux3VideoVE2VNamedInputs

GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1PostJSONRequestBody defines body for GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1Post for application/json ContentType.

type GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1PostResponse

type GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1PostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1Post200JSONResponseBody
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseGenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1PostResponse

func ParseGenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1PostResponse(rsp *http.Response) (*GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1PostResponse, error)

ParseGenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1PostResponse parses an HTTP response from a GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1PostWithResponse call

func (GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1PostResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1PostResponse) GetBody

GetBody returns the raw response body bytes

func (GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1PostResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1PostResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1PostResponse) Status

Status returns HTTPResponse.Status

func (GenerateFluxToolsVideoEditV1V1FluxToolsVideoEditV1PostResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1Post200JSONResponseBody

type GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1Post200JSONResponseBody struct {
	// contains filtered or unexported fields
}

GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1Post200JSONResponseBody defines parameters for GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1Post.

func (GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1Post200JSONResponseBody) AsAsyncResponse

AsAsyncResponse returns the union data inside the GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1Post200JSONResponseBody as a AsyncResponse

func (GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1Post200JSONResponseBody) AsAsyncWebhookResponse

AsAsyncWebhookResponse returns the union data inside the GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1Post200JSONResponseBody as a AsyncWebhookResponse

func (*GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1Post200JSONResponseBody) FromAsyncResponse

FromAsyncResponse overwrites any union data inside the GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1Post200JSONResponseBody as the provided AsyncResponse

func (*GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1Post200JSONResponseBody) FromAsyncWebhookResponse

FromAsyncWebhookResponse overwrites any union data inside the GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1Post200JSONResponseBody as the provided AsyncWebhookResponse

func (GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1Post200JSONResponseBody) MarshalJSON

func (*GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1Post200JSONResponseBody) MergeAsyncResponse

MergeAsyncResponse performs a merge with any union data inside the GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1Post200JSONResponseBody, using the provided AsyncResponse

func (*GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1Post200JSONResponseBody) MergeAsyncWebhookResponse

MergeAsyncWebhookResponse performs a merge with any union data inside the GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1Post200JSONResponseBody, using the provided AsyncWebhookResponse

func (*GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1Post200JSONResponseBody) UnmarshalJSON

type GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1PostJSONRequestBody

type GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1PostJSONRequestBody = Flux3VideoUpscaleInputs

GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1PostJSONRequestBody defines body for GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1Post for application/json ContentType.

type GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1PostResponse

type GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1PostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1Post200JSONResponseBody
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseGenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1PostResponse

func ParseGenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1PostResponse(rsp *http.Response) (*GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1PostResponse, error)

ParseGenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1PostResponse parses an HTTP response from a GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1PostWithResponse call

func (GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1PostResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1PostResponse) GetBody

GetBody returns the raw response body bytes

func (GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1PostResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1PostResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1PostResponse) Status

Status returns HTTPResponse.Status

func (GenerateFluxToolsVideoUpscaleV1V1FluxToolsVideoUpscaleV1PostResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GenerateFluxToolsVtoV1V1FluxToolsVtoV1Post200JSONResponseBody

type GenerateFluxToolsVtoV1V1FluxToolsVtoV1Post200JSONResponseBody struct {
	// contains filtered or unexported fields
}

GenerateFluxToolsVtoV1V1FluxToolsVtoV1Post200JSONResponseBody defines parameters for GenerateFluxToolsVtoV1V1FluxToolsVtoV1Post.

func (GenerateFluxToolsVtoV1V1FluxToolsVtoV1Post200JSONResponseBody) AsAsyncResponse

AsAsyncResponse returns the union data inside the GenerateFluxToolsVtoV1V1FluxToolsVtoV1Post200JSONResponseBody as a AsyncResponse

func (GenerateFluxToolsVtoV1V1FluxToolsVtoV1Post200JSONResponseBody) AsAsyncWebhookResponse

AsAsyncWebhookResponse returns the union data inside the GenerateFluxToolsVtoV1V1FluxToolsVtoV1Post200JSONResponseBody as a AsyncWebhookResponse

func (*GenerateFluxToolsVtoV1V1FluxToolsVtoV1Post200JSONResponseBody) FromAsyncResponse

FromAsyncResponse overwrites any union data inside the GenerateFluxToolsVtoV1V1FluxToolsVtoV1Post200JSONResponseBody as the provided AsyncResponse

func (*GenerateFluxToolsVtoV1V1FluxToolsVtoV1Post200JSONResponseBody) FromAsyncWebhookResponse

FromAsyncWebhookResponse overwrites any union data inside the GenerateFluxToolsVtoV1V1FluxToolsVtoV1Post200JSONResponseBody as the provided AsyncWebhookResponse

func (GenerateFluxToolsVtoV1V1FluxToolsVtoV1Post200JSONResponseBody) MarshalJSON

func (*GenerateFluxToolsVtoV1V1FluxToolsVtoV1Post200JSONResponseBody) MergeAsyncResponse

MergeAsyncResponse performs a merge with any union data inside the GenerateFluxToolsVtoV1V1FluxToolsVtoV1Post200JSONResponseBody, using the provided AsyncResponse

func (*GenerateFluxToolsVtoV1V1FluxToolsVtoV1Post200JSONResponseBody) MergeAsyncWebhookResponse

MergeAsyncWebhookResponse performs a merge with any union data inside the GenerateFluxToolsVtoV1V1FluxToolsVtoV1Post200JSONResponseBody, using the provided AsyncWebhookResponse

func (*GenerateFluxToolsVtoV1V1FluxToolsVtoV1Post200JSONResponseBody) UnmarshalJSON

type GenerateFluxToolsVtoV1V1FluxToolsVtoV1PostJSONRequestBody

type GenerateFluxToolsVtoV1V1FluxToolsVtoV1PostJSONRequestBody = Flux2KleinTryonInputs

GenerateFluxToolsVtoV1V1FluxToolsVtoV1PostJSONRequestBody defines body for GenerateFluxToolsVtoV1V1FluxToolsVtoV1Post for application/json ContentType.

type GenerateFluxToolsVtoV1V1FluxToolsVtoV1PostResponse

type GenerateFluxToolsVtoV1V1FluxToolsVtoV1PostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *GenerateFluxToolsVtoV1V1FluxToolsVtoV1Post200JSONResponseBody
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseGenerateFluxToolsVtoV1V1FluxToolsVtoV1PostResponse

func ParseGenerateFluxToolsVtoV1V1FluxToolsVtoV1PostResponse(rsp *http.Response) (*GenerateFluxToolsVtoV1V1FluxToolsVtoV1PostResponse, error)

ParseGenerateFluxToolsVtoV1V1FluxToolsVtoV1PostResponse parses an HTTP response from a GenerateFluxToolsVtoV1V1FluxToolsVtoV1PostWithResponse call

func (GenerateFluxToolsVtoV1V1FluxToolsVtoV1PostResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GenerateFluxToolsVtoV1V1FluxToolsVtoV1PostResponse) GetBody

GetBody returns the raw response body bytes

func (GenerateFluxToolsVtoV1V1FluxToolsVtoV1PostResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GenerateFluxToolsVtoV1V1FluxToolsVtoV1PostResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (GenerateFluxToolsVtoV1V1FluxToolsVtoV1PostResponse) Status

Status returns HTTPResponse.Status

func (GenerateFluxToolsVtoV1V1FluxToolsVtoV1PostResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GenerateFluxToolsVtoV2V1FluxToolsVtoV2Post200JSONResponseBody

type GenerateFluxToolsVtoV2V1FluxToolsVtoV2Post200JSONResponseBody struct {
	// contains filtered or unexported fields
}

GenerateFluxToolsVtoV2V1FluxToolsVtoV2Post200JSONResponseBody defines parameters for GenerateFluxToolsVtoV2V1FluxToolsVtoV2Post.

func (GenerateFluxToolsVtoV2V1FluxToolsVtoV2Post200JSONResponseBody) AsAsyncResponse

AsAsyncResponse returns the union data inside the GenerateFluxToolsVtoV2V1FluxToolsVtoV2Post200JSONResponseBody as a AsyncResponse

func (GenerateFluxToolsVtoV2V1FluxToolsVtoV2Post200JSONResponseBody) AsAsyncWebhookResponse

AsAsyncWebhookResponse returns the union data inside the GenerateFluxToolsVtoV2V1FluxToolsVtoV2Post200JSONResponseBody as a AsyncWebhookResponse

func (*GenerateFluxToolsVtoV2V1FluxToolsVtoV2Post200JSONResponseBody) FromAsyncResponse

FromAsyncResponse overwrites any union data inside the GenerateFluxToolsVtoV2V1FluxToolsVtoV2Post200JSONResponseBody as the provided AsyncResponse

func (*GenerateFluxToolsVtoV2V1FluxToolsVtoV2Post200JSONResponseBody) FromAsyncWebhookResponse

FromAsyncWebhookResponse overwrites any union data inside the GenerateFluxToolsVtoV2V1FluxToolsVtoV2Post200JSONResponseBody as the provided AsyncWebhookResponse

func (GenerateFluxToolsVtoV2V1FluxToolsVtoV2Post200JSONResponseBody) MarshalJSON

func (*GenerateFluxToolsVtoV2V1FluxToolsVtoV2Post200JSONResponseBody) MergeAsyncResponse

MergeAsyncResponse performs a merge with any union data inside the GenerateFluxToolsVtoV2V1FluxToolsVtoV2Post200JSONResponseBody, using the provided AsyncResponse

func (*GenerateFluxToolsVtoV2V1FluxToolsVtoV2Post200JSONResponseBody) MergeAsyncWebhookResponse

MergeAsyncWebhookResponse performs a merge with any union data inside the GenerateFluxToolsVtoV2V1FluxToolsVtoV2Post200JSONResponseBody, using the provided AsyncWebhookResponse

func (*GenerateFluxToolsVtoV2V1FluxToolsVtoV2Post200JSONResponseBody) UnmarshalJSON

type GenerateFluxToolsVtoV2V1FluxToolsVtoV2PostJSONRequestBody

type GenerateFluxToolsVtoV2V1FluxToolsVtoV2PostJSONRequestBody = Flux2KleinTryonInputs

GenerateFluxToolsVtoV2V1FluxToolsVtoV2PostJSONRequestBody defines body for GenerateFluxToolsVtoV2V1FluxToolsVtoV2Post for application/json ContentType.

type GenerateFluxToolsVtoV2V1FluxToolsVtoV2PostResponse

type GenerateFluxToolsVtoV2V1FluxToolsVtoV2PostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *GenerateFluxToolsVtoV2V1FluxToolsVtoV2Post200JSONResponseBody
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseGenerateFluxToolsVtoV2V1FluxToolsVtoV2PostResponse

func ParseGenerateFluxToolsVtoV2V1FluxToolsVtoV2PostResponse(rsp *http.Response) (*GenerateFluxToolsVtoV2V1FluxToolsVtoV2PostResponse, error)

ParseGenerateFluxToolsVtoV2V1FluxToolsVtoV2PostResponse parses an HTTP response from a GenerateFluxToolsVtoV2V1FluxToolsVtoV2PostWithResponse call

func (GenerateFluxToolsVtoV2V1FluxToolsVtoV2PostResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GenerateFluxToolsVtoV2V1FluxToolsVtoV2PostResponse) GetBody

GetBody returns the raw response body bytes

func (GenerateFluxToolsVtoV2V1FluxToolsVtoV2PostResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GenerateFluxToolsVtoV2V1FluxToolsVtoV2PostResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (GenerateFluxToolsVtoV2V1FluxToolsVtoV2PostResponse) Status

Status returns HTTPResponse.Status

func (GenerateFluxToolsVtoV2V1FluxToolsVtoV2PostResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetCreditsV1CreditsGetResponse

type GetCreditsV1CreditsGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *CreditsResponse
}

func ParseGetCreditsV1CreditsGetResponse

func ParseGetCreditsV1CreditsGetResponse(rsp *http.Response) (*GetCreditsV1CreditsGetResponse, error)

ParseGetCreditsV1CreditsGetResponse parses an HTTP response from a GetCreditsV1CreditsGetWithResponse call

func (GetCreditsV1CreditsGetResponse) ContentType

func (r GetCreditsV1CreditsGetResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetCreditsV1CreditsGetResponse) GetBody

func (r GetCreditsV1CreditsGetResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetCreditsV1CreditsGetResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetCreditsV1CreditsGetResponse) Status

Status returns HTTPResponse.Status

func (GetCreditsV1CreditsGetResponse) StatusCode

func (r GetCreditsV1CreditsGetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetResultV1GetResultGet200JSONResponseBody

type GetResultV1GetResultGet200JSONResponseBody struct {
	// contains filtered or unexported fields
}

GetResultV1GetResultGet200JSONResponseBody defines parameters for GetResultV1GetResultGet.

func (GetResultV1GetResultGet200JSONResponseBody) AsResultResponse

AsResultResponse returns the union data inside the GetResultV1GetResultGet200JSONResponseBody as a ResultResponse

func (GetResultV1GetResultGet200JSONResponseBody) AsSettledCostResultResponse

AsSettledCostResultResponse returns the union data inside the GetResultV1GetResultGet200JSONResponseBody as a SettledCostResultResponse

func (*GetResultV1GetResultGet200JSONResponseBody) FromResultResponse

FromResultResponse overwrites any union data inside the GetResultV1GetResultGet200JSONResponseBody as the provided ResultResponse

func (*GetResultV1GetResultGet200JSONResponseBody) FromSettledCostResultResponse

FromSettledCostResultResponse overwrites any union data inside the GetResultV1GetResultGet200JSONResponseBody as the provided SettledCostResultResponse

func (GetResultV1GetResultGet200JSONResponseBody) MarshalJSON

func (*GetResultV1GetResultGet200JSONResponseBody) MergeResultResponse

MergeResultResponse performs a merge with any union data inside the GetResultV1GetResultGet200JSONResponseBody, using the provided ResultResponse

func (*GetResultV1GetResultGet200JSONResponseBody) MergeSettledCostResultResponse

func (t *GetResultV1GetResultGet200JSONResponseBody) MergeSettledCostResultResponse(v SettledCostResultResponse) error

MergeSettledCostResultResponse performs a merge with any union data inside the GetResultV1GetResultGet200JSONResponseBody, using the provided SettledCostResultResponse

func (*GetResultV1GetResultGet200JSONResponseBody) UnmarshalJSON

type GetResultV1GetResultGetParams

type GetResultV1GetResultGetParams struct {
	Id string `form:"id" json:"id"`
}

GetResultV1GetResultGetParams defines parameters for GetResultV1GetResultGet.

type GetResultV1GetResultGetResponse

type GetResultV1GetResultGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *GetResultV1GetResultGet200JSONResponseBody
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseGetResultV1GetResultGetResponse

func ParseGetResultV1GetResultGetResponse(rsp *http.Response) (*GetResultV1GetResultGetResponse, error)

ParseGetResultV1GetResultGetResponse parses an HTTP response from a GetResultV1GetResultGetWithResponse call

func (GetResultV1GetResultGetResponse) ContentType

func (r GetResultV1GetResultGetResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetResultV1GetResultGetResponse) GetBody

func (r GetResultV1GetResultGetResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetResultV1GetResultGetResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetResultV1GetResultGetResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (GetResultV1GetResultGetResponse) Status

Status returns HTTPResponse.Status

func (GetResultV1GetResultGetResponse) StatusCode

func (r GetResultV1GetResultGetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HTTPValidationError

type HTTPValidationError struct {
	Detail *[]ValidationError `json:"detail,omitempty"`
}

HTTPValidationError defines model for HTTPValidationError.

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type MyFinetunesResponse

type MyFinetunesResponse struct {
	// Finetunes List of finetunes created by the user
	Finetunes []interface{} `json:"finetunes"`
}

MyFinetunesResponse defines model for MyFinetunesResponse.

type MyFinetunesV1MyFinetunesGetResponse

type MyFinetunesV1MyFinetunesGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *MyFinetunesResponse
}

func ParseMyFinetunesV1MyFinetunesGetResponse

func ParseMyFinetunesV1MyFinetunesGetResponse(rsp *http.Response) (*MyFinetunesV1MyFinetunesGetResponse, error)

ParseMyFinetunesV1MyFinetunesGetResponse parses an HTTP response from a MyFinetunesV1MyFinetunesGetWithResponse call

func (MyFinetunesV1MyFinetunesGetResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (MyFinetunesV1MyFinetunesGetResponse) GetBody

GetBody returns the raw response body bytes

func (MyFinetunesV1MyFinetunesGetResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (MyFinetunesV1MyFinetunesGetResponse) Status

Status returns HTTPResponse.Status

func (MyFinetunesV1MyFinetunesGetResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type OutputFormat

type OutputFormat string

OutputFormat defines model for OutputFormat.

const (
	OutputFormatJpeg OutputFormat = "jpeg"
	OutputFormatPng  OutputFormat = "png"
	OutputFormatWebp OutputFormat = "webp"
)

Defines values for OutputFormat.

func (OutputFormat) Valid

func (e OutputFormat) Valid() bool

Valid indicates whether the value is a known member of the OutputFormat enum.

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type ResultResponse

type ResultResponse struct {
	Details *map[string]interface{} `json:"details,omitempty"`

	// Id Task id for retrieving result
	Id       string                  `json:"id"`
	Preview  *map[string]interface{} `json:"preview,omitempty"`
	Progress *float64                `json:"progress,omitempty"`
	Result   interface{}             `json:"result,omitempty"`
	Status   StatusResponse          `json:"status"`
}

ResultResponse defines model for ResultResponse.

type SettledCostResultResponse

type SettledCostResultResponse struct {
	// Cost Settled cost in credits for this request
	Cost    float64                 `json:"cost"`
	Details *map[string]interface{} `json:"details,omitempty"`

	// Id Task id for retrieving result
	Id       string                  `json:"id"`
	Preview  *map[string]interface{} `json:"preview,omitempty"`
	Progress *float64                `json:"progress,omitempty"`
	Result   interface{}             `json:"result,omitempty"`
	Status   StatusResponse          `json:"status"`
}

SettledCostResultResponse defines model for SettledCostResultResponse.

type StatusResponse

type StatusResponse string

StatusResponse defines model for StatusResponse.

const (
	StatusResponseContentModerated StatusResponse = "Content Moderated"
	StatusResponseError            StatusResponse = "Error"
	StatusResponseGenerating       StatusResponse = "Generating"
	StatusResponseNoCardGenerated  StatusResponse = "No Card Generated"
	StatusResponsePending          StatusResponse = "Pending"
	StatusResponseReady            StatusResponse = "Ready"
	StatusResponseReasoning        StatusResponse = "Reasoning"
	StatusResponseRequestModerated StatusResponse = "Request Moderated"
	StatusResponseTaskNotFound     StatusResponse = "Task not found"
)

Defines values for StatusResponse.

func (StatusResponse) Valid

func (e StatusResponse) Valid() bool

Valid indicates whether the value is a known member of the StatusResponse enum.

type ValidationError

type ValidationError struct {
	Loc  []ValidationError_Loc_Item `json:"loc"`
	Msg  string                     `json:"msg"`
	Type string                     `json:"type"`
}

ValidationError defines model for ValidationError.

type ValidationErrorLoc0

type ValidationErrorLoc0 = string

ValidationErrorLoc0 defines model for ValidationError.Loc.0.

type ValidationErrorLoc1

type ValidationErrorLoc1 = int

ValidationErrorLoc1 defines model for ValidationError.Loc.1.

type ValidationError_Loc_Item

type ValidationError_Loc_Item struct {
	// contains filtered or unexported fields
}

ValidationError_Loc_Item defines model for ValidationError.loc.Item.

func (ValidationError_Loc_Item) AsValidationErrorLoc0

func (t ValidationError_Loc_Item) AsValidationErrorLoc0() (ValidationErrorLoc0, error)

AsValidationErrorLoc0 returns the union data inside the ValidationError_Loc_Item as a ValidationErrorLoc0

func (ValidationError_Loc_Item) AsValidationErrorLoc1

func (t ValidationError_Loc_Item) AsValidationErrorLoc1() (ValidationErrorLoc1, error)

AsValidationErrorLoc1 returns the union data inside the ValidationError_Loc_Item as a ValidationErrorLoc1

func (*ValidationError_Loc_Item) FromValidationErrorLoc0

func (t *ValidationError_Loc_Item) FromValidationErrorLoc0(v ValidationErrorLoc0) error

FromValidationErrorLoc0 overwrites any union data inside the ValidationError_Loc_Item as the provided ValidationErrorLoc0

func (*ValidationError_Loc_Item) FromValidationErrorLoc1

func (t *ValidationError_Loc_Item) FromValidationErrorLoc1(v ValidationErrorLoc1) error

FromValidationErrorLoc1 overwrites any union data inside the ValidationError_Loc_Item as the provided ValidationErrorLoc1

func (ValidationError_Loc_Item) MarshalJSON

func (t ValidationError_Loc_Item) MarshalJSON() ([]byte, error)

func (*ValidationError_Loc_Item) MergeValidationErrorLoc0

func (t *ValidationError_Loc_Item) MergeValidationErrorLoc0(v ValidationErrorLoc0) error

MergeValidationErrorLoc0 performs a merge with any union data inside the ValidationError_Loc_Item, using the provided ValidationErrorLoc0

func (*ValidationError_Loc_Item) MergeValidationErrorLoc1

func (t *ValidationError_Loc_Item) MergeValidationErrorLoc1(v ValidationErrorLoc1) error

MergeValidationErrorLoc1 performs a merge with any union data inside the ValidationError_Loc_Item, using the provided ValidationErrorLoc1

func (*ValidationError_Loc_Item) UnmarshalJSON

func (t *ValidationError_Loc_Item) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL