Module: RunApi::Qwen3
- Defined in:
- lib/runapi/qwen_3.rb,
lib/runapi/qwen_3/types.rb,
lib/runapi/qwen_3/client.rb,
lib/runapi/qwen_3/contract_gen.rb,
lib/runapi/qwen_3/resources/edit_image.rb,
lib/runapi/qwen_3/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-3-edit-image", "qwen-3-pro-edit-image"], "fields_by_model" => { "qwen-3-edit-image" => { "aspect_ratio" => { "enum" => ["1:1", "3:2", "2:3", "4:3", "3:4", "16:9", "9:16", "21:9"] }, "model" => { "required" => true }, "negative_prompt" => { "min" => 0, "max" => 5000, "length" => true }, "output_format" => { "enum" => ["png", "jpeg"] }, "output_resolution" => { "enum" => ["1k", "2k"] }, "prompt" => { "required" => true, "min" => 1, "max" => 800, "length" => true }, "seed" => { "min" => 0, "max" => 2147483647, "type" => "integer" }, "source_image_urls" => { "required" => true, "min_items" => 1, "max_items" => 3 } }, "qwen-3-pro-edit-image" => { "aspect_ratio" => { "enum" => ["1:1", "3:2", "2:3", "4:3", "3:4", "16:9", "9:16", "21:9"] }, "model" => { "required" => true }, "negative_prompt" => { "min" => 0, "max" => 5000, "length" => true }, "output_format" => { "enum" => ["png", "jpeg"] }, "output_resolution" => { "enum" => ["1k", "2k"] }, "prompt" => { "required" => true, "min" => 1, "max" => 800, "length" => true }, "seed" => { "min" => 0, "max" => 2147483647, "type" => "integer" }, "source_image_urls" => { "required" => true, "min_items" => 1, "max_items" => 3 } } } }, "text-to-image" => { "models" => ["qwen-3-pro-text-to-image", "qwen-3-text-to-image"], "fields_by_model" => { "qwen-3-pro-text-to-image" => { "aspect_ratio" => { "enum" => ["1:1", "3:2", "2:3", "4:3", "3:4", "16:9", "9:16", "21:9"] }, "model" => { "required" => true }, "negative_prompt" => { "min" => 0, "max" => 5000, "length" => true }, "output_format" => { "enum" => ["png", "jpeg"] }, "output_resolution" => { "enum" => ["1k", "2k"] }, "prompt" => { "required" => true, "min" => 1, "max" => 800, "length" => true }, "seed" => { "min" => 0, "max" => 2147483647, "type" => "integer" } }, "qwen-3-text-to-image" => { "aspect_ratio" => { "enum" => ["1:1", "3:2", "2:3", "4:3", "3:4", "16:9", "9:16", "21:9"] }, "model" => { "required" => true }, "negative_prompt" => { "min" => 0, "max" => 5000, "length" => true }, "output_format" => { "enum" => ["png", "jpeg"] }, "output_resolution" => { "enum" => ["1k", "2k"] }, "prompt" => { "required" => true, "min" => 1, "max" => 800, "length" => true }, "seed" => { "min" => 0, "max" => 2147483647, "type" => "integer" } } } } }.freeze