@runware/schemas 0.0.0-20260510231619

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (401) hide show
  1. package/dist/response-map.json +1902 -0
  2. package/dist/schemas/requests/architectures/exactly-illustrative.json +252 -0
  3. package/dist/schemas/requests/architectures/flux-1-dev.json +1103 -0
  4. package/dist/schemas/requests/architectures/flux-1-kontext-dev.json +855 -0
  5. package/dist/schemas/requests/architectures/flux-1-schnell.json +911 -0
  6. package/dist/schemas/requests/architectures/illustrious.json +893 -0
  7. package/dist/schemas/requests/architectures/noobai.json +893 -0
  8. package/dist/schemas/requests/architectures/pony.json +893 -0
  9. package/dist/schemas/requests/architectures/sd-1-5-distilled.json +893 -0
  10. package/dist/schemas/requests/architectures/sd-1-5-hyper.json +893 -0
  11. package/dist/schemas/requests/architectures/sd-1-5-lcm.json +893 -0
  12. package/dist/schemas/requests/architectures/sd-1-5.json +893 -0
  13. package/dist/schemas/requests/architectures/sd-2-1.json +893 -0
  14. package/dist/schemas/requests/architectures/sd3.json +847 -0
  15. package/dist/schemas/requests/architectures/sdxl-distilled.json +893 -0
  16. package/dist/schemas/requests/architectures/sdxl-hyper.json +893 -0
  17. package/dist/schemas/requests/architectures/sdxl-lcm.json +893 -0
  18. package/dist/schemas/requests/architectures/sdxl-lightning.json +893 -0
  19. package/dist/schemas/requests/architectures/sdxl-turbo.json +893 -0
  20. package/dist/schemas/requests/architectures/sdxl.json +990 -0
  21. package/dist/schemas/requests/architectures/z-image-turbo.json +730 -0
  22. package/dist/schemas/requests/architectures/z-image.json +730 -0
  23. package/dist/schemas/requests/models/alibaba/alibaba-happyhorse-1-0.json +709 -0
  24. package/dist/schemas/requests/models/alibaba/alibaba-qwen-image-2-0-pro.json +257 -0
  25. package/dist/schemas/requests/models/alibaba/alibaba-qwen-image-2-0.json +257 -0
  26. package/dist/schemas/requests/models/alibaba/alibaba-qwen-image-2512.json +740 -0
  27. package/dist/schemas/requests/models/alibaba/alibaba-qwen-image-edit-plus.json +571 -0
  28. package/dist/schemas/requests/models/alibaba/alibaba-qwen-image-edit.json +572 -0
  29. package/dist/schemas/requests/models/alibaba/alibaba-qwen-image-layered.json +571 -0
  30. package/dist/schemas/requests/models/alibaba/alibaba-qwen-image.json +744 -0
  31. package/dist/schemas/requests/models/alibaba/alibaba-qwen2-5-vl-3b-instruct.json +136 -0
  32. package/dist/schemas/requests/models/alibaba/alibaba-qwen2-5-vl-7b-instruct.json +136 -0
  33. package/dist/schemas/requests/models/alibaba/alibaba-qwen3-5-27b.json +281 -0
  34. package/dist/schemas/requests/models/alibaba/alibaba-qwen3-5-397b.json +281 -0
  35. package/dist/schemas/requests/models/alibaba/alibaba-qwen3-tts-1-7b-base.json +815 -0
  36. package/dist/schemas/requests/models/alibaba/alibaba-qwen3-tts-1-7b-customvoice.json +759 -0
  37. package/dist/schemas/requests/models/alibaba/alibaba-qwen3-tts-1-7b-voicedesign.json +749 -0
  38. package/dist/schemas/requests/models/alibaba/alibaba-wan2-2-a14b-turbo.json +829 -0
  39. package/dist/schemas/requests/models/alibaba/alibaba-wan2-2-a14b.json +829 -0
  40. package/dist/schemas/requests/models/alibaba/alibaba-wan2-2-animate.json +848 -0
  41. package/dist/schemas/requests/models/alibaba/alibaba-wan2-5-preview-image.json +191 -0
  42. package/dist/schemas/requests/models/alibaba/alibaba-wan2-5-preview.json +568 -0
  43. package/dist/schemas/requests/models/alibaba/alibaba-wan2-6-flash.json +587 -0
  44. package/dist/schemas/requests/models/alibaba/alibaba-wan2-6-image.json +238 -0
  45. package/dist/schemas/requests/models/alibaba/alibaba-wan2-6.json +640 -0
  46. package/dist/schemas/requests/models/alibaba/alibaba-wan2-7-image-pro.json +364 -0
  47. package/dist/schemas/requests/models/alibaba/alibaba-wan2-7-image.json +340 -0
  48. package/dist/schemas/requests/models/alibaba/alibaba-wan2-7.json +685 -0
  49. package/dist/schemas/requests/models/alibaba/alibaba-z-image-turbo.json +730 -0
  50. package/dist/schemas/requests/models/alibaba/alibaba-z-image.json +730 -0
  51. package/dist/schemas/requests/models/alibaba/index.json +15134 -0
  52. package/dist/schemas/requests/models/anthropic/anthropic-claude-haiku-4-5.json +370 -0
  53. package/dist/schemas/requests/models/anthropic/anthropic-claude-opus-4-7.json +373 -0
  54. package/dist/schemas/requests/models/anthropic/anthropic-claude-sonnet-4-6.json +372 -0
  55. package/dist/schemas/requests/models/anthropic/index.json +1117 -0
  56. package/dist/schemas/requests/models/bfl/bfl-flux-1-1-pro-ultra.json +317 -0
  57. package/dist/schemas/requests/models/bfl/bfl-flux-1-1-pro.json +214 -0
  58. package/dist/schemas/requests/models/bfl/bfl-flux-1-dev.json +1103 -0
  59. package/dist/schemas/requests/models/bfl/bfl-flux-1-expand-pro.json +266 -0
  60. package/dist/schemas/requests/models/bfl/bfl-flux-1-fill-pro.json +252 -0
  61. package/dist/schemas/requests/models/bfl/bfl-flux-1-kontext-dev.json +855 -0
  62. package/dist/schemas/requests/models/bfl/bfl-flux-1-kontext-max.json +345 -0
  63. package/dist/schemas/requests/models/bfl/bfl-flux-1-kontext-pro.json +345 -0
  64. package/dist/schemas/requests/models/bfl/bfl-flux-1-schnell.json +911 -0
  65. package/dist/schemas/requests/models/bfl/bfl-flux-2-dev.json +569 -0
  66. package/dist/schemas/requests/models/bfl/bfl-flux-2-flex.json +264 -0
  67. package/dist/schemas/requests/models/bfl/bfl-flux-2-klein-4b-base.json +570 -0
  68. package/dist/schemas/requests/models/bfl/bfl-flux-2-klein-4b.json +570 -0
  69. package/dist/schemas/requests/models/bfl/bfl-flux-2-klein-9b-base.json +570 -0
  70. package/dist/schemas/requests/models/bfl/bfl-flux-2-klein-9b-kv.json +570 -0
  71. package/dist/schemas/requests/models/bfl/bfl-flux-2-klein-9b.json +570 -0
  72. package/dist/schemas/requests/models/bfl/bfl-flux-2-max.json +248 -0
  73. package/dist/schemas/requests/models/bfl/bfl-flux-2-pro.json +248 -0
  74. package/dist/schemas/requests/models/bfl/index.json +8774 -0
  75. package/dist/schemas/requests/models/bria/bria-3-2.json +569 -0
  76. package/dist/schemas/requests/models/bria/bria-fibo-edit-tools.json +401 -0
  77. package/dist/schemas/requests/models/bria/bria-fibo-edit.json +253 -0
  78. package/dist/schemas/requests/models/bria/bria-fibo-lite.json +350 -0
  79. package/dist/schemas/requests/models/bria/bria-fibo.json +358 -0
  80. package/dist/schemas/requests/models/bria/bria-image-increase-resolution.json +163 -0
  81. package/dist/schemas/requests/models/bria/bria-image-replace-background.json +264 -0
  82. package/dist/schemas/requests/models/bria/bria-rmbg-v2-0.json +153 -0
  83. package/dist/schemas/requests/models/bria/bria-video-background-removal.json +153 -0
  84. package/dist/schemas/requests/models/bria/bria-video-eraser.json +361 -0
  85. package/dist/schemas/requests/models/bria/bria-video-increase-resolution.json +129 -0
  86. package/dist/schemas/requests/models/bria/index.json +3148 -0
  87. package/dist/schemas/requests/models/bytedance/bytedance-omnihuman-1-5.json +231 -0
  88. package/dist/schemas/requests/models/bytedance/bytedance-omnihuman-1.json +191 -0
  89. package/dist/schemas/requests/models/bytedance/bytedance-seedance-1-0-pro-fast.json +513 -0
  90. package/dist/schemas/requests/models/bytedance/bytedance-seedance-1-0-pro.json +521 -0
  91. package/dist/schemas/requests/models/bytedance/bytedance-seedance-1-5-pro.json +683 -0
  92. package/dist/schemas/requests/models/bytedance/bytedance-seedance-2-0-fast.json +634 -0
  93. package/dist/schemas/requests/models/bytedance/bytedance-seedance-2-0.json +701 -0
  94. package/dist/schemas/requests/models/bytedance/bytedance-seedream-4-0.json +424 -0
  95. package/dist/schemas/requests/models/bytedance/bytedance-seedream-4-5.json +321 -0
  96. package/dist/schemas/requests/models/bytedance/bytedance-seedream-5-0-lite.json +426 -0
  97. package/dist/schemas/requests/models/bytedance/bytedance-video-upscaler.json +119 -0
  98. package/dist/schemas/requests/models/bytedance/index.json +4758 -0
  99. package/dist/schemas/requests/models/creatify/creatify-aurora-v1-fast.json +199 -0
  100. package/dist/schemas/requests/models/creatify/creatify-aurora-v1.json +199 -0
  101. package/dist/schemas/requests/models/creatify/index.json +401 -0
  102. package/dist/schemas/requests/models/elevenlabs/elevenlabs-flash-v2-5.json +833 -0
  103. package/dist/schemas/requests/models/elevenlabs/elevenlabs-flash-v2.json +802 -0
  104. package/dist/schemas/requests/models/elevenlabs/elevenlabs-monolingual-v1.json +802 -0
  105. package/dist/schemas/requests/models/elevenlabs/elevenlabs-multilingual-v1.json +810 -0
  106. package/dist/schemas/requests/models/elevenlabs/elevenlabs-multilingual-v2.json +830 -0
  107. package/dist/schemas/requests/models/elevenlabs/elevenlabs-music-v1.json +877 -0
  108. package/dist/schemas/requests/models/elevenlabs/elevenlabs-turbo-v2-5.json +833 -0
  109. package/dist/schemas/requests/models/elevenlabs/elevenlabs-turbo-v2.json +802 -0
  110. package/dist/schemas/requests/models/elevenlabs/elevenlabs-v3.json +875 -0
  111. package/dist/schemas/requests/models/elevenlabs/index.json +7460 -0
  112. package/dist/schemas/requests/models/exactly/exactly-illustrative-training.json +112 -0
  113. package/dist/schemas/requests/models/exactly/exactly-photo-bright-pulse.json +553 -0
  114. package/dist/schemas/requests/models/exactly/exactly-photo-distant-reality.json +553 -0
  115. package/dist/schemas/requests/models/exactly/exactly-photo-extreme-contrast.json +553 -0
  116. package/dist/schemas/requests/models/exactly/exactly-photo-grain-film-look.json +553 -0
  117. package/dist/schemas/requests/models/exactly/exactly-photo-journey.json +553 -0
  118. package/dist/schemas/requests/models/exactly/exactly-photo-warm-light.json +553 -0
  119. package/dist/schemas/requests/models/exactly/index.json +3428 -0
  120. package/dist/schemas/requests/models/google/google-gemini-3-1-flash-lite.json +400 -0
  121. package/dist/schemas/requests/models/google/google-gemini-3-1-flash-tts.json +1384 -0
  122. package/dist/schemas/requests/models/google/google-gemini-3-1-pro.json +398 -0
  123. package/dist/schemas/requests/models/google/google-gemini-3-flash.json +400 -0
  124. package/dist/schemas/requests/models/google/google-imagen-3-fast.json +230 -0
  125. package/dist/schemas/requests/models/google/google-imagen-3.json +230 -0
  126. package/dist/schemas/requests/models/google/google-imagen-4-fast.json +230 -0
  127. package/dist/schemas/requests/models/google/google-imagen-4-preview.json +230 -0
  128. package/dist/schemas/requests/models/google/google-imagen-4-ultra.json +230 -0
  129. package/dist/schemas/requests/models/google/google-nano-banana-2.json +983 -0
  130. package/dist/schemas/requests/models/google/google-nano-banana-pro.json +703 -0
  131. package/dist/schemas/requests/models/google/google-nano-banana.json +373 -0
  132. package/dist/schemas/requests/models/google/google-veo-2.json +428 -0
  133. package/dist/schemas/requests/models/google/google-veo-3-1-fast.json +568 -0
  134. package/dist/schemas/requests/models/google/google-veo-3-1-lite.json +509 -0
  135. package/dist/schemas/requests/models/google/google-veo-3-1.json +783 -0
  136. package/dist/schemas/requests/models/google/google-veo-3-fast.json +411 -0
  137. package/dist/schemas/requests/models/google/google-veo-3.json +454 -0
  138. package/dist/schemas/requests/models/google/index.json +8876 -0
  139. package/dist/schemas/requests/models/heygen/heygen-avatar-iv.json +3066 -0
  140. package/dist/schemas/requests/models/heygen/heygen-video-agent.json +1522 -0
  141. package/dist/schemas/requests/models/heygen/index.json +4591 -0
  142. package/dist/schemas/requests/models/hyper3d/hyper3d-rodin-gen-2.json +355 -0
  143. package/dist/schemas/requests/models/hyper3d/index.json +359 -0
  144. package/dist/schemas/requests/models/ideogram/ideogram-1-0-remix.json +473 -0
  145. package/dist/schemas/requests/models/ideogram/ideogram-1-0.json +427 -0
  146. package/dist/schemas/requests/models/ideogram/ideogram-2-0-edit.json +322 -0
  147. package/dist/schemas/requests/models/ideogram/ideogram-2-0-reframe.json +1138 -0
  148. package/dist/schemas/requests/models/ideogram/ideogram-2-0-remix.json +1219 -0
  149. package/dist/schemas/requests/models/ideogram/ideogram-2-0.json +1173 -0
  150. package/dist/schemas/requests/models/ideogram/ideogram-2a-remix.json +1148 -0
  151. package/dist/schemas/requests/models/ideogram/ideogram-2a.json +1102 -0
  152. package/dist/schemas/requests/models/ideogram/ideogram-3-0-edit.json +538 -0
  153. package/dist/schemas/requests/models/ideogram/ideogram-3-0-reframe.json +1204 -0
  154. package/dist/schemas/requests/models/ideogram/ideogram-3-0-remix.json +1325 -0
  155. package/dist/schemas/requests/models/ideogram/ideogram-3-0-replace-background.json +427 -0
  156. package/dist/schemas/requests/models/ideogram/ideogram-3-0.json +1225 -0
  157. package/dist/schemas/requests/models/ideogram/index.json +11713 -0
  158. package/dist/schemas/requests/models/imagineart/imagineart-1-5-pro.json +283 -0
  159. package/dist/schemas/requests/models/imagineart/imagineart-1-5.json +272 -0
  160. package/dist/schemas/requests/models/imagineart/imagineart-2-0.json +486 -0
  161. package/dist/schemas/requests/models/imagineart/index.json +1043 -0
  162. package/dist/schemas/requests/models/inworld/index.json +3062 -0
  163. package/dist/schemas/requests/models/inworld/inworld-tts-1-5-max.json +807 -0
  164. package/dist/schemas/requests/models/inworld/inworld-tts-1-5-mini.json +807 -0
  165. package/dist/schemas/requests/models/inworld/inworld-tts-2.json +1446 -0
  166. package/dist/schemas/requests/models/klingai/index.json +11714 -0
  167. package/dist/schemas/requests/models/klingai/klingai-1-0-pro.json +319 -0
  168. package/dist/schemas/requests/models/klingai/klingai-1-0-standard.json +319 -0
  169. package/dist/schemas/requests/models/klingai/klingai-1-5-pro.json +308 -0
  170. package/dist/schemas/requests/models/klingai/klingai-1-5-standard.json +296 -0
  171. package/dist/schemas/requests/models/klingai/klingai-1-6-pro.json +304 -0
  172. package/dist/schemas/requests/models/klingai/klingai-1-6-standard.json +311 -0
  173. package/dist/schemas/requests/models/klingai/klingai-2-0-master.json +319 -0
  174. package/dist/schemas/requests/models/klingai/klingai-2-1-master.json +311 -0
  175. package/dist/schemas/requests/models/klingai/klingai-2-1-pro.json +320 -0
  176. package/dist/schemas/requests/models/klingai/klingai-2-1-standard.json +300 -0
  177. package/dist/schemas/requests/models/klingai/klingai-2-5-turbo-pro.json +319 -0
  178. package/dist/schemas/requests/models/klingai/klingai-2-5-turbo-standard.json +251 -0
  179. package/dist/schemas/requests/models/klingai/klingai-avatar-2-0-pro.json +189 -0
  180. package/dist/schemas/requests/models/klingai/klingai-avatar-2-0-standard.json +189 -0
  181. package/dist/schemas/requests/models/klingai/klingai-image-3-0.json +443 -0
  182. package/dist/schemas/requests/models/klingai/klingai-image-o1.json +444 -0
  183. package/dist/schemas/requests/models/klingai/klingai-image-o3.json +473 -0
  184. package/dist/schemas/requests/models/klingai/klingai-lip-sync.json +210 -0
  185. package/dist/schemas/requests/models/klingai/klingai-video-2-6-pro.json +493 -0
  186. package/dist/schemas/requests/models/klingai/klingai-video-2-6-standard.json +326 -0
  187. package/dist/schemas/requests/models/klingai/klingai-video-3-0-4k.json +551 -0
  188. package/dist/schemas/requests/models/klingai/klingai-video-3-0-pro.json +765 -0
  189. package/dist/schemas/requests/models/klingai/klingai-video-3-0-standard.json +765 -0
  190. package/dist/schemas/requests/models/klingai/klingai-video-o1-pro.json +534 -0
  191. package/dist/schemas/requests/models/klingai/klingai-video-o1-standard.json +528 -0
  192. package/dist/schemas/requests/models/klingai/klingai-video-o3-4k.json +512 -0
  193. package/dist/schemas/requests/models/klingai/klingai-video-o3-pro.json +819 -0
  194. package/dist/schemas/requests/models/klingai/klingai-video-o3-standard.json +819 -0
  195. package/dist/schemas/requests/models/lightricks/index.json +2356 -0
  196. package/dist/schemas/requests/models/lightricks/lightricks-ltx-2-3-fast.json +438 -0
  197. package/dist/schemas/requests/models/lightricks/lightricks-ltx-2-3.json +517 -0
  198. package/dist/schemas/requests/models/lightricks/lightricks-ltx-2-fast.json +328 -0
  199. package/dist/schemas/requests/models/lightricks/lightricks-ltx-2-pro.json +482 -0
  200. package/dist/schemas/requests/models/lightricks/lightricks-ltx-2-retake.json +289 -0
  201. package/dist/schemas/requests/models/lightricks/lightricks-ltx-2.json +303 -0
  202. package/dist/schemas/requests/models/luma/index.json +1049 -0
  203. package/dist/schemas/requests/models/luma/luma-uni-1-max.json +523 -0
  204. package/dist/schemas/requests/models/luma/luma-uni-1.json +523 -0
  205. package/dist/schemas/requests/models/memories/index.json +241 -0
  206. package/dist/schemas/requests/models/memories/memories-video-age-detection.json +119 -0
  207. package/dist/schemas/requests/models/memories/memories-video-captioning.json +119 -0
  208. package/dist/schemas/requests/models/meshy/index.json +583 -0
  209. package/dist/schemas/requests/models/meshy/meshy-6.json +579 -0
  210. package/dist/schemas/requests/models/meta/index.json +298 -0
  211. package/dist/schemas/requests/models/meta/meta-llava-1-6-mistral-7b.json +136 -0
  212. package/dist/schemas/requests/models/meta/meta-sam-3d-objects.json +159 -0
  213. package/dist/schemas/requests/models/microsoft/index.json +326 -0
  214. package/dist/schemas/requests/models/microsoft/microsoft-trellis-2.json +322 -0
  215. package/dist/schemas/requests/models/minimax/index.json +5629 -0
  216. package/dist/schemas/requests/models/minimax/minimax-01-director.json +296 -0
  217. package/dist/schemas/requests/models/minimax/minimax-01-live.json +296 -0
  218. package/dist/schemas/requests/models/minimax/minimax-01.json +322 -0
  219. package/dist/schemas/requests/models/minimax/minimax-hailuo-02.json +345 -0
  220. package/dist/schemas/requests/models/minimax/minimax-hailuo-2-3-fast.json +383 -0
  221. package/dist/schemas/requests/models/minimax/minimax-hailuo-2-3.json +362 -0
  222. package/dist/schemas/requests/models/minimax/minimax-m2-5.json +349 -0
  223. package/dist/schemas/requests/models/minimax/minimax-m2-7-highspeed.json +291 -0
  224. package/dist/schemas/requests/models/minimax/minimax-m2-7.json +291 -0
  225. package/dist/schemas/requests/models/minimax/minimax-music-2-6.json +858 -0
  226. package/dist/schemas/requests/models/minimax/minimax-music-cover.json +730 -0
  227. package/dist/schemas/requests/models/minimax/minimax-speech-2-8.json +1113 -0
  228. package/dist/schemas/requests/models/mirelo/index.json +813 -0
  229. package/dist/schemas/requests/models/mirelo/mirelo-sfx-1-5.json +809 -0
  230. package/dist/schemas/requests/models/moonshotai/index.json +415 -0
  231. package/dist/schemas/requests/models/moonshotai/moonshotai-kimi-k2-6.json +411 -0
  232. package/dist/schemas/requests/models/openai/index.json +4198 -0
  233. package/dist/schemas/requests/models/openai/openai-clip-vit-l-14.json +136 -0
  234. package/dist/schemas/requests/models/openai/openai-dalle-2.json +214 -0
  235. package/dist/schemas/requests/models/openai/openai-dalle-3.json +252 -0
  236. package/dist/schemas/requests/models/openai/openai-gpt-5-4-mini.json +331 -0
  237. package/dist/schemas/requests/models/openai/openai-gpt-5-4-nano.json +331 -0
  238. package/dist/schemas/requests/models/openai/openai-gpt-5-4-pro.json +331 -0
  239. package/dist/schemas/requests/models/openai/openai-gpt-5-4.json +331 -0
  240. package/dist/schemas/requests/models/openai/openai-gpt-5-5.json +318 -0
  241. package/dist/schemas/requests/models/openai/openai-gpt-image-1-5.json +318 -0
  242. package/dist/schemas/requests/models/openai/openai-gpt-image-1-mini.json +318 -0
  243. package/dist/schemas/requests/models/openai/openai-gpt-image-1.json +318 -0
  244. package/dist/schemas/requests/models/openai/openai-gpt-image-2.json +267 -0
  245. package/dist/schemas/requests/models/openai/openai-sora-2-pro.json +382 -0
  246. package/dist/schemas/requests/models/openai/openai-sora-2.json +360 -0
  247. package/dist/schemas/requests/models/picsart/index.json +125 -0
  248. package/dist/schemas/requests/models/picsart/picsart-image-vectorizer.json +121 -0
  249. package/dist/schemas/requests/models/pixverse/index.json +7029 -0
  250. package/dist/schemas/requests/models/pixverse/pixverse-lipsync.json +222 -0
  251. package/dist/schemas/requests/models/pixverse/pixverse-modify.json +253 -0
  252. package/dist/schemas/requests/models/pixverse/pixverse-v3-5.json +911 -0
  253. package/dist/schemas/requests/models/pixverse/pixverse-v4-5.json +1040 -0
  254. package/dist/schemas/requests/models/pixverse/pixverse-v4.json +1040 -0
  255. package/dist/schemas/requests/models/pixverse/pixverse-v5-5.json +732 -0
  256. package/dist/schemas/requests/models/pixverse/pixverse-v5-6.json +726 -0
  257. package/dist/schemas/requests/models/pixverse/pixverse-v5-fast.json +573 -0
  258. package/dist/schemas/requests/models/pixverse/pixverse-v5.json +711 -0
  259. package/dist/schemas/requests/models/pixverse/pixverse-v6.json +826 -0
  260. package/dist/schemas/requests/models/prunaai/index.json +1628 -0
  261. package/dist/schemas/requests/models/prunaai/prunaai-p-image-edit.json +347 -0
  262. package/dist/schemas/requests/models/prunaai/prunaai-p-image-upscale.json +158 -0
  263. package/dist/schemas/requests/models/prunaai/prunaai-p-image.json +175 -0
  264. package/dist/schemas/requests/models/prunaai/prunaai-p-video-avatar.json +393 -0
  265. package/dist/schemas/requests/models/prunaai/prunaai-p-video.json +555 -0
  266. package/dist/schemas/requests/models/recraft/index.json +1583 -0
  267. package/dist/schemas/requests/models/recraft/recraft-v4-pro-vector.json +335 -0
  268. package/dist/schemas/requests/models/recraft/recraft-v4-pro.json +396 -0
  269. package/dist/schemas/requests/models/recraft/recraft-v4-vector.json +335 -0
  270. package/dist/schemas/requests/models/recraft/recraft-v4.json +396 -0
  271. package/dist/schemas/requests/models/recraft/recraft-vectorize.json +121 -0
  272. package/dist/schemas/requests/models/rundiffusion/index.json +3849 -0
  273. package/dist/schemas/requests/models/rundiffusion/rundiffusion-juggernaut-base-flux.json +1103 -0
  274. package/dist/schemas/requests/models/rundiffusion/rundiffusion-juggernaut-lightning-flux.json +911 -0
  275. package/dist/schemas/requests/models/rundiffusion/rundiffusion-juggernaut-pro-flux.json +1103 -0
  276. package/dist/schemas/requests/models/rundiffusion/rundiffusion-juggernaut-z.json +731 -0
  277. package/dist/schemas/requests/models/runware/ace-step-v1-5-base.json +1005 -0
  278. package/dist/schemas/requests/models/runware/ace-step-v1-5-turbo.json +1005 -0
  279. package/dist/schemas/requests/models/runware/birefnet-dis.json +131 -0
  280. package/dist/schemas/requests/models/runware/birefnet-general-resolution-512x512-fp16.json +131 -0
  281. package/dist/schemas/requests/models/runware/birefnet-general.json +131 -0
  282. package/dist/schemas/requests/models/runware/birefnet-hrsod-dhu.json +131 -0
  283. package/dist/schemas/requests/models/runware/birefnet-massive-tr-dis5k-tr-tes.json +131 -0
  284. package/dist/schemas/requests/models/runware/birefnet-matting.json +131 -0
  285. package/dist/schemas/requests/models/runware/birefnet-portrait.json +131 -0
  286. package/dist/schemas/requests/models/runware/birefnet-v1-base-cod.json +131 -0
  287. package/dist/schemas/requests/models/runware/birefnet-v1-base.json +131 -0
  288. package/dist/schemas/requests/models/runware/bria-rmbg-v2-0-open.json +131 -0
  289. package/dist/schemas/requests/models/runware/ccsr.json +187 -0
  290. package/dist/schemas/requests/models/runware/clarity.json +277 -0
  291. package/dist/schemas/requests/models/runware/dia-1-6b.json +742 -0
  292. package/dist/schemas/requests/models/runware/dia2-2b.json +809 -0
  293. package/dist/schemas/requests/models/runware/flux-1-dev-srpo.json +1103 -0
  294. package/dist/schemas/requests/models/runware/flux-krea.json +1103 -0
  295. package/dist/schemas/requests/models/runware/hidream-i1-dev.json +448 -0
  296. package/dist/schemas/requests/models/runware/hidream-i1-fast.json +448 -0
  297. package/dist/schemas/requests/models/runware/hidream-i1-full.json +448 -0
  298. package/dist/schemas/requests/models/runware/index.json +11773 -0
  299. package/dist/schemas/requests/models/runware/kandinsky-5-0-image-lite.json +469 -0
  300. package/dist/schemas/requests/models/runware/kandinsky-5-0-lite.json +312 -0
  301. package/dist/schemas/requests/models/runware/llama-3-1-8b-prompt-enhancer.json +81 -0
  302. package/dist/schemas/requests/models/runware/object-eraser.json +221 -0
  303. package/dist/schemas/requests/models/runware/open-age-detection.json +131 -0
  304. package/dist/schemas/requests/models/runware/ovi.json +313 -0
  305. package/dist/schemas/requests/models/runware/qwen2-5-vl-7b-age-detector.json +131 -0
  306. package/dist/schemas/requests/models/runware/real-esrgan.json +140 -0
  307. package/dist/schemas/requests/models/runware/rembg-v1-4.json +199 -0
  308. package/dist/schemas/requests/models/runware/stable-diffusion-latent-upscaler.json +184 -0
  309. package/dist/schemas/requests/models/runware/swinir.json +140 -0
  310. package/dist/schemas/requests/models/runware/twinflow-z-image-turbo.json +465 -0
  311. package/dist/schemas/requests/models/runware/vit-age-classifier.json +131 -0
  312. package/dist/schemas/requests/models/runway/index.json +1983 -0
  313. package/dist/schemas/requests/models/runway/runway-aleph.json +359 -0
  314. package/dist/schemas/requests/models/runway/runway-gen-4-5.json +394 -0
  315. package/dist/schemas/requests/models/runway/runway-gen-4-image-turbo.json +428 -0
  316. package/dist/schemas/requests/models/runway/runway-gen-4-image.json +425 -0
  317. package/dist/schemas/requests/models/runway/runway-gen-4-turbo.json +377 -0
  318. package/dist/schemas/requests/models/skywork/index.json +811 -0
  319. package/dist/schemas/requests/models/skywork/skywork-skyreels-v4.json +807 -0
  320. package/dist/schemas/requests/models/sourceful/index.json +3421 -0
  321. package/dist/schemas/requests/models/sourceful/sourceful-riverflow-1-1-mini.json +331 -0
  322. package/dist/schemas/requests/models/sourceful/sourceful-riverflow-1-1-pro.json +331 -0
  323. package/dist/schemas/requests/models/sourceful/sourceful-riverflow-1-1.json +331 -0
  324. package/dist/schemas/requests/models/sourceful/sourceful-riverflow-2-0-fast.json +454 -0
  325. package/dist/schemas/requests/models/sourceful/sourceful-riverflow-2-0-pro.json +564 -0
  326. package/dist/schemas/requests/models/sourceful/sourceful-riverflow-2-preview-fast.json +471 -0
  327. package/dist/schemas/requests/models/sourceful/sourceful-riverflow-2-preview-max.json +471 -0
  328. package/dist/schemas/requests/models/sourceful/sourceful-riverflow-2-preview-standard.json +471 -0
  329. package/dist/schemas/requests/models/stabilityai/index.json +1832 -0
  330. package/dist/schemas/requests/models/stabilityai/stabilityai-stable-diffusion-3.json +843 -0
  331. package/dist/schemas/requests/models/stabilityai/stabilityai-stable-diffusion-xl-v1-0-vae-fix.json +986 -0
  332. package/dist/schemas/requests/models/sync/index.json +1506 -0
  333. package/dist/schemas/requests/models/sync/sync-3.json +534 -0
  334. package/dist/schemas/requests/models/sync/sync-lipsync-2-pro.json +334 -0
  335. package/dist/schemas/requests/models/sync/sync-lipsync-2.json +334 -0
  336. package/dist/schemas/requests/models/sync/sync-react-1.json +303 -0
  337. package/dist/schemas/requests/models/tencent/index.json +1075 -0
  338. package/dist/schemas/requests/models/tencent/tencent-hunyuan-3d-3-1-pro.json +236 -0
  339. package/dist/schemas/requests/models/tencent/tencent-hunyuan-3d-3-1-rapid.json +260 -0
  340. package/dist/schemas/requests/models/tencent/tencent-hunyuanimage-3-0.json +577 -0
  341. package/dist/schemas/requests/models/topazlabs/index.json +146 -0
  342. package/dist/schemas/requests/models/topazlabs/topazlabs-starlight-precise-2-5.json +142 -0
  343. package/dist/schemas/requests/models/tripo/index.json +481 -0
  344. package/dist/schemas/requests/models/tripo/tripo-v3-1.json +477 -0
  345. package/dist/schemas/requests/models/veed/index.json +286 -0
  346. package/dist/schemas/requests/models/veed/veed-fabric-1-0.json +282 -0
  347. package/dist/schemas/requests/models/vidu/index.json +4290 -0
  348. package/dist/schemas/requests/models/vidu/vidu-1-5.json +531 -0
  349. package/dist/schemas/requests/models/vidu/vidu-2-0.json +472 -0
  350. package/dist/schemas/requests/models/vidu/vidu-q1-classic.json +316 -0
  351. package/dist/schemas/requests/models/vidu/vidu-q1-image.json +244 -0
  352. package/dist/schemas/requests/models/vidu/vidu-q1.json +459 -0
  353. package/dist/schemas/requests/models/vidu/vidu-q2-pro.json +591 -0
  354. package/dist/schemas/requests/models/vidu/vidu-q2-turbo.json +591 -0
  355. package/dist/schemas/requests/models/vidu/vidu-q3-turbo.json +537 -0
  356. package/dist/schemas/requests/models/vidu/vidu-q3.json +553 -0
  357. package/dist/schemas/requests/models/xai/index.json +2950 -0
  358. package/dist/schemas/requests/models/xai/xai-grok-imagine-image-pro.json +563 -0
  359. package/dist/schemas/requests/models/xai/xai-grok-imagine-image-quality.json +563 -0
  360. package/dist/schemas/requests/models/xai/xai-grok-imagine-image.json +419 -0
  361. package/dist/schemas/requests/models/xai/xai-grok-imagine-video.json +670 -0
  362. package/dist/schemas/requests/models/xai/xai-tts.json +735 -0
  363. package/dist/schemas/requests/models/zai/index.json +794 -0
  364. package/dist/schemas/requests/models/zai/zai-glm-4-7.json +231 -0
  365. package/dist/schemas/requests/models/zai/zai-glm-5-1.json +326 -0
  366. package/dist/schemas/requests/models/zai/zai-glm-image.json +235 -0
  367. package/dist/schemas/requests/types/3d.json +97 -0
  368. package/dist/schemas/requests/types/audio.json +676 -0
  369. package/dist/schemas/requests/types/caption-image.json +132 -0
  370. package/dist/schemas/requests/types/caption-video.json +120 -0
  371. package/dist/schemas/requests/types/caption.json +63 -0
  372. package/dist/schemas/requests/types/image.json +152 -0
  373. package/dist/schemas/requests/types/prompt-enhance.json +82 -0
  374. package/dist/schemas/requests/types/remove-background-image.json +132 -0
  375. package/dist/schemas/requests/types/remove-background-video.json +120 -0
  376. package/dist/schemas/requests/types/remove-background.json +63 -0
  377. package/dist/schemas/requests/types/text.json +126 -0
  378. package/dist/schemas/requests/types/training.json +43 -0
  379. package/dist/schemas/requests/types/upscale-image.json +132 -0
  380. package/dist/schemas/requests/types/upscale-video.json +120 -0
  381. package/dist/schemas/requests/types/upscale.json +63 -0
  382. package/dist/schemas/requests/types/vectorize.json +91 -0
  383. package/dist/schemas/requests/types/video.json +151 -0
  384. package/dist/schemas/requests/utilities/account-management.json +33 -0
  385. package/dist/schemas/requests/utilities/authentication.json +29 -0
  386. package/dist/schemas/requests/utilities/get-response.json +24 -0
  387. package/dist/schemas/requests/utilities/get-task-details.json +24 -0
  388. package/dist/schemas/requests/utilities/image-upload.json +39 -0
  389. package/dist/schemas/requests/utilities/model-search.json +357 -0
  390. package/dist/schemas/requests/utilities/model-upload.json +407 -0
  391. package/dist/schemas/requests/utilities/ping.json +21 -0
  392. package/dist/schemas/responses/errors/error.json +49 -0
  393. package/dist/schemas/responses/utilities/account-management.json +262 -0
  394. package/dist/schemas/responses/utilities/authentication.json +23 -0
  395. package/dist/schemas/responses/utilities/get-response.json +59 -0
  396. package/dist/schemas/responses/utilities/get-task-details.json +41 -0
  397. package/dist/schemas/responses/utilities/image-upload.json +29 -0
  398. package/dist/schemas/responses/utilities/model-search.json +111 -0
  399. package/dist/schemas/responses/utilities/model-upload.json +48 -0
  400. package/dist/schemas/responses/utilities/ping.json +15 -0
  401. package/package.json +16 -0
