Module: RunApi::QwenImage
- Defined in:
- lib/runapi/qwen_image.rb,
lib/runapi/qwen_image/types.rb,
lib/runapi/qwen_image/client.rb,
lib/runapi/qwen_image/contract_gen.rb,
lib/runapi/qwen_image/resources/edit_image.rb,
lib/runapi/qwen_image/resources/remix_image.rb,
lib/runapi/qwen_image/resources/text_to_image.rb
Defined Under Namespace
Modules: Resources, Types Classes: Client
Constant Summary collapse
- AuthenticationError =
RunApi::Core::AuthenticationError
- RateLimitError =
RunApi::Core::RateLimitError
- InsufficientCreditsError =
RunApi::Core::InsufficientCreditsError
- NotFoundError =
RunApi::Core::NotFoundError
- ValidationError =
RunApi::Core::ValidationError
- TaskFailedError =
RunApi::Core::TaskFailedError
- TaskTimeoutError =
RunApi::Core::TaskTimeoutError
- CONTRACT =
{ "edit-image" => { "models" => ["qwen-image-edit-image"], "fields_by_model" => { "qwen-image-edit-image" => { "aspect_ratio" => { "enum" => ["1:1", "3:4", "9:16", "4:3", "16:9"] }, "model" => { "required" => true }, "output_format" => { "enum" => ["png", "jpeg"] }, "prompt" => { "required" => true, "min" => 1, "max" => 2000, "length" => true }, "seed" => { "type" => "integer" }, "source_image_url" => { "required" => true } } } }, "remix-image" => { "models" => ["qwen-image-remix-image"], "fields_by_model" => { "qwen-image-remix-image" => { "model" => { "required" => true }, "output_format" => { "enum" => ["png", "jpeg"] }, "prompt" => { "required" => true, "min" => 1, "max" => 5000, "length" => true }, "seed" => { "type" => "integer" }, "source_image_url" => { "required" => true }, "strength" => { "min" => 0, "max" => 1 } } } }, "text-to-image" => { "models" => ["qwen-image-text-to-image"], "fields_by_model" => { "qwen-image-text-to-image" => { "aspect_ratio" => { "enum" => ["1:1", "3:4", "9:16", "4:3", "16:9"] }, "model" => { "required" => true }, "output_format" => { "enum" => ["png", "jpeg"] }, "prompt" => { "required" => true, "min" => 1, "max" => 5000, "length" => true }, "seed" => { "type" => "integer" } } } } }.freeze