diff --git a/src/libs/Shotstack/Generated/Shotstack.EditClient.GetModels.g.cs b/src/libs/Shotstack/Generated/Shotstack.EditClient.GetModels.g.cs index 06f4467..5ce34d6 100644 --- a/src/libs/Shotstack/Generated/Shotstack.EditClient.GetModels.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.EditClient.GetModels.g.cs @@ -42,7 +42,7 @@ partial void ProcessGetModelsResponseContent( /// /// List Generation Models
/// List the generation models available for `prompt`-bearing image, video and audio
- /// assets, with the options each accepts. Use `POST /generate/quote` for a credit estimate.
+ /// assets generated from a prompt or, for some models, a source file, with the options each accepts. Use `POST /generate/quote` for a credit estimate.
/// Use this to populate a model picker and render its option fields, rather than
/// hard coding a model list. A newly launched model appears here without any change
/// on your side. Each entry carries the asset type it generates, so filter the list
@@ -69,7 +69,7 @@ partial void ProcessGetModelsResponseContent( /// /// List Generation Models
/// List the generation models available for `prompt`-bearing image, video and audio
- /// assets, with the options each accepts. Use `POST /generate/quote` for a credit estimate.
+ /// assets generated from a prompt or, for some models, a source file, with the options each accepts. Use `POST /generate/quote` for a credit estimate.
/// Use this to populate a model picker and render its option fields, rather than
/// hard coding a model list. A newly launched model appears here without any change
/// on your side. Each entry carries the asset type it generates, so filter the list
diff --git a/src/libs/Shotstack/Generated/Shotstack.EditClient.PostGenerate.g.cs b/src/libs/Shotstack/Generated/Shotstack.EditClient.PostGenerate.g.cs index 31e9102..c434576 100644 --- a/src/libs/Shotstack/Generated/Shotstack.EditClient.PostGenerate.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.EditClient.PostGenerate.g.cs @@ -45,8 +45,8 @@ partial void ProcessPostGenerateResponseContent( /// /// Generate Asset
- /// Generate a single image, video or audio asset from a text prompt without
- /// rendering a full edit. Submit a prompt-bearing asset; the response is
+ /// Generate a single image, video or audio asset from a prompt or, for some models, a source file, without
+ /// rendering a full edit. Submit an asset with a prompt or source file; the response is
/// immediate when an identical asset has been generated before (results are
/// cached by prompt, model and options), otherwise the job is queued and can
/// be polled via the status endpoint.
@@ -80,8 +80,8 @@ partial void ProcessPostGenerateResponseContent( } /// /// Generate Asset
- /// Generate a single image, video or audio asset from a text prompt without
- /// rendering a full edit. Submit a prompt-bearing asset; the response is
+ /// Generate a single image, video or audio asset from a prompt or, for some models, a source file, without
+ /// rendering a full edit. Submit an asset with a prompt or source file; the response is
/// immediate when an identical asset has been generated before (results are
/// cached by prompt, model and options), otherwise the job is queued and can
/// be polled via the status endpoint.
@@ -675,8 +675,8 @@ partial void ProcessPostGenerateResponseContent( } /// /// Generate Asset
- /// Generate a single image, video or audio asset from a text prompt without
- /// rendering a full edit. Submit a prompt-bearing asset; the response is
+ /// Generate a single image, video or audio asset from a prompt or, for some models, a source file, without
+ /// rendering a full edit. Submit an asset with a prompt or source file; the response is
/// immediate when an identical asset has been generated before (results are
/// cached by prompt, model and options), otherwise the job is queued and can
/// be polled via the status endpoint.
@@ -688,7 +688,7 @@ partial void ProcessPostGenerateResponseContent( /// Optional idempotency key. When omitted, the SDK generates one for this request. /// /// - /// An image, video or audio asset to generate from a text prompt. + /// An asset to generate, from a text `prompt` or, for models that take one, a source `src`. /// /// /// The length, in seconds, of the clip the asset fills. A model that generates to a duration takes it from this value in place of its own duration option. Other models ignore it.
diff --git a/src/libs/Shotstack/Generated/Shotstack.EditClient.PostGenerateQuote.g.cs b/src/libs/Shotstack/Generated/Shotstack.EditClient.PostGenerateQuote.g.cs index 317372a..4942496 100644 --- a/src/libs/Shotstack/Generated/Shotstack.EditClient.PostGenerateQuote.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.EditClient.PostGenerateQuote.g.cs @@ -584,7 +584,7 @@ partial void ProcessPostGenerateQuoteResponseContent( /// **Base URL:** <a href="#">https://api.shotstack.io/edit/{version}</a> ///
/// - /// An image, video or audio asset to generate from a text prompt. + /// An asset to generate, from a text `prompt` or, for models that take one, a source `src`. /// /// /// The length, in seconds, of the clip the asset fills. A model that generates to a duration takes it from this value in place of its own duration option. Other models ignore it.
diff --git a/src/libs/Shotstack/Generated/Shotstack.IEditClient.GetModels.g.cs b/src/libs/Shotstack/Generated/Shotstack.IEditClient.GetModels.g.cs index 5e10008..134300e 100644 --- a/src/libs/Shotstack/Generated/Shotstack.IEditClient.GetModels.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.IEditClient.GetModels.g.cs @@ -7,7 +7,7 @@ public partial interface IEditClient /// /// List Generation Models
/// List the generation models available for `prompt`-bearing image, video and audio
- /// assets, with the options each accepts. Use `POST /generate/quote` for a credit estimate.
+ /// assets generated from a prompt or, for some models, a source file, with the options each accepts. Use `POST /generate/quote` for a credit estimate.
/// Use this to populate a model picker and render its option fields, rather than
/// hard coding a model list. A newly launched model appears here without any change
/// on your side. Each entry carries the asset type it generates, so filter the list
@@ -26,7 +26,7 @@ public partial interface IEditClient /// /// List Generation Models
/// List the generation models available for `prompt`-bearing image, video and audio
- /// assets, with the options each accepts. Use `POST /generate/quote` for a credit estimate.
+ /// assets generated from a prompt or, for some models, a source file, with the options each accepts. Use `POST /generate/quote` for a credit estimate.
/// Use this to populate a model picker and render its option fields, rather than
/// hard coding a model list. A newly launched model appears here without any change
/// on your side. Each entry carries the asset type it generates, so filter the list
diff --git a/src/libs/Shotstack/Generated/Shotstack.IEditClient.PostGenerate.g.cs b/src/libs/Shotstack/Generated/Shotstack.IEditClient.PostGenerate.g.cs index 8ae9878..a2b93c3 100644 --- a/src/libs/Shotstack/Generated/Shotstack.IEditClient.PostGenerate.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.IEditClient.PostGenerate.g.cs @@ -6,8 +6,8 @@ public partial interface IEditClient { /// /// Generate Asset
- /// Generate a single image, video or audio asset from a text prompt without
- /// rendering a full edit. Submit a prompt-bearing asset; the response is
+ /// Generate a single image, video or audio asset from a prompt or, for some models, a source file, without
+ /// rendering a full edit. Submit an asset with a prompt or source file; the response is
/// immediate when an identical asset has been generated before (results are
/// cached by prompt, model and options), otherwise the job is queued and can
/// be polled via the status endpoint.
@@ -30,8 +30,8 @@ public partial interface IEditClient global::System.Threading.CancellationToken cancellationToken = default); /// /// Generate Asset
- /// Generate a single image, video or audio asset from a text prompt without
- /// rendering a full edit. Submit a prompt-bearing asset; the response is
+ /// Generate a single image, video or audio asset from a prompt or, for some models, a source file, without
+ /// rendering a full edit. Submit an asset with a prompt or source file; the response is
/// immediate when an identical asset has been generated before (results are
/// cached by prompt, model and options), otherwise the job is queued and can
/// be polled via the status endpoint.
@@ -54,8 +54,8 @@ public partial interface IEditClient global::System.Threading.CancellationToken cancellationToken = default); /// /// Generate Asset
- /// Generate a single image, video or audio asset from a text prompt without
- /// rendering a full edit. Submit a prompt-bearing asset; the response is
+ /// Generate a single image, video or audio asset from a prompt or, for some models, a source file, without
+ /// rendering a full edit. Submit an asset with a prompt or source file; the response is
/// immediate when an identical asset has been generated before (results are
/// cached by prompt, model and options), otherwise the job is queued and can
/// be polled via the status endpoint.
@@ -67,7 +67,7 @@ public partial interface IEditClient /// Optional idempotency key. When omitted, the SDK generates one for this request. /// /// - /// An image, video or audio asset to generate from a text prompt. + /// An asset to generate, from a text `prompt` or, for models that take one, a source `src`. /// /// /// The length, in seconds, of the clip the asset fills. A model that generates to a duration takes it from this value in place of its own duration option. Other models ignore it.
diff --git a/src/libs/Shotstack/Generated/Shotstack.IEditClient.PostGenerateQuote.g.cs b/src/libs/Shotstack/Generated/Shotstack.IEditClient.PostGenerateQuote.g.cs index 8589595..e22742f 100644 --- a/src/libs/Shotstack/Generated/Shotstack.IEditClient.PostGenerateQuote.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.IEditClient.PostGenerateQuote.g.cs @@ -53,7 +53,7 @@ public partial interface IEditClient /// **Base URL:** <a href="#">https://api.shotstack.io/edit/{version}</a> ///
/// - /// An image, video or audio asset to generate from a text prompt. + /// An asset to generate, from a text `prompt` or, for models that take one, a source `src`. /// /// /// The length, in seconds, of the clip the asset fills. A model that generates to a duration takes it from this value in place of its own duration option. Other models ignore it.
diff --git a/src/libs/Shotstack/Generated/Shotstack.Models.GenerationAsset.g.cs b/src/libs/Shotstack/Generated/Shotstack.Models.GenerationAsset.g.cs index 8839a89..bdbd542 100644 --- a/src/libs/Shotstack/Generated/Shotstack.Models.GenerationAsset.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.Models.GenerationAsset.g.cs @@ -4,7 +4,7 @@ namespace Shotstack { /// - /// An image, video or audio asset to generate from a text prompt. + /// An asset to generate, from a text `prompt` or, for models that take one, a source `src`. /// public sealed partial class GenerationAsset { @@ -24,8 +24,13 @@ public sealed partial class GenerationAsset ///
/// A lighthouse on a rocky coast at sunset, cinematic lighting [global::System.Text.Json.Serialization.JsonPropertyName("prompt")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Prompt { get; set; } + public string? Prompt { get; set; } + + /// + /// The source file for models that take one instead of a prompt, such as `shotstack-music-analysis`. A public HTTPS URL. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("src")] + public string? Src { get; set; } /// /// The generation model. Defaults to `nano-banana-2` for images, `seedance-2.0-text-to-video` for video and `elevenlabs-multilingual-v2` for audio. `GET /models` lists the models for each type.
@@ -60,6 +65,9 @@ public sealed partial class GenerationAsset /// A description of the asset to generate. For text-to-speech models it is the text spoken.
/// Example: A lighthouse on a rocky coast at sunset, cinematic lighting /// + /// + /// The source file for models that take one instead of a prompt, such as `shotstack-music-analysis`. A public HTTPS URL. + /// /// /// The generation model. Defaults to `nano-banana-2` for images, `seedance-2.0-text-to-video` for video and `elevenlabs-multilingual-v2` for audio. `GET /models` lists the models for each type.
/// Example: nano-banana-2 @@ -73,12 +81,14 @@ public sealed partial class GenerationAsset #endif public GenerationAsset( global::Shotstack.GenerationAssetType type, - string prompt, + string? prompt, + string? src, string? model, object? options) { this.Type = type; - this.Prompt = prompt ?? throw new global::System.ArgumentNullException(nameof(prompt)); + this.Prompt = prompt; + this.Src = src; this.Model = model; this.Options = options; } diff --git a/src/libs/Shotstack/Generated/Shotstack.Models.GenerationModel.g.cs b/src/libs/Shotstack/Generated/Shotstack.Models.GenerationModel.g.cs index f5674bb..253f2f2 100644 --- a/src/libs/Shotstack/Generated/Shotstack.Models.GenerationModel.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.Models.GenerationModel.g.cs @@ -4,7 +4,7 @@ namespace Shotstack { /// - /// A generation model available to `prompt`-bearing image, video and audio assets, with the options it accepts. Use `POST /generate/quote` for a credit estimate. Render a model picker and its option fields from this rather than hard coding a model list, so a newly launched model is available without a client release. + /// A generation model available to image, video and audio assets generated from a prompt or, for some models, a source file, with the options it accepts. Use `POST /generate/quote` for a credit estimate. Render a model picker and its option fields from this rather than hard coding a model list, so a newly launched model is available without a client release. /// public sealed partial class GenerationModel { diff --git a/src/libs/Shotstack/Generated/Shotstack.Models.GenerationRequest.g.cs b/src/libs/Shotstack/Generated/Shotstack.Models.GenerationRequest.g.cs index 102bdd5..6ad7196 100644 --- a/src/libs/Shotstack/Generated/Shotstack.Models.GenerationRequest.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.Models.GenerationRequest.g.cs @@ -9,7 +9,7 @@ namespace Shotstack public sealed partial class GenerationRequest { /// - /// An image, video or audio asset to generate from a text prompt. + /// An asset to generate, from a text `prompt` or, for models that take one, a source `src`. /// [global::System.Text.Json.Serialization.JsonPropertyName("asset")] [global::System.Text.Json.Serialization.JsonRequired] @@ -33,7 +33,7 @@ public sealed partial class GenerationRequest /// Initializes a new instance of the class. ///
/// - /// An image, video or audio asset to generate from a text prompt. + /// An asset to generate, from a text `prompt` or, for models that take one, a source `src`. /// /// /// The length, in seconds, of the clip the asset fills. A model that generates to a duration takes it from this value in place of its own duration option. Other models ignore it.
diff --git a/src/libs/Shotstack/Generated/autosdk.generated-examples.json b/src/libs/Shotstack/Generated/autosdk.generated-examples.json index ef72dbc..c13ba0e 100644 --- a/src/libs/Shotstack/Generated/autosdk.generated-examples.json +++ b/src/libs/Shotstack/Generated/autosdk.generated-examples.json @@ -15,7 +15,7 @@ "Order": 2, "Title": "Generate Asset", "Slug": "postgenerate", - "Description": "Generate a single image, video or audio asset from a text prompt without\nrendering a full edit. Submit a prompt-bearing asset; the response is\nimmediate when an identical asset has been generated before (results are\ncached by prompt, model and options), otherwise the job is queued and can\nbe polled via the status endpoint.\n\nGeneration is billed in credits per asset. Identical repeat requests\nresolve from the cache at no charge.\n\n**Base URL:** \u003Ca href=\u0022#\u0022\u003Ehttps://api.shotstack.io/edit/{version}\u003C/a\u003E", + "Description": "Generate a single image, video or audio asset from a prompt or, for some models, a source file, without\nrendering a full edit. Submit an asset with a prompt or source file; the response is\nimmediate when an identical asset has been generated before (results are\ncached by prompt, model and options), otherwise the job is queued and can\nbe polled via the status endpoint.\n\nGeneration is billed in credits per asset. Identical repeat requests\nresolve from the cache at no charge.\n\n**Base URL:** \u003Ca href=\u0022#\u0022\u003Ehttps://api.shotstack.io/edit/{version}\u003C/a\u003E", "Language": "http", "Code": "### Generate Asset\n# @name postGenerate\nPOST {{host}}/edit/v1/generate\nIdempotency-Key: {{Idempotency-Key}}\nContent-Type: application/json\nAccept: application/json\n\n{\n \u0022asset\u0022: {\n \u0022type\u0022: \u0022image\u0022,\n \u0022prompt\u0022: \u0022A lighthouse on a rocky coast at sunset, cinematic lighting\u0022,\n \u0022model\u0022: \u0022nano-banana-2\u0022\n }\n}\n\n## Responses\n# 200\n# Description: The asset was generated before: \u0060done\u0060 with its URL, or \u0060failed\u0060 with the error that ended it.\n# Content-Type: application/json\n# 202\n# Description: The generation job has been queued. Poll the status endpoint.\n# Content-Type: application/json\n# 400\n# Description: The request is invalid, for example a missing asset or prompt, a disallowed URL or a \u0060length\u0060 that is not positive.\n# Content-Type: application/json\n# 402\n# Description: The account has too few credits for this generation. \u0060available\u0060 holds how many it has.\n# Content-Type: application/json\n# 403\n# Description: The account cannot use this generation. \u0060code\u0060 says why.\n# Content-Type: application/json\n# 409\n# Description: The \u0060Idempotency-Key\u0060 was already used for a different asset.\n# Content-Type: application/json\n# 429\n# Description: The account has reached its generation quota.\n# Content-Type: application/json\n# 503\n# Description: A service the request depends on is temporarily unavailable. \u0060code\u0060 is \u0060AiAccessUnavailable\u0060 when access to AI generation could not be confirmed.\n# Content-Type: application/json", "Format": "http", diff --git a/src/libs/Shotstack/openapi.json b/src/libs/Shotstack/openapi.json index 52a1fc5..a7163cc 100644 --- a/src/libs/Shotstack/openapi.json +++ b/src/libs/Shotstack/openapi.json @@ -765,7 +765,7 @@ } } }, - "description": "Generate a single image, video or audio asset from a text prompt without\nrendering a full edit. Submit a prompt-bearing asset; the response is\nimmediate when an identical asset has been generated before (results are\ncached by prompt, model and options), otherwise the job is queued and can\nbe polled via the status endpoint.\n\nGeneration is billed in credits per asset. Identical repeat requests\nresolve from the cache at no charge.\n\n**Base URL:** https://api.shotstack.io/edit/{version}\n", + "description": "Generate a single image, video or audio asset from a prompt or, for some models, a source file, without\nrendering a full edit. Submit an asset with a prompt or source file; the response is\nimmediate when an identical asset has been generated before (results are\ncached by prompt, model and options), otherwise the job is queued and can\nbe polled via the status endpoint.\n\nGeneration is billed in credits per asset. Identical repeat requests\nresolve from the cache at no charge.\n\n**Base URL:** https://api.shotstack.io/edit/{version}\n", "summary": "Generate Asset", "operationId": "postGenerate", "parameters": [ @@ -931,7 +931,7 @@ }, "/edit/v1/models": { "get": { - "description": "List the generation models available for `prompt`-bearing image, video and audio\nassets, with the options each accepts. Use `POST /generate/quote` for a credit estimate.\n\nUse this to populate a model picker and render its option fields, rather than\nhard coding a model list. A newly launched model appears here without any change\non your side. Each entry carries the asset type it generates, so filter the list\nclient side when a picker only needs one kind.\n\nOption schemas are omitted by default. Request them with `expand=options`.\n\nEach model's `available` reflects the plan of the account behind the calling API\nkey, so offer only the models it marks available.\n\n**Base URL:** https://api.shotstack.io/edit/{version}\n", + "description": "List the generation models available for `prompt`-bearing image, video and audio\nassets generated from a prompt or, for some models, a source file, with the options each accepts. Use `POST /generate/quote` for a credit estimate.\n\nUse this to populate a model picker and render its option fields, rather than\nhard coding a model list. A newly launched model appears here without any change\non your side. Each entry carries the asset type it generates, so filter the list\nclient side when a picker only needs one kind.\n\nOption schemas are omitted by default. Request them with `expand=options`.\n\nEach model's `available` reflects the plan of the account behind the calling API\nkey, so offer only the models it marks available.\n\n**Base URL:** https://api.shotstack.io/edit/{version}\n", "summary": "List Generation Models", "operationId": "getModels", "responses": { @@ -4832,7 +4832,7 @@ "type": "object" }, "GenerationAsset": { - "description": "An image, video or audio asset to generate from a text prompt.", + "description": "An asset to generate, from a text `prompt` or, for models that take one, a source `src`.", "type": "object", "properties": { "type": { @@ -4853,6 +4853,11 @@ "pattern": "\\S", "example": "A lighthouse on a rocky coast at sunset, cinematic lighting" }, + "src": { + "description": "The source file for models that take one instead of a prompt, such as `shotstack-music-analysis`. A public HTTPS URL.", + "type": "string", + "format": "uri" + }, "model": { "description": "The generation model. Defaults to `nano-banana-2` for images, `seedance-2.0-text-to-video` for video and `elevenlabs-multilingual-v2` for audio. `GET /models` lists the models for each type.", "type": "string", @@ -4869,12 +4874,11 @@ }, "additionalProperties": false, "required": [ - "type", - "prompt" + "type" ] }, "GenerationModel": { - "description": "A generation model available to `prompt`-bearing image, video and audio assets, with the options it accepts. Use `POST /generate/quote` for a credit estimate. Render a model picker and its option fields from this rather than hard coding a model list, so a newly launched model is available without a client release.", + "description": "A generation model available to image, video and audio assets generated from a prompt or, for some models, a source file, with the options it accepts. Use `POST /generate/quote` for a credit estimate. Render a model picker and its option fields from this rather than hard coding a model list, so a newly launched model is available without a client release.", "properties": { "model": { "description": "The identifier to set as the asset `model`. Carries no provider name, so routing can change without a public rename.",