openai

OpenAI: GPT 3.5 Turbo 16k

models/GPT-3.5 Turbo 16k

The latest GPT 3.5 Turbo model with improved instruction following, JSON mode, reproducible outputs, parallel function calling, and more. Training data: up to Sep 2021. This version has a higher accuracy at responding in requested formats and a fix for a bug which caused a text encoding issue for non English language function calls.
Currency$USD
Input$0.50
Output$1.50
Context window16.4K

Generate API Key Generate your API Key to securely access IndoxHub's AI models. Integrate with OpenAI-compatible tools, run queries, and build powerful AI applications — all with a single secure key.
Endpoint
POSThttps://api.indoxhub.com/api/v1/chat/completions
Configopenai/gpt-3.5-turbo-0125
from indoxhub import Client
 
# Initialize the client
with Client(api_key="[LOGIN TO GET API KEY]") as client:
    # Generate a chat completion
    response = client.chat(
        messages=[{"role":"system","content":"You are a helpful assistant."},{"role":"user","content":"What is machine learning and why is it important?"}],
        model="openai/gpt-3.5-turbo-0125",
        temperature:"0.7"
    )
 
    # Print the response
    print(response["data"])