venice_client 1.0.0

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 (319) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +510 -0
  4. data/Rakefile +8 -0
  5. data/docs/APIKeysApi.md +334 -0
  6. data/docs/AnyOfChatCompletionRequestMessagesItems.md +6 -0
  7. data/docs/AnyOfChatCompletionRequestStop.md +6 -0
  8. data/docs/AnyOfChatCompletionRequestToolChoice.md +6 -0
  9. data/docs/AnyOfCreateEmbeddingRequestSchemaInput.md +6 -0
  10. data/docs/AnyOfCreateEmbeddingRequestSchemaModel.md +6 -0
  11. data/docs/AnyOfModelResponseModelSpecConstraints.md +6 -0
  12. data/docs/AnyOfModelResponseModelSpecPricing.md +6 -0
  13. data/docs/AnyOfUpscaleImageRequestEnhance.md +6 -0
  14. data/docs/AnyOfUpscaleImageRequestImage.md +6 -0
  15. data/docs/AnyOfapiKeysBodyExpiresAt.md +6 -0
  16. data/docs/AnyOfapiKeysConsumptionLimitUsd.md +6 -0
  17. data/docs/AnyOfapiKeysConsumptionLimitVcu.md +6 -0
  18. data/docs/AnyOfapiKeysGenerateWeb3KeyBodyExpiresAt.md +6 -0
  19. data/docs/AnyOfinlineResponse2002DataItems.md +6 -0
  20. data/docs/AnyOfinlineResponse2004Type.md +6 -0
  21. data/docs/AnyOfinlineResponse2005Type.md +6 -0
  22. data/docs/AnyOfinlineResponse2006Type.md +6 -0
  23. data/docs/AnyOfinlineResponse200ChoicesMessage.md +6 -0
  24. data/docs/AnyOfinlineResponse200PromptLogprobs.md +6 -0
  25. data/docs/ApiKeysBody.md +10 -0
  26. data/docs/ApiKeysConsumptionLimit.md +8 -0
  27. data/docs/ApiKeysGenerateWeb3KeyBody.md +13 -0
  28. data/docs/AudioApi.md +58 -0
  29. data/docs/BillingApi.md +70 -0
  30. data/docs/BillingUsageRequest.md +12 -0
  31. data/docs/BillingUsageResponse.md +8 -0
  32. data/docs/BillingUsageResponseData.md +14 -0
  33. data/docs/BillingUsageResponseInferenceDetails.md +10 -0
  34. data/docs/BillingUsageResponsePagination.md +10 -0
  35. data/docs/CharactersApi.md +52 -0
  36. data/docs/ChatApi.md +60 -0
  37. data/docs/ChatCompletionRequest.md +32 -0
  38. data/docs/ChatCompletionRequestFunction.md +9 -0
  39. data/docs/ChatCompletionRequestStreamOptions.md +7 -0
  40. data/docs/ChatCompletionRequestVeniceParameters.md +12 -0
  41. data/docs/CreateEmbeddingRequestSchema.md +11 -0
  42. data/docs/CreateSpeechRequestSchema.md +12 -0
  43. data/docs/EmbeddingsApi.md +60 -0
  44. data/docs/GenerateImageRequest.md +22 -0
  45. data/docs/ImageApi.md +270 -0
  46. data/docs/InlineResponse200.md +14 -0
  47. data/docs/InlineResponse2001.md +10 -0
  48. data/docs/InlineResponse20010.md +7 -0
  49. data/docs/InlineResponse20010Data.md +12 -0
  50. data/docs/InlineResponse20010DataApiTier.md +8 -0
  51. data/docs/InlineResponse20010DataBalances.md +8 -0
  52. data/docs/InlineResponse20010DataRateLimits.md +8 -0
  53. data/docs/InlineResponse20010DataRateLimits1.md +8 -0
  54. data/docs/InlineResponse20011.md +8 -0
  55. data/docs/InlineResponse20011Data.md +11 -0
  56. data/docs/InlineResponse20012.md +8 -0
  57. data/docs/InlineResponse20012Data.md +7 -0
  58. data/docs/InlineResponse20013.md +8 -0
  59. data/docs/InlineResponse20013Data.md +16 -0
  60. data/docs/InlineResponse20013Stats.md +7 -0
  61. data/docs/InlineResponse20014.md +10 -0
  62. data/docs/InlineResponse20014Data.md +9 -0
  63. data/docs/InlineResponse20014Usage.md +8 -0
  64. data/docs/InlineResponse20015.md +8 -0
  65. data/docs/InlineResponse2001Timing.md +10 -0
  66. data/docs/InlineResponse2002.md +8 -0
  67. data/docs/InlineResponse2003.md +8 -0
  68. data/docs/InlineResponse2004.md +9 -0
  69. data/docs/InlineResponse2005.md +9 -0
  70. data/docs/InlineResponse2006.md +9 -0
  71. data/docs/InlineResponse2007.md +8 -0
  72. data/docs/InlineResponse2007Data.md +15 -0
  73. data/docs/InlineResponse2007Usage.md +7 -0
  74. data/docs/InlineResponse2007UsageTrailingSevenDays.md +8 -0
  75. data/docs/InlineResponse2008.md +8 -0
  76. data/docs/InlineResponse2008Data.md +12 -0
  77. data/docs/InlineResponse2009.md +7 -0
  78. data/docs/InlineResponse200Choices.md +11 -0
  79. data/docs/InlineResponse200Logprobs.md +10 -0
  80. data/docs/InlineResponse200LogprobsTopLogprobs.md +9 -0
  81. data/docs/InlineResponse200Usage.md +10 -0
  82. data/docs/InlineResponse200VeniceParameters.md +13 -0
  83. data/docs/InlineResponse200VeniceParametersWebSearchCitations.md +10 -0
  84. data/docs/InlineResponse400.md +8 -0
  85. data/docs/InlineResponse401.md +7 -0
  86. data/docs/InlineResponse402.md +7 -0
  87. data/docs/InlineResponse403.md +7 -0
  88. data/docs/InlineResponse415.md +7 -0
  89. data/docs/InlineResponse429.md +7 -0
  90. data/docs/InlineResponse500.md +7 -0
  91. data/docs/InlineResponse5001.md +7 -0
  92. data/docs/InlineResponse503.md +7 -0
  93. data/docs/ModelCompatibilitySchema.md +6 -0
  94. data/docs/ModelResponse.md +12 -0
  95. data/docs/ModelResponseModelSpec.md +15 -0
  96. data/docs/ModelResponseModelSpecCapabilities.md +14 -0
  97. data/docs/ModelTraitSchema.md +6 -0
  98. data/docs/ModelsApi.md +160 -0
  99. data/docs/OneOfChatCompletionRequestResponseFormat.md +6 -0
  100. data/docs/PreviewApi.md +52 -0
  101. data/docs/SimpleGenerateImageRequest.md +18 -0
  102. data/docs/SpeechApi.md +58 -0
  103. data/docs/ToolCall.md +9 -0
  104. data/docs/Type.md +6 -0
  105. data/docs/UpscaleImageRequest.md +12 -0
  106. data/git_push.sh +55 -0
  107. data/lib/venice_client/api/api_keys_api.rb +381 -0
  108. data/lib/venice_client/api/audio_api.rb +74 -0
  109. data/lib/venice_client/api/billing_api.rb +97 -0
  110. data/lib/venice_client/api/characters_api.rb +70 -0
  111. data/lib/venice_client/api/chat_api.rb +77 -0
  112. data/lib/venice_client/api/embeddings_api.rb +81 -0
  113. data/lib/venice_client/api/image_api.rb +314 -0
  114. data/lib/venice_client/api/models_api.rb +185 -0
  115. data/lib/venice_client/api/preview_api.rb +70 -0
  116. data/lib/venice_client/api/speech_api.rb +74 -0
  117. data/lib/venice_client/api_client.rb +388 -0
  118. data/lib/venice_client/api_error.rb +56 -0
  119. data/lib/venice_client/configuration.rb +204 -0
  120. data/lib/venice_client/models/any_of_chat_completion_request_messages_items.rb +197 -0
  121. data/lib/venice_client/models/any_of_chat_completion_request_stop.rb +197 -0
  122. data/lib/venice_client/models/any_of_chat_completion_request_tool_choice.rb +197 -0
  123. data/lib/venice_client/models/any_of_create_embedding_request_schema_input.rb +197 -0
  124. data/lib/venice_client/models/any_of_create_embedding_request_schema_model.rb +197 -0
  125. data/lib/venice_client/models/any_of_model_response_model_spec_constraints.rb +197 -0
  126. data/lib/venice_client/models/any_of_model_response_model_spec_pricing.rb +197 -0
  127. data/lib/venice_client/models/any_of_upscale_image_request_enhance.rb +197 -0
  128. data/lib/venice_client/models/any_of_upscale_image_request_image.rb +197 -0
  129. data/lib/venice_client/models/any_ofapi_keys_body_expires_at.rb +197 -0
  130. data/lib/venice_client/models/any_ofapi_keys_consumption_limit_usd.rb +197 -0
  131. data/lib/venice_client/models/any_ofapi_keys_consumption_limit_vcu.rb +195 -0
  132. data/lib/venice_client/models/any_ofapi_keys_generate_web3_key_body_expires_at.rb +197 -0
  133. data/lib/venice_client/models/any_ofinline_response_200_2_data_items.rb +197 -0
  134. data/lib/venice_client/models/any_ofinline_response_200_4_type.rb +197 -0
  135. data/lib/venice_client/models/any_ofinline_response_200_5_type.rb +197 -0
  136. data/lib/venice_client/models/any_ofinline_response_200_6_type.rb +197 -0
  137. data/lib/venice_client/models/any_ofinline_response_200_choices_message.rb +197 -0
  138. data/lib/venice_client/models/any_ofinline_response_200_prompt_logprobs.rb +197 -0
  139. data/lib/venice_client/models/api_keys_body.rb +281 -0
  140. data/lib/venice_client/models/api_keys_consumption_limit.rb +228 -0
  141. data/lib/venice_client/models/api_keys_generate_web3_key_body.rb +322 -0
  142. data/lib/venice_client/models/billing_usage_request.rb +309 -0
  143. data/lib/venice_client/models/billing_usage_response.rb +228 -0
  144. data/lib/venice_client/models/billing_usage_response_data.rb +350 -0
  145. data/lib/venice_client/models/billing_usage_response_inference_details.rb +262 -0
  146. data/lib/venice_client/models/billing_usage_response_pagination.rb +253 -0
  147. data/lib/venice_client/models/chat_completion_request.rb +483 -0
  148. data/lib/venice_client/models/chat_completion_request_function.rb +231 -0
  149. data/lib/venice_client/models/chat_completion_request_stream_options.rb +207 -0
  150. data/lib/venice_client/models/chat_completion_request_venice_parameters.rb +302 -0
  151. data/lib/venice_client/models/create_embedding_request_schema.rb +294 -0
  152. data/lib/venice_client/models/create_speech_request_schema.rb +331 -0
  153. data/lib/venice_client/models/generate_image_request.rb +420 -0
  154. data/lib/venice_client/models/inline_response_200.rb +341 -0
  155. data/lib/venice_client/models/inline_response_200_1.rb +254 -0
  156. data/lib/venice_client/models/inline_response_200_10.rb +211 -0
  157. data/lib/venice_client/models/inline_response_200_10_data.rb +287 -0
  158. data/lib/venice_client/models/inline_response_200_10_data_api_tier.rb +227 -0
  159. data/lib/venice_client/models/inline_response_200_10_data_balances.rb +217 -0
  160. data/lib/venice_client/models/inline_response_200_10_data_rate_limits.rb +227 -0
  161. data/lib/venice_client/models/inline_response_200_10_data_rate_limits_1.rb +223 -0
  162. data/lib/venice_client/models/inline_response_200_11.rb +262 -0
  163. data/lib/venice_client/models/inline_response_200_11_data.rb +274 -0
  164. data/lib/venice_client/models/inline_response_200_12.rb +225 -0
  165. data/lib/venice_client/models/inline_response_200_12_data.rb +212 -0
  166. data/lib/venice_client/models/inline_response_200_13.rb +261 -0
  167. data/lib/venice_client/models/inline_response_200_13_data.rb +350 -0
  168. data/lib/venice_client/models/inline_response_200_13_stats.rb +212 -0
  169. data/lib/venice_client/models/inline_response_200_14.rb +292 -0
  170. data/lib/venice_client/models/inline_response_200_14_data.rb +278 -0
  171. data/lib/venice_client/models/inline_response_200_14_usage.rb +228 -0
  172. data/lib/venice_client/models/inline_response_200_15.rb +228 -0
  173. data/lib/venice_client/models/inline_response_200_1_timing.rb +257 -0
  174. data/lib/venice_client/models/inline_response_200_2.rb +228 -0
  175. data/lib/venice_client/models/inline_response_200_3.rb +262 -0
  176. data/lib/venice_client/models/inline_response_200_4.rb +277 -0
  177. data/lib/venice_client/models/inline_response_200_5.rb +274 -0
  178. data/lib/venice_client/models/inline_response_200_6.rb +274 -0
  179. data/lib/venice_client/models/inline_response_200_7.rb +262 -0
  180. data/lib/venice_client/models/inline_response_200_7_data.rb +357 -0
  181. data/lib/venice_client/models/inline_response_200_7_usage.rb +211 -0
  182. data/lib/venice_client/models/inline_response_200_7_usage_trailing_seven_days.rb +227 -0
  183. data/lib/venice_client/models/inline_response_200_8.rb +225 -0
  184. data/lib/venice_client/models/inline_response_200_8_data.rb +316 -0
  185. data/lib/venice_client/models/inline_response_200_9.rb +211 -0
  186. data/lib/venice_client/models/inline_response_200_choices.rb +312 -0
  187. data/lib/venice_client/models/inline_response_200_logprobs.rb +251 -0
  188. data/lib/venice_client/models/inline_response_200_logprobs_top_logprobs.rb +236 -0
  189. data/lib/venice_client/models/inline_response_200_usage.rb +253 -0
  190. data/lib/venice_client/models/inline_response_200_venice_parameters.rb +329 -0
  191. data/lib/venice_client/models/inline_response_200_venice_parameters_web_search_citations.rb +243 -0
  192. data/lib/venice_client/models/inline_response_400.rb +222 -0
  193. data/lib/venice_client/models/inline_response_401.rb +212 -0
  194. data/lib/venice_client/models/inline_response_402.rb +212 -0
  195. data/lib/venice_client/models/inline_response_403.rb +212 -0
  196. data/lib/venice_client/models/inline_response_415.rb +212 -0
  197. data/lib/venice_client/models/inline_response_429.rb +212 -0
  198. data/lib/venice_client/models/inline_response_500.rb +212 -0
  199. data/lib/venice_client/models/inline_response_500_1.rb +212 -0
  200. data/lib/venice_client/models/inline_response_503.rb +212 -0
  201. data/lib/venice_client/models/model_compatibility_schema.rb +202 -0
  202. data/lib/venice_client/models/model_response.rb +340 -0
  203. data/lib/venice_client/models/model_response_model_spec.rb +292 -0
  204. data/lib/venice_client/models/model_response_model_spec_capabilities.rb +352 -0
  205. data/lib/venice_client/models/model_trait_schema.rb +200 -0
  206. data/lib/venice_client/models/one_of_chat_completion_request_response_format.rb +197 -0
  207. data/lib/venice_client/models/simple_generate_image_request.rb +456 -0
  208. data/lib/venice_client/models/tool_call.rb +230 -0
  209. data/lib/venice_client/models/type.rb +198 -0
  210. data/lib/venice_client/models/upscale_image_request.rb +270 -0
  211. data/lib/venice_client/version.rb +14 -0
  212. data/lib/venice_client.rb +139 -0
  213. data/spec/api/api_keys_api_spec.rb +113 -0
  214. data/spec/api/audio_api_spec.rb +45 -0
  215. data/spec/api/billing_api_spec.rb +51 -0
  216. data/spec/api/characters_api_spec.rb +44 -0
  217. data/spec/api/chat_api_spec.rb +46 -0
  218. data/spec/api/embeddings_api_spec.rb +46 -0
  219. data/spec/api/image_api_spec.rb +99 -0
  220. data/spec/api/models_api_spec.rb +69 -0
  221. data/spec/api/preview_api_spec.rb +44 -0
  222. data/spec/api/speech_api_spec.rb +45 -0
  223. data/spec/api_client_spec.rb +225 -0
  224. data/spec/base_object_spec.rb +109 -0
  225. data/spec/configuration_spec.rb +41 -0
  226. data/spec/models/any_of_chat_completion_request_messages_items_spec.rb +34 -0
  227. data/spec/models/any_of_chat_completion_request_stop_spec.rb +34 -0
  228. data/spec/models/any_of_chat_completion_request_tool_choice_spec.rb +34 -0
  229. data/spec/models/any_of_create_embedding_request_schema_input_spec.rb +34 -0
  230. data/spec/models/any_of_create_embedding_request_schema_model_spec.rb +34 -0
  231. data/spec/models/any_of_model_response_model_spec_constraints_spec.rb +34 -0
  232. data/spec/models/any_of_model_response_model_spec_pricing_spec.rb +34 -0
  233. data/spec/models/any_of_upscale_image_request_enhance_spec.rb +34 -0
  234. data/spec/models/any_of_upscale_image_request_image_spec.rb +34 -0
  235. data/spec/models/any_ofapi_keys_body_expires_at_spec.rb +34 -0
  236. data/spec/models/any_ofapi_keys_consumption_limit_usd_spec.rb +34 -0
  237. data/spec/models/any_ofapi_keys_consumption_limit_vcu_spec.rb +34 -0
  238. data/spec/models/any_ofapi_keys_generate_web3_key_body_expires_at_spec.rb +34 -0
  239. data/spec/models/any_ofinline_response_200_2_data_items_spec.rb +34 -0
  240. data/spec/models/any_ofinline_response_200_4_type_spec.rb +34 -0
  241. data/spec/models/any_ofinline_response_200_5_type_spec.rb +34 -0
  242. data/spec/models/any_ofinline_response_200_6_type_spec.rb +34 -0
  243. data/spec/models/any_ofinline_response_200_choices_message_spec.rb +34 -0
  244. data/spec/models/any_ofinline_response_200_prompt_logprobs_spec.rb +34 -0
  245. data/spec/models/api_keys_body_spec.rb +61 -0
  246. data/spec/models/api_keys_consumption_limit_spec.rb +46 -0
  247. data/spec/models/api_keys_generate_web3_key_body_spec.rb +80 -0
  248. data/spec/models/billing_usage_request_spec.rb +78 -0
  249. data/spec/models/billing_usage_response_data_spec.rb +86 -0
  250. data/spec/models/billing_usage_response_inference_details_spec.rb +57 -0
  251. data/spec/models/billing_usage_response_pagination_spec.rb +58 -0
  252. data/spec/models/billing_usage_response_spec.rb +46 -0
  253. data/spec/models/chat_completion_request_function_spec.rb +52 -0
  254. data/spec/models/chat_completion_request_spec.rb +189 -0
  255. data/spec/models/chat_completion_request_stream_options_spec.rb +40 -0
  256. data/spec/models/chat_completion_request_venice_parameters_spec.rb +73 -0
  257. data/spec/models/create_embedding_request_schema_spec.rb +68 -0
  258. data/spec/models/create_speech_request_schema_spec.rb +81 -0
  259. data/spec/models/generate_image_request_spec.rb +134 -0
  260. data/spec/models/inline_response_200_10_data_api_tier_spec.rb +45 -0
  261. data/spec/models/inline_response_200_10_data_balances_spec.rb +45 -0
  262. data/spec/models/inline_response_200_10_data_rate_limits_1_spec.rb +45 -0
  263. data/spec/models/inline_response_200_10_data_rate_limits_spec.rb +46 -0
  264. data/spec/models/inline_response_200_10_data_spec.rb +69 -0
  265. data/spec/models/inline_response_200_10_spec.rb +40 -0
  266. data/spec/models/inline_response_200_11_data_spec.rb +64 -0
  267. data/spec/models/inline_response_200_11_spec.rb +50 -0
  268. data/spec/models/inline_response_200_12_data_spec.rb +39 -0
  269. data/spec/models/inline_response_200_12_spec.rb +46 -0
  270. data/spec/models/inline_response_200_13_data_spec.rb +93 -0
  271. data/spec/models/inline_response_200_13_spec.rb +49 -0
  272. data/spec/models/inline_response_200_13_stats_spec.rb +40 -0
  273. data/spec/models/inline_response_200_14_data_spec.rb +55 -0
  274. data/spec/models/inline_response_200_14_spec.rb +61 -0
  275. data/spec/models/inline_response_200_14_usage_spec.rb +45 -0
  276. data/spec/models/inline_response_200_15_spec.rb +45 -0
  277. data/spec/models/inline_response_200_1_spec.rb +57 -0
  278. data/spec/models/inline_response_200_1_timing_spec.rb +58 -0
  279. data/spec/models/inline_response_200_2_spec.rb +46 -0
  280. data/spec/models/inline_response_200_3_spec.rb +50 -0
  281. data/spec/models/inline_response_200_4_spec.rb +55 -0
  282. data/spec/models/inline_response_200_5_spec.rb +55 -0
  283. data/spec/models/inline_response_200_6_spec.rb +55 -0
  284. data/spec/models/inline_response_200_7_data_spec.rb +91 -0
  285. data/spec/models/inline_response_200_7_spec.rb +50 -0
  286. data/spec/models/inline_response_200_7_usage_spec.rb +39 -0
  287. data/spec/models/inline_response_200_7_usage_trailing_seven_days_spec.rb +45 -0
  288. data/spec/models/inline_response_200_8_data_spec.rb +73 -0
  289. data/spec/models/inline_response_200_8_spec.rb +45 -0
  290. data/spec/models/inline_response_200_9_spec.rb +39 -0
  291. data/spec/models/inline_response_200_choices_spec.rb +72 -0
  292. data/spec/models/inline_response_200_logprobs_spec.rb +57 -0
  293. data/spec/models/inline_response_200_logprobs_top_logprobs_spec.rb +51 -0
  294. data/spec/models/inline_response_200_spec.rb +85 -0
  295. data/spec/models/inline_response_200_usage_spec.rb +57 -0
  296. data/spec/models/inline_response_200_venice_parameters_spec.rb +80 -0
  297. data/spec/models/inline_response_200_venice_parameters_web_search_citations_spec.rb +57 -0
  298. data/spec/models/inline_response_400_spec.rb +45 -0
  299. data/spec/models/inline_response_401_spec.rb +39 -0
  300. data/spec/models/inline_response_402_spec.rb +39 -0
  301. data/spec/models/inline_response_403_spec.rb +40 -0
  302. data/spec/models/inline_response_415_spec.rb +40 -0
  303. data/spec/models/inline_response_429_spec.rb +39 -0
  304. data/spec/models/inline_response_500_1_spec.rb +40 -0
  305. data/spec/models/inline_response_500_spec.rb +39 -0
  306. data/spec/models/inline_response_503_spec.rb +40 -0
  307. data/spec/models/model_compatibility_schema_spec.rb +34 -0
  308. data/spec/models/model_response_model_spec_capabilities_spec.rb +85 -0
  309. data/spec/models/model_response_model_spec_spec.rb +87 -0
  310. data/spec/models/model_response_spec.rb +81 -0
  311. data/spec/models/model_trait_schema_spec.rb +34 -0
  312. data/spec/models/one_of_chat_completion_request_response_format_spec.rb +34 -0
  313. data/spec/models/simple_generate_image_request_spec.rb +134 -0
  314. data/spec/models/tool_call_spec.rb +51 -0
  315. data/spec/models/type_spec.rb +34 -0
  316. data/spec/models/upscale_image_request_spec.rb +69 -0
  317. data/spec/spec_helper.rb +110 -0
  318. data/venice_client.gemspec +38 -0
  319. metadata +522 -0
