venice_client 1.0.5 → 1.0.7
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 +4 -4
- data/.gitignore +2 -0
- data/.openapi-generator/FILES +18 -147
- data/Gemfile.lock +94 -0
- data/README.md +10 -11
- data/docs/APIKeysApi.md +70 -0
- data/docs/AssistantMessage.md +1 -1
- data/docs/BillingUsageResponse.md +2 -0
- data/docs/CharactersApi.md +70 -0
- data/docs/ChatCompletionRequestVeniceParameters.md +7 -5
- data/docs/CreateChatCompletion200ResponseVeniceParameters.md +2 -0
- data/docs/DetailedError.md +20 -0
- data/docs/EditImageRequest.md +1 -1
- data/docs/EditImageRequestImage.md +15 -0
- data/docs/GenerateImageRequest.md +3 -1
- data/docs/GetApiKeyById200Response.md +18 -0
- data/docs/GetApiKeyById200ResponseData.md +34 -0
- data/docs/GetApiKeyRateLimits200Response.md +2 -0
- data/docs/GetBillingUsage200Response.md +2 -0
- data/docs/GetCharacterBySlug200Response.md +20 -0
- data/docs/ImageApi.md +1 -1
- data/docs/ListCharacters200ResponseDataInner.md +5 -1
- data/docs/PreviewApi.md +70 -0
- data/docs/StandardError.md +18 -0
- data/docs/ToolCallFunction.md +3 -1
- data/lib/venice_client/api/api_keys_api.rb +64 -1
- data/lib/venice_client/api/audio_api.rb +1 -1
- data/lib/venice_client/api/billing_api.rb +1 -1
- data/lib/venice_client/api/characters_api.rb +64 -1
- data/lib/venice_client/api/chat_api.rb +1 -1
- data/lib/venice_client/api/embeddings_api.rb +1 -1
- data/lib/venice_client/api/image_api.rb +1 -1
- data/lib/venice_client/api/models_api.rb +1 -1
- data/lib/venice_client/api/preview_api.rb +64 -1
- data/lib/venice_client/api/speech_api.rb +1 -1
- data/lib/venice_client/api_client.rb +1 -1
- data/lib/venice_client/api_error.rb +1 -1
- data/lib/venice_client/configuration.rb +1 -1
- data/lib/venice_client/models/assistant_message.rb +3 -4
- data/lib/venice_client/models/assistant_message_content.rb +1 -1
- data/lib/venice_client/models/audio_model_pricing.rb +1 -1
- data/lib/venice_client/models/audio_model_pricing_input.rb +1 -1
- data/lib/venice_client/models/billing_usage_request.rb +1 -1
- data/lib/venice_client/models/billing_usage_response.rb +12 -2
- data/lib/venice_client/models/chat_completion_request.rb +1 -1
- data/lib/venice_client/models/chat_completion_request_messages_inner.rb +1 -1
- data/lib/venice_client/models/chat_completion_request_response_format.rb +1 -1
- data/lib/venice_client/models/chat_completion_request_stop.rb +1 -1
- data/lib/venice_client/models/chat_completion_request_stream_options.rb +1 -1
- data/lib/venice_client/models/chat_completion_request_tool_choice.rb +1 -1
- data/lib/venice_client/models/chat_completion_request_tool_choice_any_of.rb +1 -1
- data/lib/venice_client/models/chat_completion_request_tool_choice_any_of_function.rb +1 -1
- data/lib/venice_client/models/chat_completion_request_venice_parameters.rb +34 -21
- data/lib/venice_client/models/create_api_key200_response.rb +1 -1
- data/lib/venice_client/models/create_api_key200_response_data.rb +1 -1
- data/lib/venice_client/models/create_api_key_request.rb +2 -2
- data/lib/venice_client/models/create_api_key_request_expires_at.rb +1 -1
- data/lib/venice_client/models/create_chat_completion200_response.rb +1 -1
- data/lib/venice_client/models/create_chat_completion200_response_choices_inner.rb +1 -1
- data/lib/venice_client/models/create_chat_completion200_response_choices_inner_logprobs.rb +1 -1
- data/lib/venice_client/models/create_chat_completion200_response_choices_inner_logprobs_top_logprobs_inner.rb +1 -1
- data/lib/venice_client/models/create_chat_completion200_response_choices_inner_message.rb +1 -1
- data/lib/venice_client/models/create_chat_completion200_response_usage.rb +1 -1
- data/lib/venice_client/models/create_chat_completion200_response_venice_parameters.rb +54 -24
- data/lib/venice_client/models/create_chat_completion200_response_venice_parameters_web_search_citations_inner.rb +1 -1
- data/lib/venice_client/models/create_embedding200_response.rb +1 -1
- data/lib/venice_client/models/create_embedding200_response_data_inner.rb +1 -1
- data/lib/venice_client/models/create_embedding200_response_usage.rb +1 -1
- data/lib/venice_client/models/create_embedding_request_schema.rb +1 -1
- data/lib/venice_client/models/create_embedding_request_schema_input.rb +1 -1
- data/lib/venice_client/models/create_embedding_request_schema_model.rb +1 -1
- data/lib/venice_client/models/create_speech_request_schema.rb +1 -1
- data/lib/venice_client/models/delete_api_key200_response.rb +1 -1
- data/lib/venice_client/models/detailed_error.rb +248 -0
- data/lib/venice_client/models/edit_image_request.rb +2 -2
- data/lib/venice_client/models/edit_image_request_image.rb +104 -0
- data/lib/venice_client/models/generate_image200_response.rb +1 -1
- data/lib/venice_client/models/generate_image200_response_timing.rb +1 -1
- data/lib/venice_client/models/generate_image_request.rb +41 -3
- data/lib/venice_client/models/get_api_key_by_id200_response.rb +237 -0
- data/lib/venice_client/models/get_api_key_by_id200_response_data.rb +401 -0
- data/lib/venice_client/models/get_api_key_generate_web3_key200_response.rb +1 -1
- data/lib/venice_client/models/get_api_key_generate_web3_key200_response_data.rb +1 -1
- data/lib/venice_client/models/get_api_key_rate_limit_logs200_response.rb +1 -1
- data/lib/venice_client/models/get_api_key_rate_limit_logs200_response_data_inner.rb +1 -1
- data/lib/venice_client/models/get_api_key_rate_limits200_response.rb +12 -2
- data/lib/venice_client/models/get_api_key_rate_limits200_response_data.rb +1 -1
- data/lib/venice_client/models/get_api_key_rate_limits200_response_data_api_tier.rb +1 -1
- data/lib/venice_client/models/get_api_key_rate_limits200_response_data_balances.rb +1 -1
- data/lib/venice_client/models/get_api_key_rate_limits200_response_data_rate_limits_inner.rb +1 -1
- data/lib/venice_client/models/get_api_key_rate_limits200_response_data_rate_limits_inner_rate_limits_inner.rb +1 -1
- data/lib/venice_client/models/get_api_keys200_response.rb +1 -1
- data/lib/venice_client/models/get_api_keys200_response_data_inner.rb +1 -1
- data/lib/venice_client/models/get_api_keys200_response_data_inner_consumption_limits.rb +1 -1
- data/lib/venice_client/models/get_api_keys200_response_data_inner_usage.rb +1 -1
- data/lib/venice_client/models/get_api_keys200_response_data_inner_usage_trailing_seven_days.rb +1 -1
- data/lib/venice_client/models/get_billing_usage200_response.rb +12 -2
- data/lib/venice_client/models/get_billing_usage200_response_data_inner.rb +1 -1
- data/lib/venice_client/models/get_billing_usage200_response_data_inner_inference_details.rb +1 -1
- data/lib/venice_client/models/get_billing_usage200_response_pagination.rb +1 -1
- data/lib/venice_client/models/get_character_by_slug200_response.rb +287 -0
- data/lib/venice_client/models/image_model_constraints.rb +1 -1
- data/lib/venice_client/models/image_model_constraints_steps.rb +1 -1
- data/lib/venice_client/models/image_model_pricing.rb +1 -1
- data/lib/venice_client/models/image_model_pricing_generation.rb +1 -1
- data/lib/venice_client/models/image_model_pricing_upscale.rb +1 -1
- data/lib/venice_client/models/image_model_pricing_upscale2x.rb +1 -1
- data/lib/venice_client/models/image_model_pricing_upscale4x.rb +1 -1
- data/lib/venice_client/models/image_styles_get200_response.rb +1 -1
- data/lib/venice_client/models/image_url.rb +1 -1
- data/lib/venice_client/models/image_url_object.rb +1 -1
- data/lib/venice_client/models/json_object.rb +1 -1
- data/lib/venice_client/models/json_schema.rb +1 -1
- data/lib/venice_client/models/list_characters200_response.rb +1 -1
- data/lib/venice_client/models/list_characters200_response_data_inner.rb +45 -5
- data/lib/venice_client/models/list_characters200_response_data_inner_stats.rb +1 -1
- data/lib/venice_client/models/list_model_compatibility_mapping200_response.rb +1 -1
- data/lib/venice_client/models/list_model_traits200_response.rb +1 -1
- data/lib/venice_client/models/list_models200_response.rb +1 -1
- data/lib/venice_client/models/list_models200_response_type.rb +1 -1
- data/lib/venice_client/models/list_models_type_parameter.rb +1 -1
- data/lib/venice_client/models/llm_model_pricing.rb +1 -1
- data/lib/venice_client/models/llm_model_pricing_input.rb +1 -1
- data/lib/venice_client/models/llm_model_pricing_output.rb +1 -1
- data/lib/venice_client/models/model_response.rb +1 -1
- data/lib/venice_client/models/model_response_model_spec.rb +1 -1
- data/lib/venice_client/models/model_response_model_spec_capabilities.rb +3 -3
- data/lib/venice_client/models/model_response_model_spec_constraints.rb +1 -1
- data/lib/venice_client/models/model_response_model_spec_pricing.rb +1 -1
- data/lib/venice_client/models/objects_inner.rb +1 -1
- data/lib/venice_client/models/post_api_key_generate_web3_key_request.rb +1 -1
- data/lib/venice_client/models/simple_generate_image200_response.rb +1 -1
- data/lib/venice_client/models/simple_generate_image200_response_data_inner.rb +1 -1
- data/lib/venice_client/models/simple_generate_image200_response_data_inner_any_of.rb +1 -1
- data/lib/venice_client/models/simple_generate_image200_response_data_inner_any_of1.rb +1 -1
- data/lib/venice_client/models/simple_generate_image_request.rb +1 -1
- data/lib/venice_client/models/standard_error.rb +238 -0
- data/lib/venice_client/models/system_message.rb +1 -1
- data/lib/venice_client/models/system_message_content.rb +1 -1
- data/lib/venice_client/models/text.rb +1 -1
- data/lib/venice_client/models/text_model_constraints.rb +1 -1
- data/lib/venice_client/models/text_model_constraints_temperature.rb +1 -1
- data/lib/venice_client/models/text_model_constraints_top_p.rb +1 -1
- data/lib/venice_client/models/tool_call.rb +1 -1
- data/lib/venice_client/models/tool_call_function.rb +17 -5
- data/lib/venice_client/models/tool_message.rb +2 -1
- data/lib/venice_client/models/upscale_image_request.rb +1 -1
- data/lib/venice_client/models/upscale_image_request_enhance.rb +1 -1
- data/lib/venice_client/models/user_message.rb +1 -1
- data/lib/venice_client/models/user_message_content.rb +1 -1
- data/lib/venice_client/version.rb +2 -2
- data/lib/venice_client.rb +7 -11
- data/package-lock.json +2159 -0
- data/package.json +5 -0
- data/spec/models/detailed_error_spec.rb +42 -0
- data/spec/models/edit_image_request_image_spec.rb +21 -0
- data/spec/models/get_api_key_by_id200_response_data_spec.rb +88 -0
- data/spec/models/get_api_key_by_id200_response_spec.rb +36 -0
- data/spec/models/get_character_by_slug200_response_spec.rb +46 -0
- data/spec/models/standard_error_spec.rb +36 -0
- data/spec/spec_helper.rb +1 -1
- data/swagger.yaml +513 -714
- metadata +28 -1
data/swagger.yaml
CHANGED
|
@@ -5,7 +5,7 @@ info:
|
|
|
5
5
|
description: The Venice.ai API.
|
|
6
6
|
termsOfService: https://venice.ai/legal/tos
|
|
7
7
|
title: Venice.ai API
|
|
8
|
-
version: "
|
|
8
|
+
version: "20250918.173746"
|
|
9
9
|
openapi: 3.0.0
|
|
10
10
|
security:
|
|
11
11
|
- BearerAuth: []
|
|
@@ -19,6 +19,8 @@ tags:
|
|
|
19
19
|
name: Models
|
|
20
20
|
- description: Generate and manipulate images using AI models.
|
|
21
21
|
name: Image
|
|
22
|
+
- description: List and retrieve character information for use in completions.
|
|
23
|
+
name: Characters
|
|
22
24
|
components:
|
|
23
25
|
securitySchemes:
|
|
24
26
|
BearerAuth:
|
|
@@ -26,6 +28,31 @@ components:
|
|
|
26
28
|
scheme: bearer
|
|
27
29
|
type: http
|
|
28
30
|
schemas:
|
|
31
|
+
StandardError:
|
|
32
|
+
type: object
|
|
33
|
+
properties:
|
|
34
|
+
error:
|
|
35
|
+
type: string
|
|
36
|
+
description: A description of the error
|
|
37
|
+
required:
|
|
38
|
+
- error
|
|
39
|
+
DetailedError:
|
|
40
|
+
type: object
|
|
41
|
+
properties:
|
|
42
|
+
details:
|
|
43
|
+
type: object
|
|
44
|
+
properties: {}
|
|
45
|
+
description: Details about the incorrect input
|
|
46
|
+
example:
|
|
47
|
+
_errors: []
|
|
48
|
+
field:
|
|
49
|
+
_errors:
|
|
50
|
+
- Field is required
|
|
51
|
+
error:
|
|
52
|
+
type: string
|
|
53
|
+
description: A description of the error
|
|
54
|
+
required:
|
|
55
|
+
- error
|
|
29
56
|
ChatCompletionRequest:
|
|
30
57
|
type: object
|
|
31
58
|
properties:
|
|
@@ -182,12 +209,13 @@ components:
|
|
|
182
209
|
- assistant
|
|
183
210
|
tool_calls:
|
|
184
211
|
type: array
|
|
212
|
+
nullable: true
|
|
185
213
|
items:
|
|
186
214
|
nullable: true
|
|
187
215
|
required:
|
|
188
|
-
- content
|
|
189
216
|
- role
|
|
190
|
-
description: The assistant message contains the response from the LLM.
|
|
217
|
+
description: The assistant message contains the response from the LLM. Must have
|
|
218
|
+
either content or tool_calls.
|
|
191
219
|
title: Assistant Message
|
|
192
220
|
- type: object
|
|
193
221
|
properties:
|
|
@@ -206,6 +234,7 @@ components:
|
|
|
206
234
|
type: string
|
|
207
235
|
tool_calls:
|
|
208
236
|
type: array
|
|
237
|
+
nullable: true
|
|
209
238
|
items:
|
|
210
239
|
nullable: true
|
|
211
240
|
required:
|
|
@@ -384,8 +413,8 @@ components:
|
|
|
384
413
|
properties:
|
|
385
414
|
character_slug:
|
|
386
415
|
type: string
|
|
387
|
-
description: The character slug of a public Venice character.
|
|
388
|
-
|
|
416
|
+
description: The character slug of a public Venice character. Discoverable as
|
|
417
|
+
the "Public ID" on the published character page.
|
|
389
418
|
strip_thinking_response:
|
|
390
419
|
type: boolean
|
|
391
420
|
default: false
|
|
@@ -411,26 +440,30 @@ components:
|
|
|
411
440
|
model's discretion. Citations will be returned either in the
|
|
412
441
|
first chunk of a streaming result, or in the non streaming
|
|
413
442
|
response.
|
|
414
|
-
example:
|
|
443
|
+
example: off
|
|
415
444
|
enable_web_citations:
|
|
416
445
|
type: boolean
|
|
417
446
|
default: false
|
|
418
447
|
description: When web search is enabled, this will request that the LLM cite its
|
|
419
448
|
sources using a [REF]0[/REF] format. Defaults to false.
|
|
420
|
-
example: true
|
|
421
449
|
include_search_results_in_stream:
|
|
422
450
|
type: boolean
|
|
423
451
|
default: false
|
|
424
452
|
description: Experimental feature - When set to true, the LLM will include
|
|
425
453
|
search results in the stream as the first emitted chunk.
|
|
426
454
|
Defaults to false.
|
|
427
|
-
|
|
455
|
+
return_search_results_as_documents:
|
|
456
|
+
type: boolean
|
|
457
|
+
description: When set, search results are also surfaced in an OpenAI-compatible
|
|
458
|
+
tool call named "venice_web_search_documents" to ease LangChain
|
|
459
|
+
consumption.
|
|
428
460
|
include_venice_system_prompt:
|
|
429
461
|
type: boolean
|
|
430
462
|
default: true
|
|
431
463
|
description: Whether to include the Venice supplied system prompts along side
|
|
432
464
|
specified system prompts. Defaults to true.
|
|
433
|
-
description: Unique parameters to Venice's API implementation.
|
|
465
|
+
description: Unique parameters to Venice's API implementation. Customize these
|
|
466
|
+
to control the behavior of the model.
|
|
434
467
|
parallel_tool_calls:
|
|
435
468
|
type: boolean
|
|
436
469
|
default: true
|
|
@@ -516,6 +549,13 @@ components:
|
|
|
516
549
|
type: object
|
|
517
550
|
additionalProperties:
|
|
518
551
|
nullable: true
|
|
552
|
+
strict:
|
|
553
|
+
type: boolean
|
|
554
|
+
default: false
|
|
555
|
+
description: If set to true, the model will follow the exact schema defined in
|
|
556
|
+
the parameters field. Only a subset of JSON Schema is
|
|
557
|
+
supported when strict is true.
|
|
558
|
+
example: false
|
|
519
559
|
required:
|
|
520
560
|
- name
|
|
521
561
|
additionalProperties: false
|
|
@@ -613,6 +653,13 @@ components:
|
|
|
613
653
|
default: false
|
|
614
654
|
description: Whether to return binary image data instead of base64.
|
|
615
655
|
example: false
|
|
656
|
+
variants:
|
|
657
|
+
type: integer
|
|
658
|
+
minimum: 1
|
|
659
|
+
maximum: 4
|
|
660
|
+
description: Number of images to generate (1–4). Only supported when
|
|
661
|
+
return_binary is false.
|
|
662
|
+
example: 3
|
|
616
663
|
safe_mode:
|
|
617
664
|
type: boolean
|
|
618
665
|
default: true
|
|
@@ -635,11 +682,12 @@ components:
|
|
|
635
682
|
default: 20
|
|
636
683
|
description: "Number of inference steps. The following models have reduced max
|
|
637
684
|
steps from the global max: venice-sd35: 30 max steps, hidream: 50
|
|
638
|
-
max steps,
|
|
639
|
-
flux-dev-uncensored
|
|
640
|
-
|
|
641
|
-
stable-diffusion-3.5: 30 max steps
|
|
642
|
-
the model list endpoint
|
|
685
|
+
max steps, flux.1-krea: 30 max steps, flux-dev: 30 max steps,
|
|
686
|
+
flux-dev-uncensored: 30 max steps, lustify-sdxl: 50 max steps,
|
|
687
|
+
lustify-v7: 25 max steps, pony-realism: 50 max steps, qwen-image: 8
|
|
688
|
+
max steps, stable-diffusion-3.5: 30 max steps, wai-Illustrious: 30
|
|
689
|
+
max steps. These constraints are exposed in the model list endpoint
|
|
690
|
+
for each model."
|
|
643
691
|
example: 20
|
|
644
692
|
style_preset:
|
|
645
693
|
type: string
|
|
@@ -864,9 +912,12 @@ components:
|
|
|
864
912
|
anyOf:
|
|
865
913
|
- {}
|
|
866
914
|
- type: string
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
915
|
+
- type: string
|
|
916
|
+
format: uri
|
|
917
|
+
description: The image to edit. Can be either a file upload, a base64-encoded
|
|
918
|
+
string, or a URL starting with http:// or https://. Image dimensions
|
|
919
|
+
must be at least 65536 pixels and must not exceed 33177600 pixels.
|
|
920
|
+
Image URLs must be less than 10MB.
|
|
870
921
|
required:
|
|
871
922
|
- prompt
|
|
872
923
|
- image
|
|
@@ -1131,6 +1182,10 @@ components:
|
|
|
1131
1182
|
BillingUsageResponse:
|
|
1132
1183
|
type: object
|
|
1133
1184
|
properties:
|
|
1185
|
+
warningMessage:
|
|
1186
|
+
type: string
|
|
1187
|
+
description: A warning message to disambiguate DIEM usage from legacy DIEM
|
|
1188
|
+
(formerly VCU) usage
|
|
1134
1189
|
data:
|
|
1135
1190
|
type: array
|
|
1136
1191
|
items:
|
|
@@ -1283,6 +1338,7 @@ components:
|
|
|
1283
1338
|
enum:
|
|
1284
1339
|
- fp8
|
|
1285
1340
|
- fp16
|
|
1341
|
+
- bf16
|
|
1286
1342
|
- not-available
|
|
1287
1343
|
description: The quantization type of the running model.
|
|
1288
1344
|
example: fp8
|
|
@@ -1793,12 +1849,13 @@ paths:
|
|
|
1793
1849
|
- assistant
|
|
1794
1850
|
tool_calls:
|
|
1795
1851
|
type: array
|
|
1852
|
+
nullable: true
|
|
1796
1853
|
items:
|
|
1797
1854
|
nullable: true
|
|
1798
1855
|
required:
|
|
1799
|
-
- content
|
|
1800
1856
|
- role
|
|
1801
|
-
description: The assistant message contains the response from the LLM.
|
|
1857
|
+
description: The assistant message contains the response from the LLM. Must have
|
|
1858
|
+
either content or tool_calls.
|
|
1802
1859
|
title: Assistant Message
|
|
1803
1860
|
- type: object
|
|
1804
1861
|
properties:
|
|
@@ -1817,6 +1874,7 @@ paths:
|
|
|
1817
1874
|
type: string
|
|
1818
1875
|
tool_calls:
|
|
1819
1876
|
type: array
|
|
1877
|
+
nullable: true
|
|
1820
1878
|
items:
|
|
1821
1879
|
nullable: true
|
|
1822
1880
|
required:
|
|
@@ -1942,6 +2000,11 @@ paths:
|
|
|
1942
2000
|
type: boolean
|
|
1943
2001
|
description: Did the request include search results in the stream?
|
|
1944
2002
|
example: false
|
|
2003
|
+
return_search_results_as_documents:
|
|
2004
|
+
type: boolean
|
|
2005
|
+
description: Did the request also return search results as a tool-call documents
|
|
2006
|
+
block?
|
|
2007
|
+
example: true
|
|
1945
2008
|
character_slug:
|
|
1946
2009
|
type: string
|
|
1947
2010
|
description: The character slug of a public Venice character.
|
|
@@ -2037,6 +2100,7 @@ paths:
|
|
|
2037
2100
|
- enable_web_citations
|
|
2038
2101
|
- include_venice_system_prompt
|
|
2039
2102
|
- include_search_results_in_stream
|
|
2103
|
+
- return_search_results_as_documents
|
|
2040
2104
|
- strip_thinking_response
|
|
2041
2105
|
- disable_thinking
|
|
2042
2106
|
description: Unique parameters to Venice's API implementation.
|
|
@@ -2084,6 +2148,7 @@ paths:
|
|
|
2084
2148
|
venice_parameters:
|
|
2085
2149
|
include_venice_system_prompt: true
|
|
2086
2150
|
include_search_results_in_stream: false
|
|
2151
|
+
return_search_results_as_documents: false
|
|
2087
2152
|
web_search_citations: []
|
|
2088
2153
|
enable_web_search: auto
|
|
2089
2154
|
enable_web_citations: true
|
|
@@ -2095,101 +2160,43 @@ paths:
|
|
|
2095
2160
|
content:
|
|
2096
2161
|
application/json:
|
|
2097
2162
|
schema:
|
|
2098
|
-
|
|
2099
|
-
properties:
|
|
2100
|
-
details:
|
|
2101
|
-
type: object
|
|
2102
|
-
properties: {}
|
|
2103
|
-
description: Details about the incorrect input
|
|
2104
|
-
example:
|
|
2105
|
-
_errors: []
|
|
2106
|
-
field:
|
|
2107
|
-
_errors:
|
|
2108
|
-
- Field is required
|
|
2109
|
-
error:
|
|
2110
|
-
type: string
|
|
2111
|
-
description: A description of the error
|
|
2112
|
-
example: Invalid request parameters
|
|
2113
|
-
required:
|
|
2114
|
-
- error
|
|
2163
|
+
$ref: "#/components/schemas/DetailedError"
|
|
2115
2164
|
"401":
|
|
2116
2165
|
description: Authentication failed
|
|
2117
2166
|
content:
|
|
2118
2167
|
application/json:
|
|
2119
2168
|
schema:
|
|
2120
|
-
|
|
2121
|
-
properties:
|
|
2122
|
-
error:
|
|
2123
|
-
type: string
|
|
2124
|
-
description: A description of the error
|
|
2125
|
-
example: Authentication failed
|
|
2126
|
-
required:
|
|
2127
|
-
- error
|
|
2169
|
+
$ref: "#/components/schemas/StandardError"
|
|
2128
2170
|
"402":
|
|
2129
2171
|
description: Insufficient USD or Diem balance to complete request
|
|
2130
2172
|
content:
|
|
2131
2173
|
application/json:
|
|
2132
2174
|
schema:
|
|
2133
|
-
|
|
2134
|
-
properties:
|
|
2135
|
-
error:
|
|
2136
|
-
type: string
|
|
2137
|
-
description: A description of the error
|
|
2138
|
-
example: Insufficient USD or Diem balance to complete request
|
|
2139
|
-
required:
|
|
2140
|
-
- error
|
|
2175
|
+
$ref: "#/components/schemas/StandardError"
|
|
2141
2176
|
"415":
|
|
2142
2177
|
description: Invalid request content-type
|
|
2143
2178
|
content:
|
|
2144
2179
|
application/json:
|
|
2145
2180
|
schema:
|
|
2146
|
-
|
|
2147
|
-
properties:
|
|
2148
|
-
error:
|
|
2149
|
-
type: string
|
|
2150
|
-
description: A description of the error
|
|
2151
|
-
example: Invalid request content-type
|
|
2152
|
-
required:
|
|
2153
|
-
- error
|
|
2181
|
+
$ref: "#/components/schemas/StandardError"
|
|
2154
2182
|
"429":
|
|
2155
2183
|
description: Rate limit exceeded
|
|
2156
2184
|
content:
|
|
2157
2185
|
application/json:
|
|
2158
2186
|
schema:
|
|
2159
|
-
|
|
2160
|
-
properties:
|
|
2161
|
-
error:
|
|
2162
|
-
type: string
|
|
2163
|
-
description: A description of the error
|
|
2164
|
-
example: Rate limit exceeded
|
|
2165
|
-
required:
|
|
2166
|
-
- error
|
|
2187
|
+
$ref: "#/components/schemas/StandardError"
|
|
2167
2188
|
"500":
|
|
2168
2189
|
description: Inference processing failed
|
|
2169
2190
|
content:
|
|
2170
2191
|
application/json:
|
|
2171
2192
|
schema:
|
|
2172
|
-
|
|
2173
|
-
properties:
|
|
2174
|
-
error:
|
|
2175
|
-
type: string
|
|
2176
|
-
description: A description of the error
|
|
2177
|
-
example: Inference processing failed
|
|
2178
|
-
required:
|
|
2179
|
-
- error
|
|
2193
|
+
$ref: "#/components/schemas/StandardError"
|
|
2180
2194
|
"503":
|
|
2181
2195
|
description: The model is at capacity. Please try again later.
|
|
2182
2196
|
content:
|
|
2183
2197
|
application/json:
|
|
2184
2198
|
schema:
|
|
2185
|
-
|
|
2186
|
-
properties:
|
|
2187
|
-
error:
|
|
2188
|
-
type: string
|
|
2189
|
-
description: A description of the error
|
|
2190
|
-
example: The model is at capacity. Please try again later.
|
|
2191
|
-
required:
|
|
2192
|
-
- error
|
|
2199
|
+
$ref: "#/components/schemas/StandardError"
|
|
2193
2200
|
"504":
|
|
2194
2201
|
description: The request took too long to complete and was timed-out. For
|
|
2195
2202
|
long-running inference requests, use the streaming API by setting
|
|
@@ -2197,16 +2204,7 @@ paths:
|
|
|
2197
2204
|
content:
|
|
2198
2205
|
application/json:
|
|
2199
2206
|
schema:
|
|
2200
|
-
|
|
2201
|
-
properties:
|
|
2202
|
-
error:
|
|
2203
|
-
type: string
|
|
2204
|
-
description: A description of the error
|
|
2205
|
-
example: The request took too long to complete and was timed-out. For
|
|
2206
|
-
long-running inference requests, use the streaming API by
|
|
2207
|
-
setting stream=true in your request.
|
|
2208
|
-
required:
|
|
2209
|
-
- error
|
|
2207
|
+
$ref: "#/components/schemas/StandardError"
|
|
2210
2208
|
/image/generate:
|
|
2211
2209
|
post:
|
|
2212
2210
|
description: Generate an image based on input parameters
|
|
@@ -2251,6 +2249,17 @@ paths:
|
|
|
2251
2249
|
required: false
|
|
2252
2250
|
schema:
|
|
2253
2251
|
type: boolean
|
|
2252
|
+
x-venice-model-deprecation-warning:
|
|
2253
|
+
description: A warning that the model is scheduled for deprecation
|
|
2254
|
+
required: false
|
|
2255
|
+
schema:
|
|
2256
|
+
type: string
|
|
2257
|
+
x-venice-model-deprecation-date:
|
|
2258
|
+
description: The date the model is scheduled for deprecation
|
|
2259
|
+
required: false
|
|
2260
|
+
schema:
|
|
2261
|
+
type: string
|
|
2262
|
+
format: date-time
|
|
2254
2263
|
content:
|
|
2255
2264
|
application/json:
|
|
2256
2265
|
schema:
|
|
@@ -2312,101 +2321,43 @@ paths:
|
|
|
2312
2321
|
content:
|
|
2313
2322
|
application/json:
|
|
2314
2323
|
schema:
|
|
2315
|
-
|
|
2316
|
-
properties:
|
|
2317
|
-
details:
|
|
2318
|
-
type: object
|
|
2319
|
-
properties: {}
|
|
2320
|
-
description: Details about the incorrect input
|
|
2321
|
-
example:
|
|
2322
|
-
_errors: []
|
|
2323
|
-
field:
|
|
2324
|
-
_errors:
|
|
2325
|
-
- Field is required
|
|
2326
|
-
error:
|
|
2327
|
-
type: string
|
|
2328
|
-
description: A description of the error
|
|
2329
|
-
example: Invalid request parameters
|
|
2330
|
-
required:
|
|
2331
|
-
- error
|
|
2324
|
+
$ref: "#/components/schemas/DetailedError"
|
|
2332
2325
|
"401":
|
|
2333
2326
|
description: Authentication failed
|
|
2334
2327
|
content:
|
|
2335
2328
|
application/json:
|
|
2336
2329
|
schema:
|
|
2337
|
-
|
|
2338
|
-
properties:
|
|
2339
|
-
error:
|
|
2340
|
-
type: string
|
|
2341
|
-
description: A description of the error
|
|
2342
|
-
example: Authentication failed
|
|
2343
|
-
required:
|
|
2344
|
-
- error
|
|
2330
|
+
$ref: "#/components/schemas/StandardError"
|
|
2345
2331
|
"402":
|
|
2346
2332
|
description: Insufficient USD or Diem balance to complete request
|
|
2347
2333
|
content:
|
|
2348
2334
|
application/json:
|
|
2349
2335
|
schema:
|
|
2350
|
-
|
|
2351
|
-
properties:
|
|
2352
|
-
error:
|
|
2353
|
-
type: string
|
|
2354
|
-
description: A description of the error
|
|
2355
|
-
example: Insufficient USD or Diem balance to complete request
|
|
2356
|
-
required:
|
|
2357
|
-
- error
|
|
2336
|
+
$ref: "#/components/schemas/StandardError"
|
|
2358
2337
|
"415":
|
|
2359
2338
|
description: Invalid request content-type
|
|
2360
2339
|
content:
|
|
2361
2340
|
application/json:
|
|
2362
2341
|
schema:
|
|
2363
|
-
|
|
2364
|
-
properties:
|
|
2365
|
-
error:
|
|
2366
|
-
type: string
|
|
2367
|
-
description: A description of the error
|
|
2368
|
-
example: Invalid request content-type
|
|
2369
|
-
required:
|
|
2370
|
-
- error
|
|
2342
|
+
$ref: "#/components/schemas/StandardError"
|
|
2371
2343
|
"429":
|
|
2372
2344
|
description: Rate limit exceeded
|
|
2373
2345
|
content:
|
|
2374
2346
|
application/json:
|
|
2375
2347
|
schema:
|
|
2376
|
-
|
|
2377
|
-
properties:
|
|
2378
|
-
error:
|
|
2379
|
-
type: string
|
|
2380
|
-
description: A description of the error
|
|
2381
|
-
example: Rate limit exceeded
|
|
2382
|
-
required:
|
|
2383
|
-
- error
|
|
2348
|
+
$ref: "#/components/schemas/StandardError"
|
|
2384
2349
|
"500":
|
|
2385
2350
|
description: Inference processing failed
|
|
2386
2351
|
content:
|
|
2387
2352
|
application/json:
|
|
2388
2353
|
schema:
|
|
2389
|
-
|
|
2390
|
-
properties:
|
|
2391
|
-
error:
|
|
2392
|
-
type: string
|
|
2393
|
-
description: A description of the error
|
|
2394
|
-
example: Inference processing failed
|
|
2395
|
-
required:
|
|
2396
|
-
- error
|
|
2354
|
+
$ref: "#/components/schemas/StandardError"
|
|
2397
2355
|
"503":
|
|
2398
2356
|
description: The model is at capacity. Please try again later.
|
|
2399
2357
|
content:
|
|
2400
2358
|
application/json:
|
|
2401
2359
|
schema:
|
|
2402
|
-
|
|
2403
|
-
properties:
|
|
2404
|
-
error:
|
|
2405
|
-
type: string
|
|
2406
|
-
description: A description of the error
|
|
2407
|
-
example: The model is at capacity. Please try again later.
|
|
2408
|
-
required:
|
|
2409
|
-
- error
|
|
2360
|
+
$ref: "#/components/schemas/StandardError"
|
|
2410
2361
|
/images/generations:
|
|
2411
2362
|
post:
|
|
2412
2363
|
description: Generate an image based on input parameters using an OpenAI
|
|
@@ -2453,6 +2404,17 @@ paths:
|
|
|
2453
2404
|
required: false
|
|
2454
2405
|
schema:
|
|
2455
2406
|
type: boolean
|
|
2407
|
+
x-venice-model-deprecation-warning:
|
|
2408
|
+
description: A warning that the model is scheduled for deprecation
|
|
2409
|
+
required: false
|
|
2410
|
+
schema:
|
|
2411
|
+
type: string
|
|
2412
|
+
x-venice-model-deprecation-date:
|
|
2413
|
+
description: The date the model is scheduled for deprecation
|
|
2414
|
+
required: false
|
|
2415
|
+
schema:
|
|
2416
|
+
type: string
|
|
2417
|
+
format: date-time
|
|
2456
2418
|
content:
|
|
2457
2419
|
application/json:
|
|
2458
2420
|
schema:
|
|
@@ -2491,101 +2453,43 @@ paths:
|
|
|
2491
2453
|
content:
|
|
2492
2454
|
application/json:
|
|
2493
2455
|
schema:
|
|
2494
|
-
|
|
2495
|
-
properties:
|
|
2496
|
-
details:
|
|
2497
|
-
type: object
|
|
2498
|
-
properties: {}
|
|
2499
|
-
description: Details about the incorrect input
|
|
2500
|
-
example:
|
|
2501
|
-
_errors: []
|
|
2502
|
-
field:
|
|
2503
|
-
_errors:
|
|
2504
|
-
- Field is required
|
|
2505
|
-
error:
|
|
2506
|
-
type: string
|
|
2507
|
-
description: A description of the error
|
|
2508
|
-
example: Invalid request parameters
|
|
2509
|
-
required:
|
|
2510
|
-
- error
|
|
2456
|
+
$ref: "#/components/schemas/DetailedError"
|
|
2511
2457
|
"401":
|
|
2512
2458
|
description: Authentication failed
|
|
2513
2459
|
content:
|
|
2514
2460
|
application/json:
|
|
2515
2461
|
schema:
|
|
2516
|
-
|
|
2517
|
-
properties:
|
|
2518
|
-
error:
|
|
2519
|
-
type: string
|
|
2520
|
-
description: A description of the error
|
|
2521
|
-
example: Authentication failed
|
|
2522
|
-
required:
|
|
2523
|
-
- error
|
|
2462
|
+
$ref: "#/components/schemas/StandardError"
|
|
2524
2463
|
"402":
|
|
2525
2464
|
description: Insufficient USD or Diem balance to complete request
|
|
2526
2465
|
content:
|
|
2527
2466
|
application/json:
|
|
2528
2467
|
schema:
|
|
2529
|
-
|
|
2530
|
-
properties:
|
|
2531
|
-
error:
|
|
2532
|
-
type: string
|
|
2533
|
-
description: A description of the error
|
|
2534
|
-
example: Insufficient USD or Diem balance to complete request
|
|
2535
|
-
required:
|
|
2536
|
-
- error
|
|
2468
|
+
$ref: "#/components/schemas/StandardError"
|
|
2537
2469
|
"415":
|
|
2538
2470
|
description: Invalid request content-type
|
|
2539
2471
|
content:
|
|
2540
2472
|
application/json:
|
|
2541
2473
|
schema:
|
|
2542
|
-
|
|
2543
|
-
properties:
|
|
2544
|
-
error:
|
|
2545
|
-
type: string
|
|
2546
|
-
description: A description of the error
|
|
2547
|
-
example: Invalid request content-type
|
|
2548
|
-
required:
|
|
2549
|
-
- error
|
|
2474
|
+
$ref: "#/components/schemas/StandardError"
|
|
2550
2475
|
"429":
|
|
2551
2476
|
description: Rate limit exceeded
|
|
2552
2477
|
content:
|
|
2553
2478
|
application/json:
|
|
2554
2479
|
schema:
|
|
2555
|
-
|
|
2556
|
-
properties:
|
|
2557
|
-
error:
|
|
2558
|
-
type: string
|
|
2559
|
-
description: A description of the error
|
|
2560
|
-
example: Rate limit exceeded
|
|
2561
|
-
required:
|
|
2562
|
-
- error
|
|
2480
|
+
$ref: "#/components/schemas/StandardError"
|
|
2563
2481
|
"500":
|
|
2564
2482
|
description: Inference processing failed
|
|
2565
2483
|
content:
|
|
2566
2484
|
application/json:
|
|
2567
2485
|
schema:
|
|
2568
|
-
|
|
2569
|
-
properties:
|
|
2570
|
-
error:
|
|
2571
|
-
type: string
|
|
2572
|
-
description: A description of the error
|
|
2573
|
-
example: Inference processing failed
|
|
2574
|
-
required:
|
|
2575
|
-
- error
|
|
2486
|
+
$ref: "#/components/schemas/StandardError"
|
|
2576
2487
|
"503":
|
|
2577
2488
|
description: The model is at capacity. Please try again later.
|
|
2578
2489
|
content:
|
|
2579
2490
|
application/json:
|
|
2580
2491
|
schema:
|
|
2581
|
-
|
|
2582
|
-
properties:
|
|
2583
|
-
error:
|
|
2584
|
-
type: string
|
|
2585
|
-
description: A description of the error
|
|
2586
|
-
example: The model is at capacity. Please try again later.
|
|
2587
|
-
required:
|
|
2588
|
-
- error
|
|
2492
|
+
$ref: "#/components/schemas/StandardError"
|
|
2589
2493
|
/image/styles:
|
|
2590
2494
|
get:
|
|
2591
2495
|
description: List available image styles that can be used with the generate API.
|
|
@@ -2626,27 +2530,13 @@ paths:
|
|
|
2626
2530
|
content:
|
|
2627
2531
|
application/json:
|
|
2628
2532
|
schema:
|
|
2629
|
-
|
|
2630
|
-
properties:
|
|
2631
|
-
error:
|
|
2632
|
-
type: string
|
|
2633
|
-
description: A description of the error
|
|
2634
|
-
example: Authentication failed
|
|
2635
|
-
required:
|
|
2636
|
-
- error
|
|
2533
|
+
$ref: "#/components/schemas/StandardError"
|
|
2637
2534
|
"500":
|
|
2638
2535
|
description: An unknown error occurred
|
|
2639
2536
|
content:
|
|
2640
2537
|
application/json:
|
|
2641
2538
|
schema:
|
|
2642
|
-
|
|
2643
|
-
properties:
|
|
2644
|
-
error:
|
|
2645
|
-
type: string
|
|
2646
|
-
description: A description of the error
|
|
2647
|
-
example: An unknown error occurred
|
|
2648
|
-
required:
|
|
2649
|
-
- error
|
|
2539
|
+
$ref: "#/components/schemas/StandardError"
|
|
2650
2540
|
/image/upscale:
|
|
2651
2541
|
post:
|
|
2652
2542
|
description: Upscale or enhance an image based on the supplied parameters. Using
|
|
@@ -2678,101 +2568,43 @@ paths:
|
|
|
2678
2568
|
content:
|
|
2679
2569
|
application/json:
|
|
2680
2570
|
schema:
|
|
2681
|
-
|
|
2682
|
-
properties:
|
|
2683
|
-
details:
|
|
2684
|
-
type: object
|
|
2685
|
-
properties: {}
|
|
2686
|
-
description: Details about the incorrect input
|
|
2687
|
-
example:
|
|
2688
|
-
_errors: []
|
|
2689
|
-
field:
|
|
2690
|
-
_errors:
|
|
2691
|
-
- Field is required
|
|
2692
|
-
error:
|
|
2693
|
-
type: string
|
|
2694
|
-
description: A description of the error
|
|
2695
|
-
example: Invalid request parameters
|
|
2696
|
-
required:
|
|
2697
|
-
- error
|
|
2571
|
+
$ref: "#/components/schemas/DetailedError"
|
|
2698
2572
|
"401":
|
|
2699
2573
|
description: Authentication failed
|
|
2700
2574
|
content:
|
|
2701
2575
|
application/json:
|
|
2702
2576
|
schema:
|
|
2703
|
-
|
|
2704
|
-
properties:
|
|
2705
|
-
error:
|
|
2706
|
-
type: string
|
|
2707
|
-
description: A description of the error
|
|
2708
|
-
example: Authentication failed
|
|
2709
|
-
required:
|
|
2710
|
-
- error
|
|
2577
|
+
$ref: "#/components/schemas/StandardError"
|
|
2711
2578
|
"402":
|
|
2712
2579
|
description: Insufficient USD or Diem balance to complete request
|
|
2713
2580
|
content:
|
|
2714
2581
|
application/json:
|
|
2715
2582
|
schema:
|
|
2716
|
-
|
|
2717
|
-
properties:
|
|
2718
|
-
error:
|
|
2719
|
-
type: string
|
|
2720
|
-
description: A description of the error
|
|
2721
|
-
example: Insufficient USD or Diem balance to complete request
|
|
2722
|
-
required:
|
|
2723
|
-
- error
|
|
2583
|
+
$ref: "#/components/schemas/StandardError"
|
|
2724
2584
|
"415":
|
|
2725
2585
|
description: Invalid request content-type
|
|
2726
2586
|
content:
|
|
2727
2587
|
application/json:
|
|
2728
2588
|
schema:
|
|
2729
|
-
|
|
2730
|
-
properties:
|
|
2731
|
-
error:
|
|
2732
|
-
type: string
|
|
2733
|
-
description: A description of the error
|
|
2734
|
-
example: Invalid request content-type
|
|
2735
|
-
required:
|
|
2736
|
-
- error
|
|
2589
|
+
$ref: "#/components/schemas/StandardError"
|
|
2737
2590
|
"429":
|
|
2738
2591
|
description: Rate limit exceeded
|
|
2739
2592
|
content:
|
|
2740
2593
|
application/json:
|
|
2741
2594
|
schema:
|
|
2742
|
-
|
|
2743
|
-
properties:
|
|
2744
|
-
error:
|
|
2745
|
-
type: string
|
|
2746
|
-
description: A description of the error
|
|
2747
|
-
example: Rate limit exceeded
|
|
2748
|
-
required:
|
|
2749
|
-
- error
|
|
2595
|
+
$ref: "#/components/schemas/StandardError"
|
|
2750
2596
|
"500":
|
|
2751
2597
|
description: Inference processing failed
|
|
2752
2598
|
content:
|
|
2753
2599
|
application/json:
|
|
2754
2600
|
schema:
|
|
2755
|
-
|
|
2756
|
-
properties:
|
|
2757
|
-
error:
|
|
2758
|
-
type: string
|
|
2759
|
-
description: A description of the error
|
|
2760
|
-
example: Inference processing failed
|
|
2761
|
-
required:
|
|
2762
|
-
- error
|
|
2601
|
+
$ref: "#/components/schemas/StandardError"
|
|
2763
2602
|
"503":
|
|
2764
2603
|
description: The model is at capacity. Please try again later.
|
|
2765
2604
|
content:
|
|
2766
2605
|
application/json:
|
|
2767
2606
|
schema:
|
|
2768
|
-
|
|
2769
|
-
properties:
|
|
2770
|
-
error:
|
|
2771
|
-
type: string
|
|
2772
|
-
description: A description of the error
|
|
2773
|
-
example: The model is at capacity. Please try again later.
|
|
2774
|
-
required:
|
|
2775
|
-
- error
|
|
2607
|
+
$ref: "#/components/schemas/StandardError"
|
|
2776
2608
|
/image/edit:
|
|
2777
2609
|
post:
|
|
2778
2610
|
description: Edit or modify an image based on the supplied prompt. The image can
|
|
@@ -2793,6 +2625,18 @@ paths:
|
|
|
2793
2625
|
responses:
|
|
2794
2626
|
"200":
|
|
2795
2627
|
description: OK
|
|
2628
|
+
headers:
|
|
2629
|
+
x-venice-model-deprecation-warning:
|
|
2630
|
+
description: A warning that the model is scheduled for deprecation
|
|
2631
|
+
required: false
|
|
2632
|
+
schema:
|
|
2633
|
+
type: string
|
|
2634
|
+
x-venice-model-deprecation-date:
|
|
2635
|
+
description: The date the model is scheduled for deprecation
|
|
2636
|
+
required: false
|
|
2637
|
+
schema:
|
|
2638
|
+
type: string
|
|
2639
|
+
format: date-time
|
|
2796
2640
|
content:
|
|
2797
2641
|
image/png:
|
|
2798
2642
|
schema:
|
|
@@ -2803,101 +2647,43 @@ paths:
|
|
|
2803
2647
|
content:
|
|
2804
2648
|
application/json:
|
|
2805
2649
|
schema:
|
|
2806
|
-
|
|
2807
|
-
properties:
|
|
2808
|
-
details:
|
|
2809
|
-
type: object
|
|
2810
|
-
properties: {}
|
|
2811
|
-
description: Details about the incorrect input
|
|
2812
|
-
example:
|
|
2813
|
-
_errors: []
|
|
2814
|
-
field:
|
|
2815
|
-
_errors:
|
|
2816
|
-
- Field is required
|
|
2817
|
-
error:
|
|
2818
|
-
type: string
|
|
2819
|
-
description: A description of the error
|
|
2820
|
-
example: Invalid request parameters
|
|
2821
|
-
required:
|
|
2822
|
-
- error
|
|
2650
|
+
$ref: "#/components/schemas/DetailedError"
|
|
2823
2651
|
"401":
|
|
2824
2652
|
description: Authentication failed
|
|
2825
2653
|
content:
|
|
2826
2654
|
application/json:
|
|
2827
2655
|
schema:
|
|
2828
|
-
|
|
2829
|
-
properties:
|
|
2830
|
-
error:
|
|
2831
|
-
type: string
|
|
2832
|
-
description: A description of the error
|
|
2833
|
-
example: Authentication failed
|
|
2834
|
-
required:
|
|
2835
|
-
- error
|
|
2656
|
+
$ref: "#/components/schemas/StandardError"
|
|
2836
2657
|
"402":
|
|
2837
2658
|
description: Insufficient USD or Diem balance to complete request
|
|
2838
2659
|
content:
|
|
2839
2660
|
application/json:
|
|
2840
2661
|
schema:
|
|
2841
|
-
|
|
2842
|
-
properties:
|
|
2843
|
-
error:
|
|
2844
|
-
type: string
|
|
2845
|
-
description: A description of the error
|
|
2846
|
-
example: Insufficient USD or Diem balance to complete request
|
|
2847
|
-
required:
|
|
2848
|
-
- error
|
|
2662
|
+
$ref: "#/components/schemas/StandardError"
|
|
2849
2663
|
"415":
|
|
2850
2664
|
description: Invalid request content-type
|
|
2851
2665
|
content:
|
|
2852
2666
|
application/json:
|
|
2853
2667
|
schema:
|
|
2854
|
-
|
|
2855
|
-
properties:
|
|
2856
|
-
error:
|
|
2857
|
-
type: string
|
|
2858
|
-
description: A description of the error
|
|
2859
|
-
example: Invalid request content-type
|
|
2860
|
-
required:
|
|
2861
|
-
- error
|
|
2668
|
+
$ref: "#/components/schemas/StandardError"
|
|
2862
2669
|
"429":
|
|
2863
2670
|
description: Rate limit exceeded
|
|
2864
2671
|
content:
|
|
2865
2672
|
application/json:
|
|
2866
2673
|
schema:
|
|
2867
|
-
|
|
2868
|
-
properties:
|
|
2869
|
-
error:
|
|
2870
|
-
type: string
|
|
2871
|
-
description: A description of the error
|
|
2872
|
-
example: Rate limit exceeded
|
|
2873
|
-
required:
|
|
2874
|
-
- error
|
|
2674
|
+
$ref: "#/components/schemas/StandardError"
|
|
2875
2675
|
"500":
|
|
2876
2676
|
description: Inference processing failed
|
|
2877
2677
|
content:
|
|
2878
2678
|
application/json:
|
|
2879
2679
|
schema:
|
|
2880
|
-
|
|
2881
|
-
properties:
|
|
2882
|
-
error:
|
|
2883
|
-
type: string
|
|
2884
|
-
description: A description of the error
|
|
2885
|
-
example: Inference processing failed
|
|
2886
|
-
required:
|
|
2887
|
-
- error
|
|
2680
|
+
$ref: "#/components/schemas/StandardError"
|
|
2888
2681
|
"503":
|
|
2889
2682
|
description: The model is at capacity. Please try again later.
|
|
2890
2683
|
content:
|
|
2891
2684
|
application/json:
|
|
2892
2685
|
schema:
|
|
2893
|
-
|
|
2894
|
-
properties:
|
|
2895
|
-
error:
|
|
2896
|
-
type: string
|
|
2897
|
-
description: A description of the error
|
|
2898
|
-
example: The model is at capacity. Please try again later.
|
|
2899
|
-
required:
|
|
2900
|
-
- error
|
|
2686
|
+
$ref: "#/components/schemas/StandardError"
|
|
2901
2687
|
/models:
|
|
2902
2688
|
get:
|
|
2903
2689
|
description: Returns a list of available models supported by the Venice.ai API
|
|
@@ -2971,14 +2757,7 @@ paths:
|
|
|
2971
2757
|
content:
|
|
2972
2758
|
application/json:
|
|
2973
2759
|
schema:
|
|
2974
|
-
|
|
2975
|
-
properties:
|
|
2976
|
-
error:
|
|
2977
|
-
type: string
|
|
2978
|
-
description: A description of the error
|
|
2979
|
-
example: An unknown error occurred
|
|
2980
|
-
required:
|
|
2981
|
-
- error
|
|
2760
|
+
$ref: "#/components/schemas/StandardError"
|
|
2982
2761
|
/models/traits:
|
|
2983
2762
|
get:
|
|
2984
2763
|
description: Returns a list of model traits and the associated model.
|
|
@@ -3044,27 +2823,13 @@ paths:
|
|
|
3044
2823
|
content:
|
|
3045
2824
|
application/json:
|
|
3046
2825
|
schema:
|
|
3047
|
-
|
|
3048
|
-
properties:
|
|
3049
|
-
error:
|
|
3050
|
-
type: string
|
|
3051
|
-
description: A description of the error
|
|
3052
|
-
example: Authentication failed
|
|
3053
|
-
required:
|
|
3054
|
-
- error
|
|
2826
|
+
$ref: "#/components/schemas/StandardError"
|
|
3055
2827
|
"500":
|
|
3056
2828
|
description: An unknown error occurred
|
|
3057
2829
|
content:
|
|
3058
2830
|
application/json:
|
|
3059
2831
|
schema:
|
|
3060
|
-
|
|
3061
|
-
properties:
|
|
3062
|
-
error:
|
|
3063
|
-
type: string
|
|
3064
|
-
description: A description of the error
|
|
3065
|
-
example: An unknown error occurred
|
|
3066
|
-
required:
|
|
3067
|
-
- error
|
|
2832
|
+
$ref: "#/components/schemas/StandardError"
|
|
3068
2833
|
/models/compatibility_mapping:
|
|
3069
2834
|
get:
|
|
3070
2835
|
description: Returns a list of model compatibility mappings and the associated model.
|
|
@@ -3130,27 +2895,13 @@ paths:
|
|
|
3130
2895
|
content:
|
|
3131
2896
|
application/json:
|
|
3132
2897
|
schema:
|
|
3133
|
-
|
|
3134
|
-
properties:
|
|
3135
|
-
error:
|
|
3136
|
-
type: string
|
|
3137
|
-
description: A description of the error
|
|
3138
|
-
example: Authentication failed
|
|
3139
|
-
required:
|
|
3140
|
-
- error
|
|
2898
|
+
$ref: "#/components/schemas/StandardError"
|
|
3141
2899
|
"500":
|
|
3142
2900
|
description: An unknown error occurred
|
|
3143
2901
|
content:
|
|
3144
2902
|
application/json:
|
|
3145
2903
|
schema:
|
|
3146
|
-
|
|
3147
|
-
properties:
|
|
3148
|
-
error:
|
|
3149
|
-
type: string
|
|
3150
|
-
description: A description of the error
|
|
3151
|
-
example: An unknown error occurred
|
|
3152
|
-
required:
|
|
3153
|
-
- error
|
|
2904
|
+
$ref: "#/components/schemas/StandardError"
|
|
3154
2905
|
/api_keys:
|
|
3155
2906
|
get:
|
|
3156
2907
|
description: Return a list of API keys.
|
|
@@ -3216,6 +2967,7 @@ paths:
|
|
|
3216
2967
|
example:
|
|
3217
2968
|
usd: 50
|
|
3218
2969
|
diem: 10
|
|
2970
|
+
vcu: 30
|
|
3219
2971
|
createdAt:
|
|
3220
2972
|
type: string
|
|
3221
2973
|
nullable: true
|
|
@@ -3291,27 +3043,13 @@ paths:
|
|
|
3291
3043
|
content:
|
|
3292
3044
|
application/json:
|
|
3293
3045
|
schema:
|
|
3294
|
-
|
|
3295
|
-
properties:
|
|
3296
|
-
error:
|
|
3297
|
-
type: string
|
|
3298
|
-
description: A description of the error
|
|
3299
|
-
example: Authentication failed
|
|
3300
|
-
required:
|
|
3301
|
-
- error
|
|
3046
|
+
$ref: "#/components/schemas/StandardError"
|
|
3302
3047
|
"500":
|
|
3303
3048
|
description: An unknown error occurred
|
|
3304
3049
|
content:
|
|
3305
3050
|
application/json:
|
|
3306
3051
|
schema:
|
|
3307
|
-
|
|
3308
|
-
properties:
|
|
3309
|
-
error:
|
|
3310
|
-
type: string
|
|
3311
|
-
description: A description of the error
|
|
3312
|
-
example: An unknown error occurred
|
|
3313
|
-
required:
|
|
3314
|
-
- error
|
|
3052
|
+
$ref: "#/components/schemas/StandardError"
|
|
3315
3053
|
delete:
|
|
3316
3054
|
description: Delete an API key.
|
|
3317
3055
|
operationId: deleteApiKey
|
|
@@ -3343,49 +3081,19 @@ paths:
|
|
|
3343
3081
|
content:
|
|
3344
3082
|
application/json:
|
|
3345
3083
|
schema:
|
|
3346
|
-
|
|
3347
|
-
properties:
|
|
3348
|
-
details:
|
|
3349
|
-
type: object
|
|
3350
|
-
properties: {}
|
|
3351
|
-
description: Details about the incorrect input
|
|
3352
|
-
example:
|
|
3353
|
-
_errors: []
|
|
3354
|
-
field:
|
|
3355
|
-
_errors:
|
|
3356
|
-
- Field is required
|
|
3357
|
-
error:
|
|
3358
|
-
type: string
|
|
3359
|
-
description: A description of the error
|
|
3360
|
-
example: Invalid request parameters
|
|
3361
|
-
required:
|
|
3362
|
-
- error
|
|
3084
|
+
$ref: "#/components/schemas/DetailedError"
|
|
3363
3085
|
"401":
|
|
3364
3086
|
description: Authentication failed
|
|
3365
3087
|
content:
|
|
3366
3088
|
application/json:
|
|
3367
3089
|
schema:
|
|
3368
|
-
|
|
3369
|
-
properties:
|
|
3370
|
-
error:
|
|
3371
|
-
type: string
|
|
3372
|
-
description: A description of the error
|
|
3373
|
-
example: Authentication failed
|
|
3374
|
-
required:
|
|
3375
|
-
- error
|
|
3090
|
+
$ref: "#/components/schemas/StandardError"
|
|
3376
3091
|
"500":
|
|
3377
3092
|
description: An unknown error occurred
|
|
3378
3093
|
content:
|
|
3379
3094
|
application/json:
|
|
3380
3095
|
schema:
|
|
3381
|
-
|
|
3382
|
-
properties:
|
|
3383
|
-
error:
|
|
3384
|
-
type: string
|
|
3385
|
-
description: A description of the error
|
|
3386
|
-
example: An unknown error occurred
|
|
3387
|
-
required:
|
|
3388
|
-
- error
|
|
3096
|
+
$ref: "#/components/schemas/StandardError"
|
|
3389
3097
|
post:
|
|
3390
3098
|
description: Create a new API key.
|
|
3391
3099
|
operationId: createApiKey
|
|
@@ -3444,6 +3152,7 @@ paths:
|
|
|
3444
3152
|
example:
|
|
3445
3153
|
usd: 50
|
|
3446
3154
|
diem: 10
|
|
3155
|
+
vcu: 30
|
|
3447
3156
|
description:
|
|
3448
3157
|
type: string
|
|
3449
3158
|
description: The API Key description
|
|
@@ -3466,8 +3175,9 @@ paths:
|
|
|
3466
3175
|
additionalProperties: false
|
|
3467
3176
|
description: The request body for creating a new API key. API key creation is
|
|
3468
3177
|
rate limited to 20 requests per minute and a maximum of 500
|
|
3469
|
-
active API keys per user. VCU is being deprecated
|
|
3470
|
-
Diem. Please update your API calls to use
|
|
3178
|
+
active API keys per user. VCU (Legacy Diem) is being deprecated
|
|
3179
|
+
in favor of tokenized Diem. Please update your API calls to use
|
|
3180
|
+
Diem instead.
|
|
3471
3181
|
responses:
|
|
3472
3182
|
"200":
|
|
3473
3183
|
description: OK
|
|
@@ -3528,6 +3238,7 @@ paths:
|
|
|
3528
3238
|
example:
|
|
3529
3239
|
usd: 50
|
|
3530
3240
|
diem: 10
|
|
3241
|
+
vcu: 30
|
|
3531
3242
|
description:
|
|
3532
3243
|
type: string
|
|
3533
3244
|
description: The API Key description
|
|
@@ -3559,62 +3270,191 @@ paths:
|
|
|
3559
3270
|
content:
|
|
3560
3271
|
application/json:
|
|
3561
3272
|
schema:
|
|
3562
|
-
|
|
3563
|
-
properties:
|
|
3564
|
-
details:
|
|
3565
|
-
type: object
|
|
3566
|
-
properties: {}
|
|
3567
|
-
description: Details about the incorrect input
|
|
3568
|
-
example:
|
|
3569
|
-
_errors: []
|
|
3570
|
-
field:
|
|
3571
|
-
_errors:
|
|
3572
|
-
- Field is required
|
|
3573
|
-
error:
|
|
3574
|
-
type: string
|
|
3575
|
-
description: A description of the error
|
|
3576
|
-
example: Invalid request parameters
|
|
3577
|
-
required:
|
|
3578
|
-
- error
|
|
3273
|
+
$ref: "#/components/schemas/DetailedError"
|
|
3579
3274
|
"401":
|
|
3580
3275
|
description: Authentication failed
|
|
3581
3276
|
content:
|
|
3582
3277
|
application/json:
|
|
3583
3278
|
schema:
|
|
3584
|
-
|
|
3585
|
-
properties:
|
|
3586
|
-
error:
|
|
3587
|
-
type: string
|
|
3588
|
-
description: A description of the error
|
|
3589
|
-
example: Authentication failed
|
|
3590
|
-
required:
|
|
3591
|
-
- error
|
|
3279
|
+
$ref: "#/components/schemas/StandardError"
|
|
3592
3280
|
"429":
|
|
3593
3281
|
description: Rate limit exceeded
|
|
3594
3282
|
content:
|
|
3595
3283
|
application/json:
|
|
3596
3284
|
schema:
|
|
3597
|
-
|
|
3598
|
-
properties:
|
|
3599
|
-
error:
|
|
3600
|
-
type: string
|
|
3601
|
-
description: A description of the error
|
|
3602
|
-
example: Rate limit exceeded
|
|
3603
|
-
required:
|
|
3604
|
-
- error
|
|
3285
|
+
$ref: "#/components/schemas/StandardError"
|
|
3605
3286
|
"500":
|
|
3606
3287
|
description: An unknown error occurred
|
|
3288
|
+
content:
|
|
3289
|
+
application/json:
|
|
3290
|
+
schema:
|
|
3291
|
+
$ref: "#/components/schemas/StandardError"
|
|
3292
|
+
/api_keys/{id}:
|
|
3293
|
+
get:
|
|
3294
|
+
description: Return details about a specific API key, including rate limits and
|
|
3295
|
+
balance data.
|
|
3296
|
+
operationId: getApiKeyById
|
|
3297
|
+
parameters:
|
|
3298
|
+
- name: id
|
|
3299
|
+
in: path
|
|
3300
|
+
required: true
|
|
3301
|
+
schema:
|
|
3302
|
+
type: string
|
|
3303
|
+
description: The ID of the API key to retrieve
|
|
3304
|
+
summary: Get API key details by ID
|
|
3305
|
+
tags:
|
|
3306
|
+
- API Keys
|
|
3307
|
+
responses:
|
|
3308
|
+
"200":
|
|
3309
|
+
description: OK
|
|
3607
3310
|
content:
|
|
3608
3311
|
application/json:
|
|
3609
3312
|
schema:
|
|
3610
3313
|
type: object
|
|
3611
3314
|
properties:
|
|
3612
|
-
|
|
3613
|
-
type:
|
|
3614
|
-
|
|
3615
|
-
|
|
3315
|
+
data:
|
|
3316
|
+
type: object
|
|
3317
|
+
properties:
|
|
3318
|
+
apiKeyType:
|
|
3319
|
+
type: string
|
|
3320
|
+
enum:
|
|
3321
|
+
- INFERENCE
|
|
3322
|
+
- ADMIN
|
|
3323
|
+
description: API Key type
|
|
3324
|
+
example: ADMIN
|
|
3325
|
+
consumptionLimits:
|
|
3326
|
+
type: object
|
|
3327
|
+
properties:
|
|
3328
|
+
usd:
|
|
3329
|
+
anyOf:
|
|
3330
|
+
- type: number
|
|
3331
|
+
minimum: 0
|
|
3332
|
+
- nullable: true
|
|
3333
|
+
title: "null"
|
|
3334
|
+
- nullable: true
|
|
3335
|
+
title: "null"
|
|
3336
|
+
description: USD limit
|
|
3337
|
+
example: 50
|
|
3338
|
+
diem:
|
|
3339
|
+
anyOf:
|
|
3340
|
+
- type: number
|
|
3341
|
+
minimum: 0
|
|
3342
|
+
- nullable: true
|
|
3343
|
+
title: "null"
|
|
3344
|
+
- nullable: true
|
|
3345
|
+
title: "null"
|
|
3346
|
+
description: Diem limit
|
|
3347
|
+
example: 10
|
|
3348
|
+
vcu:
|
|
3349
|
+
anyOf:
|
|
3350
|
+
- type: number
|
|
3351
|
+
minimum: 0
|
|
3352
|
+
- nullable: true
|
|
3353
|
+
title: "null"
|
|
3354
|
+
- nullable: true
|
|
3355
|
+
title: "null"
|
|
3356
|
+
description: VCU limit (deprecated - use Diem instead)
|
|
3357
|
+
deprecated: true
|
|
3358
|
+
example: 100
|
|
3359
|
+
description: The API Key consumption limits for each epoch.
|
|
3360
|
+
example:
|
|
3361
|
+
usd: 50
|
|
3362
|
+
diem: 10
|
|
3363
|
+
vcu: 30
|
|
3364
|
+
createdAt:
|
|
3365
|
+
type: string
|
|
3366
|
+
nullable: true
|
|
3367
|
+
description: API Key creation date
|
|
3368
|
+
example: 2023-10-01T12:00:00Z
|
|
3369
|
+
description:
|
|
3370
|
+
type: string
|
|
3371
|
+
description: API Key description
|
|
3372
|
+
example: Example API Key
|
|
3373
|
+
expiresAt:
|
|
3374
|
+
type: string
|
|
3375
|
+
nullable: true
|
|
3376
|
+
description: API Key expiration date
|
|
3377
|
+
example: 2023-10-01T12:00:00Z
|
|
3378
|
+
id:
|
|
3379
|
+
type: string
|
|
3380
|
+
description: API Key ID
|
|
3381
|
+
example: e28e82dc-9df2-4b47-b726-d0a222ef2ab5
|
|
3382
|
+
last6Chars:
|
|
3383
|
+
type: string
|
|
3384
|
+
description: Last 6 characters of the API Key
|
|
3385
|
+
example: 2V2jNW
|
|
3386
|
+
lastUsedAt:
|
|
3387
|
+
type: string
|
|
3388
|
+
nullable: true
|
|
3389
|
+
description: API Key last used date
|
|
3390
|
+
example: 2023-10-01T12:00:00Z
|
|
3391
|
+
usage:
|
|
3392
|
+
type: object
|
|
3393
|
+
properties:
|
|
3394
|
+
trailingSevenDays:
|
|
3395
|
+
type: object
|
|
3396
|
+
properties:
|
|
3397
|
+
usd:
|
|
3398
|
+
type: string
|
|
3399
|
+
description: USD usage in the trailing 7 days
|
|
3400
|
+
example: "10.2424"
|
|
3401
|
+
vcu:
|
|
3402
|
+
type: string
|
|
3403
|
+
description: VCU usage in the trailing 7 days (deprecated - use Diem instead)
|
|
3404
|
+
deprecated: true
|
|
3405
|
+
example: "42.2315"
|
|
3406
|
+
diem:
|
|
3407
|
+
type: string
|
|
3408
|
+
description: Diem usage in the trailing 7 days
|
|
3409
|
+
example: "4.2231"
|
|
3410
|
+
required:
|
|
3411
|
+
- usd
|
|
3412
|
+
- vcu
|
|
3413
|
+
- diem
|
|
3414
|
+
required:
|
|
3415
|
+
- trailingSevenDays
|
|
3416
|
+
required:
|
|
3417
|
+
- apiKeyType
|
|
3418
|
+
- consumptionLimits
|
|
3419
|
+
- createdAt
|
|
3420
|
+
- expiresAt
|
|
3421
|
+
- id
|
|
3422
|
+
- last6Chars
|
|
3423
|
+
- lastUsedAt
|
|
3424
|
+
additionalProperties: false
|
|
3425
|
+
description: API key details
|
|
3616
3426
|
required:
|
|
3617
|
-
-
|
|
3427
|
+
- data
|
|
3428
|
+
additionalProperties: false
|
|
3429
|
+
example:
|
|
3430
|
+
data:
|
|
3431
|
+
apiKeyType: ADMIN
|
|
3432
|
+
consumptionLimits:
|
|
3433
|
+
usd: 50
|
|
3434
|
+
diem: 10
|
|
3435
|
+
createdAt: {}
|
|
3436
|
+
description: Example API Key
|
|
3437
|
+
expiresAt: {}
|
|
3438
|
+
id: e28e82dc-9df2-4b47-b726-d0a222ef2ab5
|
|
3439
|
+
last6Chars: 2V2jNW
|
|
3440
|
+
lastUsedAt: {}
|
|
3441
|
+
usage:
|
|
3442
|
+
trailingSevenDays:
|
|
3443
|
+
usd: "10.2424"
|
|
3444
|
+
vcu: "42.2315"
|
|
3445
|
+
diem: "4.2231"
|
|
3446
|
+
"401":
|
|
3447
|
+
description: Authentication failed
|
|
3448
|
+
content:
|
|
3449
|
+
application/json:
|
|
3450
|
+
schema:
|
|
3451
|
+
$ref: "#/components/schemas/StandardError"
|
|
3452
|
+
"500":
|
|
3453
|
+
description: An unknown error occurred
|
|
3454
|
+
content:
|
|
3455
|
+
application/json:
|
|
3456
|
+
schema:
|
|
3457
|
+
$ref: "#/components/schemas/StandardError"
|
|
3618
3458
|
/api_keys/rate_limits:
|
|
3619
3459
|
get:
|
|
3620
3460
|
description: Return details about user balances and rate limits.
|
|
@@ -3630,6 +3470,10 @@ paths:
|
|
|
3630
3470
|
schema:
|
|
3631
3471
|
type: object
|
|
3632
3472
|
properties:
|
|
3473
|
+
warningMessage:
|
|
3474
|
+
type: string
|
|
3475
|
+
description: A warning message to disambiguate staked DIEM balance from legacy
|
|
3476
|
+
DIEM (formerly VCU) balance
|
|
3633
3477
|
data:
|
|
3634
3478
|
type: object
|
|
3635
3479
|
properties:
|
|
@@ -3720,27 +3564,13 @@ paths:
|
|
|
3720
3564
|
content:
|
|
3721
3565
|
application/json:
|
|
3722
3566
|
schema:
|
|
3723
|
-
|
|
3724
|
-
properties:
|
|
3725
|
-
error:
|
|
3726
|
-
type: string
|
|
3727
|
-
description: A description of the error
|
|
3728
|
-
example: Authentication failed
|
|
3729
|
-
required:
|
|
3730
|
-
- error
|
|
3567
|
+
$ref: "#/components/schemas/StandardError"
|
|
3731
3568
|
"500":
|
|
3732
3569
|
description: An unknown error occurred
|
|
3733
3570
|
content:
|
|
3734
3571
|
application/json:
|
|
3735
3572
|
schema:
|
|
3736
|
-
|
|
3737
|
-
properties:
|
|
3738
|
-
error:
|
|
3739
|
-
type: string
|
|
3740
|
-
description: A description of the error
|
|
3741
|
-
example: An unknown error occurred
|
|
3742
|
-
required:
|
|
3743
|
-
- error
|
|
3573
|
+
$ref: "#/components/schemas/StandardError"
|
|
3744
3574
|
/api_keys/rate_limits/log:
|
|
3745
3575
|
get:
|
|
3746
3576
|
description: Returns the last 50 rate limits that the account exceeded.
|
|
@@ -3801,27 +3631,13 @@ paths:
|
|
|
3801
3631
|
content:
|
|
3802
3632
|
application/json:
|
|
3803
3633
|
schema:
|
|
3804
|
-
|
|
3805
|
-
properties:
|
|
3806
|
-
error:
|
|
3807
|
-
type: string
|
|
3808
|
-
description: A description of the error
|
|
3809
|
-
example: Authentication failed
|
|
3810
|
-
required:
|
|
3811
|
-
- error
|
|
3634
|
+
$ref: "#/components/schemas/StandardError"
|
|
3812
3635
|
"500":
|
|
3813
3636
|
description: An unknown error occurred
|
|
3814
3637
|
content:
|
|
3815
3638
|
application/json:
|
|
3816
3639
|
schema:
|
|
3817
|
-
|
|
3818
|
-
properties:
|
|
3819
|
-
error:
|
|
3820
|
-
type: string
|
|
3821
|
-
description: A description of the error
|
|
3822
|
-
example: An unknown error occurred
|
|
3823
|
-
required:
|
|
3824
|
-
- error
|
|
3640
|
+
$ref: "#/components/schemas/StandardError"
|
|
3825
3641
|
/api_keys/generate_web3_key:
|
|
3826
3642
|
get:
|
|
3827
3643
|
description: Returns the token required to generate an API key via a wallet.
|
|
@@ -3911,6 +3727,7 @@ paths:
|
|
|
3911
3727
|
example:
|
|
3912
3728
|
usd: 50
|
|
3913
3729
|
diem: 10
|
|
3730
|
+
vcu: 30
|
|
3914
3731
|
description:
|
|
3915
3732
|
type: string
|
|
3916
3733
|
default: Web3 API Key
|
|
@@ -4009,6 +3826,7 @@ paths:
|
|
|
4009
3826
|
example:
|
|
4010
3827
|
usd: 50
|
|
4011
3828
|
diem: 10
|
|
3829
|
+
vcu: 30
|
|
4012
3830
|
description:
|
|
4013
3831
|
type: string
|
|
4014
3832
|
description: The API Key description
|
|
@@ -4083,6 +3901,11 @@ paths:
|
|
|
4083
3901
|
nullable: true
|
|
4084
3902
|
description: Share URL of the character
|
|
4085
3903
|
example: https://venice.ai/c/alan-watts
|
|
3904
|
+
photoUrl:
|
|
3905
|
+
type: string
|
|
3906
|
+
nullable: true
|
|
3907
|
+
description: URL of the character photo
|
|
3908
|
+
example: https://outerface.venice.ai/api/characters/2f460055-7595-4640-9cb6-c442c4c869b0/photo
|
|
4086
3909
|
slug:
|
|
4087
3910
|
type: string
|
|
4088
3911
|
description: Slug of the character to be used in the completions API
|
|
@@ -4115,17 +3938,23 @@ paths:
|
|
|
4115
3938
|
type: boolean
|
|
4116
3939
|
description: Whether the character is enabled for web use
|
|
4117
3940
|
example: true
|
|
3941
|
+
modelId:
|
|
3942
|
+
type: string
|
|
3943
|
+
description: API model ID for the character
|
|
3944
|
+
example: venice-uncensored
|
|
4118
3945
|
required:
|
|
4119
3946
|
- adult
|
|
4120
3947
|
- createdAt
|
|
4121
3948
|
- description
|
|
4122
3949
|
- name
|
|
4123
3950
|
- shareUrl
|
|
3951
|
+
- photoUrl
|
|
4124
3952
|
- slug
|
|
4125
3953
|
- stats
|
|
4126
3954
|
- tags
|
|
4127
3955
|
- updatedAt
|
|
4128
3956
|
- webEnabled
|
|
3957
|
+
- modelId
|
|
4129
3958
|
object:
|
|
4130
3959
|
type: string
|
|
4131
3960
|
enum:
|
|
@@ -4138,27 +3967,146 @@ paths:
|
|
|
4138
3967
|
content:
|
|
4139
3968
|
application/json:
|
|
4140
3969
|
schema:
|
|
4141
|
-
|
|
4142
|
-
properties:
|
|
4143
|
-
error:
|
|
4144
|
-
type: string
|
|
4145
|
-
description: A description of the error
|
|
4146
|
-
example: Authentication failed
|
|
4147
|
-
required:
|
|
4148
|
-
- error
|
|
3970
|
+
$ref: "#/components/schemas/StandardError"
|
|
4149
3971
|
"500":
|
|
4150
3972
|
description: An unknown error occurred
|
|
3973
|
+
content:
|
|
3974
|
+
application/json:
|
|
3975
|
+
schema:
|
|
3976
|
+
$ref: "#/components/schemas/StandardError"
|
|
3977
|
+
/characters/{slug}:
|
|
3978
|
+
get:
|
|
3979
|
+
description: This is a preview API and may change. Returns a single character by
|
|
3980
|
+
its slug.
|
|
3981
|
+
operationId: getCharacterBySlug
|
|
3982
|
+
parameters:
|
|
3983
|
+
- description: The slug of the character to retrieve
|
|
3984
|
+
in: path
|
|
3985
|
+
name: slug
|
|
3986
|
+
required: true
|
|
3987
|
+
schema:
|
|
3988
|
+
example: alan-watts
|
|
3989
|
+
type: string
|
|
3990
|
+
summary: /api/v1/characters/{slug}
|
|
3991
|
+
tags:
|
|
3992
|
+
- Characters
|
|
3993
|
+
- Preview
|
|
3994
|
+
responses:
|
|
3995
|
+
"200":
|
|
3996
|
+
description: OK
|
|
4151
3997
|
content:
|
|
4152
3998
|
application/json:
|
|
4153
3999
|
schema:
|
|
4154
4000
|
type: object
|
|
4155
4001
|
properties:
|
|
4156
|
-
|
|
4002
|
+
data:
|
|
4003
|
+
type: object
|
|
4004
|
+
properties:
|
|
4005
|
+
adult:
|
|
4006
|
+
type: boolean
|
|
4007
|
+
description: Whether the character is considered adult content
|
|
4008
|
+
example: false
|
|
4009
|
+
createdAt:
|
|
4010
|
+
type: string
|
|
4011
|
+
description: Date when the character was created
|
|
4012
|
+
example: 2024-12-20T21:28:08.934Z
|
|
4013
|
+
description:
|
|
4014
|
+
type: string
|
|
4015
|
+
nullable: true
|
|
4016
|
+
description: Description of the character
|
|
4017
|
+
example: Alan Watts (6 January 1915 – 16 November 1973) was a British and
|
|
4018
|
+
American writer, speaker, and self-styled
|
|
4019
|
+
"philosophical entertainer", known for interpreting
|
|
4020
|
+
and popularizing Buddhist, Taoist, and Hindu
|
|
4021
|
+
philosophy for a Western audience.
|
|
4022
|
+
name:
|
|
4023
|
+
type: string
|
|
4024
|
+
description: Name of the character
|
|
4025
|
+
example: Alan Watts
|
|
4026
|
+
shareUrl:
|
|
4027
|
+
type: string
|
|
4028
|
+
nullable: true
|
|
4029
|
+
description: Share URL of the character
|
|
4030
|
+
example: https://venice.ai/c/alan-watts
|
|
4031
|
+
photoUrl:
|
|
4032
|
+
type: string
|
|
4033
|
+
nullable: true
|
|
4034
|
+
description: URL of the character photo
|
|
4035
|
+
example: https://outerface.venice.ai/api/characters/2f460055-7595-4640-9cb6-c442c4c869b0/photo
|
|
4036
|
+
slug:
|
|
4037
|
+
type: string
|
|
4038
|
+
description: Slug of the character to be used in the completions API
|
|
4039
|
+
example: alan-watts
|
|
4040
|
+
stats:
|
|
4041
|
+
type: object
|
|
4042
|
+
properties:
|
|
4043
|
+
imports:
|
|
4044
|
+
type: number
|
|
4045
|
+
description: Number of imports for the character
|
|
4046
|
+
example: 112
|
|
4047
|
+
required:
|
|
4048
|
+
- imports
|
|
4049
|
+
tags:
|
|
4050
|
+
type: array
|
|
4051
|
+
items:
|
|
4052
|
+
type: string
|
|
4053
|
+
description: Tags associated with the character
|
|
4054
|
+
example:
|
|
4055
|
+
- AlanWatts
|
|
4056
|
+
- Philosophy
|
|
4057
|
+
- Buddhism
|
|
4058
|
+
- Taoist
|
|
4059
|
+
- Hindu
|
|
4060
|
+
updatedAt:
|
|
4061
|
+
type: string
|
|
4062
|
+
description: Date when the character was last updated
|
|
4063
|
+
example: 2025-02-09T03:23:53.708Z
|
|
4064
|
+
webEnabled:
|
|
4065
|
+
type: boolean
|
|
4066
|
+
description: Whether the character is enabled for web use
|
|
4067
|
+
example: true
|
|
4068
|
+
modelId:
|
|
4069
|
+
type: string
|
|
4070
|
+
description: API model ID for the character
|
|
4071
|
+
example: venice-uncensored
|
|
4072
|
+
required:
|
|
4073
|
+
- adult
|
|
4074
|
+
- createdAt
|
|
4075
|
+
- description
|
|
4076
|
+
- name
|
|
4077
|
+
- shareUrl
|
|
4078
|
+
- photoUrl
|
|
4079
|
+
- slug
|
|
4080
|
+
- stats
|
|
4081
|
+
- tags
|
|
4082
|
+
- updatedAt
|
|
4083
|
+
- webEnabled
|
|
4084
|
+
- modelId
|
|
4085
|
+
object:
|
|
4157
4086
|
type: string
|
|
4158
|
-
|
|
4159
|
-
|
|
4087
|
+
enum:
|
|
4088
|
+
- character
|
|
4160
4089
|
required:
|
|
4161
|
-
-
|
|
4090
|
+
- data
|
|
4091
|
+
- object
|
|
4092
|
+
"401":
|
|
4093
|
+
description: Authentication failed
|
|
4094
|
+
content:
|
|
4095
|
+
application/json:
|
|
4096
|
+
schema:
|
|
4097
|
+
$ref: "#/components/schemas/StandardError"
|
|
4098
|
+
"404":
|
|
4099
|
+
description: Character not found
|
|
4100
|
+
content:
|
|
4101
|
+
application/json:
|
|
4102
|
+
schema:
|
|
4103
|
+
$ref: "#/components/schemas/StandardError"
|
|
4104
|
+
"500":
|
|
4105
|
+
description: An unknown error occurred
|
|
4106
|
+
content:
|
|
4107
|
+
application/json:
|
|
4108
|
+
schema:
|
|
4109
|
+
$ref: "#/components/schemas/StandardError"
|
|
4162
4110
|
/embeddings:
|
|
4163
4111
|
post:
|
|
4164
4112
|
description: Create embeddings for the supplied input.
|
|
@@ -4263,101 +4211,43 @@ paths:
|
|
|
4263
4211
|
content:
|
|
4264
4212
|
application/json:
|
|
4265
4213
|
schema:
|
|
4266
|
-
|
|
4267
|
-
properties:
|
|
4268
|
-
details:
|
|
4269
|
-
type: object
|
|
4270
|
-
properties: {}
|
|
4271
|
-
description: Details about the incorrect input
|
|
4272
|
-
example:
|
|
4273
|
-
_errors: []
|
|
4274
|
-
field:
|
|
4275
|
-
_errors:
|
|
4276
|
-
- Field is required
|
|
4277
|
-
error:
|
|
4278
|
-
type: string
|
|
4279
|
-
description: A description of the error
|
|
4280
|
-
example: Invalid request parameters
|
|
4281
|
-
required:
|
|
4282
|
-
- error
|
|
4214
|
+
$ref: "#/components/schemas/DetailedError"
|
|
4283
4215
|
"401":
|
|
4284
4216
|
description: Authentication failed
|
|
4285
4217
|
content:
|
|
4286
4218
|
application/json:
|
|
4287
4219
|
schema:
|
|
4288
|
-
|
|
4289
|
-
properties:
|
|
4290
|
-
error:
|
|
4291
|
-
type: string
|
|
4292
|
-
description: A description of the error
|
|
4293
|
-
example: Authentication failed
|
|
4294
|
-
required:
|
|
4295
|
-
- error
|
|
4220
|
+
$ref: "#/components/schemas/StandardError"
|
|
4296
4221
|
"402":
|
|
4297
4222
|
description: Insufficient USD or Diem balance to complete request
|
|
4298
4223
|
content:
|
|
4299
4224
|
application/json:
|
|
4300
4225
|
schema:
|
|
4301
|
-
|
|
4302
|
-
properties:
|
|
4303
|
-
error:
|
|
4304
|
-
type: string
|
|
4305
|
-
description: A description of the error
|
|
4306
|
-
example: Insufficient USD or Diem balance to complete request
|
|
4307
|
-
required:
|
|
4308
|
-
- error
|
|
4226
|
+
$ref: "#/components/schemas/StandardError"
|
|
4309
4227
|
"415":
|
|
4310
4228
|
description: Invalid request content-type
|
|
4311
4229
|
content:
|
|
4312
4230
|
application/json:
|
|
4313
4231
|
schema:
|
|
4314
|
-
|
|
4315
|
-
properties:
|
|
4316
|
-
error:
|
|
4317
|
-
type: string
|
|
4318
|
-
description: A description of the error
|
|
4319
|
-
example: Invalid request content-type
|
|
4320
|
-
required:
|
|
4321
|
-
- error
|
|
4232
|
+
$ref: "#/components/schemas/StandardError"
|
|
4322
4233
|
"429":
|
|
4323
4234
|
description: Rate limit exceeded
|
|
4324
4235
|
content:
|
|
4325
4236
|
application/json:
|
|
4326
4237
|
schema:
|
|
4327
|
-
|
|
4328
|
-
properties:
|
|
4329
|
-
error:
|
|
4330
|
-
type: string
|
|
4331
|
-
description: A description of the error
|
|
4332
|
-
example: Rate limit exceeded
|
|
4333
|
-
required:
|
|
4334
|
-
- error
|
|
4238
|
+
$ref: "#/components/schemas/StandardError"
|
|
4335
4239
|
"500":
|
|
4336
4240
|
description: Inference processing failed
|
|
4337
4241
|
content:
|
|
4338
4242
|
application/json:
|
|
4339
4243
|
schema:
|
|
4340
|
-
|
|
4341
|
-
properties:
|
|
4342
|
-
error:
|
|
4343
|
-
type: string
|
|
4344
|
-
description: A description of the error
|
|
4345
|
-
example: Inference processing failed
|
|
4346
|
-
required:
|
|
4347
|
-
- error
|
|
4244
|
+
$ref: "#/components/schemas/StandardError"
|
|
4348
4245
|
"503":
|
|
4349
4246
|
description: The model is at capacity. Please try again later.
|
|
4350
4247
|
content:
|
|
4351
4248
|
application/json:
|
|
4352
4249
|
schema:
|
|
4353
|
-
|
|
4354
|
-
properties:
|
|
4355
|
-
error:
|
|
4356
|
-
type: string
|
|
4357
|
-
description: A description of the error
|
|
4358
|
-
example: The model is at capacity. Please try again later.
|
|
4359
|
-
required:
|
|
4360
|
-
- error
|
|
4250
|
+
$ref: "#/components/schemas/StandardError"
|
|
4361
4251
|
/audio/speech:
|
|
4362
4252
|
post:
|
|
4363
4253
|
description: Converts text to speech using various voice models and formats.
|
|
@@ -4404,114 +4294,49 @@ paths:
|
|
|
4404
4294
|
content:
|
|
4405
4295
|
application/json:
|
|
4406
4296
|
schema:
|
|
4407
|
-
|
|
4408
|
-
properties:
|
|
4409
|
-
details:
|
|
4410
|
-
type: object
|
|
4411
|
-
properties: {}
|
|
4412
|
-
description: Details about the incorrect input
|
|
4413
|
-
example:
|
|
4414
|
-
_errors: []
|
|
4415
|
-
field:
|
|
4416
|
-
_errors:
|
|
4417
|
-
- Field is required
|
|
4418
|
-
error:
|
|
4419
|
-
type: string
|
|
4420
|
-
description: A description of the error
|
|
4421
|
-
example: Invalid request parameters
|
|
4422
|
-
required:
|
|
4423
|
-
- error
|
|
4297
|
+
$ref: "#/components/schemas/DetailedError"
|
|
4424
4298
|
"401":
|
|
4425
4299
|
description: Authentication failed
|
|
4426
4300
|
content:
|
|
4427
4301
|
application/json:
|
|
4428
4302
|
schema:
|
|
4429
|
-
|
|
4430
|
-
properties:
|
|
4431
|
-
error:
|
|
4432
|
-
type: string
|
|
4433
|
-
description: A description of the error
|
|
4434
|
-
example: Authentication failed
|
|
4435
|
-
required:
|
|
4436
|
-
- error
|
|
4303
|
+
$ref: "#/components/schemas/StandardError"
|
|
4437
4304
|
"402":
|
|
4438
4305
|
description: Insufficient USD or Diem balance to complete request
|
|
4439
4306
|
content:
|
|
4440
4307
|
application/json:
|
|
4441
4308
|
schema:
|
|
4442
|
-
|
|
4443
|
-
properties:
|
|
4444
|
-
error:
|
|
4445
|
-
type: string
|
|
4446
|
-
description: A description of the error
|
|
4447
|
-
example: Insufficient USD or Diem balance to complete request
|
|
4448
|
-
required:
|
|
4449
|
-
- error
|
|
4309
|
+
$ref: "#/components/schemas/StandardError"
|
|
4450
4310
|
"403":
|
|
4451
4311
|
description: Unauthorized access
|
|
4452
4312
|
content:
|
|
4453
4313
|
application/json:
|
|
4454
4314
|
schema:
|
|
4455
|
-
|
|
4456
|
-
properties:
|
|
4457
|
-
error:
|
|
4458
|
-
type: string
|
|
4459
|
-
description: A description of the error
|
|
4460
|
-
example: Unauthorized access
|
|
4461
|
-
required:
|
|
4462
|
-
- error
|
|
4315
|
+
$ref: "#/components/schemas/StandardError"
|
|
4463
4316
|
"415":
|
|
4464
4317
|
description: Invalid request content-type
|
|
4465
4318
|
content:
|
|
4466
4319
|
application/json:
|
|
4467
4320
|
schema:
|
|
4468
|
-
|
|
4469
|
-
properties:
|
|
4470
|
-
error:
|
|
4471
|
-
type: string
|
|
4472
|
-
description: A description of the error
|
|
4473
|
-
example: Invalid request content-type
|
|
4474
|
-
required:
|
|
4475
|
-
- error
|
|
4321
|
+
$ref: "#/components/schemas/StandardError"
|
|
4476
4322
|
"429":
|
|
4477
4323
|
description: Rate limit exceeded
|
|
4478
4324
|
content:
|
|
4479
4325
|
application/json:
|
|
4480
4326
|
schema:
|
|
4481
|
-
|
|
4482
|
-
properties:
|
|
4483
|
-
error:
|
|
4484
|
-
type: string
|
|
4485
|
-
description: A description of the error
|
|
4486
|
-
example: Rate limit exceeded
|
|
4487
|
-
required:
|
|
4488
|
-
- error
|
|
4327
|
+
$ref: "#/components/schemas/StandardError"
|
|
4489
4328
|
"500":
|
|
4490
4329
|
description: Inference processing failed
|
|
4491
4330
|
content:
|
|
4492
4331
|
application/json:
|
|
4493
4332
|
schema:
|
|
4494
|
-
|
|
4495
|
-
properties:
|
|
4496
|
-
error:
|
|
4497
|
-
type: string
|
|
4498
|
-
description: A description of the error
|
|
4499
|
-
example: Inference processing failed
|
|
4500
|
-
required:
|
|
4501
|
-
- error
|
|
4333
|
+
$ref: "#/components/schemas/StandardError"
|
|
4502
4334
|
"503":
|
|
4503
4335
|
description: The model is at capacity. Please try again later.
|
|
4504
4336
|
content:
|
|
4505
4337
|
application/json:
|
|
4506
4338
|
schema:
|
|
4507
|
-
|
|
4508
|
-
properties:
|
|
4509
|
-
error:
|
|
4510
|
-
type: string
|
|
4511
|
-
description: A description of the error
|
|
4512
|
-
example: The model is at capacity. Please try again later.
|
|
4513
|
-
required:
|
|
4514
|
-
- error
|
|
4339
|
+
$ref: "#/components/schemas/StandardError"
|
|
4515
4340
|
/billing/usage:
|
|
4516
4341
|
get:
|
|
4517
4342
|
description: "Get paginated billing usage data for the authenticated user. NOTE:
|
|
@@ -4620,6 +4445,10 @@ paths:
|
|
|
4620
4445
|
schema:
|
|
4621
4446
|
type: object
|
|
4622
4447
|
properties:
|
|
4448
|
+
warningMessage:
|
|
4449
|
+
type: string
|
|
4450
|
+
description: A warning message to disambiguate DIEM usage from legacy DIEM
|
|
4451
|
+
(formerly VCU) usage
|
|
4623
4452
|
data:
|
|
4624
4453
|
type: array
|
|
4625
4454
|
items:
|
|
@@ -4746,46 +4575,16 @@ paths:
|
|
|
4746
4575
|
content:
|
|
4747
4576
|
application/json:
|
|
4748
4577
|
schema:
|
|
4749
|
-
|
|
4750
|
-
properties:
|
|
4751
|
-
details:
|
|
4752
|
-
type: object
|
|
4753
|
-
properties: {}
|
|
4754
|
-
description: Details about the incorrect input
|
|
4755
|
-
example:
|
|
4756
|
-
_errors: []
|
|
4757
|
-
field:
|
|
4758
|
-
_errors:
|
|
4759
|
-
- Field is required
|
|
4760
|
-
error:
|
|
4761
|
-
type: string
|
|
4762
|
-
description: A description of the error
|
|
4763
|
-
example: Invalid request parameters
|
|
4764
|
-
required:
|
|
4765
|
-
- error
|
|
4578
|
+
$ref: "#/components/schemas/DetailedError"
|
|
4766
4579
|
"401":
|
|
4767
4580
|
description: Authentication failed
|
|
4768
4581
|
content:
|
|
4769
4582
|
application/json:
|
|
4770
4583
|
schema:
|
|
4771
|
-
|
|
4772
|
-
properties:
|
|
4773
|
-
error:
|
|
4774
|
-
type: string
|
|
4775
|
-
description: A description of the error
|
|
4776
|
-
example: Authentication failed
|
|
4777
|
-
required:
|
|
4778
|
-
- error
|
|
4584
|
+
$ref: "#/components/schemas/StandardError"
|
|
4779
4585
|
"500":
|
|
4780
4586
|
description: Inference processing failed
|
|
4781
4587
|
content:
|
|
4782
4588
|
application/json:
|
|
4783
4589
|
schema:
|
|
4784
|
-
|
|
4785
|
-
properties:
|
|
4786
|
-
error:
|
|
4787
|
-
type: string
|
|
4788
|
-
description: A description of the error
|
|
4789
|
-
example: Inference processing failed
|
|
4790
|
-
required:
|
|
4791
|
-
- error
|
|
4590
|
+
$ref: "#/components/schemas/StandardError"
|