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.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/README.md +510 -0
- data/Rakefile +8 -0
- data/docs/APIKeysApi.md +334 -0
- data/docs/AnyOfChatCompletionRequestMessagesItems.md +6 -0
- data/docs/AnyOfChatCompletionRequestStop.md +6 -0
- data/docs/AnyOfChatCompletionRequestToolChoice.md +6 -0
- data/docs/AnyOfCreateEmbeddingRequestSchemaInput.md +6 -0
- data/docs/AnyOfCreateEmbeddingRequestSchemaModel.md +6 -0
- data/docs/AnyOfModelResponseModelSpecConstraints.md +6 -0
- data/docs/AnyOfModelResponseModelSpecPricing.md +6 -0
- data/docs/AnyOfUpscaleImageRequestEnhance.md +6 -0
- data/docs/AnyOfUpscaleImageRequestImage.md +6 -0
- data/docs/AnyOfapiKeysBodyExpiresAt.md +6 -0
- data/docs/AnyOfapiKeysConsumptionLimitUsd.md +6 -0
- data/docs/AnyOfapiKeysConsumptionLimitVcu.md +6 -0
- data/docs/AnyOfapiKeysGenerateWeb3KeyBodyExpiresAt.md +6 -0
- data/docs/AnyOfinlineResponse2002DataItems.md +6 -0
- data/docs/AnyOfinlineResponse2004Type.md +6 -0
- data/docs/AnyOfinlineResponse2005Type.md +6 -0
- data/docs/AnyOfinlineResponse2006Type.md +6 -0
- data/docs/AnyOfinlineResponse200ChoicesMessage.md +6 -0
- data/docs/AnyOfinlineResponse200PromptLogprobs.md +6 -0
- data/docs/ApiKeysBody.md +10 -0
- data/docs/ApiKeysConsumptionLimit.md +8 -0
- data/docs/ApiKeysGenerateWeb3KeyBody.md +13 -0
- data/docs/AudioApi.md +58 -0
- data/docs/BillingApi.md +70 -0
- data/docs/BillingUsageRequest.md +12 -0
- data/docs/BillingUsageResponse.md +8 -0
- data/docs/BillingUsageResponseData.md +14 -0
- data/docs/BillingUsageResponseInferenceDetails.md +10 -0
- data/docs/BillingUsageResponsePagination.md +10 -0
- data/docs/CharactersApi.md +52 -0
- data/docs/ChatApi.md +60 -0
- data/docs/ChatCompletionRequest.md +32 -0
- data/docs/ChatCompletionRequestFunction.md +9 -0
- data/docs/ChatCompletionRequestStreamOptions.md +7 -0
- data/docs/ChatCompletionRequestVeniceParameters.md +12 -0
- data/docs/CreateEmbeddingRequestSchema.md +11 -0
- data/docs/CreateSpeechRequestSchema.md +12 -0
- data/docs/EmbeddingsApi.md +60 -0
- data/docs/GenerateImageRequest.md +22 -0
- data/docs/ImageApi.md +270 -0
- data/docs/InlineResponse200.md +14 -0
- data/docs/InlineResponse2001.md +10 -0
- data/docs/InlineResponse20010.md +7 -0
- data/docs/InlineResponse20010Data.md +12 -0
- data/docs/InlineResponse20010DataApiTier.md +8 -0
- data/docs/InlineResponse20010DataBalances.md +8 -0
- data/docs/InlineResponse20010DataRateLimits.md +8 -0
- data/docs/InlineResponse20010DataRateLimits1.md +8 -0
- data/docs/InlineResponse20011.md +8 -0
- data/docs/InlineResponse20011Data.md +11 -0
- data/docs/InlineResponse20012.md +8 -0
- data/docs/InlineResponse20012Data.md +7 -0
- data/docs/InlineResponse20013.md +8 -0
- data/docs/InlineResponse20013Data.md +16 -0
- data/docs/InlineResponse20013Stats.md +7 -0
- data/docs/InlineResponse20014.md +10 -0
- data/docs/InlineResponse20014Data.md +9 -0
- data/docs/InlineResponse20014Usage.md +8 -0
- data/docs/InlineResponse20015.md +8 -0
- data/docs/InlineResponse2001Timing.md +10 -0
- data/docs/InlineResponse2002.md +8 -0
- data/docs/InlineResponse2003.md +8 -0
- data/docs/InlineResponse2004.md +9 -0
- data/docs/InlineResponse2005.md +9 -0
- data/docs/InlineResponse2006.md +9 -0
- data/docs/InlineResponse2007.md +8 -0
- data/docs/InlineResponse2007Data.md +15 -0
- data/docs/InlineResponse2007Usage.md +7 -0
- data/docs/InlineResponse2007UsageTrailingSevenDays.md +8 -0
- data/docs/InlineResponse2008.md +8 -0
- data/docs/InlineResponse2008Data.md +12 -0
- data/docs/InlineResponse2009.md +7 -0
- data/docs/InlineResponse200Choices.md +11 -0
- data/docs/InlineResponse200Logprobs.md +10 -0
- data/docs/InlineResponse200LogprobsTopLogprobs.md +9 -0
- data/docs/InlineResponse200Usage.md +10 -0
- data/docs/InlineResponse200VeniceParameters.md +13 -0
- data/docs/InlineResponse200VeniceParametersWebSearchCitations.md +10 -0
- data/docs/InlineResponse400.md +8 -0
- data/docs/InlineResponse401.md +7 -0
- data/docs/InlineResponse402.md +7 -0
- data/docs/InlineResponse403.md +7 -0
- data/docs/InlineResponse415.md +7 -0
- data/docs/InlineResponse429.md +7 -0
- data/docs/InlineResponse500.md +7 -0
- data/docs/InlineResponse5001.md +7 -0
- data/docs/InlineResponse503.md +7 -0
- data/docs/ModelCompatibilitySchema.md +6 -0
- data/docs/ModelResponse.md +12 -0
- data/docs/ModelResponseModelSpec.md +15 -0
- data/docs/ModelResponseModelSpecCapabilities.md +14 -0
- data/docs/ModelTraitSchema.md +6 -0
- data/docs/ModelsApi.md +160 -0
- data/docs/OneOfChatCompletionRequestResponseFormat.md +6 -0
- data/docs/PreviewApi.md +52 -0
- data/docs/SimpleGenerateImageRequest.md +18 -0
- data/docs/SpeechApi.md +58 -0
- data/docs/ToolCall.md +9 -0
- data/docs/Type.md +6 -0
- data/docs/UpscaleImageRequest.md +12 -0
- data/git_push.sh +55 -0
- data/lib/venice_client/api/api_keys_api.rb +381 -0
- data/lib/venice_client/api/audio_api.rb +74 -0
- data/lib/venice_client/api/billing_api.rb +97 -0
- data/lib/venice_client/api/characters_api.rb +70 -0
- data/lib/venice_client/api/chat_api.rb +77 -0
- data/lib/venice_client/api/embeddings_api.rb +81 -0
- data/lib/venice_client/api/image_api.rb +314 -0
- data/lib/venice_client/api/models_api.rb +185 -0
- data/lib/venice_client/api/preview_api.rb +70 -0
- data/lib/venice_client/api/speech_api.rb +74 -0
- data/lib/venice_client/api_client.rb +388 -0
- data/lib/venice_client/api_error.rb +56 -0
- data/lib/venice_client/configuration.rb +204 -0
- data/lib/venice_client/models/any_of_chat_completion_request_messages_items.rb +197 -0
- data/lib/venice_client/models/any_of_chat_completion_request_stop.rb +197 -0
- data/lib/venice_client/models/any_of_chat_completion_request_tool_choice.rb +197 -0
- data/lib/venice_client/models/any_of_create_embedding_request_schema_input.rb +197 -0
- data/lib/venice_client/models/any_of_create_embedding_request_schema_model.rb +197 -0
- data/lib/venice_client/models/any_of_model_response_model_spec_constraints.rb +197 -0
- data/lib/venice_client/models/any_of_model_response_model_spec_pricing.rb +197 -0
- data/lib/venice_client/models/any_of_upscale_image_request_enhance.rb +197 -0
- data/lib/venice_client/models/any_of_upscale_image_request_image.rb +197 -0
- data/lib/venice_client/models/any_ofapi_keys_body_expires_at.rb +197 -0
- data/lib/venice_client/models/any_ofapi_keys_consumption_limit_usd.rb +197 -0
- data/lib/venice_client/models/any_ofapi_keys_consumption_limit_vcu.rb +195 -0
- data/lib/venice_client/models/any_ofapi_keys_generate_web3_key_body_expires_at.rb +197 -0
- data/lib/venice_client/models/any_ofinline_response_200_2_data_items.rb +197 -0
- data/lib/venice_client/models/any_ofinline_response_200_4_type.rb +197 -0
- data/lib/venice_client/models/any_ofinline_response_200_5_type.rb +197 -0
- data/lib/venice_client/models/any_ofinline_response_200_6_type.rb +197 -0
- data/lib/venice_client/models/any_ofinline_response_200_choices_message.rb +197 -0
- data/lib/venice_client/models/any_ofinline_response_200_prompt_logprobs.rb +197 -0
- data/lib/venice_client/models/api_keys_body.rb +281 -0
- data/lib/venice_client/models/api_keys_consumption_limit.rb +228 -0
- data/lib/venice_client/models/api_keys_generate_web3_key_body.rb +322 -0
- data/lib/venice_client/models/billing_usage_request.rb +309 -0
- data/lib/venice_client/models/billing_usage_response.rb +228 -0
- data/lib/venice_client/models/billing_usage_response_data.rb +350 -0
- data/lib/venice_client/models/billing_usage_response_inference_details.rb +262 -0
- data/lib/venice_client/models/billing_usage_response_pagination.rb +253 -0
- data/lib/venice_client/models/chat_completion_request.rb +483 -0
- data/lib/venice_client/models/chat_completion_request_function.rb +231 -0
- data/lib/venice_client/models/chat_completion_request_stream_options.rb +207 -0
- data/lib/venice_client/models/chat_completion_request_venice_parameters.rb +302 -0
- data/lib/venice_client/models/create_embedding_request_schema.rb +294 -0
- data/lib/venice_client/models/create_speech_request_schema.rb +331 -0
- data/lib/venice_client/models/generate_image_request.rb +420 -0
- data/lib/venice_client/models/inline_response_200.rb +341 -0
- data/lib/venice_client/models/inline_response_200_1.rb +254 -0
- data/lib/venice_client/models/inline_response_200_10.rb +211 -0
- data/lib/venice_client/models/inline_response_200_10_data.rb +287 -0
- data/lib/venice_client/models/inline_response_200_10_data_api_tier.rb +227 -0
- data/lib/venice_client/models/inline_response_200_10_data_balances.rb +217 -0
- data/lib/venice_client/models/inline_response_200_10_data_rate_limits.rb +227 -0
- data/lib/venice_client/models/inline_response_200_10_data_rate_limits_1.rb +223 -0
- data/lib/venice_client/models/inline_response_200_11.rb +262 -0
- data/lib/venice_client/models/inline_response_200_11_data.rb +274 -0
- data/lib/venice_client/models/inline_response_200_12.rb +225 -0
- data/lib/venice_client/models/inline_response_200_12_data.rb +212 -0
- data/lib/venice_client/models/inline_response_200_13.rb +261 -0
- data/lib/venice_client/models/inline_response_200_13_data.rb +350 -0
- data/lib/venice_client/models/inline_response_200_13_stats.rb +212 -0
- data/lib/venice_client/models/inline_response_200_14.rb +292 -0
- data/lib/venice_client/models/inline_response_200_14_data.rb +278 -0
- data/lib/venice_client/models/inline_response_200_14_usage.rb +228 -0
- data/lib/venice_client/models/inline_response_200_15.rb +228 -0
- data/lib/venice_client/models/inline_response_200_1_timing.rb +257 -0
- data/lib/venice_client/models/inline_response_200_2.rb +228 -0
- data/lib/venice_client/models/inline_response_200_3.rb +262 -0
- data/lib/venice_client/models/inline_response_200_4.rb +277 -0
- data/lib/venice_client/models/inline_response_200_5.rb +274 -0
- data/lib/venice_client/models/inline_response_200_6.rb +274 -0
- data/lib/venice_client/models/inline_response_200_7.rb +262 -0
- data/lib/venice_client/models/inline_response_200_7_data.rb +357 -0
- data/lib/venice_client/models/inline_response_200_7_usage.rb +211 -0
- data/lib/venice_client/models/inline_response_200_7_usage_trailing_seven_days.rb +227 -0
- data/lib/venice_client/models/inline_response_200_8.rb +225 -0
- data/lib/venice_client/models/inline_response_200_8_data.rb +316 -0
- data/lib/venice_client/models/inline_response_200_9.rb +211 -0
- data/lib/venice_client/models/inline_response_200_choices.rb +312 -0
- data/lib/venice_client/models/inline_response_200_logprobs.rb +251 -0
- data/lib/venice_client/models/inline_response_200_logprobs_top_logprobs.rb +236 -0
- data/lib/venice_client/models/inline_response_200_usage.rb +253 -0
- data/lib/venice_client/models/inline_response_200_venice_parameters.rb +329 -0
- data/lib/venice_client/models/inline_response_200_venice_parameters_web_search_citations.rb +243 -0
- data/lib/venice_client/models/inline_response_400.rb +222 -0
- data/lib/venice_client/models/inline_response_401.rb +212 -0
- data/lib/venice_client/models/inline_response_402.rb +212 -0
- data/lib/venice_client/models/inline_response_403.rb +212 -0
- data/lib/venice_client/models/inline_response_415.rb +212 -0
- data/lib/venice_client/models/inline_response_429.rb +212 -0
- data/lib/venice_client/models/inline_response_500.rb +212 -0
- data/lib/venice_client/models/inline_response_500_1.rb +212 -0
- data/lib/venice_client/models/inline_response_503.rb +212 -0
- data/lib/venice_client/models/model_compatibility_schema.rb +202 -0
- data/lib/venice_client/models/model_response.rb +340 -0
- data/lib/venice_client/models/model_response_model_spec.rb +292 -0
- data/lib/venice_client/models/model_response_model_spec_capabilities.rb +352 -0
- data/lib/venice_client/models/model_trait_schema.rb +200 -0
- data/lib/venice_client/models/one_of_chat_completion_request_response_format.rb +197 -0
- data/lib/venice_client/models/simple_generate_image_request.rb +456 -0
- data/lib/venice_client/models/tool_call.rb +230 -0
- data/lib/venice_client/models/type.rb +198 -0
- data/lib/venice_client/models/upscale_image_request.rb +270 -0
- data/lib/venice_client/version.rb +14 -0
- data/lib/venice_client.rb +139 -0
- data/spec/api/api_keys_api_spec.rb +113 -0
- data/spec/api/audio_api_spec.rb +45 -0
- data/spec/api/billing_api_spec.rb +51 -0
- data/spec/api/characters_api_spec.rb +44 -0
- data/spec/api/chat_api_spec.rb +46 -0
- data/spec/api/embeddings_api_spec.rb +46 -0
- data/spec/api/image_api_spec.rb +99 -0
- data/spec/api/models_api_spec.rb +69 -0
- data/spec/api/preview_api_spec.rb +44 -0
- data/spec/api/speech_api_spec.rb +45 -0
- data/spec/api_client_spec.rb +225 -0
- data/spec/base_object_spec.rb +109 -0
- data/spec/configuration_spec.rb +41 -0
- data/spec/models/any_of_chat_completion_request_messages_items_spec.rb +34 -0
- data/spec/models/any_of_chat_completion_request_stop_spec.rb +34 -0
- data/spec/models/any_of_chat_completion_request_tool_choice_spec.rb +34 -0
- data/spec/models/any_of_create_embedding_request_schema_input_spec.rb +34 -0
- data/spec/models/any_of_create_embedding_request_schema_model_spec.rb +34 -0
- data/spec/models/any_of_model_response_model_spec_constraints_spec.rb +34 -0
- data/spec/models/any_of_model_response_model_spec_pricing_spec.rb +34 -0
- data/spec/models/any_of_upscale_image_request_enhance_spec.rb +34 -0
- data/spec/models/any_of_upscale_image_request_image_spec.rb +34 -0
- data/spec/models/any_ofapi_keys_body_expires_at_spec.rb +34 -0
- data/spec/models/any_ofapi_keys_consumption_limit_usd_spec.rb +34 -0
- data/spec/models/any_ofapi_keys_consumption_limit_vcu_spec.rb +34 -0
- data/spec/models/any_ofapi_keys_generate_web3_key_body_expires_at_spec.rb +34 -0
- data/spec/models/any_ofinline_response_200_2_data_items_spec.rb +34 -0
- data/spec/models/any_ofinline_response_200_4_type_spec.rb +34 -0
- data/spec/models/any_ofinline_response_200_5_type_spec.rb +34 -0
- data/spec/models/any_ofinline_response_200_6_type_spec.rb +34 -0
- data/spec/models/any_ofinline_response_200_choices_message_spec.rb +34 -0
- data/spec/models/any_ofinline_response_200_prompt_logprobs_spec.rb +34 -0
- data/spec/models/api_keys_body_spec.rb +61 -0
- data/spec/models/api_keys_consumption_limit_spec.rb +46 -0
- data/spec/models/api_keys_generate_web3_key_body_spec.rb +80 -0
- data/spec/models/billing_usage_request_spec.rb +78 -0
- data/spec/models/billing_usage_response_data_spec.rb +86 -0
- data/spec/models/billing_usage_response_inference_details_spec.rb +57 -0
- data/spec/models/billing_usage_response_pagination_spec.rb +58 -0
- data/spec/models/billing_usage_response_spec.rb +46 -0
- data/spec/models/chat_completion_request_function_spec.rb +52 -0
- data/spec/models/chat_completion_request_spec.rb +189 -0
- data/spec/models/chat_completion_request_stream_options_spec.rb +40 -0
- data/spec/models/chat_completion_request_venice_parameters_spec.rb +73 -0
- data/spec/models/create_embedding_request_schema_spec.rb +68 -0
- data/spec/models/create_speech_request_schema_spec.rb +81 -0
- data/spec/models/generate_image_request_spec.rb +134 -0
- data/spec/models/inline_response_200_10_data_api_tier_spec.rb +45 -0
- data/spec/models/inline_response_200_10_data_balances_spec.rb +45 -0
- data/spec/models/inline_response_200_10_data_rate_limits_1_spec.rb +45 -0
- data/spec/models/inline_response_200_10_data_rate_limits_spec.rb +46 -0
- data/spec/models/inline_response_200_10_data_spec.rb +69 -0
- data/spec/models/inline_response_200_10_spec.rb +40 -0
- data/spec/models/inline_response_200_11_data_spec.rb +64 -0
- data/spec/models/inline_response_200_11_spec.rb +50 -0
- data/spec/models/inline_response_200_12_data_spec.rb +39 -0
- data/spec/models/inline_response_200_12_spec.rb +46 -0
- data/spec/models/inline_response_200_13_data_spec.rb +93 -0
- data/spec/models/inline_response_200_13_spec.rb +49 -0
- data/spec/models/inline_response_200_13_stats_spec.rb +40 -0
- data/spec/models/inline_response_200_14_data_spec.rb +55 -0
- data/spec/models/inline_response_200_14_spec.rb +61 -0
- data/spec/models/inline_response_200_14_usage_spec.rb +45 -0
- data/spec/models/inline_response_200_15_spec.rb +45 -0
- data/spec/models/inline_response_200_1_spec.rb +57 -0
- data/spec/models/inline_response_200_1_timing_spec.rb +58 -0
- data/spec/models/inline_response_200_2_spec.rb +46 -0
- data/spec/models/inline_response_200_3_spec.rb +50 -0
- data/spec/models/inline_response_200_4_spec.rb +55 -0
- data/spec/models/inline_response_200_5_spec.rb +55 -0
- data/spec/models/inline_response_200_6_spec.rb +55 -0
- data/spec/models/inline_response_200_7_data_spec.rb +91 -0
- data/spec/models/inline_response_200_7_spec.rb +50 -0
- data/spec/models/inline_response_200_7_usage_spec.rb +39 -0
- data/spec/models/inline_response_200_7_usage_trailing_seven_days_spec.rb +45 -0
- data/spec/models/inline_response_200_8_data_spec.rb +73 -0
- data/spec/models/inline_response_200_8_spec.rb +45 -0
- data/spec/models/inline_response_200_9_spec.rb +39 -0
- data/spec/models/inline_response_200_choices_spec.rb +72 -0
- data/spec/models/inline_response_200_logprobs_spec.rb +57 -0
- data/spec/models/inline_response_200_logprobs_top_logprobs_spec.rb +51 -0
- data/spec/models/inline_response_200_spec.rb +85 -0
- data/spec/models/inline_response_200_usage_spec.rb +57 -0
- data/spec/models/inline_response_200_venice_parameters_spec.rb +80 -0
- data/spec/models/inline_response_200_venice_parameters_web_search_citations_spec.rb +57 -0
- data/spec/models/inline_response_400_spec.rb +45 -0
- data/spec/models/inline_response_401_spec.rb +39 -0
- data/spec/models/inline_response_402_spec.rb +39 -0
- data/spec/models/inline_response_403_spec.rb +40 -0
- data/spec/models/inline_response_415_spec.rb +40 -0
- data/spec/models/inline_response_429_spec.rb +39 -0
- data/spec/models/inline_response_500_1_spec.rb +40 -0
- data/spec/models/inline_response_500_spec.rb +39 -0
- data/spec/models/inline_response_503_spec.rb +40 -0
- data/spec/models/model_compatibility_schema_spec.rb +34 -0
- data/spec/models/model_response_model_spec_capabilities_spec.rb +85 -0
- data/spec/models/model_response_model_spec_spec.rb +87 -0
- data/spec/models/model_response_spec.rb +81 -0
- data/spec/models/model_trait_schema_spec.rb +34 -0
- data/spec/models/one_of_chat_completion_request_response_format_spec.rb +34 -0
- data/spec/models/simple_generate_image_request_spec.rb +134 -0
- data/spec/models/tool_call_spec.rb +51 -0
- data/spec/models/type_spec.rb +34 -0
- data/spec/models/upscale_image_request_spec.rb +69 -0
- data/spec/spec_helper.rb +110 -0
- data/venice_client.gemspec +38 -0
- 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,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
|
+
|