@@ -0,0 +1,2950 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2019-09/schema",
3
+ "oneOf": [
4
+ {
5
+ "type": "object",
6
+ "properties": {
7
+ "model": {
8
+ "title": "Model",
9
+ "description": "Identifier of the model to use for generation.",
10
+ "type": "string",
11
+ "const": "xai:grok-imagine@image"
12
+ },
13
+ "inputs": {
14
+ "title": "Inputs",
15
+ "description": "The unified payload wrapper for complex media assets dictating image, video or audio inference constraints.",
16
+ "type": "object",
17
+ "properties": {
18
+ "referenceImages": {
19
+ "title": "Reference Images",
20
+ "description": "List of reference images (UUID, URL, Data URI, or Base64).",
21
+ "type": "array",
22
+ "minItems": 1,
23
+ "items": {
24
+ "title": "Image",
25
+ "description": "Image input (UUID, URL, Data URI, or Base64).",
26
+ "type": "string",
27
+ "anyOf": [
28
+ {
29
+ "format": "uuid"
30
+ },
31
+ {
32
+ "format": "uri"
33
+ },
34
+ {
35
+ "pattern": "^data:image\\/[a-zA-Z]+;base64,[a-zA-Z0-9+/=]+$"
36
+ },
37
+ {
38
+ "pattern": "^[a-zA-Z0-9+/=]+$"
39
+ }
40
+ ]
41
+ },
42
+ "maxItems": 3
43
+ }
44
+ },
45
+ "additionalProperties": false
46
+ },
47
+ "positivePrompt": {
48
+ "title": "Positive Prompt",
49
+ "description": "Text prompt describing elements to include in the generated output.",
50
+ "type": "string",
51
+ "minLength": 1
52
+ },
53
+ "width": {
54
+ "title": "Width",
55
+ "description": "Width of the generated media in pixels.",
56
+ "type": "integer"
57
+ },
58
+ "height": {
59
+ "title": "Height",
60
+ "description": "Height of the generated media in pixels.",
61
+ "type": "integer"
62
+ },
63
+ "resolution": {
64
+ "title": "Resolution",
65
+ "description": "Resolution preset for the output. When used with input media, automatically matches the aspect ratio from the input.",
66
+ "type": "string",
67
+ "enum": [
68
+ "1K"
69
+ ],
70
+ "default": "1K"
71
+ },
72
+ "taskType": {
73
+ "title": "Task Type",
74
+ "description": "Identifier for the type of task being performed",
75
+ "type": "string",
76
+ "const": "imageInference"
77
+ },
78
+ "taskUUID": {
79
+ "title": "Task UUID",
80
+ "description": "UUID v4 identifier for tracking tasks and matching async responses. Must be unique per task.",
81
+ "type": "string",
82
+ "format": "uuid"
83
+ },
84
+ "webhookURL": {
85
+ "title": "Webhook URL",
86
+ "description": "Specifies a webhook URL where JSON responses will be sent via HTTP POST when generation tasks complete. For batch requests with multiple results, each completed item triggers a separate webhook call as it becomes available.",
87
+ "type": "string",
88
+ "format": "uri"
89
+ },
90
+ "includeCost": {
91
+ "title": "Include Cost",
92
+ "description": "Include task cost in the response.",
93
+ "type": "boolean",
94
+ "default": false
95
+ },
96
+ "numberResults": {
97
+ "title": "Number of Results",
98
+ "description": "Number of results to generate. Each result uses a different seed, producing variations of the same parameters.",
99
+ "type": "integer",
100
+ "minimum": 1,
101
+ "default": 1,
102
+ "maximum": 20
103
+ },
104
+ "uploadEndpoint": {
105
+ "title": "Upload Endpoint",
106
+ "description": "URL to upload content via HTTP PUT. The request body will contain the raw binary data.",
107
+ "type": "string",
108
+ "format": "uri"
109
+ },
110
+ "ttl": {
111
+ "title": "TTL",
112
+ "description": "Time-to-live (TTL) in seconds for generated content. Only applies when `outputType` is `URL`.",
113
+ "type": "integer",
114
+ "minimum": 60
115
+ },
116
+ "outputType": {
117
+ "title": "Output Type",
118
+ "description": "Image output type.",
119
+ "type": "string",
120
+ "enum": [
121
+ "URL",
122
+ "base64Data",
123
+ "dataURI"
124
+ ],
125
+ "default": "URL"
126
+ },
127
+ "outputFormat": {
128
+ "title": "Output Format",
129
+ "description": "File format for the generated image.",
130
+ "type": "string",
131
+ "enum": [
132
+ "JPG",
133
+ "PNG",
134
+ "WEBP"
135
+ ],
136
+ "default": "JPG"
137
+ },
138
+ "outputQuality": {
139
+ "title": "Output Quality",
140
+ "description": "Compression quality of the output. Higher values preserve quality but increase file size.",
141
+ "type": "integer",
142
+ "minimum": 20,
143
+ "maximum": 99,
144
+ "default": 95
145
+ },
146
+ "deliveryMethod": {
147
+ "title": "Delivery Method",
148
+ "description": "Determines how the API delivers task results.",
149
+ "type": "string",
150
+ "oneOf": [
151
+ {
152
+ "const": "sync",
153
+ "description": "Returns complete results directly in the API response."
154
+ },
155
+ {
156
+ "const": "async",
157
+ "description": "Returns an immediate acknowledgment with the task UUID. Poll for results using getResponse."
158
+ }
159
+ ],
160
+ "default": "sync"
161
+ },
162
+ "safety": {
163
+ "type": "object",
164
+ "title": "Safety Settings",
165
+ "description": "Content safety checking configuration for image generation.",
166
+ "properties": {
167
+ "checkContent": {
168
+ "title": "Check Content",
169
+ "description": "Enable or disable content safety checking. When enabled, defaults to `fast` mode.",
170
+ "type": "boolean",
171
+ "default": false
172
+ },
173
+ "mode": {
174
+ "description": "Safety checking mode for image generation.",
175
+ "type": "string",
176
+ "oneOf": [
177
+ {
178
+ "const": "none",
179
+ "title": "None",
180
+ "description": "Disables checking."
181
+ },
182
+ {
183
+ "const": "fast",
184
+ "title": "Fast",
185
+ "description": "Performs a single check."
186
+ }
187
+ ],
188
+ "default": "none"
189
+ }
190
+ },
191
+ "additionalProperties": false
192
+ }
193
+ },
194
+ "required": [
195
+ "positivePrompt",
196
+ "taskType",
197
+ "taskUUID",
198
+ "model"
199
+ ],
200
+ "allOf": [
201
+ {
202
+ "dependentRequired": {
203
+ "width": [
204
+ "height"
205
+ ],
206
+ "height": [
207
+ "width"
208
+ ]
209
+ }
210
+ },
211
+ {
212
+ "oneOf": [
213
+ {
214
+ "title": "1K (1:1)",
215
+ "properties": {
216
+ "width": {
217
+ "const": 1024
218
+ },
219
+ "height": {
220
+ "const": 1024
221
+ }
222
+ }
223
+ },
224
+ {
225
+ "title": "1K (3:4)",
226
+ "properties": {
227
+ "width": {
228
+ "const": 896
229
+ },
230
+ "height": {
231
+ "const": 1280
232
+ }
233
+ }
234
+ },
235
+ {
236
+ "title": "1K (4:3)",
237
+ "properties": {
238
+ "width": {
239
+ "const": 1280
240
+ },
241
+ "height": {
242
+ "const": 896
243
+ }
244
+ }
245
+ },
246
+ {
247
+ "title": "1K (9:16)",
248
+ "properties": {
249
+ "width": {
250
+ "const": 768
251
+ },
252
+ "height": {
253
+ "const": 1408
254
+ }
255
+ }
256
+ },
257
+ {
258
+ "title": "1K (16:9)",
259
+ "properties": {
260
+ "width": {
261
+ "const": 1408
262
+ },
263
+ "height": {
264
+ "const": 768
265
+ }
266
+ }
267
+ },
268
+ {
269
+ "title": "1K (2:3)",
270
+ "properties": {
271
+ "width": {
272
+ "const": 864
273
+ },
274
+ "height": {
275
+ "const": 1296
276
+ }
277
+ }
278
+ },
279
+ {
280
+ "title": "1K (3:2)",
281
+ "properties": {
282
+ "width": {
283
+ "const": 1296
284
+ },
285
+ "height": {
286
+ "const": 864
287
+ }
288
+ }
289
+ },
290
+ {
291
+ "title": "1K (9:19.5)",
292
+ "properties": {
293
+ "width": {
294
+ "const": 576
295
+ },
296
+ "height": {
297
+ "const": 1248
298
+ }
299
+ }
300
+ },
301
+ {
302
+ "title": "1K (19.5:9)",
303
+ "properties": {
304
+ "width": {
305
+ "const": 1248
306
+ },
307
+ "height": {
308
+ "const": 576
309
+ }
310
+ }
311
+ },
312
+ {
313
+ "title": "1K (9:20)",
314
+ "properties": {
315
+ "width": {
316
+ "const": 576
317
+ },
318
+ "height": {
319
+ "const": 1280
320
+ }
321
+ }
322
+ },
323
+ {
324
+ "title": "1K (20:9)",
325
+ "properties": {
326
+ "width": {
327
+ "const": 1280
328
+ },
329
+ "height": {
330
+ "const": 576
331
+ }
332
+ }
333
+ },
334
+ {
335
+ "title": "1K (1:2)",
336
+ "properties": {
337
+ "width": {
338
+ "const": 704
339
+ },
340
+ "height": {
341
+ "const": 1408
342
+ }
343
+ }
344
+ },
345
+ {
346
+ "title": "1K (2:1)",
347
+ "properties": {
348
+ "width": {
349
+ "const": 1408
350
+ },
351
+ "height": {
352
+ "const": 704
353
+ }
354
+ }
355
+ }
356
+ ]
357
+ },
358
+ {
359
+ "if": {
360
+ "not": {
361
+ "properties": {
362
+ "inputs": {
363
+ "properties": {
364
+ "referenceImages": {
365
+ "minItems": 1
366
+ }
367
+ },
368
+ "required": [
369
+ "referenceImages"
370
+ ]
371
+ }
372
+ },
373
+ "required": [
374
+ "inputs"
375
+ ]
376
+ }
377
+ },
378
+ "then": {
379
+ "anyOf": [
380
+ {
381
+ "required": [
382
+ "width",
383
+ "height"
384
+ ]
385
+ },
386
+ {
387
+ "required": [
388
+ "resolution"
389
+ ]
390
+ }
391
+ ]
392
+ }
393
+ },
394
+ {
395
+ "not": {
396
+ "allOf": [
397
+ {
398
+ "required": [
399
+ "resolution"
400
+ ]
401
+ },
402
+ {
403
+ "anyOf": [
404
+ {
405
+ "required": [
406
+ "width"
407
+ ]
408
+ },
409
+ {
410
+ "required": [
411
+ "height"
412
+ ]
413
+ }
414
+ ]
415
+ }
416
+ ]
417
+ }
418
+ }
419
+ ],
420
+ "additionalProperties": false
421
+ },
422
+ {
423
+ "type": "object",
424
+ "properties": {
425
+ "model": {
426
+ "title": "Model",
427
+ "description": "Identifier of the model to use for generation.",
428
+ "type": "string",
429
+ "const": "xai:grok-imagine@image-pro"
430
+ },
431
+ "inputs": {
432
+ "title": "Inputs",
433
+ "description": "The unified payload wrapper for complex media assets dictating image, video or audio inference constraints.",
434
+ "type": "object",
435
+ "properties": {
436
+ "referenceImages": {
437
+ "title": "Reference Images",
438
+ "description": "List of reference images (UUID, URL, Data URI, or Base64).",
439
+ "type": "array",
440
+ "minItems": 1,
441
+ "items": {
442
+ "title": "Image",
443
+ "description": "Image input (UUID, URL, Data URI, or Base64).",
444
+ "type": "string",
445
+ "anyOf": [
446
+ {
447
+ "format": "uuid"
448
+ },
449
+ {
450
+ "format": "uri"
451
+ },
452
+ {
453
+ "pattern": "^data:image\\/[a-zA-Z]+;base64,[a-zA-Z0-9+/=]+$"
454
+ },
455
+ {
456
+ "pattern": "^[a-zA-Z0-9+/=]+$"
457
+ }
458
+ ]
459
+ },
460
+ "maxItems": 1
461
+ }
462
+ },
463
+ "additionalProperties": false
464
+ },
465
+ "positivePrompt": {
466
+ "title": "Positive Prompt",
467
+ "description": "Text prompt describing elements to include in the generated output.",
468
+ "type": "string",
469
+ "minLength": 1
470
+ },
471
+ "width": {
472
+ "title": "Width",
473
+ "description": "Width of the generated media in pixels.",
474
+ "type": "integer"
475
+ },
476
+ "height": {
477
+ "title": "Height",
478
+ "description": "Height of the generated media in pixels.",
479
+ "type": "integer"
480
+ },
481
+ "resolution": {
482
+ "title": "Resolution",
483
+ "description": "Resolution preset for the output. When used with input media, automatically matches the aspect ratio from the input.",
484
+ "type": "string",
485
+ "enum": [
486
+ "1K",
487
+ "2K"
488
+ ],
489
+ "default": "1K"
490
+ },
491
+ "taskType": {
492
+ "title": "Task Type",
493
+ "description": "Identifier for the type of task being performed",
494
+ "type": "string",
495
+ "const": "imageInference"
496
+ },
497
+ "taskUUID": {
498
+ "title": "Task UUID",
499
+ "description": "UUID v4 identifier for tracking tasks and matching async responses. Must be unique per task.",
500
+ "type": "string",
501
+ "format": "uuid"
502
+ },
503
+ "webhookURL": {
504
+ "title": "Webhook URL",
505
+ "description": "Specifies a webhook URL where JSON responses will be sent via HTTP POST when generation tasks complete. For batch requests with multiple results, each completed item triggers a separate webhook call as it becomes available.",
506
+ "type": "string",
507
+ "format": "uri"
508
+ },
509
+ "includeCost": {
510
+ "title": "Include Cost",
511
+ "description": "Include task cost in the response.",
512
+ "type": "boolean",
513
+ "default": false
514
+ },
515
+ "numberResults": {
516
+ "title": "Number of Results",
517
+ "description": "Number of results to generate. Each result uses a different seed, producing variations of the same parameters.",
518
+ "type": "integer",
519
+ "minimum": 1,
520
+ "default": 1,
521
+ "maximum": 20
522
+ },
523
+ "uploadEndpoint": {
524
+ "title": "Upload Endpoint",
525
+ "description": "URL to upload content via HTTP PUT. The request body will contain the raw binary data.",
526
+ "type": "string",
527
+ "format": "uri"
528
+ },
529
+ "ttl": {
530
+ "title": "TTL",
531
+ "description": "Time-to-live (TTL) in seconds for generated content. Only applies when `outputType` is `URL`.",
532
+ "type": "integer",
533
+ "minimum": 60
534
+ },
535
+ "outputType": {
536
+ "title": "Output Type",
537
+ "description": "Image output type.",
538
+ "type": "string",
539
+ "enum": [
540
+ "URL",
541
+ "base64Data",
542
+ "dataURI"
543
+ ],
544
+ "default": "URL"
545
+ },
546
+ "outputFormat": {
547
+ "title": "Output Format",
548
+ "description": "File format for the generated image.",
549
+ "type": "string",
550
+ "enum": [
551
+ "JPG",
552
+ "PNG",
553
+ "WEBP"
554
+ ],
555
+ "default": "JPG"
556
+ },
557
+ "outputQuality": {
558
+ "title": "Output Quality",
559
+ "description": "Compression quality of the output. Higher values preserve quality but increase file size.",
560
+ "type": "integer",
561
+ "minimum": 20,
562
+ "maximum": 99,
563
+ "default": 95
564
+ },
565
+ "deliveryMethod": {
566
+ "title": "Delivery Method",
567
+ "description": "Determines how the API delivers task results.",
568
+ "type": "string",
569
+ "oneOf": [
570
+ {
571
+ "const": "sync",
572
+ "description": "Returns complete results directly in the API response."
573
+ },
574
+ {
575
+ "const": "async",
576
+ "description": "Returns an immediate acknowledgment with the task UUID. Poll for results using getResponse."
577
+ }
578
+ ],
579
+ "default": "sync"
580
+ },
581
+ "safety": {
582
+ "type": "object",
583
+ "title": "Safety Settings",
584
+ "description": "Content safety checking configuration for image generation.",
585
+ "properties": {
586
+ "checkContent": {
587
+ "title": "Check Content",
588
+ "description": "Enable or disable content safety checking. When enabled, defaults to `fast` mode.",
589
+ "type": "boolean",
590
+ "default": false
591
+ },
592
+ "mode": {
593
+ "description": "Safety checking mode for image generation.",
594
+ "type": "string",
595
+ "oneOf": [
596
+ {
597
+ "const": "none",
598
+ "title": "None",
599
+ "description": "Disables checking."
600
+ },
601
+ {
602
+ "const": "fast",
603
+ "title": "Fast",
604
+ "description": "Performs a single check."
605
+ }
606
+ ],
607
+ "default": "none"
608
+ }
609
+ },
610
+ "additionalProperties": false
611
+ }
612
+ },
613
+ "required": [
614
+ "positivePrompt",
615
+ "taskType",
616
+ "taskUUID",
617
+ "model"
618
+ ],
619
+ "allOf": [
620
+ {
621
+ "dependentRequired": {
622
+ "width": [
623
+ "height"
624
+ ],
625
+ "height": [
626
+ "width"
627
+ ]
628
+ }
629
+ },
630
+ {
631
+ "oneOf": [
632
+ {
633
+ "title": "1K (1:1)",
634
+ "properties": {
635
+ "width": {
636
+ "const": 1024
637
+ },
638
+ "height": {
639
+ "const": 1024
640
+ }
641
+ }
642
+ },
643
+ {
644
+ "title": "1K (3:4)",
645
+ "properties": {
646
+ "width": {
647
+ "const": 896
648
+ },
649
+ "height": {
650
+ "const": 1280
651
+ }
652
+ }
653
+ },
654
+ {
655
+ "title": "1K (4:3)",
656
+ "properties": {
657
+ "width": {
658
+ "const": 1280
659
+ },
660
+ "height": {
661
+ "const": 896
662
+ }
663
+ }
664
+ },
665
+ {
666
+ "title": "1K (9:16)",
667
+ "properties": {
668
+ "width": {
669
+ "const": 768
670
+ },
671
+ "height": {
672
+ "const": 1408
673
+ }
674
+ }
675
+ },
676
+ {
677
+ "title": "1K (16:9)",
678
+ "properties": {
679
+ "width": {
680
+ "const": 1408
681
+ },
682
+ "height": {
683
+ "const": 768
684
+ }
685
+ }
686
+ },
687
+ {
688
+ "title": "1K (2:3)",
689
+ "properties": {
690
+ "width": {
691
+ "const": 864
692
+ },
693
+ "height": {
694
+ "const": 1296
695
+ }
696
+ }
697
+ },
698
+ {
699
+ "title": "1K (3:2)",
700
+ "properties": {
701
+ "width": {
702
+ "const": 1296
703
+ },
704
+ "height": {
705
+ "const": 864
706
+ }
707
+ }
708
+ },
709
+ {
710
+ "title": "1K (9:19.5)",
711
+ "properties": {
712
+ "width": {
713
+ "const": 576
714
+ },
715
+ "height": {
716
+ "const": 1248
717
+ }
718
+ }
719
+ },
720
+ {
721
+ "title": "1K (19.5:9)",
722
+ "properties": {
723
+ "width": {
724
+ "const": 1248
725
+ },
726
+ "height": {
727
+ "const": 576
728
+ }
729
+ }
730
+ },
731
+ {
732
+ "title": "1K (9:20)",
733
+ "properties": {
734
+ "width": {
735
+ "const": 576
736
+ },
737
+ "height": {
738
+ "const": 1280
739
+ }
740
+ }
741
+ },
742
+ {
743
+ "title": "1K (20:9)",
744
+ "properties": {
745
+ "width": {
746
+ "const": 1280
747
+ },
748
+ "height": {
749
+ "const": 576
750
+ }
751
+ }
752
+ },
753
+ {
754
+ "title": "1K (1:2)",
755
+ "properties": {
756
+ "width": {
757
+ "const": 704
758
+ },
759
+ "height": {
760
+ "const": 1408
761
+ }
762
+ }
763
+ },
764
+ {
765
+ "title": "1K (2:1)",
766
+ "properties": {
767
+ "width": {
768
+ "const": 1408
769
+ },
770
+ "height": {
771
+ "const": 704
772
+ }
773
+ }
774
+ },
775
+ {
776
+ "title": "2K (1:1)",
777
+ "properties": {
778
+ "width": {
779
+ "const": 2048
780
+ },
781
+ "height": {
782
+ "const": 2048
783
+ }
784
+ }
785
+ },
786
+ {
787
+ "title": "2K (3:4)",
788
+ "properties": {
789
+ "width": {
790
+ "const": 1776
791
+ },
792
+ "height": {
793
+ "const": 2528
794
+ }
795
+ }
796
+ },
797
+ {
798
+ "title": "2K (4:3)",
799
+ "properties": {
800
+ "width": {
801
+ "const": 2528
802
+ },
803
+ "height": {
804
+ "const": 1776
805
+ }
806
+ }
807
+ },
808
+ {
809
+ "title": "2K (9:16)",
810
+ "properties": {
811
+ "width": {
812
+ "const": 1536
813
+ },
814
+ "height": {
815
+ "const": 2816
816
+ }
817
+ }
818
+ },
819
+ {
820
+ "title": "2K (16:9)",
821
+ "properties": {
822
+ "width": {
823
+ "const": 2816
824
+ },
825
+ "height": {
826
+ "const": 1536
827
+ }
828
+ }
829
+ },
830
+ {
831
+ "title": "2K (2:3)",
832
+ "properties": {
833
+ "width": {
834
+ "const": 1680
835
+ },
836
+ "height": {
837
+ "const": 2512
838
+ }
839
+ }
840
+ },
841
+ {
842
+ "title": "2K (3:2)",
843
+ "properties": {
844
+ "width": {
845
+ "const": 2512
846
+ },
847
+ "height": {
848
+ "const": 1680
849
+ }
850
+ }
851
+ },
852
+ {
853
+ "title": "2K (9:19.5)",
854
+ "properties": {
855
+ "width": {
856
+ "const": 1392
857
+ },
858
+ "height": {
859
+ "const": 3008
860
+ }
861
+ }
862
+ },
863
+ {
864
+ "title": "2K (19.5:9)",
865
+ "properties": {
866
+ "width": {
867
+ "const": 3008
868
+ },
869
+ "height": {
870
+ "const": 1392
871
+ }
872
+ }
873
+ },
874
+ {
875
+ "title": "2K (9:20)",
876
+ "properties": {
877
+ "width": {
878
+ "const": 1376
879
+ },
880
+ "height": {
881
+ "const": 3056
882
+ }
883
+ }
884
+ },
885
+ {
886
+ "title": "2K (20:9)",
887
+ "properties": {
888
+ "width": {
889
+ "const": 3056
890
+ },
891
+ "height": {
892
+ "const": 1376
893
+ }
894
+ }
895
+ },
896
+ {
897
+ "title": "2K (1:2)",
898
+ "properties": {
899
+ "width": {
900
+ "const": 1456
901
+ },
902
+ "height": {
903
+ "const": 2912
904
+ }
905
+ }
906
+ },
907
+ {
908
+ "title": "2K (2:1)",
909
+ "properties": {
910
+ "width": {
911
+ "const": 2912
912
+ },
913
+ "height": {
914
+ "const": 1456
915
+ }
916
+ }
917
+ }
918
+ ]
919
+ },
920
+ {
921
+ "if": {
922
+ "not": {
923
+ "properties": {
924
+ "inputs": {
925
+ "properties": {
926
+ "referenceImages": {
927
+ "minItems": 1
928
+ }
929
+ },
930
+ "required": [
931
+ "referenceImages"
932
+ ]
933
+ }
934
+ },
935
+ "required": [
936
+ "inputs"
937
+ ]
938
+ }
939
+ },
940
+ "then": {
941
+ "anyOf": [
942
+ {
943
+ "required": [
944
+ "width",
945
+ "height"
946
+ ]
947
+ },
948
+ {
949
+ "required": [
950
+ "resolution"
951
+ ]
952
+ }
953
+ ]
954
+ }
955
+ },
956
+ {
957
+ "not": {
958
+ "allOf": [
959
+ {
960
+ "required": [
961
+ "resolution"
962
+ ]
963
+ },
964
+ {
965
+ "anyOf": [
966
+ {
967
+ "required": [
968
+ "width"
969
+ ]
970
+ },
971
+ {
972
+ "required": [
973
+ "height"
974
+ ]
975
+ }
976
+ ]
977
+ }
978
+ ]
979
+ }
980
+ }
981
+ ],
982
+ "additionalProperties": false
983
+ },
984
+ {
985
+ "type": "object",
986
+ "properties": {
987
+ "model": {
988
+ "title": "Model",
989
+ "description": "Identifier of the model to use for generation.",
990
+ "type": "string",
991
+ "const": "xai:grok-imagine@image-quality"
992
+ },
993
+ "inputs": {
994
+ "title": "Inputs",
995
+ "description": "The unified payload wrapper for complex media assets dictating image, video or audio inference constraints.",
996
+ "type": "object",
997
+ "properties": {
998
+ "referenceImages": {
999
+ "title": "Reference Images",
1000
+ "description": "List of reference images (UUID, URL, Data URI, or Base64).",
1001
+ "type": "array",
1002
+ "minItems": 1,
1003
+ "items": {
1004
+ "title": "Image",
1005
+ "description": "Image input (UUID, URL, Data URI, or Base64).",
1006
+ "type": "string",
1007
+ "anyOf": [
1008
+ {
1009
+ "format": "uuid"
1010
+ },
1011
+ {
1012
+ "format": "uri"
1013
+ },
1014
+ {
1015
+ "pattern": "^data:image\\/[a-zA-Z]+;base64,[a-zA-Z0-9+/=]+$"
1016
+ },
1017
+ {
1018
+ "pattern": "^[a-zA-Z0-9+/=]+$"
1019
+ }
1020
+ ]
1021
+ },
1022
+ "maxItems": 3
1023
+ }
1024
+ },
1025
+ "additionalProperties": false
1026
+ },
1027
+ "positivePrompt": {
1028
+ "title": "Positive Prompt",
1029
+ "description": "Text prompt describing elements to include in the generated output.",
1030
+ "type": "string",
1031
+ "minLength": 1
1032
+ },
1033
+ "width": {
1034
+ "title": "Width",
1035
+ "description": "Width of the generated media in pixels.",
1036
+ "type": "integer"
1037
+ },
1038
+ "height": {
1039
+ "title": "Height",
1040
+ "description": "Height of the generated media in pixels.",
1041
+ "type": "integer"
1042
+ },
1043
+ "resolution": {
1044
+ "title": "Resolution",
1045
+ "description": "Resolution preset for the output. When used with input media, automatically matches the aspect ratio from the input.",
1046
+ "type": "string",
1047
+ "enum": [
1048
+ "1K",
1049
+ "2K"
1050
+ ],
1051
+ "default": "1K"
1052
+ },
1053
+ "taskType": {
1054
+ "title": "Task Type",
1055
+ "description": "Identifier for the type of task being performed",
1056
+ "type": "string",
1057
+ "const": "imageInference"
1058
+ },
1059
+ "taskUUID": {
1060
+ "title": "Task UUID",
1061
+ "description": "UUID v4 identifier for tracking tasks and matching async responses. Must be unique per task.",
1062
+ "type": "string",
1063
+ "format": "uuid"
1064
+ },
1065
+ "webhookURL": {
1066
+ "title": "Webhook URL",
1067
+ "description": "Specifies a webhook URL where JSON responses will be sent via HTTP POST when generation tasks complete. For batch requests with multiple results, each completed item triggers a separate webhook call as it becomes available.",
1068
+ "type": "string",
1069
+ "format": "uri"
1070
+ },
1071
+ "includeCost": {
1072
+ "title": "Include Cost",
1073
+ "description": "Include task cost in the response.",
1074
+ "type": "boolean",
1075
+ "default": false
1076
+ },
1077
+ "numberResults": {
1078
+ "title": "Number of Results",
1079
+ "description": "Number of results to generate. Each result uses a different seed, producing variations of the same parameters.",
1080
+ "type": "integer",
1081
+ "minimum": 1,
1082
+ "default": 1,
1083
+ "maximum": 20
1084
+ },
1085
+ "uploadEndpoint": {
1086
+ "title": "Upload Endpoint",
1087
+ "description": "URL to upload content via HTTP PUT. The request body will contain the raw binary data.",
1088
+ "type": "string",
1089
+ "format": "uri"
1090
+ },
1091
+ "ttl": {
1092
+ "title": "TTL",
1093
+ "description": "Time-to-live (TTL) in seconds for generated content. Only applies when `outputType` is `URL`.",
1094
+ "type": "integer",
1095
+ "minimum": 60
1096
+ },
1097
+ "outputType": {
1098
+ "title": "Output Type",
1099
+ "description": "Image output type.",
1100
+ "type": "string",
1101
+ "enum": [
1102
+ "URL",
1103
+ "base64Data",
1104
+ "dataURI"
1105
+ ],
1106
+ "default": "URL"
1107
+ },
1108
+ "outputFormat": {
1109
+ "title": "Output Format",
1110
+ "description": "File format for the generated image.",
1111
+ "type": "string",
1112
+ "enum": [
1113
+ "JPG",
1114
+ "PNG",
1115
+ "WEBP"
1116
+ ],
1117
+ "default": "JPG"
1118
+ },
1119
+ "outputQuality": {
1120
+ "title": "Output Quality",
1121
+ "description": "Compression quality of the output. Higher values preserve quality but increase file size.",
1122
+ "type": "integer",
1123
+ "minimum": 20,
1124
+ "maximum": 99,
1125
+ "default": 95
1126
+ },
1127
+ "deliveryMethod": {
1128
+ "title": "Delivery Method",
1129
+ "description": "Determines how the API delivers task results.",
1130
+ "type": "string",
1131
+ "oneOf": [
1132
+ {
1133
+ "const": "sync",
1134
+ "description": "Returns complete results directly in the API response."
1135
+ },
1136
+ {
1137
+ "const": "async",
1138
+ "description": "Returns an immediate acknowledgment with the task UUID. Poll for results using getResponse."
1139
+ }
1140
+ ],
1141
+ "default": "sync"
1142
+ },
1143
+ "safety": {
1144
+ "type": "object",
1145
+ "title": "Safety Settings",
1146
+ "description": "Content safety checking configuration for image generation.",
1147
+ "properties": {
1148
+ "checkContent": {
1149
+ "title": "Check Content",
1150
+ "description": "Enable or disable content safety checking. When enabled, defaults to `fast` mode.",
1151
+ "type": "boolean",
1152
+ "default": false
1153
+ },
1154
+ "mode": {
1155
+ "description": "Safety checking mode for image generation.",
1156
+ "type": "string",
1157
+ "oneOf": [
1158
+ {
1159
+ "const": "none",
1160
+ "title": "None",
1161
+ "description": "Disables checking."
1162
+ },
1163
+ {
1164
+ "const": "fast",
1165
+ "title": "Fast",
1166
+ "description": "Performs a single check."
1167
+ }
1168
+ ],
1169
+ "default": "none"
1170
+ }
1171
+ },
1172
+ "additionalProperties": false
1173
+ }
1174
+ },
1175
+ "required": [
1176
+ "positivePrompt",
1177
+ "taskType",
1178
+ "taskUUID",
1179
+ "model"
1180
+ ],
1181
+ "allOf": [
1182
+ {
1183
+ "dependentRequired": {
1184
+ "width": [
1185
+ "height"
1186
+ ],
1187
+ "height": [
1188
+ "width"
1189
+ ]
1190
+ }
1191
+ },
1192
+ {
1193
+ "oneOf": [
1194
+ {
1195
+ "title": "1K (1:1)",
1196
+ "properties": {
1197
+ "width": {
1198
+ "const": 1024
1199
+ },
1200
+ "height": {
1201
+ "const": 1024
1202
+ }
1203
+ }
1204
+ },
1205
+ {
1206
+ "title": "1K (3:4)",
1207
+ "properties": {
1208
+ "width": {
1209
+ "const": 896
1210
+ },
1211
+ "height": {
1212
+ "const": 1280
1213
+ }
1214
+ }
1215
+ },
1216
+ {
1217
+ "title": "1K (4:3)",
1218
+ "properties": {
1219
+ "width": {
1220
+ "const": 1280
1221
+ },
1222
+ "height": {
1223
+ "const": 896
1224
+ }
1225
+ }
1226
+ },
1227
+ {
1228
+ "title": "1K (9:16)",
1229
+ "properties": {
1230
+ "width": {
1231
+ "const": 768
1232
+ },
1233
+ "height": {
1234
+ "const": 1408
1235
+ }
1236
+ }
1237
+ },
1238
+ {
1239
+ "title": "1K (16:9)",
1240
+ "properties": {
1241
+ "width": {
1242
+ "const": 1408
1243
+ },
1244
+ "height": {
1245
+ "const": 768
1246
+ }
1247
+ }
1248
+ },
1249
+ {
1250
+ "title": "1K (2:3)",
1251
+ "properties": {
1252
+ "width": {
1253
+ "const": 864
1254
+ },
1255
+ "height": {
1256
+ "const": 1296
1257
+ }
1258
+ }
1259
+ },
1260
+ {
1261
+ "title": "1K (3:2)",
1262
+ "properties": {
1263
+ "width": {
1264
+ "const": 1296
1265
+ },
1266
+ "height": {
1267
+ "const": 864
1268
+ }
1269
+ }
1270
+ },
1271
+ {
1272
+ "title": "1K (9:19.5)",
1273
+ "properties": {
1274
+ "width": {
1275
+ "const": 576
1276
+ },
1277
+ "height": {
1278
+ "const": 1248
1279
+ }
1280
+ }
1281
+ },
1282
+ {
1283
+ "title": "1K (19.5:9)",
1284
+ "properties": {
1285
+ "width": {
1286
+ "const": 1248
1287
+ },
1288
+ "height": {
1289
+ "const": 576
1290
+ }
1291
+ }
1292
+ },
1293
+ {
1294
+ "title": "1K (9:20)",
1295
+ "properties": {
1296
+ "width": {
1297
+ "const": 576
1298
+ },
1299
+ "height": {
1300
+ "const": 1280
1301
+ }
1302
+ }
1303
+ },
1304
+ {
1305
+ "title": "1K (20:9)",
1306
+ "properties": {
1307
+ "width": {
1308
+ "const": 1280
1309
+ },
1310
+ "height": {
1311
+ "const": 576
1312
+ }
1313
+ }
1314
+ },
1315
+ {
1316
+ "title": "1K (1:2)",
1317
+ "properties": {
1318
+ "width": {
1319
+ "const": 704
1320
+ },
1321
+ "height": {
1322
+ "const": 1408
1323
+ }
1324
+ }
1325
+ },
1326
+ {
1327
+ "title": "1K (2:1)",
1328
+ "properties": {
1329
+ "width": {
1330
+ "const": 1408
1331
+ },
1332
+ "height": {
1333
+ "const": 704
1334
+ }
1335
+ }
1336
+ },
1337
+ {
1338
+ "title": "2K (1:1)",
1339
+ "properties": {
1340
+ "width": {
1341
+ "const": 2048
1342
+ },
1343
+ "height": {
1344
+ "const": 2048
1345
+ }
1346
+ }
1347
+ },
1348
+ {
1349
+ "title": "2K (3:4)",
1350
+ "properties": {
1351
+ "width": {
1352
+ "const": 1712
1353
+ },
1354
+ "height": {
1355
+ "const": 2432
1356
+ }
1357
+ }
1358
+ },
1359
+ {
1360
+ "title": "2K (4:3)",
1361
+ "properties": {
1362
+ "width": {
1363
+ "const": 2432
1364
+ },
1365
+ "height": {
1366
+ "const": 1712
1367
+ }
1368
+ }
1369
+ },
1370
+ {
1371
+ "title": "2K (9:16)",
1372
+ "properties": {
1373
+ "width": {
1374
+ "const": 1504
1375
+ },
1376
+ "height": {
1377
+ "const": 2752
1378
+ }
1379
+ }
1380
+ },
1381
+ {
1382
+ "title": "2K (16:9)",
1383
+ "properties": {
1384
+ "width": {
1385
+ "const": 2752
1386
+ },
1387
+ "height": {
1388
+ "const": 1504
1389
+ }
1390
+ }
1391
+ },
1392
+ {
1393
+ "title": "2K (2:3)",
1394
+ "properties": {
1395
+ "width": {
1396
+ "const": 1664
1397
+ },
1398
+ "height": {
1399
+ "const": 2496
1400
+ }
1401
+ }
1402
+ },
1403
+ {
1404
+ "title": "2K (3:2)",
1405
+ "properties": {
1406
+ "width": {
1407
+ "const": 2496
1408
+ },
1409
+ "height": {
1410
+ "const": 1664
1411
+ }
1412
+ }
1413
+ },
1414
+ {
1415
+ "title": "2K (9:19.5)",
1416
+ "properties": {
1417
+ "width": {
1418
+ "const": 1376
1419
+ },
1420
+ "height": {
1421
+ "const": 2976
1422
+ }
1423
+ }
1424
+ },
1425
+ {
1426
+ "title": "2K (19.5:9)",
1427
+ "properties": {
1428
+ "width": {
1429
+ "const": 2976
1430
+ },
1431
+ "height": {
1432
+ "const": 1376
1433
+ }
1434
+ }
1435
+ },
1436
+ {
1437
+ "title": "2K (9:20)",
1438
+ "properties": {
1439
+ "width": {
1440
+ "const": 1360
1441
+ },
1442
+ "height": {
1443
+ "const": 3008
1444
+ }
1445
+ }
1446
+ },
1447
+ {
1448
+ "title": "2K (20:9)",
1449
+ "properties": {
1450
+ "width": {
1451
+ "const": 3008
1452
+ },
1453
+ "height": {
1454
+ "const": 1360
1455
+ }
1456
+ }
1457
+ },
1458
+ {
1459
+ "title": "2K (1:2)",
1460
+ "properties": {
1461
+ "width": {
1462
+ "const": 1440
1463
+ },
1464
+ "height": {
1465
+ "const": 2880
1466
+ }
1467
+ }
1468
+ },
1469
+ {
1470
+ "title": "2K (2:1)",
1471
+ "properties": {
1472
+ "width": {
1473
+ "const": 2880
1474
+ },
1475
+ "height": {
1476
+ "const": 1440
1477
+ }
1478
+ }
1479
+ }
1480
+ ]
1481
+ },
1482
+ {
1483
+ "if": {
1484
+ "not": {
1485
+ "properties": {
1486
+ "inputs": {
1487
+ "properties": {
1488
+ "referenceImages": {
1489
+ "minItems": 1
1490
+ }
1491
+ },
1492
+ "required": [
1493
+ "referenceImages"
1494
+ ]
1495
+ }
1496
+ },
1497
+ "required": [
1498
+ "inputs"
1499
+ ]
1500
+ }
1501
+ },
1502
+ "then": {
1503
+ "anyOf": [
1504
+ {
1505
+ "required": [
1506
+ "width",
1507
+ "height"
1508
+ ]
1509
+ },
1510
+ {
1511
+ "required": [
1512
+ "resolution"
1513
+ ]
1514
+ }
1515
+ ]
1516
+ }
1517
+ },
1518
+ {
1519
+ "not": {
1520
+ "allOf": [
1521
+ {
1522
+ "required": [
1523
+ "resolution"
1524
+ ]
1525
+ },
1526
+ {
1527
+ "anyOf": [
1528
+ {
1529
+ "required": [
1530
+ "width"
1531
+ ]
1532
+ },
1533
+ {
1534
+ "required": [
1535
+ "height"
1536
+ ]
1537
+ }
1538
+ ]
1539
+ }
1540
+ ]
1541
+ }
1542
+ }
1543
+ ],
1544
+ "additionalProperties": false
1545
+ },
1546
+ {
1547
+ "type": "object",
1548
+ "properties": {
1549
+ "model": {
1550
+ "title": "Model",
1551
+ "description": "Identifier of the model to use for generation.",
1552
+ "type": "string",
1553
+ "const": "xai:grok-imagine@video"
1554
+ },
1555
+ "inputs": {
1556
+ "title": "Inputs",
1557
+ "description": "The unified payload wrapper for complex media assets dictating image, video or audio inference constraints.",
1558
+ "type": "object",
1559
+ "properties": {
1560
+ "referenceImages": {
1561
+ "title": "Reference Images",
1562
+ "description": "List of reference images (UUID, URL, Data URI, or Base64).",
1563
+ "type": "array",
1564
+ "minItems": 1,
1565
+ "items": {
1566
+ "title": "Image",
1567
+ "description": "Image input (UUID, URL, Data URI, or Base64).",
1568
+ "type": "string",
1569
+ "anyOf": [
1570
+ {
1571
+ "format": "uuid"
1572
+ },
1573
+ {
1574
+ "format": "uri"
1575
+ },
1576
+ {
1577
+ "pattern": "^data:image\\/[a-zA-Z]+;base64,[a-zA-Z0-9+/=]+$"
1578
+ },
1579
+ {
1580
+ "pattern": "^[a-zA-Z0-9+/=]+$"
1581
+ }
1582
+ ]
1583
+ },
1584
+ "maxItems": 7
1585
+ },
1586
+ "frameImages": {
1587
+ "title": "Frame Images",
1588
+ "description": "List of frame-specific image inputs. Each item can be either a plain image input (UUID, URL, Data URI, or Base64) or an object with an image and a target frame position.",
1589
+ "type": "array",
1590
+ "minItems": 1,
1591
+ "items": {
1592
+ "anyOf": [
1593
+ {
1594
+ "title": "Image",
1595
+ "description": "Image input (UUID, URL, Data URI, or Base64).",
1596
+ "type": "string",
1597
+ "anyOf": [
1598
+ {
1599
+ "format": "uuid"
1600
+ },
1601
+ {
1602
+ "format": "uri"
1603
+ },
1604
+ {
1605
+ "pattern": "^data:image\\/[a-zA-Z]+;base64,[a-zA-Z0-9+/=]+$"
1606
+ },
1607
+ {
1608
+ "pattern": "^[a-zA-Z0-9+/=]+$"
1609
+ }
1610
+ ]
1611
+ },
1612
+ {
1613
+ "type": "object",
1614
+ "properties": {
1615
+ "image": {
1616
+ "title": "Image",
1617
+ "description": "Image input (UUID, URL, Data URI, or Base64).",
1618
+ "type": "string",
1619
+ "anyOf": [
1620
+ {
1621
+ "format": "uuid"
1622
+ },
1623
+ {
1624
+ "format": "uri"
1625
+ },
1626
+ {
1627
+ "pattern": "^data:image\\/[a-zA-Z]+;base64,[a-zA-Z0-9+/=]+$"
1628
+ },
1629
+ {
1630
+ "pattern": "^[a-zA-Z0-9+/=]+$"
1631
+ }
1632
+ ]
1633
+ },
1634
+ "frame": {
1635
+ "title": "Frame",
1636
+ "description": "Target frame position for the image. This model only supports the first frame.",
1637
+ "oneOf": [
1638
+ {
1639
+ "const": "first",
1640
+ "description": "First frame of the video."
1641
+ },
1642
+ {
1643
+ "const": 0,
1644
+ "description": "Frame index 0 (first frame)."
1645
+ }
1646
+ ]
1647
+ }
1648
+ },
1649
+ "required": [
1650
+ "image"
1651
+ ],
1652
+ "additionalProperties": false
1653
+ }
1654
+ ]
1655
+ },
1656
+ "maxItems": 1
1657
+ },
1658
+ "video": {
1659
+ "title": "Video",
1660
+ "description": "Video input (UUID or URL).",
1661
+ "type": "string",
1662
+ "anyOf": [
1663
+ {
1664
+ "format": "uuid"
1665
+ },
1666
+ {
1667
+ "format": "uri"
1668
+ }
1669
+ ]
1670
+ }
1671
+ },
1672
+ "additionalProperties": false
1673
+ },
1674
+ "positivePrompt": {
1675
+ "title": "Positive Prompt",
1676
+ "description": "Text prompt describing elements to include in the generated output.",
1677
+ "type": "string",
1678
+ "minLength": 1
1679
+ },
1680
+ "width": {
1681
+ "title": "Width",
1682
+ "description": "Width of the generated media in pixels.",
1683
+ "type": "integer"
1684
+ },
1685
+ "height": {
1686
+ "title": "Height",
1687
+ "description": "Height of the generated media in pixels.",
1688
+ "type": "integer"
1689
+ },
1690
+ "resolution": {
1691
+ "title": "Resolution",
1692
+ "description": "Resolution preset for the output. When used with input media, automatically matches the aspect ratio from the input.",
1693
+ "type": "string",
1694
+ "enum": [
1695
+ "480p",
1696
+ "720p"
1697
+ ],
1698
+ "default": "480p"
1699
+ },
1700
+ "duration": {
1701
+ "title": "Duration",
1702
+ "description": "Length of the generated video in seconds. The total number of frames produced is determined by duration multiplied by the model's frame rate (fps).",
1703
+ "type": "integer",
1704
+ "default": 6,
1705
+ "minimum": 1,
1706
+ "maximum": 15
1707
+ },
1708
+ "taskType": {
1709
+ "title": "Task Type",
1710
+ "description": "Identifier for the type of task being performed",
1711
+ "type": "string",
1712
+ "const": "videoInference"
1713
+ },
1714
+ "taskUUID": {
1715
+ "title": "Task UUID",
1716
+ "description": "UUID v4 identifier for tracking tasks and matching async responses. Must be unique per task.",
1717
+ "type": "string",
1718
+ "format": "uuid"
1719
+ },
1720
+ "webhookURL": {
1721
+ "title": "Webhook URL",
1722
+ "description": "Specifies a webhook URL where JSON responses will be sent via HTTP POST when generation tasks complete. For batch requests with multiple results, each completed item triggers a separate webhook call as it becomes available.",
1723
+ "type": "string",
1724
+ "format": "uri"
1725
+ },
1726
+ "includeCost": {
1727
+ "title": "Include Cost",
1728
+ "description": "Include task cost in the response.",
1729
+ "type": "boolean",
1730
+ "default": false
1731
+ },
1732
+ "numberResults": {
1733
+ "title": "Number of Results",
1734
+ "description": "Number of results to generate. Each result uses a different seed, producing variations of the same parameters.",
1735
+ "type": "integer",
1736
+ "minimum": 1,
1737
+ "default": 1,
1738
+ "maximum": 4
1739
+ },
1740
+ "uploadEndpoint": {
1741
+ "title": "Upload Endpoint",
1742
+ "description": "URL to upload content via HTTP PUT. The request body will contain the raw binary data.",
1743
+ "type": "string",
1744
+ "format": "uri"
1745
+ },
1746
+ "ttl": {
1747
+ "title": "TTL",
1748
+ "description": "Time-to-live (TTL) in seconds for generated content. Only applies when `outputType` is `URL`.",
1749
+ "type": "integer",
1750
+ "minimum": 60
1751
+ },
1752
+ "outputType": {
1753
+ "title": "Output Type",
1754
+ "description": "Video output type.",
1755
+ "type": "string",
1756
+ "enum": [
1757
+ "URL"
1758
+ ],
1759
+ "default": "URL"
1760
+ },
1761
+ "outputFormat": {
1762
+ "title": "Output Format",
1763
+ "description": "File format for the generated video.",
1764
+ "type": "string",
1765
+ "enum": [
1766
+ "MP4",
1767
+ "WEBM",
1768
+ "MOV"
1769
+ ],
1770
+ "default": "MP4"
1771
+ },
1772
+ "outputQuality": {
1773
+ "title": "Output Quality",
1774
+ "description": "Compression quality of the output. Higher values preserve quality but increase file size.",
1775
+ "type": "integer",
1776
+ "minimum": 20,
1777
+ "maximum": 99,
1778
+ "default": 95
1779
+ },
1780
+ "deliveryMethod": {
1781
+ "title": "Delivery Method",
1782
+ "description": "Determines how the API delivers task results.",
1783
+ "type": "string",
1784
+ "oneOf": [
1785
+ {
1786
+ "const": "async",
1787
+ "description": "Returns an immediate acknowledgment with the task UUID. Poll for results using getResponse. Required for long-running tasks like video generation."
1788
+ }
1789
+ ],
1790
+ "default": "async"
1791
+ },
1792
+ "safety": {
1793
+ "type": "object",
1794
+ "title": "Safety Settings",
1795
+ "description": "Content safety checking configuration for video generation.",
1796
+ "properties": {
1797
+ "checkContent": {
1798
+ "title": "Check Content",
1799
+ "description": "Enable or disable content safety checking. When enabled, defaults to `fast` mode.",
1800
+ "type": "boolean",
1801
+ "default": false
1802
+ },
1803
+ "mode": {
1804
+ "description": "Safety checking mode for video generation.",
1805
+ "type": "string",
1806
+ "oneOf": [
1807
+ {
1808
+ "const": "none",
1809
+ "title": "None",
1810
+ "description": "Disables checking."
1811
+ },
1812
+ {
1813
+ "const": "fast",
1814
+ "title": "Fast",
1815
+ "description": "Checks key frames."
1816
+ },
1817
+ {
1818
+ "const": "full",
1819
+ "title": "Full",
1820
+ "description": "Checks all frames."
1821
+ }
1822
+ ],
1823
+ "default": "none"
1824
+ }
1825
+ },
1826
+ "additionalProperties": false
1827
+ }
1828
+ },
1829
+ "required": [
1830
+ "positivePrompt",
1831
+ "taskType",
1832
+ "taskUUID",
1833
+ "model"
1834
+ ],
1835
+ "allOf": [
1836
+ {
1837
+ "dependentRequired": {
1838
+ "width": [
1839
+ "height"
1840
+ ],
1841
+ "height": [
1842
+ "width"
1843
+ ]
1844
+ }
1845
+ },
1846
+ {
1847
+ "oneOf": [
1848
+ {
1849
+ "title": "480p (1:1)",
1850
+ "properties": {
1851
+ "width": {
1852
+ "const": 480
1853
+ },
1854
+ "height": {
1855
+ "const": 480
1856
+ }
1857
+ }
1858
+ },
1859
+ {
1860
+ "title": "480p (16:9)",
1861
+ "properties": {
1862
+ "width": {
1863
+ "const": 848
1864
+ },
1865
+ "height": {
1866
+ "const": 480
1867
+ }
1868
+ }
1869
+ },
1870
+ {
1871
+ "title": "480p (9:16)",
1872
+ "properties": {
1873
+ "width": {
1874
+ "const": 480
1875
+ },
1876
+ "height": {
1877
+ "const": 848
1878
+ }
1879
+ }
1880
+ },
1881
+ {
1882
+ "title": "480p (4:3)",
1883
+ "properties": {
1884
+ "width": {
1885
+ "const": 640
1886
+ },
1887
+ "height": {
1888
+ "const": 480
1889
+ }
1890
+ }
1891
+ },
1892
+ {
1893
+ "title": "480p (3:4)",
1894
+ "properties": {
1895
+ "width": {
1896
+ "const": 480
1897
+ },
1898
+ "height": {
1899
+ "const": 640
1900
+ }
1901
+ }
1902
+ },
1903
+ {
1904
+ "title": "480p (3:2)",
1905
+ "properties": {
1906
+ "width": {
1907
+ "const": 720
1908
+ },
1909
+ "height": {
1910
+ "const": 480
1911
+ }
1912
+ }
1913
+ },
1914
+ {
1915
+ "title": "480p (2:3)",
1916
+ "properties": {
1917
+ "width": {
1918
+ "const": 480
1919
+ },
1920
+ "height": {
1921
+ "const": 720
1922
+ }
1923
+ }
1924
+ },
1925
+ {
1926
+ "title": "720p (1:1)",
1927
+ "properties": {
1928
+ "width": {
1929
+ "const": 720
1930
+ },
1931
+ "height": {
1932
+ "const": 720
1933
+ }
1934
+ }
1935
+ },
1936
+ {
1937
+ "title": "720p (16:9)",
1938
+ "properties": {
1939
+ "width": {
1940
+ "const": 1280
1941
+ },
1942
+ "height": {
1943
+ "const": 720
1944
+ }
1945
+ }
1946
+ },
1947
+ {
1948
+ "title": "720p (9:16)",
1949
+ "properties": {
1950
+ "width": {
1951
+ "const": 720
1952
+ },
1953
+ "height": {
1954
+ "const": 1280
1955
+ }
1956
+ }
1957
+ },
1958
+ {
1959
+ "title": "720p (4:3)",
1960
+ "properties": {
1961
+ "width": {
1962
+ "const": 960
1963
+ },
1964
+ "height": {
1965
+ "const": 720
1966
+ }
1967
+ }
1968
+ },
1969
+ {
1970
+ "title": "720p (3:4)",
1971
+ "properties": {
1972
+ "width": {
1973
+ "const": 720
1974
+ },
1975
+ "height": {
1976
+ "const": 960
1977
+ }
1978
+ }
1979
+ },
1980
+ {
1981
+ "title": "720p (3:2)",
1982
+ "properties": {
1983
+ "width": {
1984
+ "const": 1088
1985
+ },
1986
+ "height": {
1987
+ "const": 720
1988
+ }
1989
+ }
1990
+ },
1991
+ {
1992
+ "title": "720p (2:3)",
1993
+ "properties": {
1994
+ "width": {
1995
+ "const": 720
1996
+ },
1997
+ "height": {
1998
+ "const": 1088
1999
+ }
2000
+ }
2001
+ }
2002
+ ]
2003
+ },
2004
+ {
2005
+ "if": {
2006
+ "properties": {
2007
+ "inputs": {
2008
+ "properties": {
2009
+ "frameImages": {
2010
+ "minItems": 1
2011
+ }
2012
+ },
2013
+ "required": [
2014
+ "frameImages"
2015
+ ]
2016
+ }
2017
+ },
2018
+ "required": [
2019
+ "inputs"
2020
+ ]
2021
+ },
2022
+ "then": {
2023
+ "not": {
2024
+ "anyOf": [
2025
+ {
2026
+ "required": [
2027
+ "width"
2028
+ ]
2029
+ },
2030
+ {
2031
+ "required": [
2032
+ "height"
2033
+ ]
2034
+ }
2035
+ ]
2036
+ }
2037
+ },
2038
+ "else": {
2039
+ "required": [
2040
+ "width",
2041
+ "height"
2042
+ ]
2043
+ }
2044
+ },
2045
+ {
2046
+ "not": {
2047
+ "allOf": [
2048
+ {
2049
+ "required": [
2050
+ "resolution"
2051
+ ]
2052
+ },
2053
+ {
2054
+ "anyOf": [
2055
+ {
2056
+ "required": [
2057
+ "width"
2058
+ ]
2059
+ },
2060
+ {
2061
+ "required": [
2062
+ "height"
2063
+ ]
2064
+ }
2065
+ ]
2066
+ }
2067
+ ]
2068
+ }
2069
+ },
2070
+ {
2071
+ "not": {
2072
+ "allOf": [
2073
+ {
2074
+ "properties": {
2075
+ "inputs": {
2076
+ "required": [
2077
+ "frameImages"
2078
+ ]
2079
+ }
2080
+ },
2081
+ "required": [
2082
+ "inputs"
2083
+ ]
2084
+ },
2085
+ {
2086
+ "properties": {
2087
+ "inputs": {
2088
+ "required": [
2089
+ "referenceImages"
2090
+ ]
2091
+ }
2092
+ },
2093
+ "required": [
2094
+ "inputs"
2095
+ ]
2096
+ }
2097
+ ]
2098
+ }
2099
+ },
2100
+ {
2101
+ "not": {
2102
+ "allOf": [
2103
+ {
2104
+ "properties": {
2105
+ "inputs": {
2106
+ "required": [
2107
+ "frameImages"
2108
+ ]
2109
+ }
2110
+ },
2111
+ "required": [
2112
+ "inputs"
2113
+ ]
2114
+ },
2115
+ {
2116
+ "properties": {
2117
+ "inputs": {
2118
+ "required": [
2119
+ "video"
2120
+ ]
2121
+ }
2122
+ },
2123
+ "required": [
2124
+ "inputs"
2125
+ ]
2126
+ }
2127
+ ]
2128
+ }
2129
+ },
2130
+ {
2131
+ "if": {
2132
+ "properties": {
2133
+ "inputs": {
2134
+ "required": [
2135
+ "video"
2136
+ ]
2137
+ }
2138
+ },
2139
+ "required": [
2140
+ "inputs"
2141
+ ]
2142
+ },
2143
+ "then": {
2144
+ "not": {
2145
+ "anyOf": [
2146
+ {
2147
+ "required": [
2148
+ "width"
2149
+ ]
2150
+ },
2151
+ {
2152
+ "required": [
2153
+ "height"
2154
+ ]
2155
+ },
2156
+ {
2157
+ "required": [
2158
+ "resolution"
2159
+ ]
2160
+ }
2161
+ ]
2162
+ }
2163
+ }
2164
+ },
2165
+ {
2166
+ "if": {
2167
+ "properties": {
2168
+ "inputs": {
2169
+ "required": [
2170
+ "video"
2171
+ ]
2172
+ }
2173
+ },
2174
+ "required": [
2175
+ "inputs",
2176
+ "duration"
2177
+ ]
2178
+ },
2179
+ "then": {
2180
+ "properties": {
2181
+ "duration": {
2182
+ "minimum": 2,
2183
+ "maximum": 10
2184
+ }
2185
+ }
2186
+ }
2187
+ },
2188
+ {
2189
+ "if": {
2190
+ "required": [
2191
+ "resolution"
2192
+ ]
2193
+ },
2194
+ "then": {
2195
+ "properties": {
2196
+ "inputs": {
2197
+ "properties": {
2198
+ "frameImages": {
2199
+ "minItems": 1
2200
+ }
2201
+ },
2202
+ "required": [
2203
+ "frameImages"
2204
+ ]
2205
+ }
2206
+ },
2207
+ "required": [
2208
+ "inputs"
2209
+ ]
2210
+ }
2211
+ }
2212
+ ],
2213
+ "additionalProperties": false
2214
+ },
2215
+ {
2216
+ "type": "object",
2217
+ "properties": {
2218
+ "model": {
2219
+ "title": "Model",
2220
+ "description": "Identifier of the model to use for generation.",
2221
+ "type": "string",
2222
+ "const": "xai:tts@0"
2223
+ },
2224
+ "speech": {
2225
+ "title": "Speech",
2226
+ "description": "Settings for speech generation.",
2227
+ "type": "object",
2228
+ "properties": {
2229
+ "text": {
2230
+ "title": "Speech Text",
2231
+ "description": "Text to convert to speech.",
2232
+ "type": "string"
2233
+ },
2234
+ "voice": {
2235
+ "title": "Voice",
2236
+ "description": "Voice identifier to use. Set to `auto` for automatic selection.",
2237
+ "type": "string",
2238
+ "default": "auto",
2239
+ "enum": [
2240
+ "una",
2241
+ "leo",
2242
+ "eve",
2243
+ "ara",
2244
+ "sal",
2245
+ "rex"
2246
+ ]
2247
+ },
2248
+ "language": {
2249
+ "title": "Language",
2250
+ "description": "Language code for speech generation.",
2251
+ "type": "string",
2252
+ "minLength": 1,
2253
+ "enum": [
2254
+ "en",
2255
+ "ar-EG",
2256
+ "ar-SA",
2257
+ "ar-AE",
2258
+ "bn",
2259
+ "zh",
2260
+ "fr",
2261
+ "de",
2262
+ "hi",
2263
+ "id",
2264
+ "it",
2265
+ "ja",
2266
+ "ko",
2267
+ "pt-BR",
2268
+ "pt-PT",
2269
+ "ru",
2270
+ "es-MX",
2271
+ "es-ES",
2272
+ "tr",
2273
+ "vi"
2274
+ ]
2275
+ }
2276
+ },
2277
+ "required": [
2278
+ "text",
2279
+ "voice"
2280
+ ],
2281
+ "additionalProperties": false
2282
+ },
2283
+ "taskType": {
2284
+ "title": "Task Type",
2285
+ "description": "Identifier for the type of task being performed",
2286
+ "type": "string",
2287
+ "const": "audioInference"
2288
+ },
2289
+ "taskUUID": {
2290
+ "title": "Task UUID",
2291
+ "description": "UUID v4 identifier for tracking tasks and matching async responses. Must be unique per task.",
2292
+ "type": "string",
2293
+ "format": "uuid"
2294
+ },
2295
+ "webhookURL": {
2296
+ "title": "Webhook URL",
2297
+ "description": "Specifies a webhook URL where JSON responses will be sent via HTTP POST when generation tasks complete. For batch requests with multiple results, each completed item triggers a separate webhook call as it becomes available.",
2298
+ "type": "string",
2299
+ "format": "uri"
2300
+ },
2301
+ "includeCost": {
2302
+ "title": "Include Cost",
2303
+ "description": "Include task cost in the response.",
2304
+ "type": "boolean",
2305
+ "default": false
2306
+ },
2307
+ "numberResults": {
2308
+ "title": "Number of Results",
2309
+ "description": "Number of results to generate. Each result uses a different seed, producing variations of the same parameters.",
2310
+ "type": "integer",
2311
+ "minimum": 1,
2312
+ "default": 1,
2313
+ "maximum": 4
2314
+ },
2315
+ "uploadEndpoint": {
2316
+ "title": "Upload Endpoint",
2317
+ "description": "URL to upload content via HTTP PUT. The request body will contain the raw binary data.",
2318
+ "type": "string",
2319
+ "format": "uri"
2320
+ },
2321
+ "ttl": {
2322
+ "title": "TTL",
2323
+ "description": "Time-to-live (TTL) in seconds for generated content. Only applies when `outputType` is `URL`.",
2324
+ "type": "integer",
2325
+ "minimum": 60
2326
+ },
2327
+ "outputType": {
2328
+ "title": "Output Type",
2329
+ "description": "Audio output type.",
2330
+ "type": "string",
2331
+ "enum": [
2332
+ "URL",
2333
+ "base64Data",
2334
+ "dataURI"
2335
+ ],
2336
+ "default": "URL"
2337
+ },
2338
+ "outputFormat": {
2339
+ "title": "Output Format",
2340
+ "description": "File format for the generated audio.",
2341
+ "type": "string",
2342
+ "enum": [
2343
+ "MP3",
2344
+ "WAV",
2345
+ "FLAC",
2346
+ "OGG"
2347
+ ],
2348
+ "default": "MP3"
2349
+ },
2350
+ "deliveryMethod": {
2351
+ "title": "Delivery Method",
2352
+ "description": "Determines how the API delivers task results.",
2353
+ "type": "string",
2354
+ "oneOf": [
2355
+ {
2356
+ "const": "sync",
2357
+ "description": "Returns complete results directly in the API response."
2358
+ },
2359
+ {
2360
+ "const": "async",
2361
+ "description": "Returns an immediate acknowledgment with the task UUID. Poll for results using getResponse."
2362
+ }
2363
+ ],
2364
+ "default": "sync"
2365
+ },
2366
+ "audioSettings": {
2367
+ "title": "Audio Settings",
2368
+ "description": "Audio encoding settings. Only applicable for lossy formats (MP3, OGG). Available sample rates and valid bitrate ranges depend on the output format and number of channels.",
2369
+ "type": "object",
2370
+ "properties": {
2371
+ "bitrate": {
2372
+ "title": "Bitrate",
2373
+ "description": "Audio bitrate in kbps.",
2374
+ "type": "integer",
2375
+ "minimum": 8
2376
+ },
2377
+ "channels": {
2378
+ "title": "Channels",
2379
+ "description": "Number of audio channels. 1 for mono, 2 for stereo.",
2380
+ "type": "integer",
2381
+ "enum": [
2382
+ 1,
2383
+ 2
2384
+ ],
2385
+ "default": 2
2386
+ },
2387
+ "sampleRate": {
2388
+ "title": "Sample Rate",
2389
+ "description": "Audio sample rate in Hz.",
2390
+ "type": "integer"
2391
+ }
2392
+ },
2393
+ "additionalProperties": false
2394
+ }
2395
+ },
2396
+ "required": [
2397
+ "speech",
2398
+ "taskType",
2399
+ "taskUUID",
2400
+ "model"
2401
+ ],
2402
+ "allOf": [
2403
+ {
2404
+ "if": {
2405
+ "properties": {
2406
+ "outputFormat": {
2407
+ "enum": [
2408
+ "WAV",
2409
+ "FLAC"
2410
+ ]
2411
+ }
2412
+ },
2413
+ "required": [
2414
+ "outputFormat"
2415
+ ]
2416
+ },
2417
+ "then": {
2418
+ "not": {
2419
+ "required": [
2420
+ "audioSettings"
2421
+ ]
2422
+ }
2423
+ }
2424
+ },
2425
+ {
2426
+ "if": {
2427
+ "properties": {
2428
+ "outputFormat": {
2429
+ "const": "MP3"
2430
+ }
2431
+ },
2432
+ "required": [
2433
+ "outputFormat"
2434
+ ]
2435
+ },
2436
+ "then": {
2437
+ "properties": {
2438
+ "audioSettings": {
2439
+ "properties": {
2440
+ "sampleRate": {
2441
+ "enum": [
2442
+ 8000,
2443
+ 11025,
2444
+ 12000,
2445
+ 16000,
2446
+ 22050,
2447
+ 24000,
2448
+ 32000,
2449
+ 44100,
2450
+ 48000
2451
+ ]
2452
+ }
2453
+ }
2454
+ }
2455
+ },
2456
+ "allOf": [
2457
+ {
2458
+ "if": {
2459
+ "properties": {
2460
+ "audioSettings": {
2461
+ "properties": {
2462
+ "sampleRate": {
2463
+ "enum": [
2464
+ 8000,
2465
+ 11025,
2466
+ 12000
2467
+ ]
2468
+ }
2469
+ },
2470
+ "required": [
2471
+ "sampleRate"
2472
+ ]
2473
+ }
2474
+ },
2475
+ "required": [
2476
+ "audioSettings"
2477
+ ]
2478
+ },
2479
+ "then": {
2480
+ "properties": {
2481
+ "audioSettings": {
2482
+ "properties": {
2483
+ "bitrate": {
2484
+ "minimum": 8,
2485
+ "maximum": 64
2486
+ }
2487
+ }
2488
+ }
2489
+ }
2490
+ }
2491
+ },
2492
+ {
2493
+ "if": {
2494
+ "properties": {
2495
+ "audioSettings": {
2496
+ "properties": {
2497
+ "sampleRate": {
2498
+ "enum": [
2499
+ 16000,
2500
+ 22050,
2501
+ 24000
2502
+ ]
2503
+ }
2504
+ },
2505
+ "required": [
2506
+ "sampleRate"
2507
+ ]
2508
+ }
2509
+ },
2510
+ "required": [
2511
+ "audioSettings"
2512
+ ]
2513
+ },
2514
+ "then": {
2515
+ "properties": {
2516
+ "audioSettings": {
2517
+ "properties": {
2518
+ "bitrate": {
2519
+ "minimum": 8,
2520
+ "maximum": 160
2521
+ }
2522
+ }
2523
+ }
2524
+ }
2525
+ }
2526
+ },
2527
+ {
2528
+ "if": {
2529
+ "properties": {
2530
+ "audioSettings": {
2531
+ "properties": {
2532
+ "sampleRate": {
2533
+ "enum": [
2534
+ 32000,
2535
+ 44100,
2536
+ 48000
2537
+ ]
2538
+ }
2539
+ },
2540
+ "required": [
2541
+ "sampleRate"
2542
+ ]
2543
+ }
2544
+ },
2545
+ "required": [
2546
+ "audioSettings"
2547
+ ]
2548
+ },
2549
+ "then": {
2550
+ "properties": {
2551
+ "audioSettings": {
2552
+ "properties": {
2553
+ "bitrate": {
2554
+ "minimum": 32,
2555
+ "maximum": 320
2556
+ }
2557
+ }
2558
+ }
2559
+ }
2560
+ }
2561
+ }
2562
+ ]
2563
+ }
2564
+ },
2565
+ {
2566
+ "if": {
2567
+ "properties": {
2568
+ "outputFormat": {
2569
+ "const": "OGG"
2570
+ }
2571
+ },
2572
+ "required": [
2573
+ "outputFormat"
2574
+ ]
2575
+ },
2576
+ "then": {
2577
+ "properties": {
2578
+ "audioSettings": {
2579
+ "properties": {
2580
+ "sampleRate": {
2581
+ "enum": [
2582
+ 8000,
2583
+ 12000,
2584
+ 16000,
2585
+ 24000,
2586
+ 48000
2587
+ ]
2588
+ }
2589
+ }
2590
+ }
2591
+ },
2592
+ "allOf": [
2593
+ {
2594
+ "if": {
2595
+ "properties": {
2596
+ "audioSettings": {
2597
+ "properties": {
2598
+ "sampleRate": {
2599
+ "const": 8000
2600
+ },
2601
+ "channels": {
2602
+ "const": 1
2603
+ }
2604
+ },
2605
+ "required": [
2606
+ "sampleRate",
2607
+ "channels"
2608
+ ]
2609
+ }
2610
+ },
2611
+ "required": [
2612
+ "audioSettings"
2613
+ ]
2614
+ },
2615
+ "then": {
2616
+ "properties": {
2617
+ "audioSettings": {
2618
+ "properties": {
2619
+ "bitrate": {
2620
+ "minimum": 8,
2621
+ "maximum": 40
2622
+ }
2623
+ }
2624
+ }
2625
+ }
2626
+ }
2627
+ },
2628
+ {
2629
+ "if": {
2630
+ "properties": {
2631
+ "audioSettings": {
2632
+ "properties": {
2633
+ "sampleRate": {
2634
+ "const": 8000
2635
+ },
2636
+ "channels": {
2637
+ "const": 2
2638
+ }
2639
+ },
2640
+ "required": [
2641
+ "sampleRate",
2642
+ "channels"
2643
+ ]
2644
+ }
2645
+ },
2646
+ "required": [
2647
+ "audioSettings"
2648
+ ]
2649
+ },
2650
+ "then": {
2651
+ "properties": {
2652
+ "audioSettings": {
2653
+ "properties": {
2654
+ "bitrate": {
2655
+ "minimum": 16,
2656
+ "maximum": 80
2657
+ }
2658
+ }
2659
+ }
2660
+ }
2661
+ }
2662
+ },
2663
+ {
2664
+ "if": {
2665
+ "properties": {
2666
+ "audioSettings": {
2667
+ "properties": {
2668
+ "sampleRate": {
2669
+ "const": 12000
2670
+ },
2671
+ "channels": {
2672
+ "const": 1
2673
+ }
2674
+ },
2675
+ "required": [
2676
+ "sampleRate",
2677
+ "channels"
2678
+ ]
2679
+ }
2680
+ },
2681
+ "required": [
2682
+ "audioSettings"
2683
+ ]
2684
+ },
2685
+ "then": {
2686
+ "properties": {
2687
+ "audioSettings": {
2688
+ "properties": {
2689
+ "bitrate": {
2690
+ "minimum": 16,
2691
+ "maximum": 48
2692
+ }
2693
+ }
2694
+ }
2695
+ }
2696
+ }
2697
+ },
2698
+ {
2699
+ "if": {
2700
+ "properties": {
2701
+ "audioSettings": {
2702
+ "properties": {
2703
+ "sampleRate": {
2704
+ "const": 12000
2705
+ },
2706
+ "channels": {
2707
+ "const": 2
2708
+ }
2709
+ },
2710
+ "required": [
2711
+ "sampleRate",
2712
+ "channels"
2713
+ ]
2714
+ }
2715
+ },
2716
+ "required": [
2717
+ "audioSettings"
2718
+ ]
2719
+ },
2720
+ "then": {
2721
+ "properties": {
2722
+ "audioSettings": {
2723
+ "properties": {
2724
+ "bitrate": {
2725
+ "minimum": 16,
2726
+ "maximum": 96
2727
+ }
2728
+ }
2729
+ }
2730
+ }
2731
+ }
2732
+ },
2733
+ {
2734
+ "if": {
2735
+ "properties": {
2736
+ "audioSettings": {
2737
+ "properties": {
2738
+ "sampleRate": {
2739
+ "const": 16000
2740
+ },
2741
+ "channels": {
2742
+ "const": 1
2743
+ }
2744
+ },
2745
+ "required": [
2746
+ "sampleRate",
2747
+ "channels"
2748
+ ]
2749
+ }
2750
+ },
2751
+ "required": [
2752
+ "audioSettings"
2753
+ ]
2754
+ },
2755
+ "then": {
2756
+ "properties": {
2757
+ "audioSettings": {
2758
+ "properties": {
2759
+ "bitrate": {
2760
+ "minimum": 16,
2761
+ "maximum": 96
2762
+ }
2763
+ }
2764
+ }
2765
+ }
2766
+ }
2767
+ },
2768
+ {
2769
+ "if": {
2770
+ "properties": {
2771
+ "audioSettings": {
2772
+ "properties": {
2773
+ "sampleRate": {
2774
+ "const": 16000
2775
+ },
2776
+ "channels": {
2777
+ "const": 2
2778
+ }
2779
+ },
2780
+ "required": [
2781
+ "sampleRate",
2782
+ "channels"
2783
+ ]
2784
+ }
2785
+ },
2786
+ "required": [
2787
+ "audioSettings"
2788
+ ]
2789
+ },
2790
+ "then": {
2791
+ "properties": {
2792
+ "audioSettings": {
2793
+ "properties": {
2794
+ "bitrate": {
2795
+ "minimum": 24,
2796
+ "maximum": 192
2797
+ }
2798
+ }
2799
+ }
2800
+ }
2801
+ }
2802
+ },
2803
+ {
2804
+ "if": {
2805
+ "properties": {
2806
+ "audioSettings": {
2807
+ "properties": {
2808
+ "sampleRate": {
2809
+ "const": 24000
2810
+ },
2811
+ "channels": {
2812
+ "const": 1
2813
+ }
2814
+ },
2815
+ "required": [
2816
+ "sampleRate",
2817
+ "channels"
2818
+ ]
2819
+ }
2820
+ },
2821
+ "required": [
2822
+ "audioSettings"
2823
+ ]
2824
+ },
2825
+ "then": {
2826
+ "properties": {
2827
+ "audioSettings": {
2828
+ "properties": {
2829
+ "bitrate": {
2830
+ "minimum": 16,
2831
+ "maximum": 80
2832
+ }
2833
+ }
2834
+ }
2835
+ }
2836
+ }
2837
+ },
2838
+ {
2839
+ "if": {
2840
+ "properties": {
2841
+ "audioSettings": {
2842
+ "properties": {
2843
+ "sampleRate": {
2844
+ "const": 24000
2845
+ },
2846
+ "channels": {
2847
+ "const": 2
2848
+ }
2849
+ },
2850
+ "required": [
2851
+ "sampleRate",
2852
+ "channels"
2853
+ ]
2854
+ }
2855
+ },
2856
+ "required": [
2857
+ "audioSettings"
2858
+ ]
2859
+ },
2860
+ "then": {
2861
+ "properties": {
2862
+ "audioSettings": {
2863
+ "properties": {
2864
+ "bitrate": {
2865
+ "minimum": 32,
2866
+ "maximum": 160
2867
+ }
2868
+ }
2869
+ }
2870
+ }
2871
+ }
2872
+ },
2873
+ {
2874
+ "if": {
2875
+ "properties": {
2876
+ "audioSettings": {
2877
+ "properties": {
2878
+ "sampleRate": {
2879
+ "const": 48000
2880
+ },
2881
+ "channels": {
2882
+ "const": 1
2883
+ }
2884
+ },
2885
+ "required": [
2886
+ "sampleRate",
2887
+ "channels"
2888
+ ]
2889
+ }
2890
+ },
2891
+ "required": [
2892
+ "audioSettings"
2893
+ ]
2894
+ },
2895
+ "then": {
2896
+ "properties": {
2897
+ "audioSettings": {
2898
+ "properties": {
2899
+ "bitrate": {
2900
+ "minimum": 32,
2901
+ "maximum": 224
2902
+ }
2903
+ }
2904
+ }
2905
+ }
2906
+ }
2907
+ },
2908
+ {
2909
+ "if": {
2910
+ "properties": {
2911
+ "audioSettings": {
2912
+ "properties": {
2913
+ "sampleRate": {
2914
+ "const": 48000
2915
+ },
2916
+ "channels": {
2917
+ "const": 2
2918
+ }
2919
+ },
2920
+ "required": [
2921
+ "sampleRate",
2922
+ "channels"
2923
+ ]
2924
+ }
2925
+ },
2926
+ "required": [
2927
+ "audioSettings"
2928
+ ]
2929
+ },
2930
+ "then": {
2931
+ "properties": {
2932
+ "audioSettings": {
2933
+ "properties": {
2934
+ "bitrate": {
2935
+ "minimum": 48,
2936
+ "maximum": 256
2937
+ }
2938
+ }
2939
+ }
2940
+ }
2941
+ }
2942
+ }
2943
+ ]
2944
+ }
2945
+ }
2946
+ ],
2947
+ "additionalProperties": false
2948
+ }
2949
+ ]
2950
+ }