@@ -0,0 +1,10 @@
1
+ # VeniceClient::BillingUsageResponseInferenceDetails
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **completion_tokens** | [**BigDecimal**](BigDecimal.md) | Number of tokens used in the completion. Only present for LLM usage. |
7
+ **inference_execution_time** | [**BigDecimal**](BigDecimal.md) | Time taken for inference execution in milliseconds |
8
+ **prompt_tokens** | [**BigDecimal**](BigDecimal.md) | Number of tokens requested in the prompt. Only present for LLM usage. |
9
+ **request_id** | **String** | Unique identifier for the inference request |
10
+
@@ -0,0 +1,10 @@
1
+ # VeniceClient::BillingUsageResponsePagination
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **limit** | [**BigDecimal**](BigDecimal.md) | |
7
+ **page** | [**BigDecimal**](BigDecimal.md) | |
8
+ **total** | [**BigDecimal**](BigDecimal.md) | |
9
+ **total_pages** | [**BigDecimal**](BigDecimal.md) | |
10
+
@@ -0,0 +1,52 @@
1
+ # VeniceClient::CharactersApi
2
+
3
+ All URIs are relative to *https://api.venice.ai/api/v1*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**list_characters**](CharactersApi.md#list_characters) | **GET** /characters | /api/v1/characters
8
+
9
+ # **list_characters**
10
+ > InlineResponse20013 list_characters
11
+
12
+ /api/v1/characters
13
+
14
+ This is a preview API and may change. Returns a list of characters supported in the API.
15
+
16
+ ### Example
17
+ ```ruby
18
+ # load the gem
19
+ require 'venice_client'
20
+ # setup authorization
21
+ VeniceClient.configure do |config|
22
+ end
23
+
24
+ api_instance = VeniceClient::CharactersApi.new
25
+
26
+ begin
27
+ #/api/v1/characters
28
+ result = api_instance.list_characters
29
+ p result
30
+ rescue VeniceClient::ApiError => e
31
+ puts "Exception when calling CharactersApi->list_characters: #{e}"
32
+ end
33
+ ```
34
+
35
+ ### Parameters
36
+ This endpoint does not need any parameter.
37
+
38
+ ### Return type
39
+
40
+ [**InlineResponse20013**](InlineResponse20013.md)
41
+
42
+ ### Authorization
43
+
44
+ [BearerAuth](../README.md#BearerAuth)
45
+
46
+ ### HTTP request headers
47
+
48
+ - **Content-Type**: Not defined
49
+ - **Accept**: application/json
50
+
51
+
52
+
data/docs/ChatApi.md ADDED
@@ -0,0 +1,60 @@
1
+ # VeniceClient::ChatApi
2
+
3
+ All URIs are relative to *https://api.venice.ai/api/v1*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**create_chat_completion**](ChatApi.md#create_chat_completion) | **POST** /chat/completions | /api/v1/chat/completions
8
+
9
+ # **create_chat_completion**
10
+ > InlineResponse200 create_chat_completion(opts)
11
+
12
+ /api/v1/chat/completions
13
+
14
+ Run text inference based on the supplied parameters.
15
+
16
+ ### Example
17
+ ```ruby
18
+ # load the gem
19
+ require 'venice_client'
20
+ # setup authorization
21
+ VeniceClient.configure do |config|
22
+ end
23
+
24
+ api_instance = VeniceClient::ChatApi.new
25
+ opts = {
26
+ body: VeniceClient::ChatCompletionRequest.new # ChatCompletionRequest |
27
+ accept_encoding: 'accept_encoding_example' # String | Supported compression encodings (gzip, br). Only applied when stream is false.
28
+ }
29
+
30
+ begin
31
+ #/api/v1/chat/completions
32
+ result = api_instance.create_chat_completion(opts)
33
+ p result
34
+ rescue VeniceClient::ApiError => e
35
+ puts "Exception when calling ChatApi->create_chat_completion: #{e}"
36
+ end
37
+ ```
38
+
39
+ ### Parameters
40
+
41
+ Name | Type | Description | Notes
42
+ ------------- | ------------- | ------------- | -------------
43
+ **body** | [**ChatCompletionRequest**](ChatCompletionRequest.md)| | [optional]
44
+ **accept_encoding** | **String**| Supported compression encodings (gzip, br). Only applied when stream is false. | [optional]
45
+
46
+ ### Return type
47
+
48
+ [**InlineResponse200**](InlineResponse200.md)
49
+
50
+ ### Authorization
51
+
52
+ [BearerAuth](../README.md#BearerAuth)
53
+
54
+ ### HTTP request headers
55
+
56
+ - **Content-Type**: application/json
57
+ - **Accept**: application/json
58
+
59
+
60
+
@@ -0,0 +1,32 @@
1
+ # VeniceClient::ChatCompletionRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **frequency_penalty** | [**BigDecimal**](BigDecimal.md) | Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim. | [optional] [default to 0]
7
+ **logprobs** | **BOOLEAN** | Whether to include log probabilities in the response. This is not supported by all models. | [optional]
8
+ **max_completion_tokens** | **Integer** | An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens. | [optional]
9
+ **max_temp** | [**BigDecimal**](BigDecimal.md) | Maximum temperature value for dynamic temperature scaling. | [optional]
10
+ **max_tokens** | **Integer** | The maximum number of tokens that can be generated in the chat completion. This value can be used to control costs for text generated via API. This value is now deprecated in favor of max_completion_tokens. | [optional]
11
+ **messages** | [**Array<AnyOfChatCompletionRequestMessagesItems>**](.md) | A list of messages comprising the conversation so far. Depending on the model you use, different message types (modalities) are supported, like text and images. For compatibility purposes, the schema supports submitting multiple image_url messages, however, only the last image_url message will be passed to and processed by the model. |
12
+ **min_p** | [**BigDecimal**](BigDecimal.md) | Sets a minimum probability threshold for token selection. Tokens with probabilities below this value are filtered out. | [optional]
13
+ **min_temp** | [**BigDecimal**](BigDecimal.md) | Minimum temperature value for dynamic temperature scaling. | [optional]
14
+ **model** | **String** | The ID of the model you wish to prompt. May also be a model trait, or a compatibility mapping. See the models endpoint for a list of models available to you. You can use feature suffixes to enable features from the venice_parameters object. Please see \"Model Feature Suffix\" documentation for more details. |
15
+ **n** | **Integer** | How many chat completion choices to generate for each input message. Note that you will be charged based on the number of generated tokens across all of the choices. Keep n as 1 to minimize costs. | [optional] [default to 1]
16
+ **presence_penalty** | [**BigDecimal**](BigDecimal.md) | Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics. | [optional] [default to 0]
17
+ **repetition_penalty** | [**BigDecimal**](BigDecimal.md) | The parameter for repetition penalty. 1.0 means no penalty. Values > 1.0 discourage repetition. | [optional]
18
+ **seed** | **Integer** | The random seed used to generate the response. This is useful for reproducibility. | [optional]
19
+ **stop** | [**AnyOfChatCompletionRequestStop**](AnyOfChatCompletionRequestStop.md) | Up to 4 sequences where the API will stop generating further tokens. Defaults to null. | [optional]
20
+ **stop_token_ids** | [**Array<BigDecimal>**](BigDecimal.md) | Array of token IDs where the API will stop generating further tokens. | [optional]
21
+ **stream** | **BOOLEAN** | Whether to stream back partial progress. Defaults to false. | [optional]
22
+ **stream_options** | [**ChatCompletionRequestStreamOptions**](ChatCompletionRequestStreamOptions.md) | | [optional]
23
+ **temperature** | [**BigDecimal**](BigDecimal.md) | What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. We generally recommend altering this or top_p but not both. | [optional] [default to 0.3]
24
+ **top_k** | **Integer** | The number of highest probability vocabulary tokens to keep for top-k-filtering. | [optional]
25
+ **top_p** | [**BigDecimal**](BigDecimal.md) | An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered. | [optional] [default to 1]
26
+ **user** | **String** | This field is discarded on the request but is supported in the Venice API for compatibility with OpenAPI clients. | [optional]
27
+ **venice_parameters** | [**ChatCompletionRequestVeniceParameters**](ChatCompletionRequestVeniceParameters.md) | | [optional]
28
+ **parallel_tool_calls** | **BOOLEAN** | Whether to enable parallel function calling during tool use. | [optional] [default to true]
29
+ **response_format** | [**OneOfChatCompletionRequestResponseFormat**](OneOfChatCompletionRequestResponseFormat.md) | Format in which the response should be returned. | [optional]
30
+ **tool_choice** | [**AnyOfChatCompletionRequestToolChoice**](AnyOfChatCompletionRequestToolChoice.md) | | [optional]
31
+ **tools** | [**Array<ToolCall>**](ToolCall.md) | A list of tools the model may call. Currently, only functions are supported as a tool. Use this to provide a list of functions the model may generate JSON inputs for. | [optional]
32
+
@@ -0,0 +1,9 @@
1
+ # VeniceClient::ChatCompletionRequestFunction
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **description** | **String** | | [optional]
7
+ **name** | **String** | |
8
+ **parameters** | [**Hash<String, null>**](.md) | | [optional]
9
+
@@ -0,0 +1,7 @@
1
+ # VeniceClient::ChatCompletionRequestStreamOptions
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **include_usage** | **BOOLEAN** | Whether to include usage information in the stream. | [optional]
7
+
@@ -0,0 +1,12 @@
1
+ # VeniceClient::ChatCompletionRequestVeniceParameters
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **character_slug** | **String** | The character slug of a public Venice character. | [optional]
7
+ **strip_thinking_response** | **BOOLEAN** | Strip <think></think> blocks from the response. Applicable only to reasoning / thinking models. Also available to use as a model feature suffix. Defaults to false. | [optional] [default to false]
8
+ **disable_thinking** | **BOOLEAN** | On supported reasoning models, will disable thinking and strip the <think></think> blocks from the response. Defaults to false. | [optional] [default to false]
9
+ **enable_web_search** | **String** | Enable web search for this request. Defaults to off. On will force web search on the request. Auto will enable it based on the model's discretion. Citations will be returned either in the first chunk of a streaming result, or in the non streaming response. | [optional] [default to 'false']
10
+ **enable_web_citations** | **BOOLEAN** | When web search is enabled, this will request that the LLM cite its sources using a [REF]0[/REF] format. Defaults to false. | [optional] [default to false]
11
+ **include_venice_system_prompt** | **BOOLEAN** | Whether to include the Venice supplied system prompts along side specified system prompts. Defaults to true. | [optional] [default to true]
12
+
@@ -0,0 +1,11 @@
1
+ # VeniceClient::CreateEmbeddingRequestSchema
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **dimensions** | **Integer** | The number of dimensions the resulting output embeddings should have. | [optional]
7
+ **encoding_format** | **String** | The format to return the embeddings in. Can be either `float` or `base64`. | [optional] [default to 'float']
8
+ **input** | [**AnyOfCreateEmbeddingRequestSchemaInput**](AnyOfCreateEmbeddingRequestSchemaInput.md) | Input text to embed, encoded as a string or array of tokens. To embed multiple inputs in a single request, pass an array of strings or array of token arrays. The input must not exceed the max input tokens for the model (8192 tokens), cannot be an empty string, and any array must be 2048 dimensions or less. |
9
+ **model** | [**AnyOfCreateEmbeddingRequestSchemaModel**](AnyOfCreateEmbeddingRequestSchemaModel.md) | ID of the model to use. You can use the List models API to see all of your available models, or see our Model overview for descriptions of them. |
10
+ **user** | **String** | This is an unused parameter and is discarded by Venice. It is supported solely for API compatibility with OpenAI. | [optional]
11
+
@@ -0,0 +1,12 @@
1
+ # VeniceClient::CreateSpeechRequestSchema
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **input** | **String** | The text to generate audio for. The maximum length is 4096 characters. |
7
+ **model** | **String** | The model ID of a Venice TTS model. | [optional] [default to 'tts-kokoro']
8
+ **response_format** | **String** | The format to audio in. | [optional] [default to 'mp3']
9
+ **speed** | [**BigDecimal**](BigDecimal.md) | The speed of the generated audio. Select a value from 0.25 to 4.0. 1.0 is the default. | [optional] [default to 1]
10
+ **streaming** | **BOOLEAN** | Should the content stream back sentence by sentence or be processed and returned as a complete audio file. | [optional] [default to false]
11
+ **voice** | **String** | The voice to use when generating the audio. | [optional] [default to 'af_sky']
12
+
@@ -0,0 +1,60 @@
1
+ # VeniceClient::EmbeddingsApi
2
+
3
+ All URIs are relative to *https://api.venice.ai/api/v1*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**create_embedding**](EmbeddingsApi.md#create_embedding) | **POST** /embeddings | /api/v1/embeddings
8
+
9
+ # **create_embedding**
10
+ > InlineResponse20014 create_embedding(body, opts)
11
+
12
+ /api/v1/embeddings
13
+
14
+ Create embeddings for the supplied input. This is a beta model accessible to Venice beta testers.
15
+
16
+ ### Example
17
+ ```ruby
18
+ # load the gem
19
+ require 'venice_client'
20
+ # setup authorization
21
+ VeniceClient.configure do |config|
22
+ end
23
+
24
+ api_instance = VeniceClient::EmbeddingsApi.new
25
+ body = VeniceClient::CreateEmbeddingRequestSchema.new # CreateEmbeddingRequestSchema |
26
+ opts = {
27
+ accept_encoding: 'accept_encoding_example' # String | Supported compression encodings (gzip, br)
28
+ }
29
+
30
+ begin
31
+ #/api/v1/embeddings
32
+ result = api_instance.create_embedding(body, opts)
33
+ p result
34
+ rescue VeniceClient::ApiError => e
35
+ puts "Exception when calling EmbeddingsApi->create_embedding: #{e}"
36
+ end
37
+ ```
38
+
39
+ ### Parameters
40
+
41
+ Name | Type | Description | Notes
42
+ ------------- | ------------- | ------------- | -------------
43
+ **body** | [**CreateEmbeddingRequestSchema**](CreateEmbeddingRequestSchema.md)| |
44
+ **accept_encoding** | **String**| Supported compression encodings (gzip, br) | [optional]
45
+
46
+ ### Return type
47
+
48
+ [**InlineResponse20014**](InlineResponse20014.md)
49
+
50
+ ### Authorization
51
+
52
+ [BearerAuth](../README.md#BearerAuth)
53
+
54
+ ### HTTP request headers
55
+
56
+ - **Content-Type**: application/json
57
+ - **Accept**: application/json
58
+
59
+
60
+
@@ -0,0 +1,22 @@
1
+ # VeniceClient::GenerateImageRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **cfg_scale** | [**BigDecimal**](BigDecimal.md) | CFG scale parameter. Higher values lead to more adherence to the prompt. | [optional]
7
+ **embed_exif_metadata** | **BOOLEAN** | Embed prompt generation information into the image's EXIF metadata. | [optional] [default to false]
8
+ **format** | **String** | The image format to return. WebP are smaller and optimized for web use. PNG are higher quality but larger in file size. | [optional] [default to 'webp']
9
+ **height** | **Integer** | Height of the generated image. Each model has a specific height and width divisor listed in the widthHeightDivisor constraint in the model list endpoint. | [optional] [default to 1024]
10
+ **hide_watermark** | **BOOLEAN** | Whether to hide the Venice watermark. Venice may ignore this parameter for certain generated content. | [optional] [default to false]
11
+ **inpaint** | [****](.md) | This feature is deprecated and was disabled on May 19th, 2025. A revised in-painting API will be launched in the near future. | [optional]
12
+ **lora_strength** | **Integer** | Lora strength for the model. Only applies if the model uses additional Loras. | [optional]
13
+ **model** | **String** | The model to use for image generation. |
14
+ **negative_prompt** | **String** | A description of what should not be in the image. Character limit is model specific and is listed in the promptCharacterLimit constraint in the model list endpoint. | [optional]
15
+ **prompt** | **String** | The description for the image. Character limit is model specific and is listed in the promptCharacterLimit setting in the model list endpoint. |
16
+ **return_binary** | **BOOLEAN** | Whether to return binary image data instead of base64. | [optional] [default to false]
17
+ **safe_mode** | **BOOLEAN** | Whether to use safe mode. If enabled, this will blur images that are classified as having adult content. | [optional] [default to true]
18
+ **seed** | **Integer** | Random seed for generation. If not provided, a random seed will be used. | [optional] [default to 0]
19
+ **steps** | **Integer** | Number of inference steps. The following models have reduced max steps from the global max: venice-sd35: 30 max steps, flux-dev: 30 max steps, flux-dev-uncensored: 30 max steps, stable-diffusion-3.5: 30 max steps. These constraints are exposed in the model list endpoint for each model. | [optional] [default to 20]
20
+ **style_preset** | **String** | An image style to apply to the image. Visit https://docs.venice.ai/api-reference/endpoint/image/styles for more details. | [optional]
21
+ **width** | **Integer** | Width of the generated image. Each model has a specific height and width divisor listed in the widthHeightDivisor constraint in the model list endpoint. | [optional] [default to 1024]
22
+
data/docs/ImageApi.md ADDED
@@ -0,0 +1,270 @@
1
+ # VeniceClient::ImageApi
2
+
3
+ All URIs are relative to *https://api.venice.ai/api/v1*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**generate_image**](ImageApi.md#generate_image) | **POST** /image/generate | /api/v1/image/generate
8
+ [**image_styles_get**](ImageApi.md#image_styles_get) | **GET** /image/styles | /api/v1/image/styles
9
+ [**simple_generate_image**](ImageApi.md#simple_generate_image) | **POST** /images/generations | /api/v1/image/generations
10
+ [**upscale_image**](ImageApi.md#upscale_image) | **POST** /image/upscale | /api/v1/image/upscale
11
+ [**upscale_image**](ImageApi.md#upscale_image) | **POST** /image/upscale | /api/v1/image/upscale
12
+
13
+ # **generate_image**
14
+ > InlineResponse2001 generate_image(opts)
15
+
16
+ /api/v1/image/generate
17
+
18
+ Generate an image based on input parameters
19
+
20
+ ### Example
21
+ ```ruby
22
+ # load the gem
23
+ require 'venice_client'
24
+ # setup authorization
25
+ VeniceClient.configure do |config|
26
+ end
27
+
28
+ api_instance = VeniceClient::ImageApi.new
29
+ opts = {
30
+ body: VeniceClient::GenerateImageRequest.new # GenerateImageRequest |
31
+ accept_encoding: 'accept_encoding_example' # String | Supported compression encodings (gzip, br). Only applied when return_binary is false.
32
+ }
33
+
34
+ begin
35
+ #/api/v1/image/generate
36
+ result = api_instance.generate_image(opts)
37
+ p result
38
+ rescue VeniceClient::ApiError => e
39
+ puts "Exception when calling ImageApi->generate_image: #{e}"
40
+ end
41
+ ```
42
+
43
+ ### Parameters
44
+
45
+ Name | Type | Description | Notes
46
+ ------------- | ------------- | ------------- | -------------
47
+ **body** | [**GenerateImageRequest**](GenerateImageRequest.md)| | [optional]
48
+ **accept_encoding** | **String**| Supported compression encodings (gzip, br). Only applied when return_binary is false. | [optional]
49
+
50
+ ### Return type
51
+
52
+ [**InlineResponse2001**](InlineResponse2001.md)
53
+
54
+ ### Authorization
55
+
56
+ [BearerAuth](../README.md#BearerAuth)
57
+
58
+ ### HTTP request headers
59
+
60
+ - **Content-Type**: application/json
61
+ - **Accept**: application/json, image/jpeg, image/png, image/webp
62
+
63
+
64
+
65
+ # **image_styles_get**
66
+ > InlineResponse2003 image_styles_get
67
+
68
+ /api/v1/image/styles
69
+
70
+ List available image styles that can be used with the generate API.
71
+
72
+ ### Example
73
+ ```ruby
74
+ # load the gem
75
+ require 'venice_client'
76
+ # setup authorization
77
+ VeniceClient.configure do |config|
78
+ end
79
+
80
+ api_instance = VeniceClient::ImageApi.new
81
+
82
+ begin
83
+ #/api/v1/image/styles
84
+ result = api_instance.image_styles_get
85
+ p result
86
+ rescue VeniceClient::ApiError => e
87
+ puts "Exception when calling ImageApi->image_styles_get: #{e}"
88
+ end
89
+ ```
90
+
91
+ ### Parameters
92
+ This endpoint does not need any parameter.
93
+
94
+ ### Return type
95
+
96
+ [**InlineResponse2003**](InlineResponse2003.md)
97
+
98
+ ### Authorization
99
+
100
+ [BearerAuth](../README.md#BearerAuth)
101
+
102
+ ### HTTP request headers
103
+
104
+ - **Content-Type**: Not defined
105
+ - **Accept**: application/json
106
+
107
+
108
+
109
+ # **simple_generate_image**
110
+ > InlineResponse2002 simple_generate_image(opts)
111
+
112
+ /api/v1/image/generations
113
+
114
+ Generate an image based on input parameters using an OpenAI compatible endpoint. This endpoint does not support the full feature set of the Venice Image Generation endpoint, but is compatible with the existing OpenAI endpoint.
115
+
116
+ ### Example
117
+ ```ruby
118
+ # load the gem
119
+ require 'venice_client'
120
+ # setup authorization
121
+ VeniceClient.configure do |config|
122
+ end
123
+
124
+ api_instance = VeniceClient::ImageApi.new
125
+ opts = {
126
+ body: VeniceClient::SimpleGenerateImageRequest.new # SimpleGenerateImageRequest |
127
+ accept_encoding: 'accept_encoding_example' # String | Supported compression encodings (gzip, br).
128
+ }
129
+
130
+ begin
131
+ #/api/v1/image/generations
132
+ result = api_instance.simple_generate_image(opts)
133
+ p result
134
+ rescue VeniceClient::ApiError => e
135
+ puts "Exception when calling ImageApi->simple_generate_image: #{e}"
136
+ end
137
+ ```
138
+
139
+ ### Parameters
140
+
141
+ Name | Type | Description | Notes
142
+ ------------- | ------------- | ------------- | -------------
143
+ **body** | [**SimpleGenerateImageRequest**](SimpleGenerateImageRequest.md)| | [optional]
144
+ **accept_encoding** | **String**| Supported compression encodings (gzip, br). | [optional]
145
+
146
+ ### Return type
147
+
148
+ [**InlineResponse2002**](InlineResponse2002.md)
149
+
150
+ ### Authorization
151
+
152
+ [BearerAuth](../README.md#BearerAuth)
153
+
154
+ ### HTTP request headers
155
+
156
+ - **Content-Type**: application/json
157
+ - **Accept**: application/json
158
+
159
+
160
+
161
+ # **upscale_image**
162
+ > String upscale_image(opts)
163
+
164
+ /api/v1/image/upscale
165
+
166
+ Upscale or enhance an image based on the supplied parameters. Using a scale of 1 with enhance enabled will only run the enhancer. The image can be provided either as a multipart form-data file upload or as a base64-encoded string in a JSON request.
167
+
168
+ ### Example
169
+ ```ruby
170
+ # load the gem
171
+ require 'venice_client'
172
+ # setup authorization
173
+ VeniceClient.configure do |config|
174
+ end
175
+
176
+ api_instance = VeniceClient::ImageApi.new
177
+ opts = {
178
+ body: VeniceClient::UpscaleImageRequest.new # UpscaleImageRequest |
179
+ }
180
+
181
+ begin
182
+ #/api/v1/image/upscale
183
+ result = api_instance.upscale_image(opts)
184
+ p result
185
+ rescue VeniceClient::ApiError => e
186
+ puts "Exception when calling ImageApi->upscale_image: #{e}"
187
+ end
188
+ ```
189
+
190
+ ### Parameters
191
+
192
+ Name | Type | Description | Notes
193
+ ------------- | ------------- | ------------- | -------------
194
+ **body** | [**UpscaleImageRequest**](UpscaleImageRequest.md)| | [optional]
195
+
196
+ ### Return type
197
+
198
+ **String**
199
+
200
+ ### Authorization
201
+
202
+ [BearerAuth](../README.md#BearerAuth)
203
+
204
+ ### HTTP request headers
205
+
206
+ - **Content-Type**: application/json, multipart/form-data
207
+ - **Accept**: image/png, application/json
208
+
209
+
210
+
211
+ # **upscale_image**
212
+ > String upscale_image(opts)
213
+
214
+ /api/v1/image/upscale
215
+
216
+ Upscale or enhance an image based on the supplied parameters. Using a scale of 1 with enhance enabled will only run the enhancer. The image can be provided either as a multipart form-data file upload or as a base64-encoded string in a JSON request.
217
+
218
+ ### Example
219
+ ```ruby
220
+ # load the gem
221
+ require 'venice_client'
222
+ # setup authorization
223
+ VeniceClient.configure do |config|
224
+ end
225
+
226
+ api_instance = VeniceClient::ImageApi.new
227
+ opts = {
228
+ enhance: VeniceClient::null.new # |
229
+ enhance_creativity: VeniceClient::BigDecimal.new # BigDecimal |
230
+ enhance_prompt: 'enhance_prompt_example' # String |
231
+ image: VeniceClient::null.new # |
232
+ replication: VeniceClient::BigDecimal.new # BigDecimal |
233
+ scale: VeniceClient::BigDecimal.new # BigDecimal |
234
+ }
235
+
236
+ begin
237
+ #/api/v1/image/upscale
238
+ result = api_instance.upscale_image(opts)
239
+ p result
240
+ rescue VeniceClient::ApiError => e
241
+ puts "Exception when calling ImageApi->upscale_image: #{e}"
242
+ end
243
+ ```
244
+
245
+ ### Parameters
246
+
247
+ Name | Type | Description | Notes
248
+ ------------- | ------------- | ------------- | -------------
249
+ **enhance** | [****](.md)| | [optional]
250
+ **enhance_creativity** | **BigDecimal**| | [optional]
251
+ **enhance_prompt** | **String**| | [optional]
252
+ **image** | [****](.md)| | [optional]
253
+ **replication** | **BigDecimal**| | [optional]
254
+ **scale** | **BigDecimal**| | [optional]
255
+
256
+ ### Return type
257
+
258
+ **String**
259
+
260
+ ### Authorization
261
+
262
+ [BearerAuth](../README.md#BearerAuth)
263
+
264
+ ### HTTP request headers
265
+
266
+ - **Content-Type**: application/json, multipart/form-data
267
+ - **Accept**: image/png, application/json
268
+
269
+
270
+
@@ -0,0 +1,14 @@
1
+ # VeniceClient::InlineResponse200
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **choices** | [**Array<InlineResponse200Choices>**](InlineResponse200Choices.md) | A list of chat completion choices. Can be more than one if n is greater than 1. |
7
+ **created** | **Integer** | The time at which the request was created. |
8
+ **id** | **String** | The ID of the request. |
9
+ **model** | **String** | The model id used for the request. |
10
+ **object** | **String** | The type of the object returned. |
11
+ **prompt_logprobs** | [**AnyOfinlineResponse200PromptLogprobs**](AnyOfinlineResponse200PromptLogprobs.md) | Log probability information for the prompt. | [optional]
12
+ **usage** | [**InlineResponse200Usage**](InlineResponse200Usage.md) | |
13
+ **venice_parameters** | [**InlineResponse200VeniceParameters**](InlineResponse200VeniceParameters.md) | | [optional]
14
+
@@ -0,0 +1,10 @@
1
+ # VeniceClient::InlineResponse2001
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **String** | The ID of the request. |
7
+ **images** | **Array<String>** | Base64 encoded image data. |
8
+ **request** | [****](.md) | The original request data sent to the API. | [optional]
9
+ **timing** | [**InlineResponse2001Timing**](InlineResponse2001Timing.md) | |
10
+
@@ -0,0 +1,7 @@
1
+ # VeniceClient::InlineResponse20010
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **data** | [**InlineResponse20010Data**](InlineResponse20010Data.md) | |
7
+
@@ -0,0 +1,12 @@
1
+ # VeniceClient::InlineResponse20010Data
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **access_permitted** | **BOOLEAN** | Does the API key have access to consume the inference APIs? |
7
+ **api_tier** | [**InlineResponse20010DataApiTier**](InlineResponse20010DataApiTier.md) | |
8
+ **balances** | [**InlineResponse20010DataBalances**](InlineResponse20010DataBalances.md) | |
9
+ **key_expiration** | **String** | The timestamp the API key expires. If null, the key never expires. |
10
+ **next_epoch_begins** | **String** | The timestamp when the next epoch begins. This is relevant for rate limits that reset at the start of each epoch. |
11
+ **rate_limits** | [**Array<InlineResponse20010DataRateLimits1>**](InlineResponse20010DataRateLimits1.md) | |
12
+
@@ -0,0 +1,8 @@
1
+ # VeniceClient::InlineResponse20010DataApiTier
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **String** | The ID of the API tier. |
7
+ **is_charged** | **BOOLEAN** | Is the API key pay per use (in VCU or USD). |
8
+
@@ -0,0 +1,8 @@
1
+ # VeniceClient::InlineResponse20010DataBalances
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **usd** | [**BigDecimal**](BigDecimal.md) | The USD balance of the key. | [optional]
7
+ **vcu** | [**BigDecimal**](BigDecimal.md) | The VCU balance of the key. | [optional]
8
+
@@ -0,0 +1,8 @@
1
+ # VeniceClient::InlineResponse20010DataRateLimits
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **amount** | [**BigDecimal**](BigDecimal.md) | The rate limit for the API model. |
7
+ **type** | **String** | The time period for the rate limit. Can be Requests Per Minute (RPM), Requests Per Day (RPD), or Tokens Per Minute (TPM). |
8
+