ReqLLM. Providers. Venice
(ReqLLM v1.14.0)
View Source
Venice AI provider – OpenAI-compatible Chat Completions API with privacy-first inference.
Implementation
Uses built-in OpenAI-style encoding/decoding defaults with Venice-specific extensions.
Venice is fully OpenAI-compatible with additional parameters via venice_parameters.
Venice-Specific Extensions
Beyond standard OpenAI parameters, Venice supports provider-specific options
via the venice_parameters object in the request body:
character_slug- Use a specific AI character personaenable_web_search- Enable real-time web search (off, on, auto)enable_web_scraping- Scrape URLs in user messagesenable_web_citations- Include citations in web search resultsstrip_thinking_response- Strip<think>blocks from responsedisable_thinking- Disable reasoning mode entirelyinclude_venice_system_prompt- Include Venice's default system prompts
See provider_schema/0 for the complete Venice-specific schema and
ReqLLM.Provider.Options for inherited OpenAI parameters.
Configuration
# Add to .env file (automatically loaded)
VENICE_API_KEY=your-api-keyExamples
# Basic usage
ReqLLM.generate_text("venice:llama-3.3-70b", "Hello!")
# With web search enabled
ReqLLM.generate_text("venice:zai-org-glm-4.7", "What happened today?",
provider_options: [enable_web_search: "on"]
)
# With a Venice character
ReqLLM.generate_text("venice:venice-uncensored", "Tell me a story",
provider_options: [character_slug: "my-character"]
)
Summary
Functions
Default implementation of attach/3.
Default implementation of attach_stream/4.
Default implementation of build_body/1.
Default implementation of decode_response/1.
Default implementation of decode_stream_event/2.
Callback implementation for ReqLLM.Provider.default_env_key/0.
Default implementation of encode_body/1.
Default implementation of extract_usage/2.
Default implementation of prepare_request/4.
Default implementation of translate_options/3.
Functions
Default implementation of attach/3.
Sets up Bearer token authentication and standard pipeline steps.
Default implementation of attach_stream/4.
Builds complete streaming requests using OpenAI-compatible format.
Default implementation of build_body/1.
Builds request body using OpenAI-compatible format for chat and embedding operations.
Default implementation of decode_response/1.
Handles success/error responses with standard ReqLLM.Response creation.
Default implementation of decode_stream_event/2.
Decodes SSE events using OpenAI-compatible format.
Callback implementation for ReqLLM.Provider.default_env_key/0.
Default implementation of encode_body/1.
Encodes request body using OpenAI-compatible format for chat and embedding operations.
Default implementation of extract_usage/2.
Extracts usage data from standard usage field in response body.
Default implementation of prepare_request/4.
Handles :chat, :object, and :embedding operations using OpenAI-compatible patterns.
Default implementation of translate_options/3.
Pass-through implementation that returns options unchanged.