anthropic

Anthropic: Claude v1

models/Claude v1

Anthropic's model for low latency, high throughput text generation. Supports hundreds of pages of text.
Currency$USD
Input$8.00
Output$24.00
Context window100K

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
Configanthropic/claude-1
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="anthropic/claude-1",
        temperature:"0.7"
    )
 
    # Print the response
    print(response["data"])